.headline-component,
.headline {
  height: calc(100vh - 144px);
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 16px;
  text-align: center;
  border-radius: 20px;
  box-sizing: border-box;
  display: block;
  align-content: center;
}

.headline-component.width-1400px,
.headline.width-1400px {
  max-width: 1400px;
  margin: 0 auto;
}

.headline-component.width-720px,
.headline.width-720px {
  max-width: 720px;
  margin: 0 auto;
}

.headline-container,
.headline-content {
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.headline-container > *:not(:last-child),
.headline-content > *:not(:last-child) {
  margin-bottom: 24px;
}

.headline-title {
  color: #2e3138;
  font-size: 34px;
  line-height: 1.235;
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

.headline-text {
  color: #111111;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.headline-image {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.headline-image img {
  width: 60%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.headline-button {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: #1f8563;
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease, transform 0.12s ease;
  box-shadow: 2px 6px 0 0 #006a4d;
}

.headline-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.headline-button:active {
  opacity: 0.85;
  transform: translateY(0);
}
.headline-button:focus {
  outline: 2px solid #1f8563;
  outline-offset: 2px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: headline-ripple 1.2s ease-out;
  background-color: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
@keyframes headline-ripple {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}

.headline-component.small,
.headline.small {
  padding: 24px;
  border-radius: 12px;
}

.headline-component .headline-content--card,
.headline .headline-content--card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
  .headline-title {
    font-size: 30px;
  }
  .headline-container,
  .headline-content {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  .headline {
    padding: 64px 16px;
  }

  .headline-title {
    font-size: 20px;
    line-height: 1.6;
  }

  .headline-container,
  .headline-content {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .headline-component.width-1400px,
  .headline.width-1400px {
    max-width: 100%;
  }

  .headline-image img {
    width: 100%;
    height: auto;
  }
}

.headline[style*="max-width"],
.headline-component[style*="max-width"] {
  margin-left: auto;
  margin-right: auto;
}

.headline-title,
.headline-text,
.headline-button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.headline,
.headline-component {
  display: block;
}
