/* くらしの時給 — 記事ファースト静的サイトのスタイル
   トークン: 紙=生成した「計算書」の質感。数字を大きく、正直に見せる。 */
:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #2a2a26;
  --sub: #6d6b60;
  --line: #e4e1d6;
  --green: #0e7a4b;
  --green-ink: #0a5c39;
  --green-soft: #e8f4ed;
  --orange: #a86400;
  --orange-soft: #fdf2df;
  --red: #ab3a2e;
  --red-soft: #fbebe8;
  --receipt: #fffdf6;
  --shadow: 0 1px 2px rgba(42, 42, 38, .06), 0 4px 14px rgba(42, 42, 38, .05);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
}
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green); }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- 共通ヘッダー / フッター ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 980px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.site-header .logo { font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.site-header .logo .bang { color: var(--green); }
.site-header .tag { color: var(--sub); font-size: 12.5px; }
.site-footer {
  margin-top: 72px; padding: 36px 20px 48px;
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--sub); font-size: 13.5px; line-height: 1.9;
}
.site-footer .inner { max-width: 760px; margin: 0 auto; }
.site-footer .links a { margin-right: 1.2em; }
.site-footer small { display: block; margin-top: 14px; color: #a3a196; }

/* ---------- 判定バッジ ---------- */
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; line-height: 1.7; white-space: nowrap;
}
.badge.full-diy     { background: var(--green-soft); color: var(--green-ink); }
.badge.simplify-diy { background: var(--green-soft); color: var(--green-ink); }
.badge.hybrid       { background: var(--orange-soft); color: var(--orange); }
.badge.pro-only     { background: var(--red-soft); color: var(--red); }

.conf { font-weight: 800; }
.conf.c2 { color: var(--green); }   /* ◎ */
.conf.c1 { color: var(--green-ink); } /* ○ */
.conf.c0 { color: var(--orange); }  /* △ */

/* ---------- トップページ ---------- */
.hero { padding: 56px 20px 40px; text-align: center; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(26px, 5.6vw, 40px);
  font-weight: 800; line-height: 1.4; letter-spacing: .02em;
}
.hero h1 .accent { color: var(--green); }
.hero p { max-width: 620px; margin: 0 auto; color: var(--sub); font-size: 15px; }
.hero .stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 26px;
}
.hero .stat { text-align: center; }
.hero .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); }
.hero .stat span { font-size: 12.5px; color: var(--sub); }

.howto {
  max-width: 860px; margin: 8px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
}
.howto .step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: var(--shadow);
}
.howto .step b { display: block; font-size: 14px; margin-bottom: 4px; }
.howto .step span { font-size: 13px; color: var(--sub); line-height: 1.75; display: block; }
.howto .step .no {
  display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--ink); color: var(--card); border-radius: 50%;
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
}

.controls {
  max-width: 860px; margin: 0 auto 18px; padding: 0 20px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.controls .label { font-size: 12.5px; color: var(--sub); margin-right: 2px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 4px 14px; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--card); border-color: var(--ink); }

.task-grid {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px;
}
.task-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s ease;
}
.task-card:hover { transform: translateY(-2px); color: var(--ink); }
.task-card .tc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.task-card .tc-emoji { font-size: 20px; }
.task-card .tc-cat { font-size: 11.5px; color: var(--sub); margin-left: auto; }
.task-card h2 { font-size: 15.5px; margin: 0 0 10px; line-height: 1.55; }
.task-card .tc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 8px; }
.task-card .tc-nums div { font-size: 12px; color: var(--sub); }
.task-card .tc-nums b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.task-card .tc-nums b.save { color: var(--green); }

.trust {
  max-width: 760px; margin: 56px auto 0; padding: 0 20px; font-size: 14px; color: var(--sub);
}
.trust h2 { color: var(--ink); font-size: 18px; }
.trust ul { padding-left: 1.2em; }

/* ---------- 記事ページ ---------- */
.crumbs {
  max-width: 760px; margin: 0 auto; padding: 14px 20px 0;
  font-size: 12.5px; color: var(--sub);
}
.crumbs a { color: var(--sub); }
article { max-width: 760px; margin: 0 auto; padding: 10px 20px 20px; }
article h1 {
  font-size: clamp(22px, 4.6vw, 30px); line-height: 1.55; font-weight: 800;
  margin: 14px 0 16px;
}
article .lead { font-size: 16px; }
article h2 {
  font-size: 20px; margin: 52px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--green);
}
article h2 .idx { color: var(--line); font-weight: 800; margin-right: 6px; }
article p { margin: 0 0 1.1em; }

/* 結論ボックス */
.verdict-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin: 26px 0 8px;
}
.verdict-box .vb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.verdict-box .vb-label { font-weight: 800; font-size: 17px; }
.verdict-box .vb-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 4px 0 14px;
}
.verdict-box .vb-nums div { border-left: 3px solid var(--line); padding-left: 10px; }
.verdict-box .vb-nums b { display: block; font-size: clamp(19px, 3.4vw, 25px); font-weight: 800; line-height: 1.3; }
.verdict-box .vb-nums span { font-size: 12px; color: var(--sub); }
.verdict-box .vb-nums .save b { color: var(--green); }
.vb-cta {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700;
  border-radius: 8px; padding: 10px 22px; text-decoration: none; font-size: 14.5px;
}
.vb-cta:hover { background: var(--green-ink); color: #fff; }
.vb-note { font-size: 13.5px; color: var(--sub); margin-top: 12px; }

/* 比較カード */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 10px; }
.versus .vs-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.versus .vs-card h3 { margin: 0 0 6px; font-size: 13.5px; color: var(--sub); font-weight: 700; }
.versus .vs-card .price { font-size: clamp(18px, 3.6vw, 23px); font-weight: 800; }
.versus .vs-card.diy .price { color: var(--green); }
.versus .vs-card .unit { font-size: 12.5px; color: var(--sub); }
@media (max-width: 560px) { .versus { grid-template-columns: 1fr; } }

/* 計算内訳テーブル */
table.breakdown {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 14px;
}
table.breakdown th, table.breakdown td {
  padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top;
}
table.breakdown th { background: #f2f0e9; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
table.breakdown td:first-child, table.breakdown th:first-child { text-align: left; }
table.breakdown tr:last-child td { border-bottom: none; }
table.breakdown tfoot td { background: var(--green-soft); font-weight: 800; }
.pick-why { display: block; font-size: 12px; color: var(--sub); text-align: left; margin-top: 2px; }
.tag-type { font-size: 11px; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; white-space: nowrap; }

@media (max-width: 560px) {
  table.items { border: 0; background: transparent; }
  table.items thead { display: none; }
  table.items tbody, table.items tfoot { display: block; }
  table.items tbody tr {
    display: block; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
  }
  table.items tbody td { display: block; border: 0; padding: 2px 0; text-align: left; }
  table.items tbody td:first-child { margin-bottom: 4px; }
  table.items tbody td:nth-child(2),
  table.items tbody td:nth-child(3),
  table.items tbody td:nth-child(4) { display: inline-block; margin-right: 14px; font-size: 13px; }
  table.items tbody td:nth-child(2)::before { content: "区分："; color: var(--sub); }
  table.items tbody td:nth-child(3)::before { content: "目安："; color: var(--sub); }
  table.items tbody td:nth-child(4)::before { content: "1回："; color: var(--sub); }
  table.items tfoot {
    display: block; background: var(--green-soft); border-radius: var(--radius);
    padding: 10px 14px; margin-top: 4px;
  }
  table.items tfoot tr { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
  table.items tfoot td { display: block; border: 0; padding: 0; text-align: left; }
  table.items tfoot td:empty { display: none; }
  table.items tfoot td::before { content: none; }
  table.items tfoot tr:last-child td { font-weight: 800; }

  table.regions { border: 0; background: transparent; }
  table.regions thead { display: none; }
  table.regions tbody, table.regions tr, table.regions td { display: block; width: 100%; }
  table.regions tbody tr {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
  }
  table.regions td { border: 0; padding: 2px 0; text-align: left; }
  table.regions td:first-child { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
  table.regions td:nth-child(2)::before { content: "表示料金帯："; color: var(--sub); font-size: 12.5px; }
  table.regions td:nth-child(3)::before { content: "中央値："; color: var(--sub); font-size: 12.5px; }
  table.regions td:nth-child(4)::before { content: "全国基準比："; color: var(--sub); font-size: 12.5px; }
  table.regions td:nth-child(5)::before { content: "出典・備考："; color: var(--sub); font-size: 12.5px; }
}

/* レシート（買い物リスト） */
.receipt {
  background: var(--receipt); border: 1px dashed #c9c4b2; border-radius: 6px;
  max-width: 430px; margin: 8px 0 4px; padding: 18px 22px 14px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
}
.receipt .r-head { text-align: center; font-weight: 800; letter-spacing: .35em; margin-bottom: 10px; color: var(--ink); }
.receipt ul { list-style: none; margin: 0 0 8px; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted #d8d3c2; }
.receipt li .r-item { flex: 1; }
.receipt li .r-item a { font-weight: 700; }
.receipt li.own { color: var(--sub); }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; padding-top: 10px; border-top: 1.5px solid var(--ink); }
.receipt .r-note { font-size: 11.5px; color: var(--sub); margin-top: 8px; line-height: 1.7; }
.pick-block { font-size: 13.5px; background: var(--green-soft); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.pick-block b { color: var(--green-ink); }

/* 手順・失敗・プロ */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 52px;
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; line-height: 34px; text-align: center;
  background: var(--ink); color: var(--card); border-radius: 50%; font-weight: 800; font-size: 15px;
}
ol.steps b.st { display: block; font-size: 15.5px; margin-bottom: 2px; }
ol.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 4px;
  width: 1px; background: var(--line);
}
ul.fails, ul.procases { padding-left: 0; list-style: none; margin: 0; }
ul.fails li, ul.procases li {
  padding: 10px 14px 10px 40px; margin-bottom: 8px; border-radius: 8px; position: relative;
}
ul.fails li { background: var(--red-soft); }
ul.fails li::before { content: "✕"; position: absolute; left: 14px; font-weight: 800; color: var(--red); }
ul.procases li { background: var(--orange-soft); }
ul.procases li::before { content: "呼"; position: absolute; left: 14px; font-weight: 800; color: var(--orange); font-size: 13px; }

/* 計算機 */
.calculator {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.calculator .calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.calculator label { font-size: 12.5px; color: var(--sub); display: block; margin-bottom: 4px; }
.calculator input {
  width: 100%; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit; font-variant-numeric: tabular-nums; background: #fff;
}
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.calc-out div { border-left: 3px solid var(--green); padding-left: 10px; }
.calc-out b { display: block; font-size: 20px; font-weight: 800; }
.calc-out span { font-size: 12px; color: var(--sub); }
.calc-note { font-size: 12px; color: var(--sub); margin-top: 12px; }

/* 出典・関連 */
.sources { font-size: 13.5px; color: var(--sub); }
.sources ul { padding-left: 1.2em; margin: 8px 0; }
.updated-note {
  margin-top: 40px; padding: 14px 18px; background: #f2f0e9; border-radius: 8px;
  font-size: 12.5px; color: var(--sub); line-height: 1.9;
}
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.related a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.6;
}
.related a:hover { border-color: var(--green); }
.related .r-save { display: block; font-weight: 800; color: var(--green); font-size: 14px; margin-top: 2px; }

/* 固定ページ */
.page { max-width: 760px; margin: 0 auto; padding: 30px 20px; }
.page h1 { font-size: 24px; }
@media (max-width: 560px) { .page h1 { font-size: 21px; } }

/* ---------- ヘッダーナビ（拡張分） ---------- */
.site-nav { margin-left: auto; display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.site-nav a { color: var(--sub); text-decoration: none; }
.site-nav a:hover { color: var(--green-ink); text-decoration: underline; }
@media (max-width: 640px) {
  .site-header .inner { gap: 6px 14px; }
  .site-header .tag { display: none; }
  .site-nav { width: 100%; margin-left: 0; }
}

/* ---------- プロ送客CTA ---------- */
.pro-cta {
  background: var(--card); border: 1.5px solid var(--line); border-left: 5px solid var(--orange);
  border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 8px;
}
.pro-cta b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.pro-cta p { font-size: 13.5px; color: var(--sub); margin: 0 0 10px; }
.pro-cta-btn {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 700;
  border-radius: 8px; padding: 9px 20px; text-decoration: none; font-size: 14px;
}
.pro-cta-btn:hover { background: #8a5100; color: #fff; }
.pro-cta-disc { font-size: 12px; color: var(--sub); margin-top: 10px !important; }
.vb-pro { font-size: 13px; color: var(--sub); margin-top: 10px; }

/* /pro/ ページ */
.pro-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 20px; margin-bottom: 16px; }
.pro-item h2 { font-size: 17px; margin: 0 0 4px; border: none; padding: 0; }
.pro-item h2 a { color: var(--ink); text-decoration: none; }
.pro-item-sub { font-size: 13px; color: var(--sub); margin: 0 0 10px; }
.pro-item .procases li { padding: 8px 12px 8px 36px; font-size: 13.5px; }

/* ---------- シミュレーション ---------- */
.sim-box { margin-top: 24px; }
.sim-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 4px; border-bottom: 1px dotted var(--line);
}
.sim-row label { flex: 1 1 240px; font-size: 15px; }
.sim-row input[type="checkbox"] { transform: scale(1.25); margin-right: 6px; }
.sim-freq input {
  width: 64px; font-size: 15px; padding: 5px 8px; border: 1px solid var(--line);
  border-radius: 6px; font-variant-numeric: tabular-nums;
}
.sim-freq { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.sim-meta { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.sim-out { margin: 18px 0 6px; }
.sim-top3 { font-size: 14px; margin-top: 6px; }
.sim-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sim-actions .chip { font-size: 13.5px; padding: 8px 18px; }
