/* 結婚式の使い方（pimorio.com/wedding/guide）。地・字・帯は wedding.css と同じ。1本の道に、押す所の丸をつけたアプリの画面を並べる */
.g-top { padding: 22px 20px 26px; display: grid; gap: 10px; }
.g-top .back { font-family: var(--head); font-size: 13px; color: var(--muted); text-decoration: none; }
.g-top h1 { font-family: var(--head); font-size: 32px; line-height: 1.3; margin: 4px 0 0; }
.g-top .lead { margin: 0; font-size: 15px; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jump a { font-family: var(--head); font-size: 13px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.jump a:focus-visible, .g-top .back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.todo ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: todo; }
.todo li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; counter-increment: todo; }
.todo li::before { content: counter(todo); grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--head); font-size: 13px; }
.todo .when { font-size: 12px; color: var(--muted); }
.todo b { font-family: var(--head); font-size: 16px; line-height: 1.45; }
.todo i { font-style: normal; font-size: 13px; color: var(--muted); }

.chap { padding: 0 0 28px; }
.chap .scene { display: block; width: 100%; height: 34cqw; object-fit: cover; }
.chap h2 { font-family: var(--head); font-size: 22px; line-height: 1.4; margin: 18px 20px 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chap h2 small { font-size: 13px; color: #fff; background: var(--ink); border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; transform: translateY(-2px); }
.chap h2 span { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); }

.road { list-style: none; margin: 14px 20px 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 22px; counter-reset: step; }
.road::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
/* 1ステップ1行：左に文、右に小さな画面（押すと大きく） */
.road li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 38%; grid-template-areas: "t f" "d f"; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-content: start; counter-increment: step; }
.road li > b { grid-area: t; }
.road li > span { grid-area: d; align-self: start; }
.road li > .ph { grid-area: f; align-self: start; }
/* 画面のない項目（QR を置く人を決める）は、文を幅いっぱいに */
.road li.noph { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "d"; }
.road li::before { content: counter(step); position: absolute; left: -30px; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy, #24405f); color: #fff; font-family: var(--head); font-size: 12px; display: grid; place-items: center; }
.road b { font-family: var(--head); font-size: 16px; line-height: 1.45; }
.road span { font-size: 13px; color: var(--muted); line-height: 1.6; }
/* なくてもよい手順の注（オレンジ。白い地でも読める濃さ） */
.road .opt { display: block; font-style: normal; font-weight: 700; color: #c2410c; margin-bottom: 2px; }
/* 人数の段と値段（作る ⑦）。1人100円と読まれないように、選べる人数をそのまま並べる */
.road .tiers { display: block; font-style: normal; margin-top: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink, #2c2724); line-height: 1.75; }
.road .tiers i { display: inline-block; min-width: 4.6em; font-style: normal; font-weight: 700; }

.ph { position: relative; margin: 0; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(44,39,36,.2); background: #101010; line-height: 0; cursor: zoom-in; }
.ph img { display: block; width: 100%; height: auto; }
/* 押す所：オレンジの輪がゆっくり広がる。動きを減らす設定では止める */
.tap { position: absolute; left: var(--x); top: var(--y); width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2.5px solid #fe5624; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(254,86,36,.25); }
.tap::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #fe5624; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap::after { animation: none; display: none; } }

.qa { border-top: 0; gap: 4px; }
.qa h2 { margin-bottom: 8px; }
.qa details img { display: block; width: 72%; height: auto; border-radius: 12px; margin: 0 0 14px; }

.guest .mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.guest .mini li { display: grid; gap: 4px; align-content: start; }
.guest .mini img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; border-radius: 12px; margin-bottom: 4px; }
.guest .mini li:first-child img { object-position: center; }
.guest .mini b { font-family: var(--head); font-size: 14px; line-height: 1.4; }
.guest .mini span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.guide .end { margin-top: 28px; }

/* 押すと大きく見る */
.zoom { position: fixed; inset: 0; z-index: 30; background: rgba(20,16,14,.88); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom .ph { width: min(92vw, 380px); max-height: 100%; cursor: zoom-out; box-shadow: none; }
.zoom .ph img { max-height: calc(100vh - 64px); width: auto; max-width: 100%; margin: 0 auto; }
/* 大きくしたブラウザの画面：帯は拡大した画面の幅（min(92vw, 380px)）で決め、その分だけ画像の高さを減らす（% だと .zoom の幅で決まり、下が切れた：Codex #789） */
.zoom .ph.web { padding-top: calc(min(92vw, 380px) * .21); }
.zoom .ph.web img { max-height: calc(100vh - 64px - min(92vw, 380px) * .21); }
.zoom p { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #e9e2d8; font-size: 12px; margin: 0; }

/* フェーズのカード（D：2026-11-10 ユーザー「D で作る」）。押すとそのフェーズだけを出す */
.hub { padding: 6px 16px 28px; display: grid; gap: 12px; }
.hub-h { font-family: var(--head); font-size: 18px; margin: 0 4px; }
.cards { display: grid; gap: 10px; }
.card { position: relative; display: block; height: 128px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.08)); }
.card span { position: absolute; left: 16px; bottom: 13px; right: 16px; z-index: 1; display: grid; }
.card small { font-size: 12px; font-weight: 600; opacity: .92; }
.card b { font-family: var(--head); font-size: 20px; line-height: 1.35; }
.card em { font-style: normal; font-size: 12px; opacity: .9; }
.card i { position: absolute; right: 12px; top: 10px; z-index: 1; font-style: normal; font-family: var(--head); font-size: 12px; background: rgba(0,0,0,.35); border-radius: 999px; padding: 2px 10px; }
.card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.guestcard { height: 104px; }
.phase .back { display: inline-block; margin: 14px 20px 10px; font-family: var(--head); font-size: 13px; color: var(--muted); text-decoration: none; }
.guest.phase .back { color: var(--muted); margin: 0 0 4px; }
.phase .next { display: block; margin: 28px 20px 0; padding: 13px; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-family: var(--head); font-size: 15px; text-decoration: none; }
.js .phase { display: none; }
.js .phase.on { display: block; }
.js .guest.phase.on { display: grid; }
.js.in-phase .hub, .js.in-phase .hubonly, .js.in-phase .g-top { display: none; }
.chap.phase .scene { height: 44cqw; }
.guest .next.light { margin: 8px 0 0; background: #f6f1e7; color: #24405f; }

/* ひと目で分かる流れ（2026-11-10 ユーザー「1枚絵で全体像を」） */
.quick { margin: 0 0 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; }
.quick figcaption { font-family: var(--head); font-size: 15px; margin: 0 4px 10px; }
.quick ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick li { position: relative; }
.quick li a { display: grid; gap: 3px; align-content: start; text-align: center; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.quick li a:active img { opacity: .75; }
.quick li a:focus-visible { outline: 2px solid var(--ink, #2c2724); outline-offset: 3px; border-radius: 8px; }
.quick li + li::before { content: "›"; position: absolute; left: -7px; top: 52px; font-family: var(--head); font-size: 14px; color: var(--muted); }
.quick small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.quick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #101010; }
/* 見出しはどれも2行、説明は1行にそろえて、横の線を合わせる（2026-11-10 ユーザー「サイズそのまま、改行をうまく」） */
.quick b { font-family: var(--head); font-size: 12px; white-space: nowrap; line-height: 1.35; margin-top: 3px; }
.quick em { font-style: normal; font-size: 10px; white-space: nowrap; color: var(--muted); line-height: 1.35; }

/* 当日：ゲストの画面（iPhone・Android・終わったら） */
.gview { margin: 30px 20px 0; padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 18px; }
.gview h3 { font-family: var(--head); font-size: 18px; margin: 0; }
.gnote { margin: -10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lane { display: grid; gap: 10px; }
.lane .gnote { margin: 0; }
.lane-h { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lane-h b { font-family: var(--head); font-size: 15px; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shots figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.shots figcaption { font-size: 11px; line-height: 1.45; color: var(--ink); }
.shots .ph { aspect-ratio: 9 / 19.5; }
.shots .ph img { height: 100%; object-fit: cover; object-position: top; }
/* Android：ブラウザの上の帯 */
/* ブラウザの画面の見本：上の灰色の帯に住所の欄。帯（padding の %）と欄（cqw）の大きさを、どちらもカードの幅で決める（前は帯が幅・欄が高さの割合で、欄が写真にかぶって左上がゆがんで見えた） */
.ph.web { container-type: inline-size; padding-top: 21%; background: #f1f1f1; }
.ph.web::before { content: "pimorio.com"; position: absolute; left: 6%; right: 6%; top: 3cqw; height: 15cqw; border-radius: 999px; background: #fff; color: #555; font-size: 8cqw; line-height: 1; display: grid; place-items: center; }
/* App Clip のカード（イメージ） */
.ph.clip { background: linear-gradient(#3b3b3b, #121212); cursor: default; line-height: 1.3; }
.clipcard { position: absolute; left: 4%; right: 4%; bottom: 3%; background: #fff; border-radius: 12px; overflow: hidden; display: grid; padding-bottom: 8px; text-align: left; }
.clipcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.clipcard b { font-size: 10px; margin: 6px 8px 0; color: #111; }
.clipcard span { font-size: 7px; margin: 1px 8px 6px; color: #666; line-height: 1.35; }
.clipcard i { font-style: normal; margin: 0 8px; background: #0a84ff; color: #fff; border-radius: 999px; font-size: 9px; text-align: center; padding: 4px 0; font-weight: 700; }
.ph.clip small { position: absolute; top: 6%; left: 0; right: 0; text-align: center; color: #cfcfcf; font-size: 9px; }
