/* =========================================================================
   oyano-rogo-site  design system
   -------------------------------------------------------------------------
   設計方針:
   - 親の老後・介護・相続を「準備する」子ども世代向けの実務メディア
   - 落ち着いた紙色 + 深い藍 + 控えめなセージ。煽らない、案内書のトーン
   - 見出しは明朝、本文はゴシックで「ガイドブック / 公的案内」の印象
   - モバイルファースト、本文最大幅 720px (日本語読書に最適)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* color: surface */
  --bg:            #faf8f4;   /* 暖かい紙色 */
  --surface:       #ffffff;
  --surface-alt:   #f4f1ea;   /* 補助の和紙色 */
  --surface-sink:  #efece4;   /* もう一段落とした面 */

  /* color: text */
  --text:          #1f2937;   /* 主本文 (黒すぎない) */
  --text-muted:    #5c6776;
  --text-soft:     #7a8392;
  --text-on-dark:  #f7f5ef;

  /* color: line */
  --line:          #e5e1d8;
  --line-strong:   #c8c3b6;

  /* color: brand */
  --primary:       #2c5282;   /* 深い藍 = 信頼 */
  --primary-hover: #234268;
  --primary-soft:  #e8eff6;
  --accent:        #5a7a6e;   /* 落ち着いたセージ */
  --accent-soft:   #e9efea;

  /* color: semantic boxes */
  --note-line:     #1e5a8a;
  --note-bg:       #ecf3fa;
  --warning-line:  #b45309;
  --warning-bg:    #fdf3e2;
  --official-line: #2f6e5c;
  --official-bg:   #e8f1ed;
  --pr-bg:         #f1ede3;
  --pr-text:       #6b5e48;

  /* radius / shadow */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.04);
  --shadow:    0 4px 16px rgba(31, 41, 55, 0.06);

  /* spacing scale (8pt) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* layout */
  --wrap-page:    1080px;
  --wrap-narrow:   720px;   /* 記事本文 */
  --wrap-gutter:    20px;

  /* typography families */
  --font-sans:
    -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Yu Gothic", "YuGothic",
    "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-serif:
    "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Yu Mincho", "YuMincho",
    "Noto Serif JP", "Times New Roman", serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* type scale (mobile base 16px) */
  --fs-xs:   0.8125rem;   /* 13 */
  --fs-sm:   0.875rem;    /* 14 */
  --fs-base: 1rem;        /* 16 */
  --fs-md:   1.0625rem;   /* 17 */
  --fs-lg:   1.1875rem;   /* 19 */
  --fs-xl:   1.375rem;    /* 22 */
  --fs-2xl:  1.625rem;    /* 26 */
  --fs-3xl:  2rem;        /* 32 */

  --lh-tight:  1.4;
  --lh-normal: 1.7;
  --lh-body:   1.85;      /* 長文本文 */
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(44, 82, 130, 0.35);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration-color: currentColor;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

::selection {
  background: rgba(44, 82, 130, 0.15);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }


/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, ul, ol, dl, blockquote, figure, table {
  margin: 0;
}

small { font-size: var(--fs-sm); color: var(--text-muted); }

code {
  padding: 0.1em 0.4em;
  background: var(--surface-alt);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}


/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-page);
  margin-inline: auto;
  padding-inline: var(--wrap-gutter);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: var(--wrap-gutter);
}

.section {
  padding-block: var(--sp-7);
}
.section + .section { padding-top: 0; }

.section-head {
  margin-bottom: var(--sp-5);
}
.section-head h2 {
  font-size: var(--fs-xl);
}
.section-head .section-lead {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-5); }


/* -------------------------------------------------------------------------
   5. Site header / footer
   ------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: var(--fs-sm);
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.site-brand__name {
  line-height: 1.2;
}
.site-brand__tag {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0;
}
.site-nav {
  display: none;
  gap: var(--sp-5);
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.site-nav a:hover { color: var(--primary); }

@media (min-width: 720px) {
  .site-nav { display: inline-flex; }
}

.site-footer {
  background: var(--surface-sink);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7);
  margin-top: var(--sp-8);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer ul li + li { margin-top: 6px; }
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
}


/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;       /* タップしやすい高さ */
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn--ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.btn--block { width: 100%; }
.btn__sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}


/* -------------------------------------------------------------------------
   7. Hero (top)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, rgba(250, 248, 244, 0.97) 0%, rgba(250, 248, 244, 0.93) 42%, rgba(250, 248, 244, 0.56) 100%),
    url("/assets/images/ogp-hero.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-8);
}
.hero .wrap {
  position: relative;
}
.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
}
.hero h1 {
  font-size: clamp(1.5rem, 5.2vw, 2.25rem);
  line-height: 1.45;
}
.hero__lead {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 640px;
}
.hero__actions {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

@media (min-width: 900px) {
  .hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    background-position: center right;
  }
}


/* -------------------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------------------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card__eyebrow {
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}
.card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}
.card__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* situation cards (状況別の入口) */
.situation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  transition: border-color .15s ease, background .15s ease;
}
.situation-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.situation-card__num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.situation-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.5;
}
.situation-card__sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
}

/* category card (top) */
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color .15s ease, transform .15s ease;
}
.category-card:hover { border-color: var(--primary); }
.category-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  margin-bottom: 6px;
}
.category-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.category-card__arrow {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--primary);
}

/* article list item (横長カード) */
.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.article-list__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color .15s ease;
}
.article-list__item:hover { border-color: var(--line-strong); }
.article-list__item a {
  text-decoration: none;
  color: var(--text);
  display: block;
}
.article-list__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.article-list__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.5;
}
.article-list__desc {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}


/* -------------------------------------------------------------------------
   9. Breadcrumb
   ------------------------------------------------------------------------- */
.breadcrumb {
  padding-block: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-soft);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }


/* -------------------------------------------------------------------------
  10. Article (本文)
   ------------------------------------------------------------------------- */
.article-header {
  padding-block: var(--sp-5) var(--sp-4);
}
.article-category {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}
.article-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.5;
}
.article-lead {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-md);
}
.article-eyecatch {
  margin: var(--sp-5) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

.content-figure {
  margin: var(--sp-6) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.content-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.content-figure figcaption {
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.article-body { font-size: var(--fs-base); }
.article-body > * + * { margin-top: var(--sp-4); }

.article-body h2 {
  margin-top: var(--sp-7);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--line);
  font-size: var(--fs-xl);
  line-height: 1.45;
}
.article-body h3 {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--text);
}
.article-body p {
  line-height: var(--lh-body);
}
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
  line-height: 1.85;
}
.article-body ul li + li,
.article-body ol li + li { margin-top: 6px; }

.article-body blockquote {
  border-left: 3px solid var(--line-strong);
  padding: var(--sp-2) var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.article-body a { color: var(--primary); }


/* -------------------------------------------------------------------------
  11. Article components
   ------------------------------------------------------------------------- */

/* 11.1 last-reviewed: 確認時点の表示枠 */
.last-reviewed {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
.last-reviewed strong {
  color: var(--text);
  font-weight: 600;
}

/* 11.2 toc: 目次 */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}
.toc summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "＋";
  color: var(--text-muted);
  font-weight: 400;
  margin-left: var(--sp-3);
}
.toc[open] summary::after { content: "−"; }
.toc__list {
  list-style: none;
  padding: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
}
.toc__list li { margin-top: 8px; }
.toc__list ol {
  list-style: none;
  padding-left: var(--sp-4);
  margin-top: 6px;
  border-left: 1px solid var(--line);
}
.toc__list ol li {
  position: relative;
  padding-left: var(--sp-3);
  color: var(--text-muted);
}
.toc__list a {
  color: var(--text);
  text-decoration: none;
}
.toc__list a:hover { color: var(--primary); text-decoration: underline; }

/* 11.3 note: 補足 */
.note,
.warning,
.official-info {
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid;
}
.note__title,
.warning__title,
.official-info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-2);
}
.note__title::before,
.warning__title::before,
.official-info__title::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.note__body,
.warning__body,
.official-info__body {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text);
}
.note__body > * + *,
.warning__body > * + *,
.official-info__body > * + * { margin-top: var(--sp-2); }

.note {
  background: var(--note-bg);
  border-color: rgba(30, 90, 138, 0.18);
}
.note__title { color: var(--note-line); }
.note__title::before { background: var(--note-line); }

/* 11.4 warning: 注意 */
.warning {
  background: var(--warning-bg);
  border-color: rgba(180, 83, 9, 0.22);
}
.warning__title { color: var(--warning-line); }
.warning__title::before { background: var(--warning-line); }

/* 11.5 official-info: 公式情報リンク */
.official-info {
  background: var(--official-bg);
  border-color: rgba(47, 110, 92, 0.22);
}
.official-info__title { color: var(--official-line); }
.official-info__title::before { background: var(--official-line); }
.official-info__list {
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
}
.official-info__list li {
  padding: 8px 0;
  border-top: 1px dashed rgba(47, 110, 92, 0.25);
}
.official-info__list li:first-child { border-top: 0; padding-top: 0; }
.official-info__list a { color: var(--official-line); }
.official-info__source {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* 11.6 checklist: 確認リスト */
.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.checklist__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-3);
}
.checklist__list {
  list-style: none;
  padding: 0;
  font-size: var(--fs-base);
}
.checklist__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.checklist__list li:first-child { border-top: 0; }
.checklist__list input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checklist__list label {
  cursor: pointer;
  flex: 1;
}
.checklist__list label small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
}

/* 11.7 steps: 手順 (補助) */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 var(--sp-4) var(--sp-7);
  counter-increment: step;
  border-left: 1px solid var(--line);
  margin-left: 14px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: -2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.steps__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  margin: 0 0 4px;
}

/* 11.8 compare-table: 比較表 (スマホ対応) */
.compare-table-wrap {
  /* デスクトップは横スクロール、スマホはカード化 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 540px;
}
.compare-table th,
.compare-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.6;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--surface-alt);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text);
}
.compare-table tbody th {
  font-weight: 700;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  width: 30%;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

/* スマホでは行ごとに縦並びカード化 */
@media (max-width: 640px) {
  .compare-table-wrap { overflow-x: visible; border: 0; background: transparent; }
  .compare-table { min-width: 0; border: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody, .compare-table tr, .compare-table td, .compare-table th {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-2) var(--sp-4);
    margin-bottom: var(--sp-3);
  }
  .compare-table td,
  .compare-table th {
    border: 0;
    border-bottom: 1px dashed var(--line);
    padding: 10px 0;
  }
  .compare-table tr td:last-child,
  .compare-table tr th:last-child { border-bottom: 0; }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
}

/* 11.9 related-articles: 関連記事 */
.related-articles {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.related-articles__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-3);
}
.related-articles__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.related-articles__list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}
.related-articles__list a {
  text-decoration: none;
  color: var(--text);
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.related-articles__list a:hover { color: var(--primary); }
.related-articles__list small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* 11.10 cta-primary / cta-secondary */
.cta {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.cta--primary {
  background: var(--primary-soft);
  border-color: rgba(44, 82, 130, 0.25);
}
.cta--secondary {
  background: var(--accent-soft);
  border-color: rgba(90, 122, 110, 0.28);
}
.cta__eyebrow {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cta__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.5;
  margin: 0 0 var(--sp-3);
}
.cta__body {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 var(--sp-4);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.cta__note {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* 11.11 pr-label: PR表記 */
.pr-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--pr-bg);
  color: var(--pr-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid rgba(107, 94, 72, 0.2);
}
.pr-label::before {
  content: "PR";
  display: inline-block;
  background: var(--pr-text);
  color: var(--pr-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.pr-banner {
  background: var(--pr-bg);
  border: 1px solid rgba(107, 94, 72, 0.18);
  color: var(--pr-text);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  line-height: 1.7;
}
.pr-banner strong { color: var(--pr-text); }


/* -------------------------------------------------------------------------
  12. Category page specifics
   ------------------------------------------------------------------------- */
.category-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6);
}
.category-hero__eyebrow {
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.category-hero h1 {
  font-size: clamp(1.4rem, 4.5vw, 1.875rem);
  line-height: 1.45;
}
.category-hero__lead {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 640px;
}
.concerns {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.concerns__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-3);
}
.concerns__list {
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
  line-height: 1.85;
}
.concerns__list li {
  padding-left: 1.3em;
  position: relative;
}
.concerns__list li + li { margin-top: 6px; }
.concerns__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}


/* -------------------------------------------------------------------------
  13. Static page (固定ページ)
   ------------------------------------------------------------------------- */
.static-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.static-page h2 {
  margin-top: var(--sp-6);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-lg);
}
.static-page h2:first-child { margin-top: 0; }
.static-page p { margin-top: var(--sp-3); line-height: var(--lh-body); }
.static-page ul { margin-top: var(--sp-3); padding-left: 1.4em; }
.static-page ul li + li { margin-top: 4px; }


/* -------------------------------------------------------------------------
  14. 404
   ------------------------------------------------------------------------- */
.not-found {
  text-align: center;
  padding-block: var(--sp-8);
}
.not-found__code {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.not-found h1 {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xl);
}
.not-found__lead {
  margin: var(--sp-4) auto 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: var(--fs-md);
}
.not-found__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}
.not-found__suggest {
  margin-top: var(--sp-7);
  text-align: left;
}


/* -------------------------------------------------------------------------
  15. Utility
   ------------------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-small { font-size: var(--fs-sm); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* print */
@media print {
  .site-header, .site-footer, .cta, .pr-banner, .related-articles, .toc { display: none; }
  body { background: #fff; color: #000; }
}
