/* =========================================================
   MediSearch — 医療情報メディア トップページ
   静的モック / PC＋SPレスポンシブ
   ========================================================= */

:root {
  --brand:      #1657c0;   /* メインブルー（ボタン・リンク） */
  --brand-600:  #1246a0;
  --brand-700:  #0e3a86;
  --navy:       #1b3f8f;   /* 濃紺パネル・フッター */
  --navy-700:   #163271;
  --ink:        #223046;   /* 見出し・本文の濃い色 */
  --text:       #3c4a60;   /* 標準本文 */
  --muted:      #5f6a80;   /* 補助テキスト（コントラスト確保のためやや濃く） */
  --line:       #e4e9f2;   /* 罫線・枠 */
  --tint:       #eaf1fc;   /* 淡いブルー背景（アイコン円など） */
  --tint-2:     #f3f7fd;   /* セクション背景 */
  --white:      #ffffff;
  --gold:       #f2a71b;   /* ランキング1位 */
  --silver:     #8aa0c4;   /* ランキング2位 */
  --bronze:     #e07b3e;   /* ランキング3位 */

  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 10px rgba(28, 60, 120, .06);
  --shadow-hover: 0 8px 24px rgba(28, 60, 120, .12);
  --container:  1160px;
  --header-h:   72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- ユーティリティ ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; }
/* 支給アセットのトレースSVG（塗りベース）。.icon のサイズ指定を活かしつつ塗りに切替 */
.icon.fill { fill: currentColor; stroke: none; }
.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;
}

/* キーボード操作時のフォーカスを明確に（A11y） */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
.search:focus-within, .list-search:focus-within {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 87, 192, .16);
}

/* スキップリンク（本文へ飛ぶ） */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow-hover);
  transform: translateY(-160%); transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.brand-tag { font-size: 12px; color: var(--muted); margin-left: 4px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pro-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.pro-link .icon { width: 16px; height: 16px; color: var(--brand); }
.pro-link:hover { color: var(--brand); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; stroke-width: 2; }

/* グローバルナビ */
.global-nav { border-top: 1px solid var(--line); }
.global-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.global-nav a {
  display: inline-block; padding: 13px 16px; font-size: 14px; font-weight: 600;
  color: var(--text); border-bottom: 2px solid transparent;
}
.global-nav a:hover { color: var(--brand); }
.global-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,.35) 52%, rgba(255,255,255,0) 72%),
    url('assets/images/hero-bg.jpg') center 28% / cover no-repeat,
    #ffffff;
}
.hero-inner {
  display: flex; align-items: center; min-height: 600px;
  padding-block: 56px 64px;
}
.hero-copy { width: 100%; max-width: 560px; }
.hero-title {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; font-weight: 800;
  color: var(--ink); margin: 0 0 18px; letter-spacing: .01em;
}
.hero-lead { font-size: 15px; color: var(--text); margin: 0 0 26px; max-width: 30em; }

/* 検索フォーム */
.search {
  display: flex; gap: 10px; max-width: 520px;
  background: var(--white); padding: 8px; border-radius: 14px;
  box-shadow: 0 6px 24px rgba(28,60,120,.10); border: 1px solid var(--line);
}
.search-field { position: relative; flex: 1; display: flex; align-items: center; }
.search-field .icon {
  position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); stroke-width: 2;
}
.search input {
  width: 100%; border: 0; outline: none; font-size: 15px; color: var(--ink);
  padding: 12px 12px 12px 44px; background: transparent;
}
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 0 26px; font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background .15s;
}
.search-btn:hover { background: var(--brand-600); }
.search-btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }

.keywords { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.keywords-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.keyword {
  font-size: 13px; color: var(--brand); background: var(--white);
  border: 1px solid #cddcf5; border-radius: 999px; padding: 5px 14px; transition: .15s;
}
.keyword:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ヒーロー画像（プレースホルダ） */
.hero-media { position: relative; }
.hero-media .placeholder {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, #dbe8fb 0%, #c6dcf8 45%, #b6d0f4 100%);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-media .placeholder svg { width: 78%; height: auto; }
.hero-media .placeholder img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700;
  color: var(--brand-700); background: rgba(255,255,255,.85);
  border-radius: 999px; padding: 3px 10px; letter-spacing: .04em;
}

/* =========================================================
   共通セクション
   ========================================================= */
section { scroll-margin-top: calc(var(--header-h) + 60px); }
.section { padding-block: 60px; }
.section.tinted { background: var(--tint-2); }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.section-head .head-icon {
  width: 30px; height: 30px; color: var(--brand); stroke-width: 1.7; flex: none;
}
.section-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--ink); margin: 0; }
.section-desc { color: var(--muted); margin: 4px 0 28px; font-size: 14px; }
.section-desc.indent { margin-left: 42px; }

.more-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  color: var(--brand); font-weight: 700; font-size: 14px;
}
.more-link .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .15s; }
.more-link:hover .icon { transform: translateX(4px); }
.more-right { justify-content: flex-end; width: 100%; }

/* =========================================================
   カテゴリ5枚（症状/病気/治療/薬/生活改善）
   ========================================================= */
.cat5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 16px 20px; box-shadow: var(--shadow); transition: .18s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cddcf5; }
.cat-card .thumb {
  width: 60px; height: 60px; border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; color: var(--brand); margin-bottom: 16px;
}
.cat-card .thumb .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.cat-card h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.cat-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.cat-card .go { color: var(--brand); }
.cat-card .go .icon { width: 22px; height: 22px; stroke-width: 2; }

/* =========================================================
   体の部位 ＋ ランキング（2カラム）
   ========================================================= */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }

.body-panel {
  background: var(--tint-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.body-figure { width: 100%; height: auto; }

/* インタラクティブ人体図（部位から探す）— ラベルはHTML */
.bodymap { position: relative; max-width: 640px; margin-inline: auto; }
.bodymap-base { width: 100%; height: auto; display: block; }
.bodymap-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bodymap-lines line { stroke: #aebfdd; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bm-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); transform: translate(-50%, -50%); pointer-events: none;
}
.bm-label {
  position: absolute; transform: translateY(-50%); display: inline-block;
  font-size: clamp(11px, 1.6vw, 13px); font-weight: 700; color: var(--ink);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.bm-front { right: 84%; text-align: right; }
.bm-back  { left: 84%; text-align: left; }
.bm-label:hover, .bm-label:focus-visible {
  background: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(22, 87, 192, .32); outline: none;
}
.body-figure text { font-size: 13px; fill: var(--ink); font-weight: 600; }
.body-figure .lead { stroke: #b9c8e2; stroke-width: 1; }
.body-figure .dot { fill: var(--brand); }
.body-figure .silhouette { fill: #dfe9f8; stroke: #a9c0e6; stroke-width: 1.4; }

/* ランキング */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); transition: .18s;
}
.rank-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.rank-badge {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px;
}
.rank-1 { background: var(--gold); }
.rank-2 { background: var(--silver); }
.rank-3 { background: var(--bronze); }
.rank-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint);
  display: grid; place-items: center; color: var(--brand); flex: none; }
.rank-ico .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.rank-body { flex: 1; }
.rank-body h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.rank-body p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.rank-item .chev { color: var(--brand); }
.rank-item .chev .icon { width: 18px; height: 18px; stroke-width: 2; }

/* =========================================================
   病気・疾患（濃紺パネル ＋ カテゴリ9枚）
   ========================================================= */
.disease-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.disease-aside {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 18px; min-height: 100%;
}
.disease-aside .aside-icon {
  width: 54px; height: 54px; border-radius: 12px; background: rgba(255,255,255,.12);
  display: grid; place-items: center; color: #fff;
}
.disease-aside .aside-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.disease-aside h3 { font-size: 19px; font-weight: 800; margin: 0; }
.disease-aside p { font-size: 13px; color: #d6e2f6; margin: 0; }
.aside-btn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 14px;
  border-radius: 8px; padding: 10px 20px; transition: .15s;
}
.aside-btn:hover { background: #eaf1fc; }
.aside-btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }

.disease-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.disease-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: .18s; position: relative;
}
.disease-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cddcf5; }
.disease-card .d-ico {
  width: 46px; height: 46px; border-radius: 10px; background: var(--tint);
  display: grid; place-items: center; color: var(--brand); flex: none;
}
.disease-card .d-ico .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.disease-card h4 { margin: 0 0 5px; font-size: 15px; font-weight: 800; color: var(--ink); }
.disease-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.disease-card .chev { position: absolute; top: 16px; right: 14px; color: #b9c8e2; }
.disease-card .chev .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* =========================================================
   代表的な症状（8枚）
   ========================================================= */
.symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.symptom-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); transition: .18s;
}
.symptom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cddcf5; }
.symptom-card .s-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--tint);
  display: grid; place-items: center; color: var(--brand); flex: none;
}
.symptom-card .s-ico .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.symptom-card .s-name { font-size: 16px; font-weight: 800; color: var(--ink); flex: 1; }
.symptom-card .chev { color: var(--brand); }
.symptom-card .chev .icon { width: 18px; height: 18px; stroke-width: 2; }

/* =========================================================
   信頼できる理由
   ========================================================= */
.trust {
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px;
}
.trust h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.trust > p { color: var(--text); margin: 0 0 30px; font-size: 14px; max-width: 46em; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { display: flex; flex-direction: column; gap: 12px; }
.trust-item .t-ico {
  width: 54px; height: 54px; border-radius: 12px; background: var(--tint);
  display: grid; place-items: center; color: var(--brand);
}
.trust-item .t-ico .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.trust-item h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 免責 */
.disclaimer { padding-bottom: 60px; }
.disclaimer .note {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
}
.disclaimer .note .icon { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #d6e2f6;
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-block: 52px 36px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { font-size: 13px; margin: 16px 0 0; max-width: 22em; }
.footer-col h4 { font-size: 14px; color: #fff; margin: 4px 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 13px; color: #cdd9f0; transition: .15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; gap: 16px; flex-wrap: wrap;
}
.copyright { font-size: 12px; color: #b8c6e2; }
.social { display: flex; gap: 12px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: grid; place-items: center; color: #fff; transition: .15s;
}
.social a:hover { background: rgba(255,255,255,.25); }
.social .icon { width: 18px; height: 18px; }

/* =========================================================
   下層ページ共通
   ========================================================= */

/* パンくず */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--white); }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap;
  gap: 8px; font-size: 12.5px; color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: #b9c8e2; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ページヘッダー（タイトル帯） */
.page-hero { background: var(--tint-2); border-bottom: 1px solid var(--line); }
.page-hero-inner { padding-block: 34px 30px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--brand); background: var(--tint); border: 1px solid #cddcf5;
  border-radius: 999px; padding: 4px 12px;
}
.page-title {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--ink);
  margin: 14px 0 6px; line-height: 1.35;
}
.page-title .yomi { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: 8px; }
.page-lead { font-size: 15px; color: var(--text); margin: 10px 0 0; max-width: 52em; }

.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meta-item .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 1.8; }
.meta-item strong { color: var(--ink); font-weight: 700; }
.meta-actions { margin-left: auto; display: flex; gap: 10px; }
.meta-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--text); background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; transition: .15s;
}
.meta-btn:hover { border-color: #cddcf5; color: var(--brand); }
.meta-btn .icon { width: 15px; height: 15px; stroke-width: 1.8; }

/* デモ注記タグ */
.demo-note {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 11.5px; color: #9a6a1e; background: #fdf5e6; border: 1px solid #f2d9a8;
  border-radius: 8px; padding: 6px 12px;
}
.demo-note .icon { width: 14px; height: 14px; color: #c98a1e; }

/* 記事レイアウト（TOC ＋ 本文） */
.article-wrap { padding-block: 40px 60px; }
/* 読みやすい行長になるよう本文カラムを制限し、全体を中央寄せ */
.article-layout {
  display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 48px;
  align-items: start; justify-content: center;
}

/* 目次（固定サイドバー） */
.toc { position: sticky; top: calc(var(--header-h) + 16px); }
.toc-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 6px 18px 18px; box-shadow: var(--shadow); }
.toc-title { font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.toc-title .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 1.8; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-list a {
  display: block; font-size: 13px; color: var(--text); padding: 7px 10px;
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0; transition: .12s;
}
.toc-list a:hover { color: var(--brand); background: var(--tint-2); }
.toc-list a.active { color: var(--brand); font-weight: 700; border-left-color: var(--brand); background: var(--tint-2); }

/* 本文（プロース） */
.prose h2 {
  font-size: 22px; font-weight: 800; color: var(--ink); margin: 40px 0 14px;
  padding-left: 14px; border-left: 5px solid var(--brand); line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 4px; }
.prose li { list-style: none; position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--text); }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: var(--tint); color: var(--brand); border-radius: 50%;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

/* 情報テーブル */
.info-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.info-table th { background: var(--tint-2); color: var(--ink); font-weight: 700; width: 30%; white-space: nowrap; }

/* コールアウト（受診の目安など） */
.callout {
  display: flex; gap: 14px; border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 20px;
}
.callout .c-ico { flex: none; width: 24px; height: 24px; }
.callout h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.callout p { margin: 0; font-size: 13.5px; }
.callout.alert { background: #fdf0ec; border: 1px solid #f3c9bb; }
.callout.alert .c-ico, .callout.alert h3 { color: #c0492a; }
.callout.info { background: var(--tint); border: 1px solid #cddcf5; }
.callout.info .c-ico, .callout.info h3 { color: var(--brand); }

/* FAQ アコーディオン */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 46px; position: relative;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px;
  background: var(--brand); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 20px 18px 46px; font-size: 14px; color: var(--text); }

/* 出典・参考文献 */
.refs { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.refs h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.refs ol { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.refs li { counter-increment: r; position: relative; padding-left: 30px; font-size: 12.5px; color: var(--muted); }
.refs li::before { content: counter(r); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--brand); }
.refs a { color: var(--brand); word-break: break-all; }

/* 監修者カード */
.reviewer {
  display: flex; gap: 16px; align-items: center; margin-top: 28px;
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.reviewer .avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none; background: var(--tint);
  display: grid; place-items: center; color: var(--brand);
}
.reviewer .avatar .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.reviewer .r-role { font-size: 12px; color: var(--brand); font-weight: 700; }
.reviewer .r-name { font-size: 16px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.reviewer .r-desc { font-size: 12.5px; color: var(--muted); margin: 0; }

/* 関連カード */
.related { margin-top: 44px; }
.related h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); transition: .18s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cddcf5; }
.related-card .r-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; color: var(--brand); flex: none; }
.related-card .r-ico .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.related-card .r-t { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.related-card .chev { color: var(--brand); }
.related-card .chev .icon { width: 16px; height: 16px; stroke-width: 2; }

/* 記事内の免責 */
.article-disclaimer {
  margin-top: 34px; display: flex; gap: 12px; align-items: flex-start;
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
}
.article-disclaimer .icon { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }

/* =========================================================
   一覧ページ
   ========================================================= */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 8px; }
.list-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; max-width: 460px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px 4px 14px;
}
.list-search .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.list-search input { flex: 1; border: 0; outline: none; padding: 10px 4px; font-size: 14px; background: transparent; }
.list-search button { background: var(--brand); color: #fff; border: 0; border-radius: 7px; padding: 8px 18px; font-weight: 700; font-size: 14px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; transition: .15s; cursor: pointer;
}
.chip:hover { border-color: #cddcf5; color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.index-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.index-nav a {
  width: 38px; height: 38px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: var(--brand); background: var(--white); border: 1px solid var(--line); border-radius: 8px; transition: .15s;
}
.index-nav a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.list-status { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.list-status strong { color: var(--ink); font-weight: 700; }
.list-empty {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 24px;
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14px; color: var(--muted);
}
.list-empty .icon { width: 20px; height: 20px; color: var(--brand); flex: none; }
/* display:flex を持つ要素は hidden 属性が効かないため、明示的に打ち消す */
.list-group[hidden], .list-empty[hidden], .term-link[hidden] { display: none; }

.list-group { margin-bottom: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.list-group-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.list-group-head .g-letter { width: 34px; height: 34px; background: var(--brand); color: #fff; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.list-group-head h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0; }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.term-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--line); transition: .15s;
}
.term-link:hover { border-color: #cddcf5; background: var(--tint-2); }
.term-link .chev { margin-left: auto; color: var(--brand); }
.term-link .chev .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.term-link .t-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.term-link .t-cat { font-size: 11px; color: var(--muted); }

/* 一覧ページのサイドバー付きレイアウト */
.list-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.list-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 20px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.aside-card h3 .icon { width: 16px; height: 16px; color: var(--brand); stroke-width: 1.8; }
.aside-card ol { counter-reset: rk; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-card ol li { counter-increment: rk; }
.aside-card ol a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); }
.aside-card ol a::before { content: counter(rk); width: 22px; height: 22px; flex: none; background: var(--tint); color: var(--brand); border-radius: 6px; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.aside-card ol a:hover { color: var(--brand); }
.aside-card .tag-links { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-card .tag-links a { font-size: 12.5px; color: var(--brand); background: var(--tint); border-radius: 999px; padding: 5px 12px; }
.aside-card .tag-links a:hover { background: var(--brand); color: #fff; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1080px) {
  .cat5 { grid-template-columns: repeat(3, 1fr); }
  .disease-layout { grid-template-columns: 1fr; }
  .disease-aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .disease-aside .aside-icon { margin-right: 4px; }
  .aside-btn { margin-top: 0; margin-left: auto; }
}

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc-box { padding: 16px 16px; }
  .toc-list { grid-template-columns: 1fr 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .list-aside { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .term-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-actions .pro-link span { display: inline; }
  .nav-toggle { display: inline-flex; }
  .global-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .global-nav.open { max-height: 70vh; overflow: auto; }
  .global-nav ul { flex-direction: column; padding: 8px 0; }
  .global-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .global-nav a[aria-current="page"] { border-bottom-color: var(--line); background: var(--tint-2); }

  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.7) 55%, rgba(255,255,255,.5) 100%),
      url('assets/images/hero-bg.jpg') center top / cover no-repeat;
  }
  .hero-inner { min-height: 0; padding-block: 40px 44px; }
  .hero-copy { max-width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .disease-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { padding-inline: 18px; }
  .brand-tag { display: none; }
  .header-actions .pro-link span { display: none; }
  .cat5 { grid-template-columns: repeat(2, 1fr); }
  .symptom-grid { grid-template-columns: 1fr; }
  .disease-grid { grid-template-columns: 1fr; }
  .disease-aside { flex-direction: column; align-items: flex-start; }
  .aside-btn { margin-left: 0; }
  .search { flex-direction: column; }
  .search-btn { padding: 12px; }
  .trust { padding: 26px 20px; }
  .section { padding-block: 44px; }

  .toc-list { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: 1fr; }
  .list-aside { grid-template-columns: 1fr; }
  .meta-actions { margin-left: 0; width: 100%; }
  .info-table th { width: auto; white-space: normal; }
}

/* =========================================================
   モーション軽減の設定を尊重（A11y）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
