/* The crown and the headline follow concentric arcs. Keep the middle of each film frame clear. */
.ol-film {
  --stage-edge: clamp(12px,1.13vw,22px);
  --ocean: #2475bf;
  --canary: #fff478;
  --aqua: #79e8ed;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  position: relative; isolation: isolate; display: grid;
  grid-template-rows: auto minmax(0,1fr); align-content: stretch;
  height: min(100svh,1080px); min-height: 585px; padding: clamp(89px,13.25svh,135px) var(--stage-edge) var(--stage-edge);
  background: #fff; color: #303437;
}
.ol-film .ol-title {
  position: relative; z-index: 2; margin: 0; padding: 0 0 .64em;
  font: 700 clamp(27px,2.85vw,48px)/1.12 "Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  letter-spacing: .01em; text-align: center; color: #303437; white-space: nowrap; font-feature-settings: normal;
}
.ol-title-line,.ol-title b { display: inline-block; }
.ol-title b { font-weight: inherit; transform: translateY(var(--y)) rotate(var(--a)); }
.ol-title .ol-accent { color: var(--ocean); }
.ol-motto { position: absolute; z-index: 3; top: clamp(92px,13.4svh,136px); right: 4.4%; margin: 0; color: #1f679f; writing-mode: vertical-rl; font: 650 .78rem/1.45 Arial,sans-serif; letter-spacing: .07em; }
.ol-stage { position: relative; min-height: 0; }
.ol-picture {
  position: absolute; inset: 0; overflow: hidden; border-radius: 17px;
  clip-path: ellipse(101% 165% at 50% 165%);
  background: #dbe7ec url("assets/film/hero-poster.webp") 50% 50% / cover no-repeat;
}
.ol-picture video { display: block; height: 100%; width: 100%; object-fit: cover; }
.ol-paths {
  position: absolute; right: calc(var(--stage-edge) + 16px); bottom: calc(var(--stage-edge) + 16px);
  display: grid; gap: 10px; z-index: 4; width: clamp(228px,22.3vw,328px);
}
.ol-paths a {
  display: grid; grid-template-columns: 40% 1fr 28px; gap: clamp(8px,1vw,18px); align-items: center;
  min-width: 0; padding: 8px 10px 8px 8px; border-radius: 9px;
  color: #24292c; background: var(--canary); box-shadow: 0 2px 8px #17375322;
  text-decoration: none; transition: transform .22s ease,box-shadow .22s;
}
.ol-paths a:last-child { background: var(--aqua); }
.ol-paths img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: 5px; }
.ol-paths strong { font-size: clamp(.82rem,1.05vw,1.04rem); font-weight: 700; line-height: 1.5; }
.ol-paths i { align-self: end; justify-self: end; font: 500 15px/1 Arial,sans-serif; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #303437; color: #fff; }
@media (hover:hover) { .ol-paths a:hover { transform: translateY(-3px); box-shadow: 0 6px 15px #17375338; } }
.ol-forms { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ol-forms i { position: absolute; display: block; width: clamp(35px,5.8vw,105px); aspect-ratio: 1; }
.ol-forms i::before { content: ""; display: block; position: absolute; inset: 0; border: 1px solid #425968; background: var(--aqua); }
.ol-forms i:nth-child(1) { left: 6%; top: 0; }
.ol-forms i:nth-child(1)::before { border-radius: 85% 85% 0 0 / 100% 100% 0 0; top: 35%; }
.ol-forms i:nth-child(2) { left: calc(6% + clamp(35px,5.8vw,105px)); top: calc(0% + clamp(35px,5.8vw,105px)); }
.ol-forms i:nth-child(2)::before { right: 44%; background: var(--ocean); border-radius: 0 100% 100% 0 / 0 65% 65% 0; }
.ol-forms i:nth-child(3) { width: clamp(33px,4.45vw,78px); top: -5%; right: 12%; transform: rotate(18deg); }
.ol-forms i:nth-child(3)::before { border-radius: 6% 38% 6% 38%; background: var(--ocean); }
.ol-forms i:nth-child(4) { width: clamp(28px,4vw,66px); top: 22%; right: 4.4%; transform: rotate(-13deg); }
.ol-forms i:nth-child(4)::before { background: #ffe35b; border-radius: 50% 50% 5% 8%; }
.ol-forms i:nth-child(5) { width: clamp(27px,3.4vw,57px); bottom: 18%; left: 3%; transform: rotate(22deg); }
.ol-forms i:nth-child(5)::before { border-radius: 50% 0 50% 0; background: #ffea65; }
.ol-hud {
  position: absolute; bottom: 14px; left: 14px; z-index: 3; display: flex; align-items: center; column-gap: 8px;
  color: #fff; background: #142e3bdf; border-radius: 30px; padding: 2px 12px 2px 4px; font-family: "Yu Gothic",Meiryo,sans-serif;
}
.ol-play,.ol-chapter { display: grid; place-items: center; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.ol-play { width: 40px; height: 40px; border-radius: 50%; }
.ol-play i { width: 9px; height: 12px; border-inline: 3px solid currentColor; }
.ol-play.is-paused i { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-block: 6px solid transparent; margin-left: 2px; }
.ol-scene-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; }
.ol-current { font: 600 .78rem/1 Arial,sans-serif; color: #a7eeef; }
.ol-chapters { display: flex; }
.ol-chapter { position: relative; height: 38px; width: 25px; }
.ol-chapter span { display: block; width: 6px; height: 6px; border-radius: 6px; background: #8a9ba1; transition: width .23s,background .23s; }
.ol-chapter[aria-pressed="true"] span { width: 19px; background: #88ecf3; }
.ol-film :is(button,a):focus-visible { outline: 3px solid #144c8d; outline-offset: 3px; }
.ol-film .ol-hud button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.ol-splash { display: none; }
html.ol-arriving .ol-splash { display: grid; place-items: center; position: fixed; z-index: 90; inset: 0; background: #fff; overflow: hidden; }
.ol-signature { margin: 0; animation: ol-sign-in .72s cubic-bezier(.18,.7,.28,1) both; }
.ol-signature img { display: block; width: clamp(158px,23vmin,264px); max-width: 70vw; height: auto; }
@keyframes ol-sign-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
html.ol-arriving.ol-show-film .ol-splash { opacity: 0; pointer-events: none; transition: opacity .55s ease; }
html.ol-arriving:not(.ol-show-film) .ol-picture { opacity: 0; transform: translateY(24px) scale(.985); }
html.ol-arriving .ol-picture { transition: opacity .7s ease,transform .95s cubic-bezier(.15,.75,.17,1); }
html.ol-arriving:not(.ol-show-copy) :is(.ol-title,.ol-motto,.ol-paths,.ol-hud,.ol-forms i) { opacity: 0; translate: 0 12px; pointer-events: none; }
html.ol-arriving :is(.ol-title,.ol-motto,.ol-paths,.ol-hud,.ol-forms i) { transition: opacity .54s ease,translate .7s cubic-bezier(.16,.7,.25,1); }
html.ol-arriving .ol-forms i:nth-child(even),html.ol-arriving .ol-paths { transition-delay: .12s; }
html.ol-arriving:not(.ol-show-nav) body.edition .site-header { opacity: 0; translate: 0 -10px; pointer-events: none; }
html.ol-arriving body.edition .site-header { transition: opacity .36s,translate .46s; }
.edition .footer-edition .ol-reprise { border: 0; background: transparent; color: inherit; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
@media (max-width: 1000px) {
  .ol-motto { right: 3%; }
  .ol-paths a { grid-template-columns: 37% 1fr 23px; padding: 7px; gap: 8px; }
  .ol-paths i { width: 23px; height: 23px; font-size: 13px; }
}
@media (max-width: 767px) {
  .ol-film { height: auto; min-height: 0; display: block; padding: 74px 16px 16px; }
  .ol-film .ol-title { font-size: clamp(21px,6.55vw,33px); line-height: 1.39; letter-spacing: 0; padding: 0 0 .72em; }
  .ol-title-line { display: block; }
  .ol-title b { transform: translateY(calc(var(--my) * .48)) rotate(var(--ma)); }
  .ol-motto { display: none; }
  .ol-stage { width: 100%; aspect-ratio: 16 / 17; max-height: clamp(240px,calc(100svh - 341px),450px); }
  /* Keep the arched ceiling while allowing the bottom edge to remain straight. */
  .ol-picture { clip-path: none; border-radius: 10px; background-position: 50% 35%; }
  .ol-picture video { object-position: 50% 35%; }
  .ol-picture::before { content: ""; z-index: 1; position: absolute; inset: 0 0 auto; height: 12%; pointer-events: none; background: radial-gradient(ellipse 68% 270% at 50% 270%,transparent calc(100% - 1px),white 100%); }
  .ol-hud { bottom: 8px; left: 8px; gap: 3px; padding: 0 7px 0 2px; }
  .ol-play,.ol-chapter { height: 36px; }
  .ol-play { width: 33px; }
  .ol-chapter { width: 24px; }
  .ol-scene-label { font-size: .73rem; }
  .ol-current { font-size: .71rem; }
  .ol-paths { position: relative; inset: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .ol-paths a { grid-template-columns: 1fr 24px; grid-template-rows: auto 1fr; column-gap: 4px; row-gap: 7px; align-items: center; padding: 7px 7px 8px; }
  .ol-paths img { grid-column: 1/-1; aspect-ratio: 2.15; }
  .ol-paths strong { padding-left: 3px; font-size: .85rem; line-height: 1.45; }
  .ol-paths i { width: 24px; height: 24px; }
  .ol-forms i:nth-child(1) { width: 29px; left: -2px; top: -30px; }
  .ol-forms i:nth-child(2) { width: 25px; left: 16px; top: -53px; transform: rotate(90deg); }
  .ol-forms i:nth-child(3) { width: 26px; top: -42px; right: 0; }
  .ol-forms i:nth-child(4) { width: 26px; top: 4%; right: 0; }
  .ol-forms i:nth-child(5) { width: 31px; bottom: 9%; left: auto; right: 3%; }
}
@media (max-aspect-ratio:4/5) { .ol-picture { background-image: url("assets/film/hero-poster-mobile.webp"); } }
@media (prefers-reduced-motion:reduce) { .ol-splash { display: none !important; } }
