/* トップページ（ohana#187 の色と文を、画面を止めて中身を入れ替えるスクロールの作りに組み直したもの）。色は確定デザインのトークン（ohana-app の src/theme/tokens.ts と同じ値）。明るい見た目だけ */
:root {
  color-scheme: light;
  --accent: #08808a; --accent-text: #06717a; --accent-tint: #d3ebe8;
  --text: #142022; --muted: #3d4f51; --faint: #526365;
  --bg: #f4f8f7; --band: #e3eeec; --surface: #ffffff; --ground: #0a5a60; --night: #0f1b1d; --deep: #0a3a6b;
  --on-dark: #ffffff; --on-dark-muted: rgba(255, 255, 255, 0.74); --on-dark-line: rgba(255, 255, 255, 0.18);
  --line: rgba(20, 32, 34, 0.1); --ink-wash: rgba(20, 32, 34, 0.08); --error: #a3311b;
  --memo-bg: #fdf3da; --leaf-bg: #e4f5ec; --ai-text: #5a4a8a; --clay: #f1f6f5; --clay-shadow: rgba(86, 120, 116, 0.3);
  --sea: #3f97c4; --coral: #ec7f62; --leaf: #4fb383; --sun: #f2b53a;
  --card-shadow: 0 0 0 1px rgba(86, 120, 116, 0.12), 0 18px 40px rgba(20, 60, 64, 0.08);
  --glass: rgba(249, 252, 251, 0.8);
  /* 写真や端末に重ねる影の色（rgba(var(--shade), 0.4) のように濃さを付けて使う） */
  --shade: 4, 30, 33; --sea-shade: 6, 40, 44; --deep-shade: 6, 24, 44;
  --on-dark-faint: rgba(255, 255, 255, 0.1); --report-fill: rgba(255, 255, 255, 0.8); --sheet-bg: #fafcfc;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(8, 40, 42, 0.16);
  --primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(86, 120, 116, 0.34);
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --jost: Jost, var(--font);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --top-room: calc(88px + env(safe-area-inset-top, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 900px) { :root { --gutter-l: max(64px, env(safe-area-inset-left, 0px)); --gutter-r: max(64px, env(safe-area-inset-right, 0px)); --top-room: 112px; } html { scroll-padding-top: 96px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--on-dark); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: var(--primary-shadow); }
.btn.white { height: 56px; padding: 0 30px; background: var(--surface); color: var(--text); font-size: 17px; box-shadow: none; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--card-shadow); }
.face { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 600; font-style: normal; color: var(--text); }
.face.yu { background: var(--sea); } .face.sa { background: var(--coral); }
.eyebrow { font-family: var(--jost); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-text); }
.eyebrow b { font-weight: 500; font-size: 15px; margin-right: 10px; }
.h2 { font-size: clamp(30px, 5.2vw, 60px); line-height: 1.22; letter-spacing: 0.01em; }
.lead { font-size: clamp(14px, 1.5vw, 17px); line-height: 1.9; color: var(--muted); max-width: 34em; }
.small { font-size: 13px; line-height: 1.8; color: var(--muted); }
.dark { background: var(--ground); color: var(--on-dark); }
.dark .eyebrow { color: var(--accent-tint); }
.dark .lead, .dark .small { color: var(--on-dark-muted); }

/* ---- 上のバー（今のページと同じガラスの帯） ---- */
.bar { position: fixed; z-index: 20; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); height: 56px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--glass-shadow); display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--jost); font-weight: 600; letter-spacing: 0.02em; font-size: 19px; }
.brand em { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-style: normal; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 4px; }
.actions .login { height: 44px; padding: 0 10px; display: flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar > * { min-width: 0; }
@media (max-width: 899px) { .bar:not(.show-cta) .actions .btn { display: none; } .bar.show-cta .brand span, .bar.show-cta .brand em { display: none; } }
@media (max-width: 380px) { .actions .login { padding: 0 8px; } .actions .btn { padding: 0 12px; font-size: 13px; } }
@media (min-width: 900px) { .bar { top: 20px; left: 64px; right: 64px; height: 60px; } }

/* ---- 止まる場面のしくみ ----
   .scene は縦に長い箱。中の .stage が画面に貼りつき、そのあいだに流した量（--p：0〜1）で中身が入れ替わる。
   data-k="a b [c d]" の要素は、--p が a→b で現れ（--t：0→1）、c→d で消える（--o：0→1） */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.k { --t: 1; --o: 0; opacity: calc(var(--t) * (1 - var(--o))); transform: translate(0, calc((1 - var(--t)) * 36px - var(--o) * 28px)); }
.k.from-left { transform: translate(calc((1 - var(--t)) * -40px), 0); }
.k.from-right { transform: translate(calc((1 - var(--t)) * 40px), 0); }
.k.pop { transform: scale(calc(0.9 + var(--t) * 0.1)); }
.swap { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
.swap > * { grid-area: 1 / 1; }
/* 動きを減らす設定（と、スクリプトが動く前）：止めずに上から順に読む。html に still を付ける */
.still .scene { height: auto !important; }
.still .stage { position: relative; height: auto; min-height: 0; overflow: visible; padding-block: 72px; }
.still .k { --t: 1 !important; --o: 0 !important; transform: none !important; }
.still .swap { display: flex; flex-direction: column; gap: 32px; }
/* 写真を重ねる場面（ヒーロー・むすび）は、画面の高さ1つ分で、最初と最後の姿だけを見せる */
.still .closing .stage { height: 100vh; height: 100svh; padding-block: 0; overflow: hidden; }
.still .hero-photo { --a: 0; }
.still .scroll-hint, .still .closing-word { display: none; }
/* ヒーロー：写真と文を画面1つ分で見せ、その下にホームの絵と説明を並べる */
.still .hero .stage { display: grid; height: auto; overflow: visible; padding-block: 0 72px; }
.still .hero-photo, .still .hero-text { grid-area: 1 / 1; position: relative; min-height: 100vh; min-height: 100svh; }
.still .hero-photo { overflow: hidden; }
.still .hero-photo img { position: absolute; inset: 0; }
.still .device-wrap { position: static; justify-content: center; padding: 64px var(--gutter-r) 0 var(--gutter-l); }
.still .hero-cap { position: static; display: block; width: auto; padding: 24px var(--gutter-r) 0 var(--gutter-l); text-align: center; color: var(--text); text-shadow: none; background: none; font-size: clamp(17px, 2.2vw, 26px); line-height: 1.6; }
/* 当日の動き：端末の中に、当日の段取りと電気・水道・ガスの表を縦に並べる */
.still .phone { height: auto; aspect-ratio: auto; width: min(100%, 380px); }
.still .screen { height: auto; display: flex; flex-direction: column; }
.still .screen img { position: static; height: auto; transform: none !important; box-shadow: none; }
.still .screen .utility { border-top: 8px solid var(--night); }
.still .share .pics, .still .share .pics > * { height: auto; }
.still .share .pics img { max-height: none; max-width: min(100%, 560px); }

/* ---- 1. ヒーロー：写真の窓が縮み、アプリのホームが下から上がる ---- */
.hero .stage { background: var(--bg); }
.hero-photo { position: absolute; inset: 0; --a: var(--t); clip-path: inset(calc(var(--a) * 9%) calc(var(--a) * 7%) calc(var(--a) * 9%) calc(var(--a) * 7%) round calc(var(--a) * 40px)); opacity: 1 !important; transform: none !important; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1.12 - var(--a) * 0.12)); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--shade), 0.35) 0%, rgba(var(--shade), 0.15) 40%, rgba(var(--shade), 0.55) 100%); }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: var(--top-room) var(--gutter-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); color: var(--on-dark); max-width: 1180px; margin: 0 auto; }
.hero-text .tagline { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; }
.hero-text h1 { font-size: clamp(34px, 7.4vw, 92px); line-height: 1.12; letter-spacing: 0.01em; }
.hero-text p { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.9; max-width: 32em; color: var(--on-dark-muted); }
.hero-text .note { font-size: 13px; }
.hero-text .note a { color: var(--on-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.scroll-hint { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; color: var(--on-dark-muted); font-family: var(--jost); font-size: 11px; letter-spacing: 0.24em; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint i { width: 1px; height: 22px; background: currentColor; animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.device-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.device { height: min(78svh, 700px); aspect-ratio: 390 / 844; border-radius: 44px; padding: 8px; background: var(--night); box-shadow: 0 40px 80px rgba(var(--shade), 0.45); transform: translate3d(0, calc((1 - var(--t)) * 105vh), 0) !important; opacity: 1 !important; will-change: transform; }
.device img { width: 100%; height: 100%; border-radius: 36px; object-fit: cover; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; padding-inline: var(--gutter-l) var(--gutter-r); font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; color: var(--text); }
@media (min-width: 900px) {
  .device-wrap { justify-content: flex-end; padding-right: 14%; }
  .hero-cap { left: 7%; right: auto; top: 9%; bottom: 9%; display: flex; align-items: center; text-align: left; padding-left: calc(var(--gutter-l) * 0.6); width: 46%; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.5; color: var(--on-dark); text-shadow: 0 2px 24px rgba(var(--shade), 0.6); background: linear-gradient(90deg, rgba(var(--shade), 0.45), rgba(var(--shade), 0)); border-radius: 40px 0 0 40px; }
}
@media (max-width: 899px) { .device-wrap { padding-bottom: 9svh; } .device { height: min(54svh, 500px); } .hero-cap { bottom: calc(9% + 10px); color: var(--on-dark); font-size: 15px; line-height: 1.6; text-shadow: 0 1px 14px rgba(var(--shade), 0.7); } }

/* ---- 2. 数字：1つずつ大きく入れ替わる ---- */
.numbers .stage { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; padding: var(--top-room) var(--gutter-r) 40px var(--gutter-l); }
.numbers .stage > * { max-width: 100%; }
.numbers .intro { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.8; color: var(--muted); max-width: 30em; }
.numbers .num { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.numbers .num .big { font-family: var(--jost); font-weight: 300; font-size: clamp(120px, 26vw, 300px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent-text); }
.numbers .num .big small { font-family: var(--font); font-weight: 700; font-size: clamp(28px, 5vw, 56px); letter-spacing: 0; margin-left: 6px; color: var(--text); }
.numbers .num .title { font-size: clamp(20px, 2.6vw, 32px); font-weight: 700; max-width: 18em; text-wrap: balance; }
.numbers .num .sub { font-size: 14px; color: var(--muted); }
.ticks { display: flex; gap: 8px; }
.ticks i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.ticks i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--t)); }

/* ---- 3. 洗い出す：答えが並び、手続きが期限つきで降りてくる ---- */
.split { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: safe center; gap: 28px; padding: var(--top-room) var(--gutter-r) 32px var(--gutter-l); max-width: 1180px; margin: 0 auto; }
.split .ch { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.answers { display: flex; flex-wrap: wrap; gap: 8px; }
.answers li { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--card-shadow); display: flex; align-items: center; font-size: 14px; font-weight: 600; }
.due-list { padding: 6px 20px; }
.due-list li { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.due-list li:first-child { border-top: 0; }
.due-list b { font-size: 16px; }
.due-list span { font-size: 13px; color: var(--muted); }
.due-list .due { color: var(--accent-text); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.from-q { font-family: var(--jost); font-size: 12px; letter-spacing: 0.16em; color: var(--faint); display: flex; align-items: center; gap: 10px; }
.from-q::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 899px) { .split .lead { font-size: 13.5px; line-height: 1.8; } .due-list li { padding: 9px 0; } .due-list b { font-size: 15px; } }

/* ---- 4. 回る順番：道がのびて、1日の窓口が順に止まる ---- */
.route .stage { display: flex; flex-direction: column; justify-content: safe center; gap: 28px; padding: var(--top-room) var(--gutter-r) 32px var(--gutter-l); max-width: 1180px; margin: 0 auto; }
.route .head { display: flex; flex-direction: column; gap: 14px; }
.road { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.road-line { position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--on-dark-line); overflow: hidden; }
.road-line i { position: absolute; inset: 0; background: var(--accent-tint); transform-origin: top; transform: scaleY(var(--t)); }
.stop { position: relative; padding: 16px 18px; border-radius: 20px; background: var(--surface); color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.stop::before { content: ""; position: absolute; left: -27px; top: 20px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-tint); box-shadow: 0 0 0 4px var(--ground); }
.stop-head { display: flex; align-items: baseline; gap: 12px; }
.stop .time { font-family: var(--jost); font-weight: 500; font-size: 22px; color: var(--accent-text); }
.stop .place { font-size: 17px; }
.desk { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.desk-name { font-weight: 700; color: var(--text); width: 100%; font-size: 12px; }
.desk span:not(.desk-name) { padding: 4px 10px; border-radius: 999px; background: var(--band); }
.desks { display: flex; flex-direction: column; gap: 10px; }
.desks-title { font-size: 15px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--on-dark-line); display: flex; align-items: center; font-size: 13px; font-weight: 600; }
@media (min-width: 900px) {
  .route .stage { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 64px; align-content: center; }
  .route .head { grid-row: 1 / 3; }
  .road { padding-left: 34px; }
  .stop::before { left: -33px; }
  .road-line { left: 10px; }
}
@media (max-width: 899px) { .route .lead { font-size: 13.5px; line-height: 1.8; } .stop { padding: 12px 14px; gap: 8px; } .desk span:not(.desk-name) { padding: 3px 8px; font-size: 12px; } .route .stage { gap: 18px; } }

/* ---- 5. 分担する：絵と言葉が3回入れ替わる ---- */
.share .stage { display: grid; grid-template-columns: minmax(0, 1fr); align-content: safe center; gap: 24px; padding: var(--top-room) var(--gutter-r) 32px var(--gutter-l); max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .share .stage { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 64px; } }
.share .words .item { display: flex; flex-direction: column; gap: 14px; }
.share .words h3 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.3; }
.share .pics { height: min(46svh, 72vw); width: 100%; }
@media (min-width: 900px) { .share .pics { height: min(62svh, 520px); } }
.share .pics > * { display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.share .pics img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 22px; box-shadow: var(--card-shadow); background: var(--surface); }
.steps { display: flex; gap: 8px; margin-top: 8px; }
.steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.steps i.on { background: var(--accent); }

/* ---- 6. 当日の動き：端末の中で1日が流れる ---- */
.day .stage { display: grid; grid-template-columns: minmax(0, 1fr); align-content: safe center; gap: 24px; padding: var(--top-room) var(--gutter-r) 32px var(--gutter-l); max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .day .stage { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.day .words .item { display: flex; flex-direction: column; gap: 14px; }
.phone { justify-self: center; height: min(56svh, 620px); aspect-ratio: 720 / 980; border-radius: 34px; padding: 8px; background: var(--night); box-shadow: 0 30px 60px rgba(var(--shade), 0.35); }
@media (min-width: 900px) { .phone { height: min(74svh, 660px); } }
.screen { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: var(--surface); }
.screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.screen .moveday { transform: translate3d(0, calc(var(--t) * -7.5%), 0); opacity: 1 !important; }
.screen .utility { height: 100%; object-fit: contain; object-position: top; background: var(--surface); transform: translate3d(calc((1 - var(--t)) * 100%), 0, 0) !important; opacity: 1 !important; box-shadow: -20px 0 40px rgba(var(--shade), 0.18); }
@media (max-width: 899px) { .day .lead { font-size: 13.5px; line-height: 1.8; } }

/* ---- 7. ほかにも：縦に流すと、横に並んだカードが流れる ---- */
.more .stage { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: var(--top-room) 0 32px; }
.more .head { padding-inline: var(--gutter-l) var(--gutter-r); max-width: 1180px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.track { display: flex; gap: 18px; padding-inline: var(--gutter-l) var(--gutter-r); width: max-content; will-change: transform; }
@media (min-width: 1180px) { .track { padding-left: calc((100vw - 1180px) / 2 + var(--gutter-l)); } }
.tile { width: min(78vw, 340px); height: min(60svh, 470px); padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; flex-shrink: 0; }
.tile h3 { font-size: 19px; line-height: 1.45; }
.tile p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.tile.tinted { background: var(--band); box-shadow: none; }
.tile-shot { margin-top: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.grade { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.grade.leaf { background: var(--leaf-bg); } .grade.sun { background: var(--memo-bg); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rows { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.rows > span { padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 600; }
.rows > .ai-label { padding: 0; background: none; font-size: 12px; font-weight: 700; color: var(--ai-text); }
.row-add { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-add i { font-style: normal; height: 28px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.bubble { padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent-tint); font-size: 14px; line-height: 1.7; align-self: flex-end; color: var(--text) !important; }
.goods { display: flex; flex-direction: column; margin-top: auto; }
.goods > span { padding: 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.goods .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--clay); box-shadow: -2px -2px 5px var(--surface), 3px 4px 8px var(--clay-shadow); }
.goods b { flex: 1; font-size: 14px; font-weight: 600; }
.goods small { font-size: 12px; color: var(--muted); }
.stickies { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sticky { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--accent-tint); font-size: 14px; font-weight: 600; line-height: 1.5; }
.tile-photo { position: relative; margin-top: auto; border-radius: 16px; overflow: hidden; height: 190px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.count { position: absolute; left: 16px; bottom: 10px; display: flex; align-items: baseline; gap: 6px; color: var(--on-dark); text-shadow: 0 1px 12px rgba(var(--sea-shade), 0.5); font-size: 14px; font-weight: 600; }
.count b { font-family: var(--jost); font-weight: 300; font-size: 50px; line-height: 1; }
.passkey { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: auto; }
.passkey-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report { margin-top: auto; border-radius: 18px; background: var(--report-fill); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.report b { font-family: var(--jost); font-weight: 300; font-size: 44px; line-height: 1; color: var(--text); }
.bar-progress { height: 3px; margin-inline: var(--gutter-l) var(--gutter-r); max-width: 240px; border-radius: 3px; background: var(--line); overflow: hidden; align-self: center; width: 40%; }
.bar-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.still .track { width: auto; flex-wrap: wrap; transform: none !important; }
.still .tile { height: auto; min-height: 360px; }

/* ---- 8. つくった人から：読み進めると文が濃くなる ---- */
.story-sec { padding-block: 120px 80px; }
.story-sec .inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .story-sec .inner { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } .story-sec .ch { position: sticky; top: 140px; align-self: start; } }
.story-sec .ch { display: flex; flex-direction: column; gap: 16px; }
.story { display: flex; flex-direction: column; gap: 28px; }
.story p { font-size: clamp(17px, 2vw, 22px); line-height: 1.95; font-weight: 600; opacity: var(--r, 1); transition: opacity .15s linear; }
.story p.sign { align-self: flex-end; font-family: "Homemade Apple", cursive; font-size: 30px; font-weight: 400; }
.by { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* ---- 9. よく聞かれること（今のまま） ---- */
.faq-sec { padding-block: 40px 120px; display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-sec { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 60px; padding: 16px 40px 16px 0; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; font-family: var(--jost); font-weight: 300; font-size: 26px; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 15px; line-height: 1.9; color: var(--muted); }

/* ---- 10. むすび：家の写真の窓が広がって画面いっぱいに ---- */
.closing .stage { background: var(--deep); color: var(--on-dark); }
.closing-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--jost); font-weight: 600; font-size: clamp(90px, 22vw, 320px); letter-spacing: 0.02em; color: var(--on-dark-faint); }
.closing-photo { position: absolute; inset: 0; --a: var(--t); clip-path: inset(calc((1 - var(--a)) * 26%) calc((1 - var(--a)) * 30%) round calc((1 - var(--a)) * 32px)); opacity: 1 !important; transform: none !important; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--deep-shade), 0.35) 0%, rgba(var(--deep-shade), 0.78) 100%); opacity: var(--a); }
.closing-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: var(--top-room) var(--gutter-r) calc(64px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); max-width: 1180px; margin: 0 auto; }
.closing-inner .word { font-family: var(--jost); font-weight: 600; font-size: clamp(56px, 8vw, 96px); line-height: 1; }
.closing-inner h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; }
.closing-inner p { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.9; max-width: 32em; color: var(--on-dark-muted); }
.closing-inner .note { font-size: 13px; }
.closing-inner .note a { color: var(--on-dark); }
.foot { background: var(--night); color: var(--on-dark-muted); font-size: 13px; padding-block: 28px calc(40px + env(safe-area-inset-bottom, 0px)); }

.foot-inner { display: flex; justify-content: space-between; align-items: center; }
.fb-open { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---- 要望・バグ（js/feedback.js の部品。前の画面と同じ組み立てを、この色で） ---- */
.fb-sheet { border: none; padding: 0; width: 100%; max-width: 520px; margin: auto auto 0; border-radius: 28px 28px 0 0; background: var(--sheet-bg); color: var(--text); }
@media (min-width: 600px) { .fb-sheet { margin: auto; border-radius: 28px; } }
.fb-sheet::backdrop { background: rgba(var(--sea-shade, 6, 40, 44), 0.4); }
.fb-inner { padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-head b { font-size: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; border: none; margin: 0; padding: 0; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink-wash); font-size: 14px; font-weight: 600; cursor: pointer; }
.fb-kind input:checked + span { background: var(--accent); color: var(--on-dark); }
.fb-kind input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.input { width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--surface); border: 1.5px solid var(--faint); border-radius: 14px; padding: 12px 14px; }
.fb-sheet .btn { width: 100%; height: 52px; border: none; font-size: 16px; cursor: pointer; }
.fb-sheet .btn:disabled { opacity: 0.5; }
.fb-note { display: flex; justify-content: space-between; gap: 12px; margin: -6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.fb-note .num { flex-shrink: 0; }
.fb-msg { margin: 0; font-size: 14px; }
.fb-msg.error { color: var(--error); }
.fb-thanks { text-align: center; padding: 12px 0 4px; display: grid; gap: 6px; }
.fb-thanks b { font-size: 17px; }
.muted { color: var(--muted); }

/* ---- 高さの低いスマホ（iPhone SE など）：中身が入りきるように、リードは次が出るときに消し、絵を小さくする ----
   .short-out は data-k の消える範囲を、低い画面でだけ効かせる（高い画面では消さない）。消えるとき高さも縮めて、下の中身を上げる */
@media (min-width: 900px), (min-height: 721px) { .short-out { --o: 0 !important; } }
@media (max-width: 899px) and (max-height: 720px) {
  .short-out { max-height: calc((1 - var(--o)) * 12em); overflow: hidden; }
  .short-hide { display: none; }
  .split, .route .stage, .share .stage, .day .stage { gap: 14px; padding-bottom: 16px; }
  .split .ch, .route .head { gap: 10px; }
  .h2 { font-size: 26px; }
  .due-list li { padding: 7px 0; }
  .answers li { height: 34px; }
  .stop { padding: 10px 12px; gap: 6px; }
  .share .pics { height: min(36svh, 70vw); }
  .phone { height: min(46svh, 420px); }
}
