/* 相談の対話から実績へ渡す、差替え可能な映像ステージ。JSなしでは既存の静止画を表示する。 */
.consultation-film {
  position:relative;
  isolation:isolate;
  background:#1a2939;
  overflow:hidden
}
.consultation-film__fallback,.consultation-film__video,.consultation-film__canvas {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block
}
.consultation-film .consultation-film__fallback {
  height:100%;
  object-fit:cover;
  position:relative;
  z-index:0
}
.consultation-film__fallback {
  opacity:1
}
.consultation-film__video,.consultation-film__canvas,.consultation-film__ecru,.consultation-film__bridge {
  position:absolute;
  inset:0;
  pointer-events:none
}
.consultation-film__video {
  visibility:hidden;
  opacity:0
}
.consultation-film__canvas {
  z-index:1;
  opacity:0
}
.consultation-film__ecru {
  z-index:2
}
.consultation-film__bridge {
  z-index:3
}
.consultation-film__ecru {
  background:#fbf7ed;
  opacity:0
}
.consultation-film__bridge {
  inset:0;
  display:grid;
  place-content:center;
  padding:32px;
  text-align:center;
  color:var(--ink);
  font-size:clamp(36px,5vw,72px);
  font-weight:900;
  letter-spacing:-.055em;
  line-height:1.45;
  opacity:0;
  transform:translateY(20px)
}
.consult-bottom > .consult-ending-static {
  font-size:clamp(26px,3.6vw,56px);
  font-weight:900;
  line-height:1.45;
  letter-spacing:-.055em
}
.consult-bottom > .consult-ending-static strong {
  font:inherit
}
.consultation-film figcaption {
  position:absolute;
  z-index:4;
  right:12px;
  bottom:10px;
  color:#fff;
  background:rgba(9,43,79,.62);
  padding:4px 7px
}
.consultation-film.is-ready.has-painted-frame .consultation-film__canvas {
  opacity:var(--consult-video-opacity,0)
}
html.motion-paused .consultation-film .consultation-film__canvas {
  opacity:0
}
html.consultation-motion-ready .consultation {
  height:calc(450svh + var(--consult-slow-extra,0px));
  padding-top:0;
  padding-bottom:0;
  background:#fbf7ed
}
html.consultation-motion-ready .consultation + .footer-meta {
  position:relative;
  z-index:2;
  margin-top:calc(-1 * var(--consult-footer-overlap,0px));
  background:var(--navy)
}
html.consultation-motion-ready .consultation>.section-top,
html.consultation-motion-ready .consultation>.consult-heading,
html.consultation-motion-ready .consultation>.consult-bottom {
  position:relative;
  z-index:2;
  margin-left:var(--gutter);
  margin-right:var(--gutter)
}
html.consultation-motion-ready .consultation>.section-top {
  padding-top:42px;
  margin-bottom:28px
}
html.consultation-motion-ready .consultation>.consult-heading {
  margin-bottom:12px
}
html.consultation-motion-ready .consultation>.consult-heading h2 {
  font-size:clamp(30px,4.2vw,64px);
  max-width:760px
}
html.consultation-motion-ready .consultation>.consult-heading p {
  margin-top:14px
}
html.consultation-motion-ready .consultation>.consult-photo {
  position:sticky;
  top:var(--head);
  z-index:1;
  width:100%;
  height:calc(100svh - var(--head));
  margin:0;
  max-width:none;
  aspect-ratio:auto
}
html.consultation-motion-ready .consultation>.consult-bottom {
  margin-top:42px;
  padding-bottom:75px
}
html.consultation-motion-ready:not(.motion-paused) .consultation>.consult-bottom {
  visibility:hidden;
  pointer-events:none
}
html.consultation-motion-ready:not(.motion-paused) .consultation-film__ecru {
  opacity:var(--consult-ecru,0)
}
html.consultation-motion-ready:not(.motion-paused) .consultation-film__bridge {
  opacity:var(--consult-bridge,0);
  transform:translateY(calc((1 - var(--consult-bridge,0))*20px))
}
html.consultation-motion-ready:not(.motion-paused) .consultation-film figcaption {
  opacity:calc(1 - var(--consult-ecru,0))
}
@media (max-width:760px) {
  .consultation-film .consultation-film__fallback {
    object-fit:contain
  }
  .consultation-film__fallback,.consultation-film__video,.consultation-film__canvas {
    object-fit:contain;
    object-position:center top;
    background:#fbf7ed
  }
  html.consultation-motion-ready .consultation-film {
    background:#fbf7ed
  }
  html.consultation-motion-ready .consultation {
    height:calc(350svh + var(--consult-slow-extra,0px))
  }
  html.consultation-motion-ready .consultation>.section-top {
    padding-top:30px;
    margin-bottom:20px
  }
  html.consultation-motion-ready .consultation>.consult-heading {
    margin-bottom:10px
  }
  html.consultation-motion-ready .consultation>.consult-heading h2 {
    font-size:clamp(28px,8vw,42px)
  }
  html.consultation-motion-ready .consultation>.consult-photo {
    height:calc(100svh - var(--head));
    min-height:420px
  }
  .consultation-film__bridge {
    /* 上寄せで表示する採用映像（16:9）の中心から文字を出す。 */
    bottom:auto;
    aspect-ratio:16/9;
    max-height:100%;
    padding:20px;
    font-size:clamp(26px,6vw,36px)
  }
}
@media (prefers-reduced-motion:reduce) {
  .consultation-film__video,.consultation-film__canvas {
    display:none!important
  }
  .consultation-film__ecru,.consultation-film__bridge {
    display:none!important
  }
}

/* 映像と文字の中心を揃え、せり上がったフッターにも隠れない領域を確保する。
   sticky外枠の高さは維持し、動画と余韻のスクロール配分は変えない。 */
html.consultation-motion-ready .consultation-film__canvas,
html.consultation-motion-ready .consultation-film__video,
html.consultation-motion-ready .consultation-film .consultation-film__fallback,
html.consultation-motion-ready .consultation-film__bridge {
  height:calc(100% - var(--consult-footer-reserve,0px));
  bottom:auto;
  aspect-ratio:auto;
  object-position:center;
}
html.consultation-motion-ready .consultation-film {
  background:#fbf7ed;
}
html.consultation-motion-ready .consultation-film figcaption {
  bottom:var(--consult-caption-bottom,10px);
  right:var(--consult-caption-right,12px);
}
@media (max-width:760px) {
  html.consultation-motion-ready .consultation>.consult-photo {
    min-height:0;
  }
}
@media (max-height:600px) {
  .footer-meta { padding-top:18px; padding-bottom:18px; gap:24px; }
  footer .footer-meta .brand img { width:auto; height:56px; }
  html.consultation-motion-ready .consultation-film__bridge {
    font-size:clamp(26px,min(5vw,7vh),42px);
    padding:16px;
  }
}
