/* ============================================================
   styles-v2.css — Claude Design のデザインシステムを
   既存マークアップ（.article-prose 配下の素の要素）に対応づけたもの。
   出典: Claude Design プロジェクト「職人適性診断サイト」
         projectId c901ec6b-7e9a-4079-b288-4970cfbf3439
   HTMLを書き換えずに済むよう、sk-* クラスではなく既存の
   クラス名・要素セレクタ側で受けている。
   ※ 記事ページ＋トップページ（診断UI含む）の全ページ対応。
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* --- ブランドグリーン階調 --- */
  --green-50:  #eef5f1;
  --green-100: #dcebe3;
  --green-200: #b6d6c5;
  --green-300: #85bb9f;
  --green-400: #3f8f6b;
  --green-500: #1f6b4a;
  --green-600: #185940;
  --green-700: #124433;
  --green-800: #0c2f24;

  /* --- 中性色（わずかに暖色寄り） --- */
  --white:    #ffffff;
  --gray-25:  #fcfbf8;
  --gray-50:  #f7f5f0;
  --gray-100: #efece4;
  --gray-200: #e2ded4;
  --gray-300: #cec9bc;
  --gray-400: #a49e90;
  --gray-500: #787265;
  --gray-600: #5a5449;
  --gray-700: #403b33;
  --gray-800: #2a2620;
  --gray-900: #191612;

  /* --- アクセント3系 --- */
  --ochre-50:  #fbf4e4;
  --ochre-100: #f3e5c2;
  --ochre-300: #d7b05a;
  --ochre-500: #9a6c14;
  --ochre-600: #7d570f;
  --azure-50:  #eef2f7;
  --azure-100: #dbe4ef;
  --azure-300: #8ba6c4;
  --azure-500: #2a5680;
  --azure-600: #1f4162;
  --clay-50:   #fbf1ee;
  --clay-100:  #f4dcd5;
  --clay-300:  #d59d8c;
  --clay-500:  #a04429;
  --clay-600:  #83351e;

  /* --- 用途別 --- */
  --surface-page:       var(--gray-50);
  --surface-article:    var(--gray-25);
  --surface-card:       var(--white);
  --surface-sunken:     var(--gray-100);
  --surface-brand:      var(--green-500);
  --surface-brand-soft: var(--green-50);
  --surface-ad:         var(--gray-25);
  --surface-ad-soft:    var(--ochre-50);
  --surface-info:       var(--azure-50);
  --surface-caution:    var(--ochre-50);
  --surface-important:  var(--clay-50);
  --surface-row-hover:  var(--green-50);
  --surface-row-zebra:  var(--gray-50);

  --text-body:         var(--gray-800);
  --text-heading:      var(--gray-900);
  --text-lead:         var(--gray-700);
  --text-muted:        var(--gray-600);
  --text-faint:        var(--gray-500);
  --text-on-brand:     var(--white);
  --text-brand:        var(--green-600);
  --text-brand-strong: var(--green-700);
  --text-ad:           var(--ochre-600);
  --text-source:       var(--azure-600);
  --text-important:    var(--clay-600);

  --border-hairline:   var(--gray-200);
  --border-default:    var(--gray-300);
  --border-strong:     var(--gray-400);
  --border-brand:      var(--green-500);
  --border-brand-soft: var(--green-200);
  --border-ad:         var(--ochre-300);
  --border-info:       var(--azure-300);
  --border-important:  var(--clay-300);

  --link:          var(--green-600);
  --link-hover:    var(--green-800);
  --link-visited:  var(--green-700);
  --link-external: var(--azure-600);
  --focus-ring:    var(--green-500);

  /* --- タイポ --- */
  --font-sans:
    system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-serif:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho",
    "MS PMincho", serif;
  --font-num:
    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas,
    "BIZ UDGothic", monospace;

  --fs-h1:      clamp(1.6875rem, 5.4vw, 2.125rem);
  --fs-h2:      clamp(1.3125rem, 3.6vw, 1.5rem);
  --fs-h3:      1.1875rem;
  --fs-h4:      1.0625rem;
  --fs-lead:    1.1875rem;
  --fs-body:    1.0625rem;
  --fs-body-sm: 1rem;
  --fs-note:    0.9375rem;
  --fs-caption: 0.8125rem;
  --fs-label:   0.75rem;
  --fs-stat:    clamp(2.25rem, 9vw, 3.25rem);

  --lh-body:    1.9;
  --lh-lead:    1.85;
  --lh-compact: 1.75;
  --lh-heading: 1.45;
  --lh-display: 1.35;
  --lh-tight:   1.15;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-heavy:   800;

  --ls-body:    0.01em;
  --ls-heading: 0.005em;
  --ls-label:   0.06em;
  --ls-num:     -0.01em;

  --measure-lead: 34em;

  /* --- 余白・形 --- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;

  --flow-paragraph: var(--space-5);
  --flow-block:     var(--space-8);
  --flow-h3-before: var(--space-8);
  --flow-h2-before: var(--space-12);

  --gutter-mobile:  var(--space-4);
  --gutter-desktop: var(--space-8);
  --content-max: 42rem;   /* 672px */
  --wide-max:    64rem;   /* 1024px */
  --shell-max:   72rem;

  --tap-min:     2.75rem;
  --tap-comfort: 3.5rem;

  --radius-xs: 3px;  --radius-sm: 6px;  --radius-md: 10px;
  --radius-lg: 14px; --radius-xl: 20px; --radius-pill: 999px;

  /* --- 影・線・動き --- */
  --shadow-1: 0 1px 1px rgba(25,22,18,.04), 0 1px 3px rgba(25,22,18,.05);
  --shadow-2: 0 1px 2px rgba(25,22,18,.05), 0 6px 16px -6px rgba(25,22,18,.14);
  --shadow-3: 0 2px 4px rgba(25,22,18,.06), 0 16px 40px -14px rgba(25,22,18,.24);
  --bw-hair: 1px; --bw-base: 1px; --bw-accent: 3px; --bw-rule: 4px;
  --focus-width: 3px; --focus-offset: 2px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 120ms; --dur-base: 180ms;
  --z-header: 200;
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt" 1;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote, table { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: .18em; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--link-hover); }
a:visited { color: var(--link-visited); }

:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--radius-xs); }
:focus:not(:focus-visible) { outline: none; }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ============================================================
   3. サイトヘッダー / フッター
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-2) var(--gutter-mobile);
  background: var(--surface-card);
  border-bottom: var(--bw-base) solid var(--border-hairline);
}
@media (min-width: 48rem) {
  .site-header { min-height: 4rem; padding-inline: var(--gutter-desktop); gap: var(--space-6); }
}

.brand { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); color: var(--text-heading); text-decoration: none; }
.brand:hover { color: var(--text-heading); }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-brand);
  color: var(--white);
  font-size: 1.0625rem; font-weight: var(--fw-bold); line-height: 1;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: var(--fs-body-sm); font-weight: var(--fw-heavy); line-height: 1.3; letter-spacing: .01em; }
.brand-text small { color: var(--text-muted); font-size: var(--fs-label); line-height: 1.4; }
@media (max-width: 26rem) { .brand-text small { display: none; } }

.site-header nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-header nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: var(--fs-note); font-weight: var(--fw-medium);
  text-decoration: none;
}
.site-header nav a:hover { background: var(--surface-sunken); color: var(--text-heading); }
.site-header nav .nav-cta {
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-brand);
  color: var(--text-on-brand);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.site-header nav .nav-cta:hover { background: var(--green-600); color: var(--white); }
.site-header nav .nav-cta::after { content: "→"; margin-left: var(--space-1); }
/* 狭い画面では通常ナビを畳み、CTAだけ残す */
@media (max-width: 30rem) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

.site-footer {
  margin-top: var(--space-16);
  border-top: var(--bw-accent) solid var(--border-brand);
  background: var(--gray-100);
  color: var(--text-body);
}
.site-footer > p,
.site-footer > .footer-links {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 48rem) {
  .site-footer > p, .site-footer > .footer-links { padding-inline: var(--gutter-desktop); }
}
.site-footer > p { padding-top: var(--space-8); color: var(--text-muted); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); padding-bottom: var(--space-10); }
.footer-links a {
  display: inline-flex; align-items: center;
  min-height: var(--tap-min);
  color: var(--text-body); font-size: var(--fs-note); text-decoration: none;
}
.footer-links a:hover { color: var(--link-hover); text-decoration: underline; }

/* ============================================================
   4. 記事のガワ
   ============================================================ */
.article-main {
  background: var(--surface-article);
  border-block: var(--bw-hair) solid var(--border-hairline);
}
.article-prose {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-8) var(--gutter-mobile) var(--space-16);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 48rem) {
  .article-prose { padding: var(--space-12) var(--gutter-desktop) var(--space-20); }
}
.article-prose::before { display: none; }

/* --- 記事ヘッダー --- */
.article-prose h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-heading);
  color: var(--text-heading);
  margin: 0;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: var(--bw-hair) solid var(--border-hairline);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  letter-spacing: 0;
}
/* リード文（h1直後、または .article-meta 直後の最初の段落） */
.article-prose > h1 + p:not(.article-meta),
.article-prose > .article-meta + p {
  margin-top: var(--space-6);
  max-width: var(--measure-lead);
  color: var(--text-lead);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

/* --- 見出し --- */
.article-prose h2 {
  margin: var(--flow-h2-before) 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-left: var(--bw-accent) solid var(--border-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-brand-soft);
  color: var(--green-800);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  scroll-margin-top: var(--space-16);
}
.article-prose h2::before { display: none; }
.article-prose h3 {
  margin: var(--flow-h3-before) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--bw-hair) solid var(--border-default);
  color: var(--text-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  scroll-margin-top: var(--space-16);
}
.article-prose h2 + h3 { margin-top: var(--space-6); }

/* --- 本文・強調 --- */
.article-prose p {
  margin: 0 0 var(--flow-paragraph);
  color: var(--text-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.article-prose strong {
  background: linear-gradient(transparent 62%, var(--green-100) 62%);
  color: var(--text-heading);
  font-weight: var(--fw-bold);
}
.article-prose a { color: var(--link); font-weight: var(--fw-medium); }

/* --- リスト（.source-list は別コンポーネントなので除外する） --- */
.article-prose > ul:not(.source-list),
.article-prose > ol {
  margin: 0 0 var(--flow-paragraph);
  padding: 0;
  list-style: none;
}
.article-prose > ul:not(.source-list) > li,
.article-prose > ol > li {
  position: relative;
  margin-bottom: var(--space-2);
  color: var(--text-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.article-prose > ul:not(.source-list) > li { padding-left: var(--space-6); }
.article-prose > ul:not(.source-list) > li::before {
  content: "";
  position: absolute;
  left: var(--space-2); top: .82em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--green-400);
  transform: none;
}
.article-prose > ol { counter-reset: sk-ol; }
.article-prose > ol > li { counter-increment: sk-ol; padding-left: var(--space-8); }
.article-prose > ol > li::before {
  content: counter(sk-ol);
  position: absolute;
  left: 0; top: .2em;
  display: grid; place-items: center;
  width: 1.6em; height: 1.6em;
  border-radius: var(--radius-pill);
  background: var(--surface-brand-soft);
  color: var(--text-brand-strong);
  font-family: var(--font-num);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   5. 目次（article-enhance.mjs が生成する nav.toc）
   ============================================================ */
nav.toc {
  display: block;
  align-items: initial;
  gap: 0;
  font-size: inherit;
  margin-block: var(--flow-block);
  padding: 0;
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-1);
}
.toc-title {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  color: var(--text-heading);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}
.toc-title::before {
  content: "";
  width: var(--bw-accent); height: 1em;
  background: var(--border-brand);
  border-radius: 2px;
  box-shadow: none;
}
.toc > ol { margin: 0; padding: 0 var(--space-4) var(--space-3); list-style: none; counter-reset: sk-toc; }
.toc > ol > li { counter-increment: sk-toc; border: 0; }
nav.toc a {
  display: flex; align-items: baseline; gap: var(--space-3);
  min-height: var(--tap-min);
  padding: var(--space-2) 0;
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  border-radius: 0;
  background: none;
  color: var(--text-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-compact);
  text-decoration: none;
}
nav.toc a:hover { background: none; color: var(--link-hover); text-decoration: underline; }
.toc > ol > li > a::before {
  content: counter(sk-toc, decimal-leading-zero);
  flex: none;
  min-width: 1.9em;
  position: static;
  color: var(--text-brand);
  font-family: var(--font-num);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.toc ol ol { margin: 0; padding: 0 0 var(--space-1) 1.9em; list-style: none; }
nav.toc ol ol a {
  min-height: 2.25rem;
  padding: var(--space-1) 0;
  border-bottom: 0;
  color: var(--text-muted);
  font-size: var(--fs-note);
  font-weight: var(--fw-regular);
}
.toc ol ol a::before {
  content: "─";
  position: static;
  flex: none;
  min-width: 1.2em;
  width: auto; height: auto;
  background: none;
  color: var(--border-strong);
}

/* ============================================================
   6. データテーブル
   ============================================================ */
.data-table-wrap {
  margin-block: var(--flow-block);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background:
    linear-gradient(to right, var(--surface-card) 30%, rgba(252,251,248,0)) left / 28px 100% no-repeat,
    linear-gradient(to left,  var(--surface-card) 30%, rgba(252,251,248,0)) right / 28px 100% no-repeat,
    linear-gradient(to right, rgba(25,22,18,.10), rgba(25,22,18,0)) left / 10px 100% no-repeat,
    linear-gradient(to left,  rgba(25,22,18,.10), rgba(25,22,18,0)) right / 10px 100% no-repeat,
    var(--surface-card);
  background-attachment: local, local, scroll, scroll, local;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-compact);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table caption {
  position: sticky;
  left: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  background: var(--surface-card);
  color: var(--text-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  text-align: left;
}
.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  vertical-align: baseline;
  text-align: right;
  white-space: nowrap;
}
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--green-700);
  color: var(--white);
  font-size: var(--fs-note);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  border-bottom: none;
}
.data-table thead th:not(:last-child) { box-shadow: inset -1px 0 0 rgba(255,255,255,.16); }
.data-table thead th:first-child,
.data-table tbody th { text-align: left; }
/* 1列目は行の名前：固定して横スクロール中も文脈を失わない */
.data-table tbody th {
  position: sticky;
  left: 0;
  background: var(--surface-card);
  box-shadow: 1px 0 0 var(--border-hairline);
  color: var(--text-heading);
  font-weight: var(--fw-bold);
}
.data-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--green-700);
  box-shadow: 1px 0 0 rgba(255,255,255,.16);
}
.data-table td { color: var(--text-body); }
.data-table tbody tr:nth-child(even) th,
.data-table tbody tr:nth-child(even) td { background: var(--surface-row-zebra); }
.data-table tbody tr:nth-child(even) th { background: var(--surface-row-zebra); }
.data-table tbody tr:hover th,
.data-table tbody tr:hover td { background: var(--surface-row-hover); }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }

.table-note {
  margin-top: var(--space-2) !important;
  color: var(--text-muted);
  font-size: var(--fs-caption) !important;
  line-height: 1.7 !important;
}
.table-note a { color: var(--link-external); }

/* ============================================================
   7. FAQ
   ============================================================ */
.faq-list { display: block; margin-block: var(--flow-block); }
.faq-list section {
  padding: var(--space-5) 0;
  border: 0;
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.faq-list section:first-child { border-top: var(--bw-hair) solid var(--border-hairline); }
.faq-list h3,
.faq-list p {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}
.faq-list h3 {
  margin-bottom: var(--space-3);
  color: var(--text-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}
.faq-list p { color: var(--text-body); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.faq-list h3::before,
.faq-list p::before {
  position: static;
  display: block;
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  font-family: var(--font-num);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}
.faq-list h3::before { content: "Q"; color: var(--green-500); }
.faq-list p::before { content: "A"; color: var(--text-faint); }

/* ============================================================
   8. CTA（内部 / アフィリエイト）
   ============================================================ */
/* --- 内部CTA: ブランドグリーンの面 --- */
.article-cta {
  position: relative;
  margin-block: var(--flow-block);
  padding: var(--space-6) var(--space-5);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.article-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.07), rgba(255,255,255,0) 46%);
  pointer-events: none;
}
.article-cta p {
  margin: 0;
  max-width: 30em;
  color: rgba(255,255,255,.94);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
}
.article-cta p strong { background: none; color: var(--white); }
.article-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-comfort);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-6);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--green-700);
  font-size: var(--fs-body);
  font-weight: var(--fw-heavy);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  transform: none;
  box-shadow: none;
}
.article-cta a::after { content: "→"; margin-left: 0; }
.article-cta a:hover { background: var(--green-50); color: var(--green-800); transform: none; box-shadow: none; }
.article-cta a:focus-visible { outline-color: var(--white); }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.article-cta-actions a { margin-top: 0; }

/* --- アフィリエイトCTA ---------------------------------------
   景表法（ステマ規制）上、事業者の表示であることを一般消費者が
   判別できる必要がある。ただし required なのは「広告」ラベルだけ。
   説明文は不要なので置かず、広告然とした帯もやめて、
   本文に馴染む「囲み記事」として組む。
   識別性は 地の色 + 左罫 + 「広告」ラベル の3点で担保する。
   ラベルを消すのは法令違反になるので消さないこと。
   ------------------------------------------------------------ */
.article-cta:has(.ad-disclosure) {
  padding: var(--space-5);
  border: var(--bw-base) solid var(--border-hairline);
  border-left: var(--bw-accent) solid var(--ochre-300);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-body);
  box-shadow: none;
}
.article-cta:has(.ad-disclosure)::after { display: none; }
/* 「広告」ラベル。控えめだが判別はできる大きさを保つ */
.article-cta .ad-disclosure {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0 0 var(--space-3);
  padding: 1px var(--space-2);
  border: var(--bw-base) solid var(--border-ad);
  border-radius: var(--radius-xs);
  background: var(--ochre-50);
  color: var(--text-ad);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
}
.article-cta:has(.ad-disclosure) > p:not(.ad-disclosure):not(.table-note) {
  max-width: none;
  padding: 0;
  color: var(--text-body);
  font-size: var(--fs-note);
  font-weight: var(--fw-regular);
  line-height: 1.85;
}
.article-cta:has(.ad-disclosure) > p strong { background: linear-gradient(transparent 62%, var(--ochre-100) 62%); color: var(--text-heading); }
.article-cta:has(.ad-disclosure) .article-cta-actions {
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
}
.article-cta:has(.ad-disclosure) .article-cta-actions a {
  min-height: var(--tap-comfort);
  padding: var(--space-3) var(--space-5);
  border: var(--bw-base) solid var(--ochre-600);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ochre-600);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
}
.article-cta:has(.ad-disclosure) .article-cta-actions a:hover { background: var(--ochre-50); color: var(--ochre-600); }
.article-cta:has(.ad-disclosure) .article-cta-actions a::after { content: "↗"; }
/* 成果条件などの注記 */
.article-cta:has(.ad-disclosure) > .table-note {
  max-width: none;
  margin: var(--space-3) 0 0 !important;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

/* ============================================================
   9. 出典リスト / 記事リンクカード
   ============================================================ */
.source-list {
  display: block;
  margin-block: var(--flow-block);
  padding: var(--space-5);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  list-style: none;
  counter-reset: sk-src;
}
.source-list li {
  counter-increment: sk-src;
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: var(--bw-hair) solid var(--border-hairline);
  font-size: var(--fs-caption);
  line-height: 1.75;
}
.source-list li:first-child { border-top: 0; }
.source-list li::before {
  content: "[" counter(sk-src) "]";
  position: static;
  width: auto; height: auto;
  border: 0; border-radius: 0;
  color: var(--text-faint);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.source-list a {
  color: var(--link-external);
  font-weight: var(--fw-medium);
}
.source-list a::after { content: "↗"; margin-left: var(--space-1); font-size: .85em; text-decoration: none; }

.article-link-grid {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--flow-block);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .article-link-grid { grid-template-columns: 1fr 1fr; } }
.article-prose .article-link-grid a {
  display: flex; flex-direction: column; gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-4);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-1);
  color: var(--text-body);
  text-decoration: none;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.article-prose .article-link-grid a:hover {
  border-color: var(--border-brand-soft);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.article-link-grid strong {
  background: none;
  color: var(--text-heading);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}
.article-link-grid a:hover strong { color: var(--link-hover); }
.article-link-grid span {
  color: var(--text-muted);
  font-size: var(--fs-caption);
  line-height: 1.7;
}
.article-link-grid a::after {
  content: "記事を読む →";
  margin-top: auto;
  color: var(--text-brand);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
}

/* ============================================================
   10. 読了プログレスバー
   ============================================================ */
.read-progress {
  position: fixed; top: 0; left: 0;
  z-index: calc(var(--z-header) + 1);
  width: 100%; height: 3px;
  background: transparent;
  pointer-events: none;
}
.read-progress span {
  display: block; width: 0; height: 100%;
  background: var(--green-500);
  transition: width .12s linear;
}

/* ============================================================
   11. トップページ / 診断ツール
   出典: Claude Design css/quiz.css を既存マークアップに対応づけ
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-5);
  border: var(--bw-base) solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.button.primary { background: var(--surface-brand); color: var(--text-on-brand); }
.button.primary:hover { background: var(--green-600); color: var(--white); }
.button.secondary {
  background: var(--surface-card);
  border-color: var(--border-default);
  color: var(--text-brand);
}
.button.secondary:hover { border-color: var(--border-brand); background: var(--surface-brand-soft); }
.button.ghost { background: transparent; color: var(--text-muted); }
.button.ghost:hover { background: var(--surface-sunken); color: var(--text-body); }
.button:disabled, .button[disabled] {
  background: var(--gray-100);
  border-color: transparent;
  color: var(--gray-400);
  cursor: not-allowed;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--text-brand);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
}

.section-heading { max-width: var(--content-max); margin: 0 auto var(--space-8); }
.section-heading h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-display);
  color: var(--text-heading);
}
.section-heading p { margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--lh-body); }

/* --- ヒーロー（外部画像をやめ、トークンだけで構成） --- */
.hero {
  display: grid;
  min-height: auto;
  padding: var(--space-16) var(--gutter-mobile);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    linear-gradient(150deg, var(--green-700) 0%, var(--green-800) 55%, #08211a 100%);
  color: var(--white);
}
@media (min-width: 48rem) { .hero { padding-inline: var(--gutter-desktop); } }
.hero-inner { align-self: center; width: min(var(--shell-max), 100%); margin-inline: auto; }
.hero .eyebrow { color: var(--green-200); }
.hero h1 {
  max-width: 18em;
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  font-weight: var(--fw-heavy);
  line-height: 1.3;
  letter-spacing: var(--ls-heading);
  color: var(--white);
}
.hero .lead {
  max-width: 34em;
  margin: var(--space-5) 0 0;
  color: rgba(255,255,255,.9);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-actions .button { min-height: var(--tap-comfort); padding-inline: var(--space-6); font-size: var(--fs-body); }
.hero-actions .primary { background: var(--white); color: var(--green-700); }
.hero-actions .primary:hover { background: var(--green-50); color: var(--green-800); }
.hero-actions .secondary { background: transparent; border-color: rgba(255,255,255,.42); color: var(--white); }
.hero-actions .secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

/* --- イントロ --- */
.intro-band { background: var(--surface-article); border-bottom: var(--bw-hair) solid var(--border-hairline); }
.intro {
  display: grid;
  gap: var(--space-8);
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  padding: var(--space-16) var(--gutter-mobile);
}
@media (min-width: 48rem) { .intro { grid-template-columns: 1.3fr 1fr; padding-inline: var(--gutter-desktop); } }
.intro-copy h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-display);
  color: var(--text-heading);
}
.intro-copy p { margin: var(--space-4) 0 0; color: var(--text-body); font-size: var(--fs-body); line-height: var(--lh-body); }
.summary-panel {
  align-self: start;
  padding: var(--space-5);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-1);
}
.summary-panel h2 { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--text-heading); }
.summary-panel ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.summary-panel li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--text-body);
  font-size: var(--fs-note);
  line-height: 1.8;
}
.summary-panel li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-500); font-weight: var(--fw-bold); }

/* --- 診断フォーム --- */
.diagnosis-band { background: var(--surface-page); }
.diagnosis { width: min(var(--shell-max), 100%); margin-inline: auto; padding: var(--space-16) var(--gutter-mobile); }
@media (min-width: 48rem) { .diagnosis { padding-inline: var(--gutter-desktop); } }
.question-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-6) var(--space-5);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-2);
}
.step-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}
#question-counter {
  color: var(--green-600);
  font-family: var(--font-num);
  font-size: var(--fs-h4);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-num);
}
.progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--gray-200); overflow: hidden; }
.progress-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--green-500);
  transition: width var(--dur-base) var(--ease-out);
}
/* 1問ずつ表示する。app.js が .active を付け替えるので、この2行は必須。 */
.question { display: none; min-height: auto; margin: var(--space-6) 0 0; padding: 0; border: 0; }
.question.active { display: block; }
.question-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.6;
  color: var(--text-heading);
  text-wrap: pretty;
}
.question-number {
  align-self: flex-start;
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--surface-brand-soft);
  color: var(--text-brand-strong);
  font-family: var(--font-num);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
}
.choices { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap-comfort);
  padding: var(--space-3) var(--space-4);
  border: var(--bw-base) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.choice span::before {
  content: "";
  position: static;
  flex: none;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  transform: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.choice:hover span { border-color: var(--green-300); background: var(--green-50); }
.choice input:checked + span {
  border-color: var(--green-500);
  border-width: 2px;
  padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px);
  background: var(--green-50);
  color: var(--green-800);
  font-weight: var(--fw-bold);
}
.choice input:checked + span::before {
  border-color: var(--green-500);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 12px var(--green-500);
}
.choice input:focus-visible + span { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
#progress-text { color: var(--text-muted); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }

/* --- 結果 --- */
.results { width: min(var(--shell-max), 100%); margin-inline: auto; padding: var(--space-16) var(--gutter-mobile); }
@media (min-width: 48rem) { .results { padding-inline: var(--gutter-desktop); } }
.main-result {
  padding: var(--space-8) var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-3);
}
.main-result .eyebrow { color: var(--green-200); }
.main-result-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }
.main-result h3 {
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: var(--fw-heavy);
  line-height: 1.35;
  color: var(--white);
}
.main-result-head p { margin: var(--space-2) 0 0; color: rgba(255,255,255,.86); font-size: var(--fs-note); }
.main-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: var(--bw-base) solid rgba(255,255,255,.28);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
}
.main-score strong {
  font-family: var(--font-num);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
}
.main-score span {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--green-700);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.result-summary { margin: var(--space-5) 0 0; color: rgba(255,255,255,.92); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.result-detail-grid { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 44rem) { .result-detail-grid { grid-template-columns: repeat(3, 1fr); } }
.result-detail {
  padding: var(--space-4);
  border: var(--bw-base) solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.07);
}
.result-detail h4 { margin: 0 0 var(--space-2); color: var(--green-200); font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); }
.result-detail ul { margin: 0; padding: 0; list-style: none; }
.result-detail li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-1);
  color: rgba(255,255,255,.92);
  font-size: var(--fs-note);
  line-height: 1.75;
}
.result-detail li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 2px; background: var(--green-300); }
.next-action { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-md); background: var(--white); color: var(--text-body); }
.next-action h4 { margin: 0 0 var(--space-2); color: var(--text-heading); font-size: var(--fs-h4); font-weight: var(--fw-bold); }
.next-action p { margin: 0; color: var(--text-body); font-size: var(--fs-note); line-height: var(--lh-body); }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-comfort);
  padding: var(--space-3) var(--space-5);
  border: var(--bw-base) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-brand);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.result-action:hover { border-color: var(--border-brand); background: var(--surface-brand-soft); color: var(--text-brand-strong); }
.result-action.primary-action { background: var(--surface-brand); border-color: var(--surface-brand); color: var(--white); }
.result-action.primary-action:hover { background: var(--green-600); color: var(--white); }
.result-action[target="_blank"] { border-color: var(--ochre-600); background: var(--white); color: var(--ochre-600); }
.result-action[target="_blank"]::after { content: "↗"; margin-left: var(--space-1); }
.result-action[target="_blank"]:hover { background: var(--ochre-50); color: var(--ochre-600); }

.top-results { display: grid; gap: var(--space-4); }
@media (min-width: 44rem) {
  .top-results { grid-template-columns: repeat(2, 1fr); }
  .top-results > .main-result { grid-column: 1 / -1; }
}
.result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-1);
}
.result-card .rank {
  align-self: flex-start;
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--surface-brand-soft);
  color: var(--text-brand-strong);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
}
.result-card h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-heading); color: var(--text-heading); }
.result-card .score {
  font-family: var(--font-num);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
}
.result-card .band {
  align-self: flex-start;
  padding: 2px var(--space-2);
  border: var(--bw-base) solid var(--border-brand-soft);
  border-radius: var(--radius-xs);
  color: var(--text-brand);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
}
.result-card p { margin: 0; color: var(--text-body); font-size: var(--fs-note); line-height: 1.8; }
.result-card .candidate-note { color: var(--text-muted); font-size: var(--fs-caption); }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li {
  position: relative;
  padding-left: var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  line-height: 1.8;
}
.mini-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 5px; height: 5px; border-radius: 2px; background: var(--green-300); }
.fake-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-top: auto;
  padding: var(--space-2) var(--space-4);
  border: var(--bw-base) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-brand);
  font-size: var(--fs-note);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.fake-cta:hover { border-color: var(--border-brand); background: var(--surface-brand-soft); }
.fake-cta[target="_blank"] { border-color: var(--ochre-600); color: var(--ochre-600); }
.fake-cta[target="_blank"]::after { content: "↗"; margin-left: var(--space-1); }

.axis-wrap { margin-top: var(--space-12); }
.axis-wrap h3, .all-types h3 { margin-bottom: var(--space-4); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text-heading); }
.axis-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .axis-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.axis-pill {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--green-700);
  font-family: var(--font-num);
  font-size: var(--fs-h4);
  font-weight: var(--fw-heavy);
  font-variant-numeric: tabular-nums;
}
.axis-pill span { color: var(--text-muted); font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: var(--fw-medium); }

.all-types { margin-top: var(--space-12); }
#all-results { border: var(--bw-base) solid var(--border-hairline); border-radius: var(--radius-md); background: var(--surface-card); overflow: hidden; }
.type-row {
  display: grid;
  grid-template-columns: 1fr 8rem 3.5rem;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-4);
  border-bottom: var(--bw-hair) solid var(--border-hairline);
  font-size: var(--fs-note);
}
.type-row:last-child { border-bottom: none; }
.type-row:hover { background: var(--surface-row-hover); }
.type-row strong { color: var(--text-heading); font-weight: var(--fw-medium); }
.type-row .bar { height: 6px; border-radius: var(--radius-pill); background: var(--gray-200); overflow: hidden; }
.type-row .bar span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--green-500); }
.type-row > span:last-child {
  text-align: right;
  color: var(--text-heading);
  font-family: var(--font-num);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 34rem) {
  .type-row { grid-template-columns: 1fr 3.5rem; gap: var(--space-2) var(--space-3); }
  .type-row .bar { grid-column: 1 / -1; }
}

.feedback-panel {
  margin-top: var(--space-12);
  padding: var(--space-5);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}
.feedback-panel h3 { margin-bottom: var(--space-3); font-size: var(--fs-h4); font-weight: var(--fw-bold); color: var(--text-heading); }
.rating-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rating-buttons button {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: var(--bw-base) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-num);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.rating-buttons button:hover { border-color: var(--border-brand); background: var(--surface-brand-soft); color: var(--text-brand-strong); }
/* app.js が .selected を付けるので必須 */
.rating-buttons button.selected {
  border-color: var(--green-500);
  background: var(--surface-brand);
  color: var(--white);
}
.feedback-message { margin: var(--space-3) 0 0; color: var(--text-brand); font-size: var(--fs-note); font-weight: var(--fw-bold); }

.types { width: min(var(--shell-max), 100%); margin-inline: auto; padding: var(--space-16) var(--gutter-mobile); }
@media (min-width: 48rem) { .types { padding-inline: var(--gutter-desktop); } }
.type-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-grid span {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-4);
  border: var(--bw-base) solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-body);
  font-size: var(--fs-note);
  font-weight: var(--fw-medium);
}

/* 回答が判別できていないときの注意（app.js が出す） */
.result-notice {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: var(--bw-base) solid var(--border-caution, var(--ochre-300));
  border-left: var(--bw-accent) solid var(--ochre-500);
  border-radius: var(--radius-md);
  background: var(--surface-caution);
}
.result-notice strong {
  color: var(--text-ad);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}
.result-notice p {
  margin: 0;
  color: var(--text-body);
  font-size: var(--fs-note);
  line-height: var(--lh-body);
}
