/* 細田守監督の講演会の特設ページ（guest/hosoda/。テスト環境だけ。src/guest-patterns.mjs の hosodaPage）
   映画の公式サイトの作り：夜の紺の地、画面いっぱいの最初の画面、章ごとの大きな見出し、ゆっくりした動き。
   色は style.css の :root の値と、その明るい側（#8fc1ec・#cfe5f7）だけ */
.hm { --hm-bg: #0a1a35; --hm-bg2: #0e2a52; --hm-fg: #eef4fb; --hm-dim: rgba(238, 244, 251, 0.66); --hm-faint: rgba(238, 244, 251, 0.14); --hm-acc: #8fc1ec;
  position: relative; background: var(--hm-bg); color: var(--hm-fg); }
.hm a { color: inherit; }
.hm-num { font-family: var(--mincho); font-weight: 800; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.02em; }
.hm-wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }

/* ---------- 最初の画面 ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(640px, calc(100svh - var(--header-h)), 960px); display: flex; background: radial-gradient(90% 70% at 72% 40%, #1b3f73 0%, rgba(27, 63, 115, 0) 60%), linear-gradient(180deg, #0c2147 0%, var(--hm-bg) 100%); }
.hm-hero__sky { position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #cfe5f7, transparent), radial-gradient(1.4px 1.4px at 46% 30%, #fff, transparent), radial-gradient(1px 1px at 62% 82%, #fff, transparent), radial-gradient(1.2px 1.2px at 84% 14%, #cfe5f7, transparent), radial-gradient(1px 1px at 92% 64%, #fff, transparent), radial-gradient(1px 1px at 6% 88%, #fff, transparent), radial-gradient(1.3px 1.3px at 38% 52%, #cfe5f7, transparent);
  animation: hm-twinkle 6s ease-in-out infinite alternate; }
.hm-hero__orbit { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; fill: none; stroke: var(--hm-acc); stroke-width: 1; stroke-opacity: 0.28; vector-effect: non-scaling-stroke; }
.hm-hero__orbit ellipse:last-child { stroke-opacity: 0.16; }
.hm-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 0.85fr); grid-template-rows: auto 1fr auto; grid-template-areas: "crumb crumb crumb" "text catch portrait" "foot foot foot"; column-gap: clamp(20px, 3vw, 48px); width: min(100% - 48px, 1240px); margin-inline: auto; padding: clamp(20px, 3vh, 34px) 0 clamp(22px, 3vh, 34px); }
.hm-hero__crumb { grid-area: crumb; display: flex; gap: 10px; margin: 0; font-size: 12px; letter-spacing: 0.24em; color: var(--hm-dim); }
.hm-hero__crumb a:hover { color: #fff; }
.hm-hero__text { grid-area: text; align-self: center; }
.hm-hero__kicker { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--hm-acc); }
.hm-hero__kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hm-hero__title { display: flex; flex-direction: column; margin: 18px 0 0; font-size: clamp(56px, 7.6vw, 128px); font-weight: 800; line-height: 1.1; letter-spacing: 0.05em; }
.hm-hero__line { display: block; background-image: var(--puzzle-tile), linear-gradient(170deg, #ffffff 0%, #e4f1fc 45%, #9cc9ee 100%); background-size: 52px 52px, 220% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: puzzle-shimmer 14s ease-in-out infinite alternate; }
.hm-hero__line + .hm-hero__line { padding-left: 1em; }
.hm-hero__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 22px 0 0; }
.hm-hero__who small { font-size: 13px; letter-spacing: 0.14em; color: var(--hm-dim); }
.hm-hero__who b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: 0.18em; }
.hm-hero__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hm-faint); }
.hm-hero__when .hm-num { font-size: clamp(20px, 1.8vw, 26px); }
.hm-hero__when .latin { font-size: 13px; letter-spacing: 0.2em; color: var(--hm-acc); }
.hm-hero__open-t { font-size: 13px; letter-spacing: 0.08em; color: var(--hm-dim); }
.hm-hero__place { font-size: 14px; letter-spacing: 0.08em; color: var(--hm-dim); }
.hm-hero__catch { grid-area: catch; align-self: center; margin: 0; writing-mode: vertical-rl; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: 0.42em; line-height: 2.1; color: #fff; text-shadow: 0 0 24px rgba(143, 193, 236, 0.5); }
.hm-hero__portrait { grid-area: portrait; align-self: center; justify-self: end; position: relative; margin: 0; width: min(100%, calc((100svh - var(--header-h) - 200px) * 0.755)); max-width: 460px; }
.hm-hero__portrait img { display: block; width: 100%; height: auto; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.16); }
.hm-hero__portrait figcaption { margin-top: 8px; text-align: right; font-size: 11px; letter-spacing: 0.06em; color: var(--hm-dim); }
.hm-hero__foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-top: 20px; }
.hm-hero__credits { margin: 0; font-size: 11.5px; line-height: 1.9; letter-spacing: 0.06em; color: var(--hm-dim); }
.hm-hero__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hm-hero__open { display: flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 30px rgba(143, 193, 236, 0.45); transition: color .25s var(--ease); }
.hm-hero__open span { font-size: 0.5em; letter-spacing: 0.16em; color: var(--hm-acc); }
.hm-hero__open:hover { color: var(--hm-acc); }
.hm-hero__ask { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.1em; color: var(--hm-dim); border-bottom: 1px solid var(--hm-faint); padding-bottom: 2px; }
.hm-hero__ask:hover { color: #fff; }

/* 開いたときの動き（1回だけ）：空 → 題が1行ずつ浮かぶ → ひとこと → 肖像 → 下の段 */
.hm-hero__line { animation: hm-rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both, puzzle-shimmer 14s ease-in-out 1.6s infinite alternate; }
.hm-hero__line:nth-child(1) { animation-delay: .25s, 1.6s; }
.hm-hero__line:nth-child(2) { animation-delay: .45s, 1.6s; }
.hm-hero__kicker, .hm-hero__crumb { animation: hm-fade 1s var(--ease) .1s both; }
.hm-hero__who, .hm-hero__when { animation: hm-fade 1s var(--ease) .8s both; }
.hm-hero__catch { animation: hm-catch 1.6s cubic-bezier(0.6, 0, 0.2, 1) 1s both; }
.hm-hero__portrait { animation: hm-portrait 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) .35s both; }
.hm-hero__foot { animation: hm-fade 1s var(--ease) 1.4s both; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(40px); filter: blur(6px); } }
@keyframes hm-fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes hm-catch { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hm-portrait { from { opacity: 0; transform: scale(1.04); } }
@keyframes hm-twinkle { from { opacity: 0.45; } to { opacity: 0.85; } }

/* ---------- 章の目次（広い画面の左。スクロールで今の章が光る） ---------- */
.hm-toc { position: fixed; left: 22px; top: 50%; z-index: 30; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.hm-toc.is-on { opacity: 1; pointer-events: auto; }
.hm-toc ol { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.hm-toc a { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.24em; color: var(--hm-dim); }
.hm-toc a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.hm-toc i { font-style: normal; font-size: 11px; letter-spacing: 0.1em; opacity: 0; transition: opacity .3s var(--ease); }
.hm-toc a:hover i, .hm-toc a[aria-current] i { opacity: 1; }
.hm-toc a[aria-current] { color: #fff; }
.hm-toc a[aria-current]::before { width: 30px; background: var(--hm-acc); }
@media (max-width: 1279px) { .hm-toc { display: none; } }

/* ---------- 章 ---------- */
.hm-sec { position: relative; padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--hm-faint); }
.hm-ch { display: flex; align-items: baseline; gap: 14px; margin: 0; font-size: 13px; letter-spacing: 0.32em; color: var(--hm-acc); }
.hm-ch span { font-family: var(--mincho); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--hm-dim); }
.hm-h { word-break: keep-all; overflow-wrap: anywhere; margin: 14px 0 0; font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: 0.1em; line-height: 1.4; }
.hm [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hm [data-reveal].is-in { opacity: 1; transform: none; }

/* 講演について */
.hm-intro__sum { word-break: keep-all; overflow-wrap: anywhere; max-width: 24em; margin: clamp(40px, 5vw, 64px) 0 0; font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.9; }
.hm-intro__body { word-break: keep-all; overflow-wrap: anywhere; max-width: 38em; margin-top: 36px; font-size: 15px; line-height: 2.1; color: var(--hm-dim); }
.hm-intro__body p { margin: 0 0 1em; }
.hm-listener { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 6px 32px; max-width: 860px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--hm-faint); }
.hm-listener__icon { grid-row: span 3; margin: 0; }
.hm-listener__icon img { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px rgba(143, 193, 236, 0.5), 0 16px 30px rgba(0, 0, 0, 0.35); }
.hm-listener__icon figcaption { margin-top: 10px; font-size: 10px; line-height: 1.6; letter-spacing: 0.02em; color: var(--hm-dim); }
.hm-listener__k { margin: 0; font-size: 12px; letter-spacing: 0.3em; color: var(--hm-acc); }
.hm-listener__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.12em; }
.hm-listener__name small { font-family: var(--goth); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--hm-dim); }
.hm-listener__bio { margin: 6px 0 0; font-size: 13.5px; line-height: 2; color: var(--hm-dim); }

/* 講演者 */
.hm-director__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.hm-director__name { display: flex; flex-direction: column; margin: 0; font-size: clamp(48px, 6vw, 88px); font-weight: 800; letter-spacing: 0.12em; line-height: 1.1; }
.hm-director__name .latin { margin-top: 14px; font-size: 14px; letter-spacing: 0.4em; color: var(--hm-acc); }
.hm-director__name small { margin-top: 10px; font-family: var(--goth); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; color: var(--hm-dim); }
.hm-director__bio { font-size: 14.5px; line-height: 2.2; color: var(--hm-dim); }
.hm-director__bio p { margin: 0; }

/* 監督作品：フィルムの帯。上下にパーフォレーション（送り穴）。画像は正方形のまま切らない */
.hm-works { padding-bottom: clamp(70px, 9vw, 120px); }
.hm-strip { margin-top: clamp(40px, 5vw, 60px); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--hm-faint) transparent; }
.hm-strip__list { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 0; width: max(100%, 1120px); margin: 0 auto; padding: 26px clamp(24px, calc((100% - 1120px) / 2), 999px);
  background: radial-gradient(circle at 50% 50%, var(--hm-bg) 3.2px, transparent 3.6px) 0 9px / 18px 18px repeat-x, radial-gradient(circle at 50% 50%, var(--hm-bg) 3.2px, transparent 3.6px) 0 calc(100% - 9px) / 18px 18px repeat-x, #050d1d; }
.hm-frame { position: relative; padding: 0 8px; }
.hm-frame figure { position: relative; margin: 0; }
.hm-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: saturate(0.92); transition: filter .4s var(--ease), transform .4s var(--ease); }
.hm-frame:hover img { filter: saturate(1.05); transform: translateY(-3px); }
.hm-frame figcaption { margin-top: 4px; text-align: right; font-size: 9.5px; letter-spacing: 0.04em; color: rgba(238, 244, 251, 0.5); }
.hm-frame__y { margin: 10px 0 0; font-size: 18px; color: var(--hm-acc); }
.hm-frame__t { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }

/* 申込と質問：紺の地に白い紙のフォーム */
.hm-forms { background: linear-gradient(180deg, var(--hm-bg) 0%, var(--hm-bg2) 100%); }
.hm-forms__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(28px, 4vw, 56px); }
.hm-form { position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }
.hm-form__lead { word-break: keep-all; overflow-wrap: anywhere; margin: 22px 0 0; font-size: 14px; line-height: 2; color: var(--hm-dim); }
.hm-form__access { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--hm-dim); }
.hm-form__access a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #fff; border-bottom: 1px solid var(--hm-faint); }
.hm-form__access a:hover { color: var(--hm-acc); }
.hm-form__due { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.08em; color: var(--hm-dim); }
.hm-form__due b { margin-left: 6px; font-family: var(--mincho); font-size: 17px; font-weight: 800; color: #fff; }
.hm-sheet { margin-top: 24px; padding: clamp(22px, 2.6vw, 34px); background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.hm .hf__btn { border-radius: 8px; padding-inline: 26px; }
.hm-plane { position: absolute; right: 0; top: -36px; width: 150px; overflow: visible; pointer-events: none; }
.hm-plane__trail { fill: none; stroke: var(--hm-acc); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 6; opacity: 0.8; }
.hm-plane__wing { fill: #cfe5f7; }
.hm-plane__body { fill: #fff; }

/* Google フォームの埋め込み（横に2つ）。枠の高さは中身に合わせて測った値。フォームの文を変えたら測り直す */
.hm-gform { margin-top: 24px; }
.hm-gform__top { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 10px; font-size: 12px; color: var(--hm-dim); }
.hm-gform__top a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; background: #fff; color: var(--navy) !important; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.hm-gform__top a:hover { background: #eef6fd; }
.hm-gform__frame { display: block; width: 100%; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.hm-gform--entry .hm-gform__frame { height: 2200px; }      /* 枠の幅 約530px（画面 1440px）で測った */
.hm-gform--question .hm-gform__frame { height: 1900px; }
@media (max-width: 1099px) { .hm-gform--entry .hm-gform__frame { height: 2330px; } .hm-gform--question .hm-gform__frame { height: 2010px; } }
@media (max-width: 900px) { .hm-gform--entry .hm-gform__frame { height: 2100px; } .hm-gform--question .hm-gform__frame { height: 1850px; } }
@media (max-width: 640px) { .hm-gform--entry .hm-gform__frame { height: 2580px; } .hm-gform--question .hm-gform__frame { height: 2120px; } }

/* 上映会「迷画座」：名画座の雰囲気。縦の電飾看板・2本立ての番組・作品の画像（切らずに正方形のまま）
   （委員長 10/25「記事の方が凝ってるようにみえるから、負けないようにして」） */
.hm-screen { overflow: hidden; background: radial-gradient(80% 60% at 20% 0%, rgba(201, 150, 60, 0.12), transparent 60%), linear-gradient(180deg, #08142b 0%, #060f22 100%); }
.hm-screen__grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
.hm-screen__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
/* 縦の電飾看板：まわりに電球の点、文字はにじむように光る。電球はゆっくり順に点滅 */
.hm-marquee { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 28px 22px; border-radius: 14px; background: linear-gradient(180deg, #1a0f08, #2a1608); box-shadow: inset 0 0 0 2px rgba(255, 214, 140, 0.55), 0 0 40px rgba(255, 190, 90, 0.18), 0 24px 40px rgba(0, 0, 0, 0.45); }
.hm-marquee::before { content: ""; position: absolute; inset: 7px; border-radius: 9px; background: radial-gradient(circle, #ffe2a6 0 2.2px, transparent 2.6px) 0 0 / 14px 14px; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 6px; animation: hm-bulbs 1.6s steps(2) infinite; }
.hm-marquee span { position: relative; font-size: clamp(54px, 6vw, 84px); font-weight: 800; line-height: 1.1; color: #fff4dc; text-shadow: 0 0 8px rgba(255, 210, 130, 0.9), 0 0 26px rgba(255, 170, 60, 0.6); }
@keyframes hm-bulbs { 50% { opacity: 0.55; } }
.hm-screen__only { margin: 0; font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: 0.12em; line-height: 1.2; color: #fff; }
.hm-screen__sub { margin: 10px 0 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: 0.14em; color: #ffe2a6; }
.hm-screen__intro { position: relative; padding-right: 110px; }
.hm-screen__lead { max-width: 36em; margin: 20px 0 0; font-size: 14.5px; line-height: 2.1; color: var(--hm-dim); word-break: keep-all; overflow-wrap: anywhere; }
.hm-screen__stamp { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; aspect-ratio: 1; margin: 0; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 4px #08142b, inset 0 0 0 5px currentColor; rotate: 10deg; color: #ffd28a; font-size: 17px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.2; }
.hm-screen__stamp i { font-style: normal; font-size: 12px; letter-spacing: 0.24em; }
/* 2本立て */
.hm-screen__bill { display: flex; align-items: center; gap: 16px; margin: clamp(48px, 6vw, 72px) 0 0; font-family: var(--mincho); font-size: 15px; font-weight: 800; letter-spacing: 0.24em; color: #fff; }
.hm-screen__bill span { font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: 0.32em; color: #ffd28a; }
.hm-screen__bill::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 210, 138, 0.5), transparent); }
.hm-screen__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 22px 0 0; padding: 0; }
.hm-film { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 210, 138, 0.18); transition: box-shadow .4s var(--ease); }
.hm-film:hover { box-shadow: inset 0 0 0 1px rgba(255, 210, 138, 0.45), 0 20px 40px rgba(0, 0, 0, 0.35); }
.hm-film__img { margin: 0; }
.hm-film__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.hm-film__img figcaption { padding: 6px 12px 0; text-align: right; font-size: 10.5px; letter-spacing: 0.03em; color: rgba(238, 244, 251, 0.5); }
.hm-film__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 20px; align-items: baseline; padding: 18px 22px 24px; }
.hm-film__night { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.3em; color: #ffd28a; }
.hm-film__date { grid-row: span 3; display: flex; flex-direction: column; margin: 6px 0 0; }
.hm-film__date .hm-num { font-size: clamp(36px, 3.6vw, 48px); line-height: 1; color: #fff; }
.hm-film__date .latin { margin-top: 6px; font-size: 12px; letter-spacing: 0.3em; color: var(--hm-acc); }
.hm-film__work { margin: 6px 0 0; font-size: clamp(19px, 1.9vw, 24px); font-weight: 800; letter-spacing: 0.04em; line-height: 1.45; }
.hm-film__work small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--hm-dim); }
.hm-film__when { margin: 8px 0 0; font-size: 13px; color: var(--hm-dim); }
.hm-film__when .hm-num { margin-right: 2px; font-size: 17px; color: #fff; }
.hm-film__place { margin-left: 12px; padding: 1px 8px; border: 1px solid var(--hm-faint); border-radius: 4px; font-size: 12px; letter-spacing: 0.08em; color: #fff; }
.hm-film__note { grid-column: 2; word-break: keep-all; overflow-wrap: anywhere; margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: #ffe2a6; }
.hm-screen__foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(32px, 4vw, 48px); }
.hm-screen__notes { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 2; color: var(--hm-dim); }
.hm-screen__notes b { color: #fff; }
.hm-screen__ask { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 50px 20px 22px; border-radius: 12px; background: #fff; color: var(--navy) !important; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); transition: transform .25s var(--ease); }
.hm-screen__ask:hover { transform: translateY(-3px); }
.hm-screen__ask span { font-size: 18px; font-weight: 800; letter-spacing: 0.06em; }
.hm-screen__ask small { font-size: 12px; line-height: 1.6; color: var(--ink); }
.hm-screen__ask svg { position: absolute; right: 20px; top: 50%; translate: 0 -50%; }

/* ページの終わり：ゲストのページへ戻る */
/* 最後の章のすぐ下に小さく（委員長 10/25「幅取りすぎでは」） */
.hm-end { margin-top: calc(-1 * clamp(40px, 6vw, 90px)); padding: 0 0 clamp(36px, 4vw, 52px); position: relative; }
.hm-back { margin: 0; text-align: center; }
.hm-back a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--hm-faint); border-radius: 8px; font-size: 13px; letter-spacing: 0.1em; transition: background-color .25s var(--ease); }
.hm-back a:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- 右下についてくる入口（最初の画面を過ぎたら出る。フォームが見えている間は引っ込む） ---------- */
.hm-dock { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hm-dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hm-dock__b { display: flex; flex-direction: column; min-width: 168px; padding: 11px 18px; border-radius: 8px; font-size: 15px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.3; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); transition: transform .25s var(--ease); }
.hm-dock__b small { margin-top: 2px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.8; }
.hm-dock__b:hover { transform: translateY(-2px); }
.hm .hm-dock__b--e { background: #fff; color: var(--navy); }
.hm .hm-dock__b--q { background: rgba(10, 26, 53, 0.86); color: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(143, 193, 236, 0.5); backdrop-filter: blur(6px); }

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 900px) {
  .hm-hero__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; grid-template-areas: "crumb crumb" "portrait catch" "text text" "foot foot"; row-gap: 22px; }
  .hm-hero__portrait { justify-self: start; width: min(100%, 360px); }
  .hm-hero__catch { align-self: start; }
  .hm-director__grid, .hm-forms__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-listener { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
  .hm-listener__icon { grid-row: span 2; }
  .hm-listener__icon img { width: 96px; height: 96px; }
  .hm-listener__bio { grid-column: 1 / -1; }
  .hm-screen__list, .hm-screen__foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hm-wrap, .hm-hero__inner { width: calc(100% - 32px); }
  .hm-hero { min-height: 0; }
  .hm-hero__inner { padding-bottom: 28px; }
  .hm-hero__portrait { width: 100%; }
  .hm-hero__catch { font-size: 15px; letter-spacing: 0.3em; }
  .hm-hero__title { font-size: 15.5vw; }
  .hm-hero__foot { flex-direction: column; align-items: flex-start; }
  .hm-hero__cta { align-items: flex-start; }
  .hm-dock { left: 12px; right: 12px; bottom: 12px; flex-direction: row; }
  .hm-dock__b { flex: 1 1 0; min-width: 0; padding: 10px 14px; font-size: 14px; }
  .hm-plane { width: 110px; top: -28px; }
  .hm-screen__top { grid-template-columns: minmax(0, 1fr); }
  .hm-marquee { flex-direction: row; justify-self: start; padding: 14px 22px; }
  .hm-marquee span { font-size: 40px; }
  .hm-screen__intro { padding-right: 0; }
  .hm-screen__stamp { top: -96px; width: 78px; font-size: 14px; }
  .hm-film__body { grid-template-columns: minmax(0, 1fr); }
  .hm-film__date { grid-row: auto; flex-direction: row; align-items: baseline; gap: 12px; }
  .hm-film__note { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero__line, .hm-hero__kicker, .hm-hero__crumb, .hm-hero__who, .hm-hero__when, .hm-hero__catch, .hm-hero__portrait, .hm-hero__foot, .hm-hero__sky, .hm-marquee::before { animation: none !important; }
  .hm [data-reveal] { opacity: 1; transform: none; transition: none; }
}
