/* ============================================================
   実家の放置コスト診断 — モバイルファースト
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #26221d;
  --ink-soft: #5c554b;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #e7e0d6;
  --accent: #c2571f;        /* 行動色（CTA） */
  --accent-dark: #a84717;
  --green: #2e6e4e;         /* 副CTA */
  --green-dark: #245a40;
  --danger: #b3261e;
  --warn-bg: #fdf3e7;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

main, header.hero { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.pr-note {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px 8px;
  background: #f1ece3;
}

/* --- Hero --- */
.hero { text-align: center; padding: 40px 16px 32px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 28px; line-height: 1.45; letter-spacing: 0.02em; }
.hero h1 .accent { color: var(--accent); display: inline-block; }
.hero-sub { margin: 18px 0 26px; color: var(--ink-soft); font-size: 15px; text-align: left; }

/* --- Steps --- */
.steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.card h2 { font-size: 20px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }

/* --- Form --- */
fieldset { border: none; margin-bottom: 22px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
fieldset label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
fieldset label:has(input:checked) {
  border-color: var(--accent);
  background: var(--warn-bg);
  font-weight: 600;
}
fieldset input[type="radio"] { margin-right: 8px; accent-color: var(--accent); }
.form-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  padding: 15px 32px;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-dark); }
.btn-secondary:hover { background: var(--green-dark); }
.btn-block { display: block; width: 100%; margin-top: 8px; }

/* --- Result --- */
.result-headline { text-align: center; border-color: var(--accent); border-width: 2px; }
.result-label { font-size: 14px; color: var(--ink-soft); }
.result-amount { font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1.3; }
.result-annual { font-size: 14px; color: var(--ink-soft); }

table.breakdown, table.options-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.breakdown th, table.options-table th {
  text-align: left;
  font-weight: 600;
  padding: 9px 8px 9px 0;
  border-bottom: 1px solid var(--line);
  width: 62%;
  vertical-align: top;
}
table.breakdown td, table.options-table td {
  text-align: right;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}
table.options-table th { width: 7em; white-space: nowrap; }
table.options-table td { text-align: left; white-space: normal; }
table.breakdown .total-row th, table.breakdown .total-row td {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  font-weight: 800;
  font-size: 15px;
}
.small-note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* --- Risk cards --- */
.risk-card { border-left: 5px solid var(--line); }
.risk-card p { font-size: 14px; color: var(--ink-soft); }
.risk-high { border-left-color: var(--danger); background: #fdf1f0; }
.risk-high h3 { color: var(--danger); }
.risk-mid { border-left-color: var(--accent); background: var(--warn-bg); }
.risk-low { border-left-color: var(--line); }

/* --- CTA --- */
.cta-card { border-color: var(--accent); border-width: 2px; }
.cta-card p { font-size: 14px; margin-bottom: 12px; }
.cta-note { font-size: 12px; color: var(--ink-soft); margin: 6px 0 14px; }

.disclaimer {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 4px 2px 28px;
}

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.faq details p { font-size: 14px; color: var(--ink-soft); padding-top: 8px; }

/* --- Footer --- */
footer { text-align: center; padding: 28px 16px 40px; font-size: 12px; color: var(--ink-soft); }
footer nav { margin-bottom: 8px; display: flex; gap: 16px; justify-content: center; }
footer a { color: var(--ink-soft); }

/* --- Subpages --- */
.site-header { text-align: center; padding: 16px 16px 0; }
.site-header a { font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; }
.site-header a:hover { color: var(--accent); }
main.sub { padding-top: 28px; }
.back-link { display: inline-block; color: var(--green); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.center { text-align: center; margin-bottom: 32px; }

/* --- Article --- */
.article h1 { font-size: 24px; line-height: 1.5; margin-bottom: 6px; }
.article-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.article h2 { font-size: 18px; margin: 28px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
.article p { font-size: 15px; margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; font-size: 15px; }
.article li { margin-bottom: 6px; }
.article table { margin-bottom: 14px; }
.article a { color: var(--green); }
.article .src { font-size: 12px; color: var(--ink-soft); }

/* --- Column list --- */
.column-list { list-style: none; margin: 0; }
.column-list li { border-bottom: 1px solid var(--line); margin: 0; }
.column-list li:last-child { border-bottom: none; }
.column-list a { display: block; padding: 12px 2px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.column-list a:hover { color: var(--accent); }

[hidden] { display: none !important; }

@media (min-width: 640px) {
  .hero h1 { font-size: 34px; }
  .steps { flex-direction: row; }
  .step { flex: 1; }
}
