:root {
  --bg: #070d0a;
  --panel: #0f1813;
  --panel-2: #142019;
  --line: #22322a;
  --text: #e8efe9;
  --muted: #8fa397;
  --green: #8bd43a;
  --green-2: #5fae2a;
  --green-dim: #2c4a1c;
  --grey-line: #b9c2bc;
  --warn: #f2b84b;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px; line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green); }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ヘッダー */
.site-head { border-bottom: 1px solid var(--line); background: #0a120e; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: .02em; text-decoration: none; color: var(--text); }
.logo svg { width: 30px; height: 30px; }
.logo em { font-style: normal; color: var(--green); }
.tagline { color: var(--muted); font-size: 13px; flex: 1; min-width: 180px; }
.badge { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.btn-primary { background: var(--green); color: #0b1408; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; }
.btn-primary:hover { background: #9be34a; }
.btn-ghost { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; }

/* トップ */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { color: var(--muted); margin: 0 auto 24px; max-width: 640px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto 32px; }
.points div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--muted); }
.points b { display: block; color: var(--text); font-size: 15px; }

/* ステップ式フォーム */
.stepper { max-width: 640px; margin: 0 auto 48px; background: var(--panel); border: 2px solid var(--green-2); border-radius: 18px; padding: 24px 20px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--green); transition: width .25s; }
.step-no { color: var(--green); font-size: 13px; font-weight: 700; text-align: center; }
.step h2 { text-align: center; font-size: 22px; margin: 4px 0 6px; }
.step .hint { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choice { background: var(--panel-2); border: 1px solid var(--line); border-bottom: 4px solid #0a120e; border-radius: 10px; padding: 14px 8px; font-weight: 700; font-size: 16px; }
.choice:hover, .choice.on { border-color: var(--green); background: var(--green-dim); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select {
  width: 100%; background: #0a120e; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 18px; font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--green); border-color: transparent; }
.row { display: flex; gap: 10px; align-items: end; }
.row > .field { flex: 1; }
.unit { color: var(--muted); padding-bottom: 26px; }
.addr-note { font-size: 13px; color: var(--muted); min-height: 1.5em; margin: -6px 0 12px; }
.addr-note.err { color: var(--warn); }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.step-nav .btn-primary { flex: 1; padding: 14px; font-size: 17px; }
.step-nav .btn-primary:disabled { background: #34472a; color: #7d8d78; cursor: not-allowed; }
.privacy { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* 結果 */
.result { padding: 20px 0 40px; }
.cond { display: flex; flex-wrap: wrap; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.cond > div { padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; flex: 1 1 auto; }
.cond > div:first-child { border-left: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cond b { display: block; font-size: 15px; white-space: nowrap; }
.cond small { color: var(--muted); font-size: 11px; }
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.price { font-size: clamp(34px, 6vw, 44px); font-weight: 800; color: var(--green); line-height: 1.1; letter-spacing: .01em; }
.range { color: var(--muted); font-size: 13px; margin-top: 6px; }
.range b { color: var(--text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.up { color: var(--green); }
.down { color: #ff8a7a; }
.note-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.note-box strong { color: var(--green); }
.mini { display: flex; gap: 14px; align-items: center; }
.mini .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--green-dim); display: grid; place-items: center; flex: none; }
.mini .ic svg { width: 24px; height: 24px; stroke: var(--green); }
.mini small { color: var(--muted); font-size: 12px; display: block; }
.mini b { font-size: 20px; color: var(--green); display: block; line-height: 1.3; }
#map { height: 230px; border-radius: 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; }
.tabs button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 13px; }
.tabs button.on { background: var(--green-2); border-color: var(--green-2); color: #071006; font-weight: 700; }
.chart-box { position: relative; height: 300px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 4px; border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--panel-2); }
th:first-child, td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--muted); }
.flow b { color: var(--text); display: block; margin-bottom: 4px; }
.ad { border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 12px; text-align: center; padding: 28px 10px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 24px 0 40px; }
.foot p { margin: 0 0 8px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .cond > div { border-left: 0; border-top: 1px solid var(--line); flex-basis: 50%; }
  .cond > div:first-child { flex-basis: 100%; border-top: 0; }
  .cond b { white-space: normal; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .points { grid-template-columns: 1fr; }
  .choices.c3 { grid-template-columns: repeat(2, 1fr); }
  .tagline { display: none; }
  .site-head .badge { display: none; }
}

.navlink { color: var(--text); text-decoration: none; font-size: 14px; border-bottom: 1px solid transparent; }
.navlink:hover { border-color: var(--green); }
.foot-links a { color: var(--muted); margin-right: 8px; }

/* 地域ページ・固定ページ */
.page { padding: 28px 0 48px; }
.page h1 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.4; margin: 0 0 8px; }
.page h2 { font-size: 20px; margin: 32px 0 12px; padding-left: 10px; border-left: 4px solid var(--green); }
.page .lead { color: var(--muted); margin: 0 0 20px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards2 .price { font-size: 34px; }
.spark { width: 100%; height: 120px; margin-top: 10px; }
.cta { display: inline-block; text-decoration: none; margin-top: 14px; }
.links { columns: 4 160px; column-gap: 16px; padding: 0; list-style: none; margin: 0; }
.links li { break-inside: avoid; padding: 3px 0; font-size: 14px; }
.links small { color: var(--muted); }
.prose p, .prose li { color: #cfdad3; }
.prose { max-width: 820px; }
@media (max-width: 700px) { .cards2 { grid-template-columns: 1fr; } }
