:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #24302e;
  --muted: #5f6b69;
  --line: #e4e2dc;
  --accent: #2f7d6d;
  --accent-soft: #e5f2ee;
  --accent-text: #ffffff;
  --radius: 14px;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1c2321;
    --text: #e7ecea;
    --muted: #a3afac;
    --line: #2e3836;
    --accent: #6cc4ae;
    --accent-soft: #1f3530;
    --accent-text: #0f1d19;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
a { color: var(--accent); }
a:hover { text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 20px; letter-spacing: 0.04em;
}
.brand img { width: 28px; height: 28px; }
.header-nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 16px;
}
.header-nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero .logo { width: 72px; height: 72px; margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(28px, 6vw, 40px); line-height: 1.4; margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.hero p.lead { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 34em; }
.badge {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px;
}

/* sections */
section.block { padding: 40px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 22px; margin: 0 0 20px; text-align: center; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.price dl { margin: 0; }
.price dt { font-weight: 700; margin-top: 12px; }
.price dt:first-child { margin-top: 0; }
.price dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.note { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

/* document pages */
.doc { padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(24px, 5vw, 30px); line-height: 1.45; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 {
  font-size: 19px; margin: 40px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ol, .doc ul { padding-left: 1.6em; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc li > ul { margin: 6px 0 0; }
.doc .toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; font-size: 15px;
}
.doc .toc ol { margin: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--accent-soft); }
.table-scroll table { min-width: 560px; }

/* 特商法表記のような2列表はスマホで縦積み */
table.kv th { width: 30%; background: var(--accent-soft); font-weight: 700; }
@media (max-width: 560px) {
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: 100%; }
  table.kv tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
  table.kv th, table.kv td { border: 0; }
}

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: s; position: relative; padding: 12px 14px 12px 52px !important;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 !important;
}
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
}
.callout {
  background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px;
}
.callout p:last-child { margin-bottom: 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 28px 0 36px; font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer p { margin: 0; }

.table-scroll td:first-child, .table-scroll th:first-child { min-width: 7.5em; }
