/* GLASS GUIDE の UI 刷新の試作。この1枚が案1「和紙と朱」（旅窓の決まりをそのまま当てたもの）。
   案2〜4は theme-N.css が [data-plan="N"] の下で上書きする。
   決まり（旅窓の README から）:
   - 見る画面（旅のはじまり・歩く・到着・送ったあと）は写真を全面に敷き、上下を暗いグラデーションで締め、白い明朝とすりガラスの部品
   - 選ぶ・振り返る画面（ホーム・コース・準備・保存・設定・旅の終わり）は和紙の地に細い線と淡い影
   - 主役のボタンは1画面に1つ（朱の seal-btn）。脇役は ink-btn、文字だけは textbtn
   - 縦書きの短冊は島と場所の名前だけ（見出しは付けない）
   - 明朝は見出し・名前・主役のボタン、細かい文字はゴシック */

:root {
	--washi: #F3EBDD; --paper: #FBF6EA; --land: #EEE2C6;
	--seal: #C8382B; --shu: #D9542E; --ai: #1F3B6E; --green: #5F7F4C; --ochre: #C9A45C;
	--sumi: #22201C; --ink: #2B2620; --muted: #7A6E5C;
	--on-photo: #FBF6EA;
	--mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
	--gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
	--line: rgba(43, 38, 32, .12); --line-strong: rgba(43, 38, 32, .26); --fill: rgba(43, 38, 32, .05);
	--lift: 0 1px 2px rgba(34, 32, 28, .05), 0 8px 24px rgba(34, 32, 28, .07);
	--glass: rgba(16, 15, 14, .5); --glass-line: rgba(255, 255, 255, .18);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--hero-img: url("assets/hero-1-hanga.jpg");
	--sat: 47px; --sab: 34px;
	--radius: 14px; --card-radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
/* コース入力設計 U5: 手本そのものを管理試作の枠内で表示する。 */
html.admin-embed body { display: block; margin: 0; background: transparent; }
html.admin-embed #panel, html.admin-embed #tonmana { display: none; }
html.admin-embed #phone { width: 100% !important; height: 100dvh; border-radius: 0; box-shadow: none; margin: 0; }
html.admin-embed .admin-selected { outline: 1px solid var(--shu, #a94735); outline-offset: 4px; background: #a9473508; }
body { display: flex; align-items: center; justify-content: center; gap: 48px; background: #D3C7AE var(--grain); font-family: var(--gothic); color: var(--sumi); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
img { display: block; }
svg { display: block; }

/* ---------- 端末の枠 ---------- */
#phone { position: relative; flex: none; width: 390px; height: 844px; border-radius: 52px; overflow: hidden; background: var(--washi) var(--grain); isolation: isolate;
	box-shadow: 0 0 0 11px #1C1B19, 0 0 0 12px #3A3835, 0 40px 90px rgba(30, 24, 16, .4); }
#statusbar { position: absolute; left: 0; right: 0; top: 0; z-index: 40; height: var(--sat); display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; pointer-events: none; color: var(--sumi); transition: color .3s; }
#statusbar b { font: 600 16px -apple-system, var(--gothic); letter-spacing: .01em; }
#statusbar span { display: flex; gap: 6px; align-items: center; }
#statusbar svg { height: 12px; width: auto; fill: currentColor; }
#statusbar::before { content: ""; position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
#phone.dark-status #statusbar, #phone.dark-status #homebar { color: #fff; }
#homebar { position: absolute; left: 50%; bottom: 8px; z-index: 40; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: currentColor; color: var(--sumi); pointer-events: none; }
#phone.sheet-open #statusbar { color: #fff; }
#phone.sheet-open #homebar { color: var(--sumi); }

/* ---------- 外の操作盤 ---------- */
#panel { flex: none; width: 300px; max-height: 844px; overflow-y: auto; padding: 4px 4px 4px 0; color: var(--sumi); }
#panel h1 { margin: 0 0 8px; font: 700 26px/1.2 var(--mincho); letter-spacing: .08em; }
#panel h1 small { font: 600 12px var(--gothic); letter-spacing: .06em; color: var(--muted); }
#panel h2 { margin: 18px 0 8px; font: 700 13px var(--mincho); letter-spacing: .16em; }
.p-note { margin: 0 0 12px; font: 11.5px/1.6 var(--gothic); color: var(--muted); }
.p-plans { display: grid; gap: 8px; }
.p-plan { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; align-items: start; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(251, 246, 234, .6); text-align: left; }
.p-plan img { grid-row: 1 / 3; width: 96px; height: 64px; object-fit: cover; object-position: center top; border-radius: 6px; }
.p-plan b { font: 700 14px var(--mincho); letter-spacing: .04em; margin-top: 4px; }
.p-plan small { font: 11px/1.5 var(--gothic); color: var(--muted); }
.p-plan.on { border-color: var(--seal); background: var(--paper); box-shadow: 0 0 0 2px rgba(200, 56, 43, .25); }
.p-plan.on b { color: var(--seal); }
.p-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.p-jump { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(251, 246, 234, .6); font: 600 11.5px var(--gothic); }
.p-jump.on { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
.p-reset { margin: 14px 0 10px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; font: 600 12px var(--gothic); color: var(--muted); }
@media (max-width: 820px) {
	body { display: block; }
	#panel { display: none; }
	#phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; --sat: env(safe-area-inset-top, 20px); --sab: env(safe-area-inset-bottom, 0px); }
	#statusbar, #homebar { display: none; }
}

/* ---------- 画面の入れ物 ---------- */
#app { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; animation: enter .28s ease; }
.screen::-webkit-scrollbar { display: none; }
.screen.fixed { overflow: hidden; }
.screen.tabbed { padding-bottom: calc(var(--sab) + 96px); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.screen.looking { display: flex; flex-direction: column; background: #15130F; color: var(--on-photo); }
.screen.looking > * { position: relative; z-index: 1; }
.screen.looking > .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.screen.looking > .ai-tag { position: absolute; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8, 8, 10, .62) 0%, rgba(8, 8, 10, .1) 22%, rgba(8, 8, 10, 0) 38%, rgba(8, 8, 10, .45) 58%, rgba(8, 8, 10, .88) 82%, rgba(8, 8, 10, .94) 100%); }

/* ---------- 部品 ---------- */
.tanzaku { writing-mode: vertical-rl; text-orientation: upright; display: inline-flex; align-items: center; justify-content: flex-start;
	background: var(--paper); color: var(--sumi); border: 1px solid rgba(43, 38, 32, .6); padding: 9px 5px; font: 700 15px/1.05 var(--mincho); letter-spacing: .14em; box-shadow: 0 2px 10px rgba(34, 32, 28, .18); }
.seal-mini { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--seal); border-radius: 2px; }
.seal-btn { border: 0; border-radius: var(--radius); background: var(--seal); color: #FFF7EC; font: 700 17px var(--mincho); letter-spacing: .2em; padding: 15px 18px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px rgba(200, 56, 43, .28); transition: transform .12s, box-shadow .12s; }
.seal-btn:active { transform: translateY(1px) scale(.99); }
.seal-btn.block, .ink-btn.block { display: block; width: 100%; }
.seal-btn.small { padding: 8px 14px; font-size: 14px; letter-spacing: .1em; border-radius: 10px; box-shadow: 0 4px 10px rgba(200, 56, 43, .22); }
.ink-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(251, 246, 234, .75); font: 600 15px var(--mincho); letter-spacing: .08em; padding: 13px 16px; color: var(--sumi); }
.ink-btn svg { width: 18px; height: 18px; }
.ink-btn.small { font-size: 13px; padding: 7px 12px; border-radius: 10px; }
.textbtn { border: 0; background: none; font: 600 14px var(--gothic); padding: 8px; color: var(--muted); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; padding: 0; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn-sp { flex: none; width: 40px; }
.glassbtn { color: #fff; background: rgba(16, 15, 14, .32); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font: 600 11px/1.6 var(--gothic); letter-spacing: .02em; background: var(--fill); color: var(--ink); font-style: normal; }
.tag.green { background: var(--green); color: var(--paper); }
.tag.grey { color: var(--muted); }
.print { display: block; overflow: hidden; background: var(--land); border-radius: 10px; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.paper-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--lift); }
.mist-title { display: flex; align-items: center; gap: 12px; margin: 30px 18px 14px; font: 700 17px var(--mincho); letter-spacing: .14em; }
.mist-title::before, .mist-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 18px 10px; font: 700 15px var(--mincho); letter-spacing: .1em; }
.section-title .count { margin-left: auto; font: 500 12px var(--gothic); color: var(--muted); }
.note { margin: 0; font: 12px/1.65 var(--gothic); color: var(--muted); }
.note.pad { margin: 10px 20px 0; }
.center { text-align: center; }
.ai-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 500 9px var(--gothic); letter-spacing: .04em; color: rgba(255, 255, 255, .82); background: rgba(0, 0, 0, .3); padding: 2px 6px; border-radius: 4px; pointer-events: none; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 4px) 12px 10px;
	background: rgba(243, 235, 221, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar h1 { flex: 1; margin: 0; text-align: center; font: 700 17px var(--mincho); letter-spacing: .16em; }
/* 上の帯の無い画面（ホーム・コース・スポットの概要）: 送って見出し（app.js の data-scrim）が時計に近づいたら、時計の下に和紙の帯を敷く */
.scrim { position: sticky; top: 0; z-index: 6; height: var(--sat); margin-bottom: calc(-1 * var(--sat)); background: rgba(243, 235, 221, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; pointer-events: none; }
.screen.scrolled > .scrim { opacity: 1; }

/* 案内の一言（シーサーと吹き出し） */
.gb { display: flex; align-items: flex-end; gap: 6px; margin: 16px 14px 0; }
.gb-face { flex: none; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .2)); }
.gb-bubble { position: relative; flex: 1; min-width: 0; margin-bottom: 14px; padding: 10px 14px 11px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); color: var(--sumi); }
.gb-bubble::before { content: ""; position: absolute; left: -7px; bottom: 18px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.gname { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 4px; background: var(--seal); color: #FFF7EC; font: 700 10px/1.6 var(--gothic); letter-spacing: .14em; }
.gb-bubble p { margin: 0; font: 500 14px/1.7 var(--gothic); }

.facts { display: flex; align-items: center; margin: 14px 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0; font: 600 15px var(--mincho); letter-spacing: .04em; }
.facts span + span { border-left: 1px solid var(--line); }
.facts svg { width: 18px; height: 18px; color: var(--muted); }

.recpill { align-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 5px 8px 5px 12px; border-radius: 999px; font: 600 12px var(--gothic); letter-spacing: .08em; color: #fff;
	background: rgba(16, 15, 14, .45); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.recpill i { width: 8px; height: 8px; border-radius: 50%; background: #F0533F; box-shadow: 0 0 0 3px rgba(240, 83, 63, .28); animation: rec 1.6s infinite; }
.recpill.paused i { background: #C9C2B4; box-shadow: none; animation: none; }
.recpill svg { width: 13px; height: 13px; opacity: .7; }
@keyframes rec { 50% { opacity: .35; } }

/* 朱の印 */
.seal { width: 100%; height: auto; transform: rotate(var(--rot, -6deg)); mix-blend-mode: multiply; overflow: visible; }
.seal circle, .seal path { stroke: var(--seal); }
.seal text { fill: var(--seal); font-family: var(--mincho); font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.seal .seal-sub { font-weight: 700; letter-spacing: .1em; }

/* ---------- タブ ---------- */
#tabbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) - 8px); z-index: 20; height: 62px; padding: 0 5px; display: none; align-items: center;
	border: 1px solid rgba(43, 38, 32, .1); border-radius: 31px; background: rgba(251, 246, 234, .76); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
	box-shadow: 0 14px 34px rgba(34, 32, 28, .22), 0 2px 6px rgba(34, 32, 28, .08), inset 0 1px 0 rgba(255, 255, 255, .75); }
#phone.tabs #tabbar { display: flex; }
#phone.sheet-open #tabbar { display: none; }
#tabbar::before { content: ""; position: absolute; left: 5px; top: 5px; width: calc((100% - 10px) / 3); height: 50px; border-radius: 25px; pointer-events: none;
	background: var(--grain) var(--seal); box-shadow: 0 6px 14px rgba(200, 56, 43, .32), inset 0 1px 0 rgba(255, 255, 255, .16);
	transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
#tabbar a { position: relative; flex: 1; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
	color: rgba(34, 32, 28, .62); font: 700 10.5px var(--mincho); letter-spacing: .14em; transition: color .25s; }
#tabbar a.on { color: #FFF7EC; }
#tabbar svg { width: 21px; height: 21px; }

/* ---------- シート・知らせ ---------- */
#layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#layer > * { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(18, 16, 14, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-height: 88%; overflow-y: auto; scrollbar-width: none; padding: 26px 18px calc(var(--sab) + 18px); border-radius: 24px 24px 0 0;
	background: var(--washi) var(--grain); color: var(--sumi); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: rise .32s cubic-bezier(.2, .9, .3, 1); }
.sheet.tall { height: 88%; display: flex; flex-direction: column; }
.sheet::before { content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line-strong); }
@keyframes rise { from { transform: translateY(50px); opacity: 0; } }
.sh-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding-right: 40px; }
.sh-head h3 { margin: 0; white-space: nowrap; font: 700 21px var(--mincho); letter-spacing: .12em; }
.sh-head small { font: 600 12px var(--gothic); letter-spacing: .06em; color: var(--muted); }
.close-x { position: absolute; right: -4px; top: -6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--fill); font: 20px/1 var(--gothic); color: var(--muted); display: grid; place-items: center; }
.sheet .gb { margin: 14px 0 0; }
#toast { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 96px); z-index: 60; width: fit-content; margin: 0 auto; transform: translateY(-10px); opacity: 0; pointer-events: none; text-align: center;
	background: rgba(34, 32, 28, .92); color: var(--paper); font: 600 13px var(--gothic); letter-spacing: .03em; padding: 10px 18px; border-radius: 999px; transition: .25s; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
#toast.show { opacity: 1; transform: none; }

/* 一覧の行 */
.rows { margin: 0 16px; padding: 2px 14px; }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 600 15px var(--mincho); letter-spacing: .04em; }
.lrow:last-child { border-bottom: 0; }
.lrow > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--muted); }
.lrow > span { flex: 1; }
.lrow em { margin-left: auto; font: 500 12px var(--gothic); font-style: normal; color: var(--muted); }
.lrow > svg:last-child:not(:first-child) { flex: none; width: 16px; height: 16px; color: var(--muted); }
.lrow.danger { color: var(--seal); }
.lrow.danger > svg { color: var(--seal) !important; }
.switch { appearance: none; flex: none; width: 46px; height: 28px; margin: 0 0 0 auto; border-radius: 14px; background: rgba(43, 38, 32, .18); position: relative; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--seal); }
.switch:checked::after { transform: translateX(18px); }

/* 下に貼りつく主役のボタン */
.ctabar { position: sticky; bottom: 0; z-index: 6; margin-top: 22px; padding: 22px 16px calc(var(--sab) + 12px); background: linear-gradient(180deg, rgba(243, 235, 221, 0), var(--washi) 22px); }

/* ---------- ホーム ---------- */
.home .hero { position: relative; height: 470px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: var(--hero-img) center 40% / cover no-repeat; }
.home .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 16, 30, .3) 0%, rgba(10, 16, 30, 0) 18%, rgba(243, 235, 221, 0) 50%, rgba(243, 235, 221, .9) 76%, var(--washi) 90%); }
.home .cur { position: absolute; left: 18px; top: calc(var(--sat) + 10px); z-index: 2; font-size: 19px; }
.brand { position: absolute; right: 20px; top: calc(var(--sat) + 12px); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #FBF6EA; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.brand span { font: 700 17px/1.15 var(--mincho); letter-spacing: .2em; text-align: right; }
.brand .seal-mini { width: 12px; height: 12px; }
.hero-ai { top: calc(var(--sat) + 90px); bottom: auto; }
.home-course { position: relative; z-index: 2; margin: -128px 0 0; padding: 0 20px; }
.kicker { display: block; font: 700 11px var(--gothic); letter-spacing: .3em; color: var(--muted); }
.course-title { margin: 6px 0 0; font: 700 22px/1.55 var(--mincho); letter-spacing: .06em; }
.home .welcome { margin-top: 12px; }
.home-cta { padding: 4px 20px 0; text-align: center; }
.home-cta .seal-btn { margin-top: 6px; }

/* ---------- 保存・設定 ---------- */
.saved .gb, .settings .gb { margin-top: 18px; }
.course-card { display: flex; gap: 12px; align-items: center; width: calc(100% - 32px); margin: 0 16px; padding: 10px; text-align: left; }
.course-card .print { flex: none; width: 96px; height: 96px; }
.cc-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cc-body b { font: 700 15px/1.5 var(--mincho); letter-spacing: .04em; }
.cc-body small { font: 12px var(--gothic); color: var(--muted); }

/* ---------- コース ---------- */
.shero { position: relative; height: 470px; overflow: hidden; background: #1A1714; }
.shero > img { width: 100%; height: 100%; object-fit: cover; }
.shero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 8, 10, .55) 0%, rgba(8, 8, 10, 0) 24%, rgba(8, 8, 10, 0) 42%, rgba(8, 8, 10, .78) 100%); }
.shero .back { position: absolute; left: 14px; top: calc(var(--sat) + 4px); z-index: 2; }
.shero-tz { position: absolute; right: 16px; top: calc(var(--sat) + 4px); z-index: 2; font-size: 19px; }
.shero-ai { bottom: auto; top: calc(var(--sat) + 52px); left: 16px; right: auto; }
.stitle { position: absolute; left: 22px; right: 22px; bottom: 46px; z-index: 2; color: var(--on-photo); text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.stitle small { display: block; font: 600 12px var(--mincho); letter-spacing: .5em; opacity: .85; }
.stitle h1 { margin: 6px 0 0; font: 700 25px/1.45 var(--mincho); letter-spacing: .08em; }
.stitle p { margin: 6px 0 0; font: 500 12.5px/1.6 var(--gothic); letter-spacing: .06em; opacity: .8; }
.sbody { position: relative; z-index: 3; margin-top: -24px; padding: 8px 0 0; border-radius: 24px 24px 0 0; background: var(--washi) var(--grain); }
.sbody > .facts { margin: 12px 18px 0; }
.cstops { list-style: none; margin: 0 16px; padding: 2px 14px; }
.cstop { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cstop:last-child { border-bottom: 0; }
.cstop .num { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--seal); color: #fff; font: 700 12px var(--gothic); }
.cstop .print { flex: none; width: 64px; height: 46px; border-radius: 6px; }
.cs-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-body b { font: 700 15px var(--mincho); letter-spacing: .04em; }
.cs-body small { font: 11.5px/1.5 var(--gothic); color: var(--muted); }
.booklet-btn { width: calc(100% - 32px) !important; margin: 18px 16px 0; }

/* ---------- 旅の準備 ---------- */
.psteps { list-style: none; margin: 18px 16px 0; padding: 4px 16px; }
.pstep { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pstep:last-child { border-bottom: 0; }
.pmark { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.pmark svg { width: 20px; height: 20px; }
.pstep.ok .pmark { border: 0; background: var(--seal); color: #fff; box-shadow: 0 4px 10px rgba(200, 56, 43, .25); }
.pstep b { display: block; font: 700 16px var(--mincho); letter-spacing: .06em; }
.pstep p { margin: 4px 0 0; font: 13px/1.7 var(--gothic); color: var(--ink); }
.pstep .tag { margin-top: 8px; }
.pact { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- 見る画面の上の帯 ---------- */
.ttop, .jbar { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 2px) 12px 4px; }
.ttl { flex: 1; text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.ttl small { display: block; font: 600 11px var(--gothic); letter-spacing: .3em; opacity: .8; }
.ttl h1, .jbar h1 { margin: 2px 0 0; font: 700 17px var(--mincho); letter-spacing: .14em; color: #fff; }
.jbar h1 { flex: 1; text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.jtools { display: flex; gap: 2px; padding: 0 4px; border-radius: 22px; color: #fff; background: rgba(16, 15, 14, .32); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.jtools .iconbtn { width: 38px; height: 38px; }
.jtools svg { width: 21px; height: 21px; }

/* ---------- 旅のはじまり ---------- */
.intro-ai { top: calc(var(--sat) + 96px); bottom: auto; }
.gpanel { position: relative; margin-top: auto; padding: 84px 14px calc(var(--sab) + 12px); }
.gface { position: absolute; left: 18px; top: 0; z-index: 2; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); pointer-events: none; animation: hop 2.8s ease-in-out infinite; }
@keyframes hop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-6px); } }
.gbox { position: relative; padding: 12px 16px 16px; border-radius: 20px; cursor: pointer; color: #FBF6EA;
	background: rgba(16, 15, 14, .62); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.gmeta { display: flex; align-items: center; gap: 6px; min-height: 26px; padding-left: 108px; font: 600 11px var(--gothic); letter-spacing: .06em; }
.gmeta .gname { margin: 0; }
.gmeta .gsp { flex: 1; }
.gcount { color: rgba(251, 246, 234, .65); }
.gtext { margin: 12px 0 0; min-height: 3.6em; font: 500 16px/1.85 var(--gothic); }
.gnext { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: rgba(251, 246, 234, .7); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.gchoices { display: grid; gap: 4px; margin-top: 12px; }
.gchoices .textbtn { color: rgba(251, 246, 234, .7); }

/* ---------- 歩く画面 ---------- */
.walk .recpill { margin-top: 6px; }
.walk-guide { margin: 10px 12px 0; }
.walk-guide .gb-face { width: 78px; height: 78px; }
.postcard { margin-top: auto; padding: 0 20px; }
.pc-photo, .pc-tz { display: none; }
.pc-kicker { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--seal); color: #FFF7EC; font: 700 11px/1.7 var(--gothic); letter-spacing: .14em; }
.pc-info { position: relative; margin-top: 8px; padding-right: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.pc-name { margin: 0; font: 700 34px/1.2 var(--mincho); letter-spacing: .14em; }
.pc-sub { margin: 6px 0 0; font: 500 13px/1.6 var(--gothic); letter-spacing: .04em; opacity: .85; }
.pc-dist { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 14px var(--gothic); }
.pc-dist b { font: 700 24px var(--mincho); letter-spacing: .02em; }
.arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid var(--glass-line); }
.arrow svg { width: 20px; height: 20px; transform: rotate(var(--deg)); }
.pc-map { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: #fff; font: 600 12.5px var(--gothic); text-shadow: none;
	background: rgba(16, 15, 14, .4); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pc-map svg { width: 16px; height: 16px; }
.walk-bottom { padding: 0 16px calc(var(--sab) + 10px); }
.directions { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 11px 4px; border: 0; border-top: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22); background: none; color: #fff; text-align: left; font: 500 14px var(--mincho); letter-spacing: .04em; }
.directions svg { flex: none; width: 20px; height: 20px; opacity: .8; }
.directions span { flex: 1; }
.directions em { font: 600 12px var(--gothic); font-style: normal; color: #FFB89E; }
.stops { position: relative; list-style: none; display: flex; justify-content: space-between; margin: 16px 2px 0; padding: 0; }
.stops::before { content: ""; position: absolute; left: 22px; right: 22px; top: 9px; height: 2px; background: rgba(255, 255, 255, .5); }
.stop { flex: 1; display: flex; justify-content: center; }
.stop button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; }
.stop .mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: rgba(16, 15, 14, .6); font: 800 9px var(--mincho); font-style: normal; color: #fff; }
.stop.visited .mark { border-color: #FFE3D9; background: var(--seal); }
.stop.dest .mark { background: #fff; box-shadow: 0 0 0 4px rgba(217, 84, 46, .45), 0 0 14px rgba(255, 140, 90, .9); }
.stop.dest .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }
.stop .label { writing-mode: vertical-rl; text-orientation: upright; padding: 6px 3px; max-height: 92px; overflow: hidden; background: var(--paper); color: var(--sumi); border: 1px solid rgba(43, 38, 32, .6); font: 700 11px/1 var(--mincho); letter-spacing: .1em; }
.stop.visited .label { opacity: .72; }
.stop.dest .label { background: #fff; outline: 2px solid var(--seal); outline-offset: 1px; }
.stops-count { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 0; font: 600 11.5px var(--gothic); letter-spacing: .08em; color: rgba(251, 246, 234, .75); }
.stops-count .textbtn { padding: 4px 0; font-size: 12px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.arrive-btn { margin-top: 12px; }

/* ---------- 到着・送ったあと ---------- */
.arrive .bg img, .thanks .bg img { filter: blur(2px) saturate(.9); transform: scale(1.04); }
.arrive .bg::after, .thanks .bg::after { background: rgba(10, 9, 8, .72); }
.arrive-card { margin: auto 0; padding: 0 26px calc(var(--sab)); text-align: center; animation: fade .4s; }
.cpage { width: 176px; height: 176px; margin: 0 auto 20px; display: grid; place-items: center; padding: 14px; border-radius: 6px; transform: rotate(-2deg); background: var(--paper) var(--grain); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.cpage .seal { animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) .15s backwards; }
@keyframes stamp { from { transform: rotate(var(--rot)) scale(1.9); opacity: 0; } }
.clabel { display: block; font: 700 11px var(--gothic); letter-spacing: .24em; color: #FF9C73; }
.arrive-card h2 { margin: 8px 0 6px; font: 700 27px/1.45 var(--mincho); letter-spacing: .1em; color: #FBF6EA; }
.crows { margin: 0 0 18px; font: 12px var(--gothic); letter-spacing: .1em; color: rgba(251, 246, 234, .72); }
.cguide { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 10px 14px 10px 8px; text-align: left; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); }
.cguide img { flex: none; width: 60px; height: 60px; object-fit: contain; }
.cguide p { margin: 0; font: 13.5px/1.7 var(--gothic); color: rgba(251, 246, 234, .9); }
.cguide b { display: block; font: 700 11px var(--gothic); letter-spacing: .14em; color: #FF9C73; }
.thanks-shisa { width: 150px; height: 150px; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }

/* ---------- スポット ---------- */
.spot { padding-bottom: 0; }
.spot-hero { position: relative; height: 560px; overflow: hidden; background: #1A1714; color: #fff; }
.spot-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 10, .58) 0%, rgba(8, 8, 10, 0) 22%, rgba(8, 8, 10, 0) 62%, rgba(243, 235, 221, .7) 92%, var(--washi) 100%); }
.spot-hero > .jbar, .spot-hero > .recpill { position: relative; z-index: 2; }
.spot-hero > .tanzaku, .spot-hero > .stamp-badge, .spot-hero > .spot-seal { z-index: 2; }
.spot-hero .recpill { display: flex; width: max-content; margin: 4px auto 0; }
.spot-tz { position: absolute; left: 18px; top: calc(var(--sat) + 96px); font-size: 26px; padding: 14px 8px; letter-spacing: .2em; }
.stamp-badge { position: absolute; right: 16px; top: calc(var(--sat) + 100px); display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; font: 600 12.5px var(--mincho); letter-spacing: .06em; color: #fff;
	background: rgba(16, 15, 14, .45); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.stamp-badge .seal { width: 28px; height: 28px; mix-blend-mode: normal; background: #FBF6EA; border-radius: 50%; padding: 1px; }
.spot-seal, .spot-name, .spot-reading { display: none; }
.spot-ai { top: calc(var(--sat) + 150px); bottom: auto; right: 16px; }
.bg-ai { top: calc(var(--sat) + 52px); bottom: auto; left: 16px; right: auto; }
.spot-body { position: relative; z-index: 3; margin-top: -150px; padding: 0 0 20px; }
.spot-guide { margin: 0 14px; }
.spot-tag { display: inline-block; margin: 14px 18px 0; padding: 3px 10px; border-radius: 4px; background: var(--ai); color: var(--paper); font: 600 11.5px var(--gothic); letter-spacing: .1em; }
.details { list-style: none; margin: 10px 16px 0; padding: 2px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--lift); }
.details li { display: grid; grid-template-columns: 34px 72px 1fr; align-items: baseline; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details li:last-child { border-bottom: 0; }
.dn { font: 600 19px var(--mincho); color: var(--sumi); }
.dt { font: 600 11.5px var(--gothic); letter-spacing: .1em; color: var(--muted); }
.db { font: 600 15px/1.6 var(--mincho); letter-spacing: .02em; }
.gmaps { display: block; margin: 8px auto 0; color: var(--seal); }
.toolbar { position: sticky; bottom: 0; z-index: 8; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin: 0 10px; padding: 8px 8px calc(var(--sab) + 2px);
	border-radius: 28px 28px 0 0; background: rgba(28, 25, 22, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.tool { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 60px; justify-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .06); color: #FBF6EA; font: 600 12px var(--mincho); letter-spacing: .06em; }
.tool svg { width: 22px; height: 22px; }
.tool.next { border: 0; background: var(--seal); box-shadow: 0 6px 14px rgba(200, 56, 43, .35); }
.tool.talk { width: 112px; white-space: nowrap; height: auto; margin-top: -40px; border: 0; background: none; gap: 6px; }
.talk-face { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #3A2E26; border: 3px solid #FBF6EA; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.talk-face img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; }
.talk-face i { position: absolute; right: -8px; top: -6px; padding: 0 7px; border-radius: 10px; background: #fff; color: var(--sumi); font: 800 12px/1.4 var(--gothic); font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }

/* ---------- 旅の終わり ---------- */
.end-seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 16px 0; padding: 16px; }
.es { display: grid; place-items: center; aspect-ratio: 1; }
.es.empty i { width: 74%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--line-strong); font: 700 18px var(--mincho); font-style: normal; color: rgba(43, 38, 32, .2); }

/* ---------- シートの中身 ---------- */
.sb-count { margin: 0 0 12px; font: 600 13px var(--gothic); color: var(--muted); }
.sb-count b { font: 700 26px var(--mincho); color: var(--seal); }
.stampbook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 16px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius);
	background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 33.4%; }
.sb-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; }
.sb-slot { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.sb-slot img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; filter: grayscale(.85) sepia(.3); opacity: .38; border: 1.5px dashed var(--line-strong); }
.sb-slot i { position: absolute; font: 700 20px var(--mincho); font-style: normal; color: rgba(43, 38, 32, .35); }
.sb-cell b { font: 700 12.5px var(--mincho); letter-spacing: .04em; }
.sb-cell small { font: 11px var(--gothic); color: var(--muted); }
.sb-cell:not(.got):active .sb-slot img { opacity: .7; }
.ocards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ocard { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; box-shadow: var(--lift); }
.ocard .print { height: 110px; border-radius: 8px; }
.ocard b { margin: 4px 4px 0; font: 700 15px var(--mincho); letter-spacing: .04em; }
.ocard small { margin: 0 4px; font: 12px var(--gothic); color: var(--muted); }
.bk-rows { display: grid; grid-template-columns: 76px 1fr; margin: 0; border-top: 1px solid var(--line); }
.bk-rows dt, .bk-rows dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bk-rows dt { font: 600 12px var(--gothic); color: var(--muted); letter-spacing: .1em; }
.bk-rows dd { font: 500 13.5px/1.6 var(--mincho); }
.bk-caution { margin: 16px 0 6px; font: 700 15px var(--mincho); letter-spacing: .1em; }
.bk-list { margin: 0; padding: 0; list-style: none; }
.bk-list li { position: relative; padding: 4px 0 4px 18px; font: 13px/1.6 var(--gothic); }
.bk-list li::before { content: "※"; position: absolute; left: 0; color: var(--seal); }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 12px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; animation: fade .3s; }
.msg img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: var(--land); }
.msg p { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); font: 500 14.5px/1.7 var(--gothic); }
.msg.me { align-self: flex-end; }
.msg.me p { border-radius: 16px 16px 4px 16px; background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
.qchoices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-left: 48px; }
.chat-bar { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-bar .seal-btn { padding: 13px; }
.ph-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-steps div { padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.ph-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--seal); color: #fff; font: 700 12px var(--gothic); }
.ph-steps p { margin: 8px 0 0; font: 600 13px/1.6 var(--mincho); }
.ph-sample { position: relative; margin: 14px 0; }
/* iPhone で撮る（文字のボタン。段階3 §13 Q4。2026-10-25 に足した） */
.ph-alt { text-align: center; }
.ph-sample .print { height: 150px; border-radius: 12px; }
.ph-guide { margin-top: -30px !important; position: relative; }
.rec-big { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 16px; font: 700 34px var(--mincho); }
.rec-big b { color: #F0533F; font-size: 22px; }
.sheet .rows { margin: 0 0 14px; }
