.p-home-parallax {
  margin-top: 0;
  position: relative;

  @media (width >= 768px) {
    height: 45rem;
  }

  @media (width >= 992px) {
    height: 50rem;
  }

  @media (width < 768px) {
    height: 50rem;
  }

  @media (width <= 576px) {
    height: 40rem;
  }
}

.p-home-parallax__area {
  height: 100%;
  overflow: hidden;
}

/* The fixed background below is clipped to this box by clip-path (overflow does not clip fixed children). */
.p-home-parallax__wrap {
  position: relative;
  z-index: 3;
  overflow: hidden;
  height: 100%;

  @media (width < 768px) {
    top: 0;
  }

  @media (hover: hover) and (width >= 768px) {
    clip-path: inset(0);
  }
}

.p-home-parallax__bg {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
  background-image: url("../../images/content/img-home-1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  inset: 0;
  height: 100%;

  @media (width < 768px) {
    background-image: url("../../images/content/img-home-1-sp.webp");
  }

  @media (hover: hover) and (width >= 768px) {
    position: fixed;
    height: 100vh;
  }

  @media (prefers-reduced-motion: reduce) {
    position: absolute;
    height: 100%;
  }
}

.p-home-parallax__content {
  position: absolute;
  width: 100%;
  left: 0;
  z-index: 9;

  @media (width >= 768px) {
    bottom: 7rem;
  }

  @media (width >= 992px) {
    bottom: 9rem;
  }

  @media (width < 768px) {
    bottom: 9rem;
  }
}

.p-home-parallax__content .p-home-parallax__copy {
  display: table-cell;
}

.p-home-parallax__content .p-home-parallax__line {
  transition: clip-path var(--duration-800) var(--ease-out-cubic), transform var(--duration-800) var(--ease-out-cubic);
  transition-delay: calc(var(--line-index, 0) * .15s);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-en);
  font-feature-settings: 'palt' 1;
  color: var(--color-text);
  display: table;
  background-color: var(--color-bg);

  @media (width >= 768px) {
    font-size: 5vw;
    line-height: calc(67/60);
    padding: 0 var(--space-2xs);
    margin-left: -1rem;
  }

  @media (width >= 992px) {
    font-size: 4.28571vw;
  }

  @media (width < 768px) {
    font-size: 5.86667vw;
    line-height: calc(34/30);
    padding: 0 var(--space-3xs);
    margin-left: -.5rem;
  }

  @media (width <= 576px) {
    font-size: 8vw;
  }
}

.p-home-parallax__content .p-home-parallax__line:not(:first-of-type) {
  margin-top: var(--space-3xs);
}

/* Line-by-line wipe: hidden start state only when JS has opted in (html.has-reveal), never in print. */
.has-reveal .p-home-parallax__content .p-home-parallax__line {
  @media screen {
    clip-path: inset(0 100% 0 0);
    transform: translate3d(-1.5rem, 0, 0);
  }
}

.has-reveal .p-home-parallax__content .p-home-parallax__copy.is-active .p-home-parallax__line {
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
}
