:root {
  --bg: #eeefea;
  --ink: #1a1d24;
  --muted: #5d626d;
  --faint: #656a74;
  --line: #d6d7d1;
  --link: #184759;
  --halo: #cdd8da;
  --halo-op: .5;
  /* 空の色（アプリの地の空の上と下）。JS が無いときは昼の色。JS があれば見た人の時刻の色（head の LP.apply） */
  --sky-top: #b4c9d8;
  --sky-bot: #e4e6e0;
  --sky-mid: #ccd8dc;
  --sky-ink: #1a1d24;
  --sky-muted: #3f4650;
  --sky-line: rgba(26, 29, 36, .28);
  --stars: 0;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --shadow: 0 50px 90px -40px rgba(26, 34, 48, .45), 0 18px 36px -24px rgba(26, 34, 48, .35);
  --gutter: clamp(20px, 5vw, 64px);
}
/* ライト／ダークの切り替え（prefers-color-scheme）は使わない（i-696）。色は時刻で決まる＝上の変数を JS（head の LP.apply）が見た人の時刻の色で上書きする */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; transition: background-color .6s linear;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }
p { margin: 0; }
[hidden] { display: none !important; }
.nb { display: inline-block; }

h1, h2, .lead { font-family: var(--serif); font-weight: 500; font-feature-settings: "palt" 1; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.5; letter-spacing: .08em; margin: 0 0 32px; }
.copy p + p { margin-top: 1em; }
.copy p { color: var(--muted); max-width: 25em; font-size: 17px; line-height: 2; }
.note { font-size: 13px; color: var(--faint); letter-spacing: .04em; }

/* ---------- 1. 上の帯の夜空（アプリの画面の上の方と同じく、空は時刻の所だけ）＋ 最初の一画面にアプリの画面 ---------- */
:root { --band: 200px; }
.hero { position: relative; height: var(--band); overflow: hidden; background: var(--sky-top); color: var(--sky-ink); }
/* 空の絵は帯より広く置き、月がワードマークの右に外れる所を切り出す（絵の月は横 60%・縦 33%） */
.hero img.sky { position: absolute; left: -18%; top: 0; width: 170%; max-width: none; height: auto; transform: translateY(-26%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, rgba(0,0,0,0), var(--bg)); pointer-events: none; }
/* JS の空（アプリの地をその場で描いた SVG の絵）は帯いっぱい。JS が無いときは下の noscript の夜空の写真 */
.hero img.sky.js, .close img.sky.js { left: 0; top: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
.hero .in { --w: min(560px, 92vw); position: absolute; left: 0; right: 0; top: 47%; transform: translateY(-50%); z-index: 1; }
.hero h1 { margin: 0; }
/* ワードマークは JS がアプリの部品（Wordmark.tsx）で、時刻の色で描く（.wm）。描けたら画像（夜の色）は隠す */
.wm { display: none; }
.wm svg { display: block; width: 100%; height: auto; }
.has-wm .wm { display: block; position: relative; left: 50%; width: var(--w); transform: translateX(-50%); }
.has-wm .wmimg { display: none !important; }
.hero h1 img { display: block; position: relative; left: 50%; width: var(--w); max-width: none; height: auto; margin: calc(var(--w) * -.115) 0; transform: translateX(-50.25%); } /* 字（t〜u）の中心は画像の x=703.5/1400＝50.25%。字の中心をページの中央に置く */
.first { position: relative; z-index: 2; overflow-x: clip; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: center; align-items: center; gap: clamp(40px, 7vw, 110px); }
.first .lead { margin: 0; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: .12em; line-height: 1.65; color: var(--ink); }
.first .cta-first { margin: 22px 0 0; font-size: 14px; line-height: 1.9; letter-spacing: .04em; color: var(--muted); }
.first .cta-first .nb { display: block; }
.first .cta-first a { display: inline-block; margin-top: 6px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--faint); }
/* 端末は帯に少しかかる。最初の一画面（帯の下）に枠の下端まで収まる大きさ */
.first .phone { position: relative; margin-top: -56px; width: min(330px, 34vw, max(220px, calc((100svh - var(--band) + 56px - 64px) * 1000 / 2112))); }
.first .halo { position: absolute; left: 50%; top: 52%; width: 200%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent 72%); opacity: var(--halo-op); z-index: -1; filter: blur(10px); }
.intro .hero .in > *, .intro .first .words > * { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.intro .first .words > .lead { animation-delay: .35s; }
.intro .first .words > .cta-first { animation: none; } /* 入口は出てくる演出を付けない */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 0. 開いたときの起動の演出（i-701・アプリの SplashMark.tsx）：いまの時刻の空いっぱいに、光が線をたどってワードマークを描き、灯で止まる → 帯のワードマークの位置へ縮みながら移る ----------
   html.splash のときだけ出す（head の判定）。動かすのは body の頭の JS。JS が途中で止まっても 9 秒で幕を下ろす（下の splashGuard） */
#splash { display: none; }
.splash #splash { display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: splashGuard .3s linear 9s forwards; }
#splash .ssky { position: absolute; inset: 0; background: linear-gradient(var(--sky-top), var(--sky-bot) 60%, var(--sky-bot)); }
#splash .ssky img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
#splash .smark { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, clip-path; }
#splash .smark svg { display: block; width: 100%; height: 100%; }
#splash .sbeam { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
#splash.gone { pointer-events: none; }
.splash .hero h1 { visibility: hidden; animation: splashShow 0s linear 9s forwards; } /* 演出の間、帯のワードマークは隠す（演出のワードマークがそこへ着いたら入れ替える） */
@keyframes splashGuard { to { opacity: 0; visibility: hidden; } }
@keyframes splashShow { to { visibility: visible; } }
.splashed.intro .hero .in > * { animation: none; } /* 演出のあとは、帯のワードマークを下から浮かせない（着いた所にそのまま居る） */

/* ---------- 2. 頭から目標の木まで（i-691）：端末を止めて、文字と枠の中の画面だけを入れ替える ----------
   html.pin（動きを減らす設定でなく JS がある）のときだけ。そうでないときは、下の .first・.feature の形で節ごとに静止画を並べる。
   高さはすべて svh（アドレスバーが出ている時の高さ）で決める＝iPhone の Safari でバーが出入りしても、止める位置と段の切れ目が動かない。
   --run（止めている間のスクロールの長さ）は JS が段の長さの合計から入れる */
.tour { position: relative; z-index: 2; }
.tour .live { display: none; }
/* 頭の節（.top）は帯に 56px かかって始まる。.top でない止める節（いまは無い）は、前後に少し間を置いて画面いっぱいで止まる */
.pin .tour { --H: calc(100svh - 48px); --T: 24px; margin: clamp(24px, 4vw, 56px) 0; height: calc(var(--H) + var(--run, 120svh)); }
.pin .tour.top { --H: calc(100svh - var(--band) + 96px); --T: calc((var(--band) - 96px) / 2); margin: -96px 0 0; }
.pin .stage { position: sticky; top: var(--T); height: var(--H); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 440px) auto; /* 文の列は文の幅（24em 前後）に合わせる＝560 だと文の右に空きが残り、文が左へ寄って見えた（i-698） */ grid-template-rows: 100%; justify-content: center; align-items: center; column-gap: clamp(40px, 7vw, 110px);
  overflow-x: clip; } /* 端末の後ろの光が横にはみ出す分は、止める箱そのもので切る。★止める箱の外側（.tour）に clip を置くと、iPhone の Safari でスクロールのたびに端末が 1〜2px 揺れた（i-691 の続き・録画で確かめた） */
/* 文の入れ替え：前の文が薄くなるのと同時に、次の文が濃くなる（0.38 秒・動かさない）。終われば前の文は消える */
.pin .tour .step { grid-area: 1 / 1; display: block; max-width: none; margin: 0; padding: 0; opacity: 0; visibility: hidden;
  transition: opacity .38s ease, visibility 0s linear .38s; }
.pin .tour .step.on { opacity: 1; visibility: visible; transition: opacity .38s ease, visibility 0s; }
.pin .tour .still { display: none; }
.pin .tour .live { display: block; grid-area: 1 / 2; position: relative; width: min(400px, 36vw, calc((var(--H) - 56px) * 1000 / 2182)); } /* 端末の大きさは画面の幅と高さ（svh）だけで決める＝段の文で変わらない（i-696 で一回り大きく）。
   i-701：枠の高さ＝幅 × 2.182（縦と同じ・前の 2112 では枠が行より高く、1280×800 の最初の一画面で端末の下端が画面の下端まで 9px しかなかった）。上下に 28px ずつ空ける */
.pin .tour .step .copy p { max-width: 24em; }
.live .halo { position: absolute; left: 50%; top: 50%; width: 210%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; filter: blur(10px);
  background: radial-gradient(closest-side, var(--halo), transparent 72%); opacity: var(--halo-op); } /* 色は段では変えない（空に合わせて変えると、霞んで見える）。時刻の色だけ */
/* 枠の中の画面：段ごとに1枚の層。入れ替えは、新しい層を前の層の上に重ね、透明から不透明へ 0.38 秒（クロスフェード）。
   前の層は不透明のまま下に残し（下の地が透けて霞まない）、新しい層が不透明になりきったら消す＝最後は必ず1枚。
   空の一日と木の5段階も、層の中の1枚をスクロールの位置で差し替え、同じ形で短く重ねる（空 0.22 秒・木 0.3 秒）。時間で終わるので、半分透けたまま止まらない */
.live .ly, .live .ly .fr { visibility: hidden; transition: opacity var(--fade, .38s) ease; }
.live .ly .fr { --fade: .22s; }
.live [data-seq-name=tree] .fr, .live [data-seq-name=people] .fr { --fade: .3s; }
.live .ly { position: absolute; inset: 0; z-index: 1; background: var(--sky-mid); }
.live .ly.on, .live .ly.was { visibility: visible; }
.live .ly img, .live .ly picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live .ly:is(.on, .was) .fr:is(.on, .was) { visibility: visible; } /* 子の visible が隠れた層を突き抜けないよう、層が出ている時だけ */
/* 「いま」の画面（i-696）：JS の空（アプリの地）→ 部品だけの層（空が透明・昼と夜の2枚）→ ステータスバーと大きな時刻の字（JS）。
   字は空と同じ 393×852pt の座標の SVG に置く（位置と大きさは JS の NOWTEXT・ほかの3人のスクショの字の外枠に合わせる） */
.nowscr { position: absolute; inset: 0; overflow: hidden; background: var(--sky-mid); }
.nowscr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nowscr > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 目標の決め方（本人 10/6）：端末を外して、画面いっぱいに灯と会話。色は夜（いま＝20:00）。
   縦（狭い画面）はアプリと同じ＝上に灯・下に会話。横（PC）は左に灯・右に会話。
   html.pin のときだけ止めてスクロールで1発言ずつ出す。そうでないとき（動きを減らす）は会話を全部並べる ---------- */
.night { --gink: var(--sky-ink); --gmuted: var(--sky-muted); --gline: var(--sky-line);
  position: relative; z-index: 2; color: var(--gink); background: var(--sky-mid); } /* 地は時刻の空の色（i-696。前は夜に固定） */
.night { clip-path: inset(0); } /* 地面（.gsoil）が節の下へはみ出して、次の節の上に灰色の段が出ていた（i-787）。clip-path は sticky に効かない（overflow は使わない） */
.night::before, .night::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 3; }
.night::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.night::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.goalrun, .treerun { position: relative; }
.gstage { position: relative; overflow-x: clip; max-width: 1180px; margin: 0 auto; padding: 150px var(--gutter); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-rows: auto 1fr; grid-template-areas: "head chat" "lamp chat"; column-gap: clamp(40px, 6vw, 96px); align-items: center; }
/* 星（アプリの夜空の小さい点） */
.gstage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--stars) * .7); /* 星は夜らしさで（アプリの STAR_FROM〜STAR_FULL） */
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 9%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 47% 35%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 61%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 39% 74%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 15%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 93% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 54%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%); }
.ghead { grid-area: head; position: relative; z-index: 2; }
.ghead h2 { margin-bottom: 18px; }
.ghead p { color: var(--gmuted); max-width: 26em; font-size: 15px; line-height: 1.95; }
.ghead .gsub { font-family: var(--serif); font-size: 17px; letter-spacing: .1em; color: var(--gink); }
.ghead .note { margin-top: 6px; font-size: 13px; color: var(--gmuted); }
.glog .x { margin-top: 22px; font-size: 13px; color: var(--gmuted); text-align: center; }
.gart { grid-area: lamp; position: relative; z-index: 2; justify-self: center; }
.glamp { position: relative; z-index: 2; width: min(400px, 36vw); aspect-ratio: 1; margin-top: 24px; }
.gtree, .gsoil, .ghead.g2 { display: none; }
.glamp canvas { display: block; width: 100%; height: 100%; }
/* 止める形では、光が強まって大きくなっても箱の縁で切れないよう、canvas を箱より広く取る（箱 240 の灯を、1.7 倍の canvas の真ん中に描く） */
.pin .glamp canvas { position: absolute; left: -35%; top: -35%; width: 170%; height: 170%; }
.gchat { grid-area: chat; position: relative; z-index: 2; }
.glog p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--gmuted); letter-spacing: .02em; }
.glog .a { margin-left: auto; width: fit-content; max-width: 85%; padding: 7px 12px; border: 1px solid var(--gline); border-radius: 12px; color: var(--gink); line-height: 1.35; }
.glog .q.now { font-size: 21px; line-height: 1.43; color: var(--gink); }
.pin .goalrun { height: calc(100svh + var(--grun, 225svh)); }
/* 止める形：左に文と会話・右に灯（→ 種 → 苗 → 木）。灯・木・土の位置と大きさは JS（glayout）が箱の大きさから決める。
   箱は画面いっぱい（土を画面の端まで敷くため）・中身の幅は左右の余白で 1180px に収める */
.pin .gstage { position: sticky; top: 0; height: 100svh; max-width: none; padding: clamp(56px, 9svh, 96px) max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))) clamp(40px, 7svh, 72px);
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head art" "chat art"; align-items: stretch; }
.pin .ghead { grid-area: head; align-self: start; opacity: 0; visibility: hidden; transition: opacity .38s ease, visibility 0s linear .38s; }
.pin .ghead.on { opacity: 1; visibility: visible; transition: opacity .38s ease, visibility 0s; }
.pin .ghead.g2 { display: block; }
.pin .gart { grid-area: art; justify-self: stretch; align-self: stretch; z-index: auto; }
.pin .glamp { position: absolute; margin: 0; width: var(--L, 300px); left: var(--lx, 0); top: var(--ly, 0); will-change: transform; }
.pin .gtree { display: block; position: absolute; z-index: 1; will-change: transform; }
.pin .gtree canvas { display: block; width: 100%; height: 100%; }
.pin .gsoil { display: block; position: absolute; z-index: 3; top: 0; max-width: none; will-change: transform; }
.pin .gsoil[hidden] { display: none; }
.pin .treerun { display: none; }
.pin .gchat { margin-top: 24px; z-index: 4; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 22%); mask-image: linear-gradient(transparent 0, #000 22%); }
.pin .glog { position: absolute; left: 0; right: 0; top: 0; transition: transform .45s cubic-bezier(.25, .75, .25, 1); }
.pin .glog p { opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s, font-size .32s ease, line-height .32s ease, color .32s ease; }
.pin .glog p.on { opacity: 1; visibility: visible; transition: opacity .32s ease, visibility 0s, font-size .32s ease, line-height .32s ease, color .32s ease; }

/* 目標の木：木だけを大きく（PC は左に文・右に木、縦は上に文・下に木）。絵は 1664 角の x 40〜1624・y 240〜1344 を切り出したもの（根元は下から 3%） */
.tstage { position: relative; overflow-x: clip; max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter); display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: center; }
.thead { position: relative; z-index: 2; }
.thead h2 { margin-bottom: 20px; }
.thead p { color: var(--gmuted); font-size: 15px; line-height: 1.95; max-width: 24em; }
.thead p + p { margin-top: .6em; }
.tframe { position: relative; width: 100%; max-width: 760px; justify-self: center; aspect-ratio: 900 / 627; }
.tframe::before { content: ""; position: absolute; left: -8%; right: -8%; bottom: -6%; height: 22%; border-radius: 50%; /* 地面（丘の代わりの影・静止画のとき） */
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(120, 132, 150, .42), rgba(70, 80, 96, .2) 55%, transparent 72%); }
.tframe img, .tframe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 端末（実物に近い枠） ---------- */
.device { position: relative; width: 100%; aspect-ratio: 1000 / 2112; padding: 2.4%; border-radius: 13.5% / 6.2%; background: #0b0b0c;
  box-shadow: 0 0 0 1.2px #6b6e73, 0 0 0 3px #26272a, inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow); }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 11.6% / 5.35%; overflow: hidden; background: var(--sky-mid); isolation: isolate; }
.device .screen > img, .device .screen > video, .device .screen > picture, .device .screen > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 画面の上の島（iPhone 15 Pro の位置に合わせる。空の動画に写っている島とちょうど重なる） */
.device .screen::after { content: ""; position: absolute; z-index: 9; left: 34%; width: 32%; top: 1.25%; height: 4.45%; border-radius: 999px; background: #000; pointer-events: none; }

/* ---------- 4. 記録 ---------- */
.feature { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vw, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 460px) auto; justify-content: center; gap: clamp(48px, 9vw, 140px); align-items: center; }
.feature .phone { width: min(340px, 34vw); }
.feature.l { grid-template-columns: auto minmax(0, 460px); } /* 静止画のとき画面を左に（HTML はどの段も 文→画面 の順） */
.feature.l .media { order: -1; }
.feature figcaption { margin-top: 28px; text-align: center; }

/* ---------- 5. 四人の画面 ---------- */
.people { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 160px); }
.people .head { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.people .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); max-width: 1180px; margin: 56px auto 0; padding: 0 var(--gutter); }
.people figure { margin: 0; }
.people .shot { position: relative; border-radius: 9% / 4.2%; overflow: hidden; box-shadow: var(--shadow); background: var(--sky-mid); aspect-ratio: 1179 / 2556; }
.people .shot img { width: 100%; height: 100%; object-fit: cover; }
.people .head .copy { margin-top: -8px; }
.people figcaption .t { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: var(--faint); margin-bottom: 2px; }
.people .row figure:nth-child(even) { transform: translateY(48px); }
.people .who { display: none; }
.pin .tour .people .head { max-width: none; margin: 0; padding: 0; }
.pin .tour .people .who { display: block; margin-top: 4px; }
.people .who .nm { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .12em; color: var(--ink); }
.people .who .say { display: block; margin-top: 6px; color: var(--muted); max-width: 24em; }
.pin .tour .people .note { margin-top: 10px; }
/* 4人の文は人数ぶん重ねて置き、絵と同じ 0.3 秒で入れ替える（i-701・絵と文が別の人を指す瞬間を作らない） */
.pin .tour .people .who.stack { display: grid; }
.people .who.stack .wi { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.people .who.stack .wi.on { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.people figcaption { margin-top: 20px; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.people .head .note { margin-top: 12px; }

/* ---------- 7. 端末の中に ---------- */
.privacy { border-top: 1px solid var(--line); max-width: 1180px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.privacy h2 { margin: 0; }
.privacy .copy p { max-width: 30em; }

/* ---------- 8. おわり ---------- */
.close { position: relative; text-align: center; padding: clamp(200px, 26vw, 360px) var(--gutter) clamp(120px, 13vw, 180px); overflow: hidden; background: var(--sky-top); color: var(--sky-ink); }
.close img.sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.close::before, .close::after { content: ""; position: absolute; left: 0; right: 0; height: 14%; z-index: 1; pointer-events: none; }
.close::before { top: 0; background: linear-gradient(var(--bg), rgba(0,0,0,0)); }
.close::after { bottom: 0; background: linear-gradient(rgba(0,0,0,0), var(--bg)); }
.close > *:not(.sky) { position: relative; z-index: 1; }
.close .wm { margin: 0 auto; --w: min(560px, 104vw); }
.close .mark { display: block; position: relative; left: 50%; width: min(560px, 104vw); max-width: none; margin: 0; height: auto; transform: translateX(-50.25%); }
.cta { margin-top: 28px; }
.join { text-align: center; max-width: 1180px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(56px, 8vw, 110px); scroll-margin-top: 24px; }
.join h2 { margin: 0; }
.join .steps { list-style: none; counter-reset: st; margin: 28px auto 0; padding: 0; width: fit-content; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font-size: 15px; line-height: 1.8; color: var(--muted); letter-spacing: .04em; } /* かたまりを中央に・中は左揃え（番号の位置をそろえる） */
.join .steps li { counter-increment: st; }
.join .steps li::before { content: counter(st); display: inline-block; width: 2em;  color: var(--faint); font-family: var(--serif); }
.join .cta { margin: 36px 0 0; }
.join .cta-note { margin: 10px auto 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.join .cta + .cta-note, .join .cta-qr + .cta-note { margin-top: 18px; }
.join .cta-qr { display: none; margin: 28px auto 0; } /* i-806：QR は PC の幅だけ（スマホは上のボタンで足りる） */
.join .cta-qr img { display: block; width: 132px; height: 132px; margin: 0 auto; border-radius: 10px; } /* 白地・濃い色は SVG 側（地の色が夜でも昼でも読める明暗差） */
.join .cta-qr figcaption { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 761px) { .join .cta-qr { display: block; } }
.entry { text-align: center; padding: 8px var(--gutter) 72px; }
.entry .x { margin-top: 40px; font-size: 14px; color: var(--muted); }
.entry .x a { color: var(--ink); }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; letter-spacing: .08em; }
footer { max-width: 1180px; margin: 0 auto; padding: 28px var(--gutter) 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
footer a { color: var(--muted); }
footer .fnote { font-size: 12px; color: var(--faint); }

/* ---------- 狭い画面 ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  h2 { font-size: 27px; margin-bottom: 22px; }
  :root { --band: 150px; }
  .hero img.sky { left: -46%; width: 230%; transform: translateY(-24%); }
  .hero .in { --w: min(400px, 100vw); top: 46%; }
  .first { grid-template-columns: 1fr; gap: 18px; text-align: center; padding-bottom: 24px; }
  .first .lead { font-size: 21px; letter-spacing: .08em; line-height: 1.6; }
  .first .phone { margin: 0 auto; width: min(270px, 66vw, max(200px, calc((100svh - var(--band) - 150px) * 1000 / 2112))); }
  .copy p { font-size: 15px; line-height: 1.95; }
  .feature, .feature.l { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 44px; }
  .feature .phone { width: min(290px, 74vw); margin: 0 auto; }
  .feature .media, .feature.l .media { order: 2; }
  .people .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 36px; padding-bottom: 24px; scrollbar-width: none; }
  .people .row::-webkit-scrollbar { display: none; }
  .people figure { flex: 0 0 62vw; scroll-snap-align: center; }
  .people .row figure { transform: none !important; }
  .privacy { grid-template-columns: 1fr; gap: 24px; }
  footer { flex-direction: column; }
  /* 止める形：枠は上、文字は下の決まった高さの所で入れ替える */
  /* --ta＝文の箱の高さ（いちばん長い段の文が 375 幅でも収まる高さを先に取る＝文で端末の大きさ・位置が変わらない）。空の段を無くして長い文が無くなったので 178 → 140px（i-698）。
     --gap＝端末と文のあいだ（i-698 本人「iPhoneと文字の間はもう少し余白があっていいかな」・前は 14px）。高さ（svh）で決める＝段で変わらない */
  .pin .tour { --H: calc(100svh - 24px); --T: 12px; --ta: 140px; --gap: max(22px, 3.6svh); }
  /* 頭の節（i-698 で大きく）：止まる位置を上から 10px にし、箱を 50px 高くした（--over）。最初の一画面では箱の下 50px が画面の外に出るが、
     そこは頭の文（2行）の下の空き（文の箱 140px のうち 2行は約 70px）なので、頭の文は切れない。止まったあとは箱が画面に全部入る */
  .pin .tour.top { --over: 50px; --H: calc(100svh - var(--band) + 40px + var(--over)); --T: 10px; margin-top: -40px; }
  .pin .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--ta); padding: 8px 20px 0; row-gap: var(--gap); align-items: start; }
  .pin .tour .live { grid-area: 1 / 1; align-self: end; justify-self: center; width: min(80vw, calc((var(--H) - 8px - var(--gap) - var(--ta)) * 1000 / 2182)); } /* 枠の高さ＝幅 × 2.182（画面の 2.112 に枠の上下の厚み 2.4% ずつ・測った値）。前の 2112 では枠が行より 20px 高く、上へはみ出していた（i-698） */
  /* 文は端末の真下に、真ん中そろえ（i-698 本人「文字の位置が左に寄りすぎてバランスが悪い」） */
  .pin .tour .step { grid-area: 2 / 1; width: 100%; max-width: 400px; justify-self: center; text-align: center; }
  .pin .tour .step h2 { margin-right: -.08em; } /* 字間（.08em）が最後の字の後ろにも付くぶん、真ん中から左へずれないように */
  .pin .tour .first { text-align: center; padding-top: 6px; }
  .pin .tour.top { --ta: 220px; } /* 頭の節だけ文の行を 80px 広げる（i-764・最初の入口が頭の文の下に入るぶん。端末は少し小さくなる） */
  .first .cta-first { margin-top: 14px; font-size: 13px; line-height: 1.8; }
  .pin .tour .step h2 { font-size: 21px; margin-bottom: 8px; }
  .pin .tour .step .copy p { font-size: 14px; line-height: 1.8; max-width: none; }
  .pin .tour .step .copy p + p { margin-top: .45em; }
  .gstage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "head" "lamp" "chat"; padding: 110px 20px; }
  .ghead h2 { margin-bottom: 10px; }
  .ghead p { font-size: 14px; line-height: 1.8; }
  .glamp { width: min(300px, 76vw); margin: 8px 0 12px; }
  /* 縦はアプリと同じ＝上に灯・下に会話。会話は灯の下（--L）から。木は会話が消えたあと、同じ箱いっぱいに育つ */
  .pin .gstage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head" "art"; padding: 28px 20px 24px; }
  .pin .gchat { grid-area: art; margin-top: calc(var(--lb, 260px) + 10px); }
  .glog .q.now { font-size: 19px; }
  .glog p { font-size: 14px; }
  .tstage { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding: 100px 20px; }
  .thead p { font-size: 14px; line-height: 1.85; }
  .pin .tstage { align-content: center; padding: 32px 20px; }
  .tframe { width: 108%; margin: 0 -4%; max-width: none; }
}

/* ---------- 動きを減らす（html.pin が付かない＝止めずに節ごとの静止画） ---------- */
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  .intro .hero .in > *, .intro .first .words > * { animation: none; }
}
.nomargin { margin: 0; }
