/* SAMAKAN 法務ドキュメント共通スタイル
   LP（index.html）と地続き。トークンは _design-ref-lp と完全一致。
   特商法・プライバシーポリシー・利用規約の3ページで共有。 */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --heading: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --indigo: #4f46e5;
  --indigo-hover: #4338ca;
  --indigo-soft: #eef2ff;
  --warn: #f59e0b;
  --warn-soft: #fffbeb;
  --font-jp: 'Noto Sans JP', system-ui, sans-serif;
  --font-num: 'Inter', system-ui, sans-serif;
  --maxw: 1120px;
  --docw: 760px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
img, svg { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.3; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 8px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* buttons (LPと同一) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-family: var(--font-jp); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; border: 1px solid transparent; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-hover); text-decoration: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
:where(a, button):focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--indigo); }

/* header (LPと同一) */
header.site { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.site img { height: 28px; display: block; }

/* document */
main.doc { padding: 40px 0 8px; }
main.doc .wrap { max-width: var(--docw); }
.doc-head { margin-bottom: 28px; }
.doc-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--indigo); }
.doc-head h1 { margin: 8px 0 10px; }
.doc-head .updated { font-size: 13px; color: var(--muted); }
.doc-head .updated .num { margin-left: 2px; }

.lead { font-size: 16px; color: var(--body); }
.doc section { margin-top: 8px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc strong, .doc b { color: var(--heading); font-weight: 700; }

/* 注意ボックス（税理士法境界など） */
.notice { background: var(--indigo-soft); border: 1px solid #dfe3ff; border-radius: 14px; padding: 16px 18px; margin: 18px 0; font-size: 14.5px; color: var(--heading); }
.notice b { color: var(--heading); }

/* 特商法などの定義テーブル */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 14.5px; } /* collapseだとborder-radiusが効かない */
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; background: #fbfcfe; color: var(--heading); font-weight: 700; white-space: nowrap; }
@media (max-width: 620px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { border-bottom: 0; padding-bottom: 2px; white-space: normal; }
  .spec td { padding-top: 2px; }
  .spec tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .spec tr:last-child { border-bottom: 0; }
}

/* 公開前に埋める要確認プレースホルダ（公開前に必ず除去/確定） */
.todo { background: var(--warn-soft); border: 1px dashed var(--warn); border-radius: 6px; padding: 1px 7px; color: #b45309; font-weight: 700; font-size: 0.92em; }

/* footer (LPと同一) */
footer.site { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0; margin-top: 56px; }
footer.site .top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
footer.site nav a { color: var(--body); }
footer.site nav a:hover { color: var(--heading); }
footer.site nav a[aria-current='page'] { color: var(--heading); font-weight: 700; }
footer.site .legal { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.7; }
