/*
 * ルティロワの家づくり：動画ファーストビュー
 * 映像を見せた後、白いヴェールと文字を順に重ねる。
 */
.page-about .about-film {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: #39779d;
  color: #29465c;
}

.page-about .about-film__video,
.page-about .about-film__shade,
.page-about .about-film__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-about .about-film__video {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  /* 支給動画内の上下の黒帯を背景表示時だけ画面外へ逃がす。 */
  transform: scale(1.095);
  transition: transform 8s cubic-bezier(.16, 1, .3, 1), filter 1.6s ease;
}

.page-about .about-film__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(57, 119, 157, .22) 0%, rgba(57, 119, 157, .06) 32%, rgba(57, 119, 157, .12) 100%),
    linear-gradient(90deg, rgba(57, 119, 157, .08), transparent 36%);
  opacity: 1;
  transition: opacity 1.25s ease;
  pointer-events: none;
}

.page-about .about-film__veil {
  z-index: -1;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .7) 44%, rgba(255, 255, 255, .64) 100%);
  opacity: 0;
  -webkit-backdrop-filter: blur(1.5px) saturate(.82);
  backdrop-filter: blur(1.5px) saturate(.82);
  transition: opacity 1.35s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.page-about .about-film.is-veiled .about-film__video {
  transform: scale(1.075);
  filter: saturate(.82) contrast(.94);
}

.page-about .about-film.is-veiled .about-film__shade {
  opacity: .08;
}

.page-about .about-film.is-veiled .about-film__veil {
  opacity: 1;
}

.page-about .about-film__content {
  position: absolute;
  top: 53%;
  left: 50%;
  z-index: 2;
  width: min(760px, calc(100% - 96px));
  text-align: center;
  transform: translate(-50%, -50%);
}

.page-about .about-film__eyebrow,
.page-about .about-film__title,
.page-about .about-film__lead,
.page-about .about-film__description {
  margin-right: 0;
  margin-left: 0;
  opacity: 0;
  filter: blur(14px);
  transform: scale(.985);
  transition:
    opacity 1.3s cubic-bezier(.22, 1, .36, 1),
    filter 1.45s cubic-bezier(.22, 1, .36, 1),
    transform 1.45s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, filter, transform;
}

.page-about .about-film__eyebrow {
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .24em;
}

.page-about .about-film__title {
  margin-bottom: 30px;
  font-family: "Shippori Mincho", "Yu Mincho", YuMincho, serif;
  font-size: clamp(40px, 4.15vw, 60px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .13em;
}

.page-about .about-film__lead {
  margin-bottom: 20px;
  font-family: "Shippori Mincho", "Yu Mincho", YuMincho, serif;
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .12em;
}

.page-about .about-film__description {
  font-family: "Shippori Mincho", "Yu Mincho", YuMincho, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: .08em;
}

.page-about .about-film.is-copy-visible .about-film__eyebrow,
.page-about .about-film.is-copy-visible .about-film__title,
.page-about .about-film.is-copy-visible .about-film__lead,
.page-about .about-film.is-copy-visible .about-film__description {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.page-about .about-film.is-copy-visible .about-film__title {
  transition-delay: .14s;
}

.page-about .about-film.is-copy-visible .about-film__lead {
  transition-delay: .31s;
}

.page-about .about-film.is-copy-visible .about-film__description {
  transition-delay: .48s;
}

/* 共通モーションが main h1 を先に表示しても、このヒーロー固有の時系列を優先する。 */
.page-about.motion-ready .about-film:not(.is-copy-visible) .about-film__title.motion-heading,
.page-about.motion-ready .about-film:not(.is-copy-visible) .about-film__title.motion-heading.is-visible {
  opacity: 0;
  filter: blur(14px);
  transform: scale(.985);
}

.page-about.motion-ready .about-film.is-copy-visible .about-film__title.motion-heading,
.page-about.motion-ready .about-film.is-copy-visible .about-film__title.motion-heading.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.page-about .about-film__scroll {
  position: absolute;
  right: 42px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  opacity: .86;
  transition: color 1s ease, opacity 1s ease;
}

.page-about .about-film__scroll span {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
}

.page-about .about-film__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: currentColor;
  opacity: .45;
}

.page-about .about-film__scroll i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: currentColor;
  content: "";
  animation: aboutFilmScroll 2.2s ease-in-out infinite;
}

.page-about .about-film.is-veiled .about-film__scroll {
  color: #58758b;
}

@keyframes aboutFilmScroll {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(200%); }
}

@media (max-width: 900px) {
  .page-about .about-film {
    min-height: 620px;
    max-height: none;
  }

  .page-about .about-film__video {
    /* 支給動画に含まれる上下の黒帯を、縦長画面では完全に画面外へ逃がす。 */
    transform: scale(1.2);
  }

  .page-about .about-film.is-veiled .about-film__video {
    transform: scale(1.18);
  }

  .page-about .about-film__content {
    top: 55%;
    width: calc(100% - 48px);
  }

  .page-about .about-film__title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .page-about .about-film__description br {
    display: none;
  }

  .page-about .about-film__scroll {
    right: 18px;
    bottom: 20px;
  }
}

/* Tablet landscape/portrait: crop the letterboxed source beyond the viewport. */
@media (min-width: 769px) and (max-width: 1180px) {
  .page-about .about-film__video {
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-fit: cover;
    object-position: 50% 48%;
    transform: scale(1.28);
  }

  .page-about .about-film.is-veiled .about-film__video {
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .about-film__video {
    transform: scale(1.095) !important;
    transition: none !important;
  }

  .page-about .about-film__veil {
    opacity: 1 !important;
  }

  .page-about .about-film__shade {
    opacity: .08 !important;
  }

  .page-about .about-film__eyebrow,
  .page-about .about-film__title,
  .page-about .about-film__lead,
  .page-about .about-film__description {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 769px) and (max-width: 1180px) {
  .page-about .about-film__video {
    transform: scale(1.28) !important;
  }
}
