/* ふたり暮らしのおトク診断 — 共通スタイル */
:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f1f3f0;
  --ink: #1a1a1a;
  --sub: #5c5b57;
  --muted: #8b8a85;
  --line: #e5e4df;
  --accent: #0f766e;
  --accent-dark: #0b5c55;
  --accent-soft: #e6f2f0;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --line-green: #06c755;
  --max: 480px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.75; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* header */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px 0; position: sticky; top: 0; z-index: 50;
}
.site-header .inner { max-width: 720px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 15px; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: -.01em; }
.logo span { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* type */
h1 { font-size: 26px; line-height: 1.45; letter-spacing: -.01em; }
h2 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
p { font-size: 15px; }
.lead { font-size: 15.5px; color: var(--sub); }
.small { font-size: 12.5px; color: var(--muted); }
.center { text-align: center; }

/* hero */
.hero { background: linear-gradient(170deg, var(--accent-soft) 0%, var(--bg) 65%); padding: 36px 0 32px; }
.hero h1 { margin-bottom: 12px; }
.hero .sub { font-size: 14.5px; color: var(--sub); margin-bottom: 20px; }
.badges { display: flex; gap: 8px; margin: 18px 0; }
.badges div {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent);
}

/* buttons */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 16.5px;
  border: none; border-radius: 12px; padding: 17px 16px; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn small { display: block; font-size: 11.5px; font-weight: 600; opacity: .92; margin-top: 3px; }
.btn-line { background: var(--line-green); }
.btn-line:hover { background: #05b34c; }
.btn-ghost { background: transparent; color: var(--sub); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

/* lists */
.checks { list-style: none; }
.checks li { padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); font-size: 14.5px; position: relative; }
.checks li:last-child { border-bottom: none; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 42px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.steps li b { display: block; font-size: 15px; margin-bottom: 2px; }
.steps li p { font-size: 13.5px; color: var(--sub); }

/* callout */
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 14px 16px; margin: 16px 0; font-size: 14px; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout b { display: block; margin-bottom: 4px; }

/* table */
table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 12px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--sub); font-size: 12.5px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 800; border-top: 2px solid var(--muted); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 14px; }
.site-footer a { font-size: 12.5px; color: var(--sub); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.9; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.legal h1 { font-size: 22px; margin-bottom: 6px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { font-size: 14px; color: var(--ink); }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 5px 0; }
.legal .updated { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

@media (min-width: 640px) {
  h1 { font-size: 30px; }
  .hero { padding: 52px 0 44px; }
}
