/* okane-simulator.com デザインシステム v2 (2026-07-10)
   根拠: Vercel/Linear/Raycast実装観察 + NN/g計算機ツール推奨(2026-07-10リサーチ)
   原則: モノクロ階調 + 単一アクセント(深緑・金融の誠実さ) + ヘアライン境界 + 角丸6-10px
   禁止: 紫/インディゴグラデ・drop-shadow多用・16px超の角丸(AIテンプレの代名詞) */
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --text: #18181B;
  --sub: #6E7076;
  --border: rgba(17, 17, 19, 0.10);
  --border-strong: rgba(17, 17, 19, 0.18);
  --accent: #0E7A55;
  --accent-text: #0B6647;
  --accent-weak: rgba(14, 122, 85, 0.08);
  --accent-border: rgba(14, 122, 85, 0.35);
  --danger: #B42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0C;
    --surface: #141416;
    --surface-2: #1A1B1E;
    --text: #F2F3F5;
    --sub: #9A9CA3;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #2FBF8F;
    --accent-text: #46D9A9;
    --accent-weak: rgba(47, 191, 143, 0.10);
    --accent-border: rgba(47, 191, 143, 0.35);
    --danger: #F97066;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.85; font-size: 15px;
  font-feature-settings: "palt";
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .inner { max-width: 720px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.site-header .brand { font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.site-header .brand span { color: var(--accent-text); }
.site-header nav a { color: var(--sub); font-size: 13px; text-decoration: none; margin-left: 18px; }
.site-header nav a:hover { color: var(--text); }

/* 見出し */
h1, h2, h3, .brand { font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }
.hero { padding: 44px 0 8px; }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
h1 { font-size: clamp(23px, 5vw, 28px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.45; margin: 8px 0 10px; }
.meta { color: var(--sub); font-size: 12.5px; margin-bottom: 26px; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 30px 0 10px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 15px; font-weight: 700; margin: 20px 0 6px; }
p, li { font-size: 14.5px; }
ul, ol { padding-left: 22px; margin: 8px 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }

/* カード: 影は境界線代わりの1pxのみ(Vercel方式) */
.card {
  background: var(--surface); border-radius: 10px; padding: 26px 28px; margin-bottom: 14px;
  box-shadow: 0 0 0 1px var(--border);
}
.note { color: var(--sub); font-size: 12.5px; }
.pr-label { display: inline-block; background: var(--surface-2); color: var(--sub); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; letter-spacing: 0.06em; box-shadow: 0 0 0 1px var(--border); }
.warn { border-left: 2px solid var(--danger); background: var(--surface-2); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 14px 0; font-size: 14px; }

/* テーブル: 横罫線のみのヘアライン */
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--sub); letter-spacing: 0.06em; padding: 8px 10px 6px; border-bottom: 1px solid var(--border-strong); }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }

/* フォーム */
.field { margin-bottom: 20px; }
.field > label, .field > .flabel { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.field .why { font-weight: 400; color: var(--sub); font-size: 12px; margin-left: 6px; }
input[type="number"], input[type="text"] {
  width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-variant-numeric: tabular-nums;
}
input:focus { outline: 2px solid var(--accent-border); outline-offset: 1px; border-color: transparent; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices button {
  font-size: 13px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; font-weight: 500; text-align: left;
  transition: border-color .12s, background .12s;
}
.choices button:hover { border-color: var(--accent-border); }
.choices button.active { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-text); font-weight: 700; }
.inline-inputs { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-inputs .mini { flex: 1; min-width: 150px; }
.mini label { display: block; font-weight: 500; font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.usecase-note { font-size: 12.5px; color: var(--sub); margin-top: 8px; }

/* 結果: リアルタイム更新・意味づけ文つき(NN/g) */
.results { background: var(--surface-2); border-radius: 10px; padding: 20px 22px; margin-top: 6px; box-shadow: 0 0 0 1px var(--accent-border); }
.results .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.results .row:last-of-type { border-bottom: none; }
.results .label { font-size: 13px; font-weight: 500; color: var(--sub); }
.results .value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-family: "Zen Kaku Gothic New", sans-serif; }
.results .value.big { font-size: 27px; color: var(--accent-text); }
.results .unit { font-size: 13px; font-weight: 500; margin-left: 2px; color: var(--sub); }
.results .context { font-size: 12.5px; color: var(--sub); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.results table { background: transparent; }
.invalid { color: var(--sub); font-size: 13.5px; padding: 4px 0; }
.best td { color: var(--accent-text); font-weight: 700; }

/* CTA: 結果直下・1つだけ */
.cta { display: block; text-align: center; background: var(--accent); color: #fff; padding: 13px 16px; border-radius: 8px; font-weight: 700; font-size: 14.5px; text-decoration: none; margin: 18px 0 6px; transition: filter .12s; }
.cta:hover { filter: brightness(1.08); }
.cta-sub { text-align: center; color: var(--sub); font-size: 12px; }

/* ツール一覧カード */
.tool-card { display: block; background: var(--surface); border-radius: 10px; padding: 22px 26px; margin-bottom: 12px; text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px var(--border); transition: box-shadow .12s; }
.tool-card:hover { box-shadow: 0 0 0 1px var(--accent-border); }
.tool-card h2 { font-size: 16px; margin: 0 0 4px; color: var(--accent-text); }
.tool-card p { font-size: 13.5px; color: var(--sub); }
.tool-card .arrow { color: var(--sub); font-size: 12px; }

footer.site-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer a { color: var(--sub); font-size: 12.5px; text-decoration: none; }
footer.site-footer a:hover { color: var(--text); }

/* モバイル: 数値テーブルは折り返さず横スクロール(標準パターン) */
@media (max-width: 600px) {
  .results table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .results td, .results th { white-space: nowrap; }
  .card { padding: 22px 20px; }
}
