/* 未踏日和 ランディングページ（docs/design.md 26章）。色は src/theme.ts と同じ。ダークだけ。 */
:root {
  /* 暗い配色だけ。select の一覧やスクロールバーもそれに合わせる（無いと一覧が白地に白字になる） */
  color-scheme: dark;
  --bg: #0f1216;
  --surface: #171b21;
  --glass: #1b212a;
  --sheet: #161b22;
  --text: #e8eaed;
  --sub: #9aa3ad;
  --line: #272c34;
  --sea: #0a1017;
  --white: #39414d;
  --white-edge: #525b66;
  --accent: #4ea36a;
  --on-accent: #0d1410;
  --select: #e8b84b;
  --here: #4b8ef5;
  --pin: #e04a3c;
  --danger: #e0a75f;
  --muni-line: #4b535f;
  --pref-line: #98a3b2;
  --v1: #33553f; --v2: #3c6d4d; --v3: #47895f; --v4: #55a672; --v5: #74d295;
  --max: 1120px;
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 18, 22, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; font-size: 15px; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--white-edge); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: #5cb87a; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(60% 60% at 70% 30%, rgba(78, 163, 106, 0.18), transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.01em; }
.hero .lead { color: var(--sub); font-size: clamp(16px, 1.6vw, 19px); margin: 20px 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--sub); font-size: 13px; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.hero-phone { display: flex; justify-content: center; }

/* ---------- 端末の枠（スクリーンショットではなくコードで描く） ---------- */
.phone { width: 320px; height: 660px; border-radius: 44px; background: #05070a; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 2px #2a2f38; position: relative; }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #0f1216; box-shadow: inset 0 0 0 2px #1f242c; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--sea); font-size: 12px; }
.screen .map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen .map path { fill: var(--white); stroke: var(--muni-line); stroke-width: .6; stroke-linejoin: round; transition: fill .5s ease; }
.screen .map path.selected { fill: var(--select) !important; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: #101317; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 11px; color: var(--text); }
.stat { position: absolute; top: 40px; left: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); border-right-color: var(--accent); }
.stat b { display: block; font-size: 16px; line-height: 1.1; }
.stat small { color: var(--sub); font-size: 10px; }
.jumps { position: absolute; top: 40px; right: 12px; z-index: 3; display: flex; gap: 5px; }
.jumps span { background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 700; }
.actions { position: absolute; top: 84px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.fab { width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.fab svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fabs { position: absolute; right: 12px; bottom: 168px; z-index: 3; display: flex; gap: 8px; }
.card { position: absolute; left: 12px; right: 12px; top: 92px; z-index: 4; background: var(--glass); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease; }
.card.show { opacity: 1; transform: none; }
.card b { font-size: 14px; display: block; }
.card small { color: var(--sub); display: block; font-size: 10.5px; }
.card .badge { color: var(--accent); font-weight: 700; font-size: 11px; margin-top: 4px; display: block; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--sheet); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 16px 18px; }
.grabber { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet-row { display: flex; justify-content: space-between; align-items: flex-end; }
.sheet-row small { color: var(--sub); font-size: 10.5px; display: block; }
.sheet-row b { font-size: 19px; }
.sheet-row .dist { color: var(--sub); font-size: 12px; }
.sheet-btns { display: flex; gap: 8px; margin-top: 12px; }
.sheet-btns span { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; }
.sheet-btns span.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sheet-btns span.pin { color: var(--pin); }
.sheet-go { margin-top: 8px; text-align: center; padding: 10px 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p { color: var(--sub); margin-top: 14px; font-size: 16px; }
.muted { color: var(--sub); }

.grow { background: linear-gradient(180deg, var(--bg), #0c1014 60%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grow .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.grow-map { position: relative; background: var(--sea); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.grow-map svg { width: 100%; height: auto; display: block; }
.grow-map svg path { fill: var(--white); stroke: var(--muni-line); stroke-width: .35; stroke-linejoin: round; transition: fill .6s ease; }
.grow-map .inset { fill: none; stroke: var(--pref-line); stroke-width: .8; }
.grow-count { position: absolute; top: 20px; left: 20px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; display: flex; align-items: baseline; gap: 6px; }
.grow-count b { font-size: 22px; }
.grow-count small { color: var(--sub); }
.grow-copy h2 { margin-bottom: 14px; }
.legend { display: flex; gap: 6px; align-items: center; margin-top: 22px; flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.legend i { display: inline-block; width: 26px; height: 14px; border-radius: 3px; border: 1px solid var(--muni-line); }
.grow-copy .btn { margin-top: 22px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cardx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, border-color .2s ease; }
.cardx:hover { transform: translateY(-3px); border-color: var(--white-edge); }
.cardx .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; }
.cardx .ic svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cardx h3 { font-size: 17px; margin-bottom: 8px; }
.cardx p { color: var(--sub); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.step h3 { font-size: 17px; margin: 8px 0; }
.step p { color: var(--sub); font-size: 14px; }
.mini { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; }
.mini .pill { display: inline-flex; align-items: center; gap: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 11px; }
.mini .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--here); display: inline-block; box-shadow: 0 0 0 4px rgba(75,142,245,.25); }
.mini .swatches { display: flex; gap: 4px; margin-top: 8px; }
.mini .swatches i { flex: 1; height: 18px; border-radius: 4px; }
.mini .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini .row:last-child { border-bottom: 0; }
.mini .row b { color: var(--text); }
.mini .row.new b { color: var(--accent); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* 右に端末の枠を置く二段組（2026-09-04）。左の箱は端末と同じ高さに伸ばし、縦横を揃える */
.two-phone { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
.phone-col { display: flex; justify-content: center; align-items: flex-start; }
/* 端末の中のアプリ画面（地図以外の画面） */
.screen .app-bar { position: absolute; top: 30px; left: 0; right: 0; height: 44px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 14px; font-weight: 700; background: var(--bg); border-bottom: 1px solid var(--line); }
.screen .app-bar .back { font-size: 22px; line-height: 1; color: var(--sub); }
.screen .app-page { position: absolute; top: 74px; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; overflow: hidden; background: var(--bg); }
.screen .app-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--sheet); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 8px 14px 14px; }
.screen .app-sheet .grabber { margin-bottom: 8px; }
.guide { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.guide h3 { font-size: 16px; margin-bottom: 12px; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 8px; }
.guide li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.guide li::before { counter-increment: g; content: counter(g); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 11px; display: grid; place-items: center; flex: none; }
.guide .note { color: var(--sub); font-size: 12.5px; margin-top: 12px; }
.warn { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(224,167,95,.08); border: 1px solid rgba(224,167,95,.35); color: var(--danger); font-size: 13px; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.preview h4 { margin: 0 0 12px; font-size: 16px; }
.preview .row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.preview .row b { color: var(--text); font-size: 16px; }
.preview .row.new b { color: var(--accent); }
.preview .btnrow { display: grid; gap: 8px; margin-top: 14px; }
.preview .btnrow span { text-align: center; padding: 11px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.preview .btnrow span.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
/* 端末の中では字を落とす */
.screen .preview { border: 0; border-radius: 22px 22px 0 0; padding: 8px 14px 14px; }
.screen .preview h4 { font-size: 13.5px; margin: 6px 0 6px; }
.screen .preview .row { font-size: 11.5px; padding: 6px 0; }
.screen .preview .row b { font-size: 12.5px; }
.screen .preview .btnrow { gap: 6px; margin-top: 10px; }
.screen .preview .btnrow span { padding: 8px; font-size: 12px; border-radius: 9px; }
.screen .preview .note { font-size: 10.5px; margin-top: 8px; }
.checks { display: grid; gap: 8px; margin-top: 18px; color: var(--sub); font-size: 14px; }
.checks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

.marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
/* 端末の隣では 2 列・行の高さを揃え、端末の高さいっぱいに広げる */
.two-phone .marks { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; align-content: stretch; }
.mark { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mark .m { width: 26px; text-align: center; font-size: 16px; color: var(--accent); }
.mark.locked { opacity: .7; }
.mark b { display: block; font-size: 14px; }
.mark small { color: var(--sub); font-size: 12px; display: block; }
.mark .r { color: var(--text); font-size: 11.5px; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.board .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.board .h b { font-size: 17px; }
.board .h span, .board .sub { color: var(--sub); font-size: 13px; }
.board .r { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.board .r.me { background: var(--glass); border-radius: 8px; padding: 7px 6px; margin: 0 -6px; }
.board .r .n { color: var(--sub); text-align: center; font-weight: 700; }
.board .r .p { font-weight: 800; }
.board .goal { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.board .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.board .bar i { display: block; height: 100%; width: 27%; background: var(--accent); }
.screen .board { border: 0; border-radius: 0; }
.screen .board .h b { font-size: 14px; }
.screen .board .h span, .screen .board .sub { font-size: 11px; }
.screen .board .r { font-size: 12.5px; padding: 6px 0; }
.screen .board .r.me { padding: 6px; }
.screen .board .goal { margin-top: 10px; }
.screen .board > p.sub { margin-top: 12px; line-height: 1.6; }

.privacy .cards { grid-template-columns: repeat(3, 1fr); }
.privacy .cardx p { font-size: 13.5px; }

.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.store .os { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.store .os svg { width: 26px; height: 26px; }
.store .state { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--sub); }
.store .state.soon { color: var(--accent); border-color: rgba(78,163,106,.5); }
.store p { color: var(--sub); font-size: 14px; }
.store .btn { align-self: flex-start; margin-top: 6px; }
.req { color: var(--sub); font-size: 12.5px; margin-top: 14px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sub); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--sub); padding: 0 0 16px; font-size: 15px; max-width: 760px; }

/* ---------- お問い合わせ（送るのは harusoft.net の API） ---------- */
[hidden] { display: none !important; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field .label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.req { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(78, 163, 106, 0.14); border-radius: 6px; padding: 2px 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--sub); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 170px; }
.field select option { background-color: var(--surface); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-actions .btn { min-width: 160px; }
.contact-actions .btn:disabled { opacity: .55; cursor: default; transform: none; }
.contact-note { color: var(--danger); font-size: 14px; }
.contact-done { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.contact-done b { display: block; font-size: 17px; margin-bottom: 4px; }
.contact-done p { color: var(--sub); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--sub); font-size: 12.5px; }
footer .container { display: grid; gap: 10px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .links a:hover { color: var(--text); }

/* ---------- reveal ---------- */
/* JS が動くときだけ隠す（JS 無しでも全部読める） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .screen .map path, .grow-map svg path, .card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .grow .container, .two, .two-phone { grid-template-columns: 1fr; }
  .two-phone .marks { grid-auto-rows: auto; }
  .grow .container { grid-template-columns: 1fr; }
  .grow-copy { order: -1; }
  .cards, .steps, .privacy .cards { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 12px; }
  .nav-toggle { display: inline-block; }
  .nav .btn { display: none; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .cards, .steps, .privacy .cards, .dl { grid-template-columns: 1fr; }
  .phone { width: 290px; height: 600px; }
  .two-phone .marks { grid-template-columns: 1fr; }
}
