@charset "UTF-8";

/* 下層ページ共通ヒーロー */
.lower-hero {
  position: relative;
  isolation: isolate;
  min-height: 212px;
  overflow: hidden;
  background: var(--color-green);
  color: var(--color-white);
}

.lower-hero__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--space-content-sp)), var(--content-width));
  margin-inline: auto;
  padding-top: 36px;
}

.lower-hero__title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.95;
  opacity: 0;
  transform: translateY(28px);
  animation: lower-hero-title-in 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
  will-change: opacity, transform;
}

.lower-hero__title-line {
  display: block;
}

.lower-hero__title-line:first-child > span {
  color: var(--color-yellow);
}

.lower-hero__subtitle {
  margin-top: 9px;
  color: var(--color-yellow);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-32px);
  animation: lower-hero-subtitle-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
  will-change: opacity, transform;
}

.lower-hero__decoration {
  position: absolute;
  inset: 0 0 -1px;
  z-index: 1;
  pointer-events: none;
}

.lower-hero__decoration::before,
.lower-hero__decoration::after {
  position: absolute;
  inset: 0;
  content: "";
}

.lower-hero__decoration::before {
  z-index: 0;
  background: var(--color-red);
  clip-path: polygon(69.5% 95%, 100% 65.5%, 100% 82.5%);
}

.lower-hero__decoration::after {
  z-index: 1;
  background: var(--color-yellow);
  clip-path: polygon(55.5% 100%, 100% 80.4%, 100% 100%);
}

@keyframes lower-hero-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lower-hero-subtitle-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .lower-hero {
    min-height: 296px;
  }

  .lower-hero__inner {
    padding-top: 54px;
  }

  .lower-hero__title {
    white-space: nowrap;
    font-size: clamp(52px, 6.4vw, 78px);
    line-height: 1;
  }

  .lower-hero__title-line {
    display: inline;
  }

  .lower-hero__title-line:first-child {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lower-hero__title,
  .lower-hero__subtitle {
    opacity: 1;
    transform: none;
    animation: none;
    will-change: auto;
  }
}
