/* 映像・写真の輪・冒頭の見せ方の上書き。<html> に付いている v- クラスごとに効く（クラスが無い規則は効かない）。 */

/* 映像を大きく（PC・横長の画面）: フッターぶんの空きは結びの文字だけに残し、映像は舞台の高さいっぱいに出す。 */
@media (min-width:760.02px) and (min-aspect-ratio:5/4) {
  html.v-film.consultation-motion-ready .consultation-film__canvas,
  html.v-film.consultation-motion-ready .consultation-film__video,
  html.v-film.consultation-motion-ready .consultation-film .consultation-film__fallback {
    height:100%;
  }
}

/* 映像を縦長に（スマホ）: 映像は舞台全体の中央に置き、動き出す前の静止画も同じ 4:5 の切り出しで同じ位置に置く。 */
@media (max-width:760px) and (orientation:portrait) {
  html.v-filmsp.consultation-motion-ready .consultation-film__canvas,
  html.v-filmsp.consultation-motion-ready .consultation-film__video {
    height:100%;
  }
  html.v-filmsp.consultation-motion-ready .consultation-film .consultation-film__fallback {
    position:absolute;
    left:50%;
    top:50%;
    width:var(--consult-crop-w,100%);
    height:var(--consult-crop-h,auto);
    transform:translate(-50%,-50%);
    object-fit:cover;
    object-position:var(--consult-crop-x,41%) 50%;
  }
}

/* 写真の輪: 奥の写真を舞台の紺に沈めて題字を読みやすくする。 */
html.v-ring .proof-orbit.is-orbit-moving .orbit-face::after {
  background:linear-gradient(to right,rgba(9,43,79,var(--shade-left,0)),rgba(9,43,79,var(--shade-right,0)));
}

/* 写真の輪: 輪が回っている舞台の上へ、次の内容を紙のようにせり上げる。輪が去ったあとの空白の画面をなくす。 */
html.v-ring .proof.proof-orbit.is-orbit-moving {
  overflow:clip;
}
/* overflow:clip が効かない古いブラウザでは、同じ範囲を clip-path で切る（overflow:hidden は舞台の固定を壊すので使わない）。 */
@supports not (overflow:clip) {
  html.v-ring .proof.proof-orbit.is-orbit-moving {
    clip-path:inset(0);
  }
}
html.v-ring .proof-orbit.is-orbit-moving .orbit-journey {
  margin-bottom:calc(-1 * (100svh - var(--orbit-head,var(--head))));
}
html.v-ring .proof-orbit.is-orbit-moving .orbit-intro {
  position:relative;
  z-index:1;
  margin-top:0;
  padding-top:clamp(48px,6vw,84px);
}
html.v-ring .proof-orbit.is-orbit-moving .orbit-intro::before {
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  left:calc(-1 * var(--gutter));
  right:calc(-1 * var(--gutter));
  height:calc(100svh - var(--orbit-head,var(--head)) + 2px);
  background:var(--proof-paper,#fbf7ed);
  border-radius:0 clamp(28px,3.4vw,48px) 0 0;
  box-shadow:0 -18px 48px rgba(0,10,24,.3);
  clip-path:inset(-80px 0 0 0);
}
html.v-ring .proof-orbit.is-orbit-moving .proof__facts,
html.v-ring .proof-orbit.is-orbit-moving .proof__note {
  position:relative;
  z-index:1;
}

/* 冒頭の静止を短く: ロゴと「育っていく」で止まる長さを半分にし、そのぶん章の長さも詰める。 */
html.v-hold.cinematic:not(.motion-paused) .opening {
  height:calc(100svh - var(--head) + 337.4svh);
}

/* 最初の見出しをその場で消す: 左へ大きく滑らせず、少しだけ動かしながら早めに薄くする。 */
html.v-herotext.cinematic:not(.motion-paused) .opening-copy {
  transform:translate3d(calc(var(--open,0) * -36px),0,0);
  opacity:calc(1 - var(--open,0) * 2.6);
}

/* 結びの文字を映像の中心に: 映像が舞台いっぱいに出ている時は、フッターに重ならない範囲で文字も舞台の中央へ寄せる。 */
@media (min-width:760.02px) and (min-aspect-ratio:5/4) {
  html.v-bridge.v-film.consultation-motion-ready .consultation-film__bridge {
    height:clamp(calc(100% - var(--consult-footer-reserve,0px)), calc(2 * (100% - var(--consult-footer-reserve,0px) - 24px - 1.45em)), 100%);
  }
}
@media (max-width:760px) and (orientation:portrait) {
  html.v-bridge.v-filmsp.consultation-motion-ready .consultation-film__bridge {
    height:clamp(calc(100% - var(--consult-footer-reserve,0px)), calc(2 * (100% - var(--consult-footer-reserve,0px) - 24px - 1.45em)), 100%);
  }
}
