/* カウンセリング比較ナビ
   トーン：紙のように明るい淡セージの地／白の面／黒を使わない深いスレートの文字。
   罫線は細く、強調は色でなく余白で作る。 */
:root {
  --ink: #35484d;          /* 本文：黒ではなく深いスレート */
  --ink-2: #596d72;       /* WCAG AA 4.5:1 を満たす値に調整（2026-09-10） */
  --ink-3: #606e70;
  --ground: #f4f8f6;       /* 地：ごく淡いセージ */
  --surface: #ffffff;
  --surface-2: #eef4f1;    /* 表ヘッダなど */
  --line: #e0eae6;
  --line-2: #cbdad4;
  --accent: #2a6f66;       /* セージ寄りのディープティール */
  --accent-ink: #ffffff;
  --accent-soft: #e4efec;
  --own: #916834;          /* 運営者の表示（注意ではなく注記の色）。ステマ規制の「明瞭に表示」に効くため AA を満たす濃度にする */
  --own-soft: #fbf4e8;
  --ok: #2d795e; --ok-soft: #e5f2eb;
  --warn: #a25835; --warn-soft: #fbeee7;
  --shadow: 0 1px 2px rgba(53, 72, 77, .05);
  /* システムフォントのみ。Webフォントは読み込まない（仕様 §8「システムフォント優先」）。
     Google Fonts の3ファミリで CSS 150KB・合計1.1MB を読み、FCP/LCP が 10.8s になっていた。 */
  --display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --num: ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --radius: 10px; --maxw: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4ece9; --ink-2: #adbfbb; --ink-3: #96abac;
    --ground: #1a2529; --surface: #223035; --surface-2: #2a3a3f; --line: #34464b; --line-2: #43585d;
    --accent: #82c4b6; --accent-ink: #10231f; --accent-soft: #26403b;
    --own: #dcae6c; --own-soft: #382d1c;
    --ok: #74c4a1; --ok-soft: #1f3d31; --warn: #e0906a; --warn-soft: #3c261c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --ink: #e4ece9; --ink-2: #adbfbb; --ink-3: #96abac;
  --ground: #1a2529; --surface: #223035; --surface-2: #2a3a3f; --line: #34464b; --line-2: #43585d;
  --accent: #82c4b6; --accent-ink: #10231f; --accent-soft: #26403b;
  --own: #dcae6c; --own-soft: #382d1c;
  --ok: #74c4a1; --ok-soft: #1f3d31; --warn: #e0906a; --warn-soft: #3c261c;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.9; font-feature-settings: "palt"; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem); font-weight: 700; letter-spacing: .01em; }
/* 見出し：黒い太罫をやめ、短いアクセント線で段落の切れ目を示す */
h2 { font-size: 1.3rem; font-weight: 700; margin: 3.2rem 0 1.1rem; padding-top: 1.1rem; position: relative; }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--accent); }
h2::after { content: ""; position: absolute; top: 1px; left: 42px; right: 0; height: 1px; background: var(--line); }
h3 { font-size: 1.02rem; font-weight: 700; margin: 1.7rem 0 .5rem; }
p { margin: 0 0 1.1rem; max-width: 38em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1rem; max-width: 40em; }
li { margin: .3em 0; }
li::marker { color: var(--ink-3); }
small, .muted { color: var(--ink-3); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .74rem; letter-spacing: .14em; color: var(--ink-3); font-family: var(--num); font-weight: 600; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; line-height: 1.4; }
.brand small { display: block; font-size: .7rem; font-weight: 400; color: var(--ink-3); letter-spacing: .02em; }
.nav { display: flex; gap: 2px 20px; flex-wrap: wrap; font-size: .89rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }

/* page top */
.crumbs { font-size: .8rem; color: var(--ink-3); margin: 20px 0 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px; max-width: none; }
.crumbs li + li::before { content: "›"; margin: 0 7px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); }
.dateline { font-size: .82rem; color: var(--ink-3); margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 2px 18px; max-width: none; }
.disclosure { margin: 20px 0 0; padding: 15px 20px; background: var(--own-soft); border: 1px solid color-mix(in srgb, var(--own) 25%, transparent); border-radius: var(--radius); font-size: .92rem; line-height: 1.8; color: var(--ink-2); }
.disclosure strong { color: var(--own); font-weight: 700; }
.lede { margin: 26px 0 0; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lede .verdict { font-family: var(--display); font-size: 1.1rem; font-weight: 700; line-height: 1.75; margin: 0 0 .8rem; max-width: none; }
.lede ul { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* layout blocks */
main { padding-bottom: 64px; }
.section { margin-top: 2.6rem; }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tile h3 { margin-top: 0; }
.tile .big { font-family: var(--num); font-size: 1.85rem; font-weight: 600; line-height: 1.15; margin: 6px 0 8px; color: var(--accent); }
.linklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.linklist a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .87rem; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.linklist a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.linklist a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ranking list */
.rank-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.rank-item.is-own { border-color: color-mix(in srgb, var(--own) 45%, transparent); }
.rank-no { font-family: var(--num); font-size: 1.5rem; font-weight: 600; color: var(--ink-3); line-height: 1; padding-top: 3px; }
.rank-no b { color: var(--accent); font-weight: 600; }
.rank-no small { font-size: .62rem; margin-left: 1px; }
.rank-name { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin: 0; }
.rank-name a { color: var(--ink); text-decoration: none; }
.rank-name a:hover { color: var(--accent); }
.rank-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: .86rem; color: var(--ink-2); margin-top: 5px; }
.rank-meta .num { color: var(--ink); font-weight: 500; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.own { background: var(--own-soft); color: var(--own); }
.score { text-align: right; min-width: 76px; }
.score .num { font-size: 1.4rem; font-weight: 600; line-height: 1; color: var(--ink); }
.score small { display: block; font-size: .7rem; color: var(--ink-3); }
.bars { display: grid; gap: 5px; margin-top: 10px; width: 118px; }
.bar { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: center; font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
.bar i { display: block; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--accent); opacity: .8; border-radius: 3px; }
@media (max-width: 640px) {
  .rank-item { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; }
  .score { grid-column: 1 / -1; text-align: left; display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
  .bars { margin-top: 0; }
}

/* table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: .87rem; line-height: 1.7; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 600; font-size: .78rem; color: var(--ink-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; border-bottom-color: var(--line-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
th.sticky, td.sticky { position: sticky; left: 0; background: var(--surface); z-index: 2; box-shadow: 1px 0 0 var(--line); }
thead th.sticky { background: var(--surface-2); z-index: 3; }
td.sticky a { font-weight: 600; color: var(--ink); text-decoration: none; }
td.sticky a:hover { color: var(--accent); }
tr.is-own td.sticky { box-shadow: inset 3px 0 0 var(--own), 1px 0 0 var(--line); }
td .num { white-space: nowrap; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--ink-3); } .unk { color: var(--ink-3); font-size: .78rem; }
.sort-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; font-size: .84rem; color: var(--ink-3); }
.sort-bar button { font: inherit; padding: 6px 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.sort-bar button:hover { border-color: var(--accent); color: var(--accent); }
.sort-bar button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.table-note { font-size: .8rem; color: var(--ink-3); margin-top: 10px; line-height: 1.8; }

/* buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--accent); cursor: pointer; font-family: inherit; line-height: 1.6; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--surface); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.btn.sm { padding: 6px 14px; font-size: .8rem; }

/* definition list */
.spec { display: grid; grid-template-columns: minmax(120px, 168px) 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0; max-width: none; box-shadow: var(--shadow); font-size: .93rem; }
.spec dt, .spec dd { padding: 12px 15px; margin: 0; border-bottom: 1px solid var(--line); }
.spec dt { background: var(--surface-2); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.spec dt:nth-last-of-type(1), .spec dd:last-child { border-bottom: 0; }
.spec dd small { display: block; color: var(--ink-3); font-size: .82rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pros, .cons { margin: 0; padding-left: 1.2em; }
.pros li::marker { color: var(--ok); } .cons li::marker { color: var(--warn); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq h3 { border-bottom: 1px solid var(--line); padding: 16px 0 8px; margin: 0; color: var(--ink); }
.faq p { padding: 10px 0 16px; margin: 0; color: var(--ink-2); }

/* callouts */
.note { padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: .88rem; line-height: 1.85; color: var(--ink-2); }
.note.emergency { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.note.emergency strong { color: var(--warn); }
.sources { font-size: .8rem; color: var(--ink-3); }
.sources h3 { font-size: .9rem; color: var(--ink-2); }
.sources ul { padding-left: 1.2em; }
.sources a { color: var(--ink-2); }

/* simulator / diagnosis */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row label { display: grid; gap: 6px; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
select, input[type="number"] { font: inherit; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.q legend { font-family: var(--display); font-weight: 700; padding: 0; margin-bottom: 10px; color: var(--ink); }
.q fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { display: inline-flex; gap: 7px; align-items: center; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .89rem; }
.opts label:hover { border-color: var(--accent); }
.opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.opts input { margin: 0; accent-color: var(--accent); }
.result { margin-top: 24px; }

/* footer */
.site-foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); font-size: .84rem; color: var(--ink-2); }
.site-foot .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink-2); }
.foot-disc { border-top: 1px solid var(--line); padding-top: 14px; font-size: .8rem; color: var(--ink-3); line-height: 1.85; max-width: 60em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- 口コミ（投稿フォーム・掲載） ---- */
#review-form textarea, #review-form select, #review-form input[type=file] {
  width: 100%; box-sizing: border-box; font: inherit; color: inherit;
  padding: 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; background: #fff;
}
#review-form textarea { min-height: 9em; resize: vertical; }
#review-form input[type=file] { padding: 8px; }
#review-msg { margin-top: 12px; }
#review-msg.notice { padding: 14px; border-radius: 8px; background: #eef7ee; border: 1px solid #bcd9bc; }
#review-msg.error  { padding: 14px; border-radius: 8px; background: #fdeeee; border: 1px solid #e2b6b6; }
ul.reviews { list-style: none; padding: 0; margin: 0; }
ul.reviews > li.review { padding: 14px 0; border-top: 1px solid var(--line, #eee); }
ul.reviews > li.review:first-child { border-top: 0; }
.review-meta { font-size: .85em; color: var(--muted, #777); margin: 0 0 6px; }
