/* ============================================
   ウェルケアノート  -  base style
   ============================================ */

:root {
  --c-accent:   #14a3a0;   /* ヘルスケアターコイズ */
  --c-accent-d: #0e8480;
  --c-sub:      #ef8b6b;   /* あたたかいコーラル */
  --c-sub-d:    #d9704f;
  --c-ink:      #26383c;   /* 文字 */
  --c-ink-soft: #6b7d80;
  --c-line:     #dfeced;
  --c-bg:       #f3fafa;   /* 清潔感のあるミントホワイト */
  --c-card:     #ffffff;
  --shadow:     0 8px 24px rgba(20, 80, 82, .10);
  --radius:     16px;
  --container:  1120px;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --font-round: "M PLUS Rounded 1c", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ========== ヘッダー ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(20, 80, 82, .08);
  background: rgba(255, 255, 255, .97);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  transition: height .3s;
}
.site-header.is-scrolled .header-inner { height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: block; }
.logo-text {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
}
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 2px; }
.global-nav a {
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}
.global-nav a:hover { background: var(--c-bg); color: var(--c-accent); }

.search-btn {
  border: none; background: none; cursor: pointer;
  color: var(--c-ink); display: flex; padding: 6px;
  border-radius: 50%;
}
.search-btn:hover { color: var(--c-accent); }

.nav-toggle { display: none; }

/* 検索バー */
.search-bar {
  border-top: 1px solid var(--c-line);
  background: #fff;
  padding: 16px 0;
}
.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-form input {
  flex: 1; border: 1px solid var(--c-line); border-radius: 999px;
  padding: 12px 20px; font-size: .95rem; font-family: inherit;
  background: var(--c-bg);
}
.search-form input:focus { outline: 2px solid var(--c-accent); }
.search-form button {
  border: none; background: var(--c-accent); color: #fff;
  padding: 0 24px; border-radius: 999px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.search-form button:hover { background: var(--c-accent-d); }

/* ========== 人気記事カルーセル（トップ最上部） ========== */
.featured { padding: 28px 0 8px; }

.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; min-width: 0; }

/* 前へ／次へ */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--c-line); background: rgba(255, 255, 255, .94);
  color: var(--c-ink); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(20, 80, 82, .12);
  transition: background .2s, color .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* ドット */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: #c3d8d9; cursor: pointer; transition: width .25s, background .25s;
}
.carousel-dot:hover { background: var(--c-accent-d); }
.carousel-dot.is-active { width: 28px; background: var(--c-accent); }

/* スライド1枚（写真＋本文の横並び） */
.hero-card {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
}
.hero-card-thumb {
  display: block; position: relative; overflow: hidden;
  background: hsl(var(--h,180) 48% 88%);
}
.hero-card-thumb .thumb-art,
.hero-card-thumb .hc-thumb-img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-card:hover .thumb-art,
.hero-card:hover .hc-thumb-img { transform: scale(1.04); }
.hero-card-rank {
  position: absolute; left: 0; top: 0; z-index: 2;
  min-width: 44px; height: 40px; padding: 0 12px;
  border-radius: 0 0 14px 0;
  background: var(--c-accent); color: #fff;
  font-family: var(--font-round); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center;
}
.hero-card-body { padding: 28px 34px; align-self: center; }
.hero-card-title {
  font-family: var(--font-round);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 700; line-height: 1.5; margin: 12px 0;
}
.hero-card-title a:hover { color: var(--c-accent); }
.hero-card-excerpt {
  font-size: .92rem; color: var(--c-ink-soft); line-height: 1.8; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 「視差効果を減らす」設定の環境ではスライドさせない */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ========== セクションの共通枠 ========== */
.block-section { padding: 44px 0; }
.block-section.is-paged { padding-top: 28px; }
.block-section--tint { background: #fff; border-block: 1px solid var(--c-line); }
.block-lead { font-size: .88rem; color: var(--c-ink-soft); margin: -8px 0 20px; }

/* ========== 信頼バー（医療情報の扱い方） ========== */
.trust-bar { background: #fff; border-block: 1px solid var(--c-line); }
.trust-bar .container {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px;
  padding-block: 18px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--c-ink-soft); line-height: 1.5;
}
.trust-item b { display: block; color: var(--c-ink); font-size: .92rem; font-family: var(--font-round); }
.trust-ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-bg); display: grid; place-items: center; font-size: 1.1rem;
}
.trust-note { text-align: center; font-size: .78rem; color: var(--c-ink-soft); padding-bottom: 16px; }
.trust-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ========== 症状・キーワードから探す ========== */
.symptom-nav { padding: 44px 0 40px; }
/* 等幅のグリッドにして、最後の行に1つだけ残るような崩れを防ぐ */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 940px;
  margin-inline: auto;
}
.chip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--c-card);
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 11px 14px; font-size: .9rem; font-weight: 500;
  text-align: center; line-height: 1.4;
}
.chip::before { content: "🔍"; font-size: .85em; }
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); background: #fff; }

/* ========== カテゴリーナビ ========== */
.cat-nav { padding: 48px 0; }
.section-eyebrow {
  text-align: center; font-family: var(--font-round);
  font-size: 1.15rem; margin-bottom: 28px; letter-spacing: .06em;
}
.section-eyebrow::after {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--c-accent); border-radius: 3px; margin: 10px auto 0;
}
/* カテゴリーから探す（バー + 写真 + 概要 + 子カテゴリー） */
.catx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
}
.catx {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow .25s;
}
.catx:hover { box-shadow: var(--shadow); }
.catx-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: hsl(var(--h, 180) 38% 52%);
  color: #fff; font-weight: 700; font-family: var(--font-round);
  font-size: 1.05rem; letter-spacing: .02em;
  border-radius: 10px; padding: 10px 16px;
  box-shadow: 0 3px 0 hsl(var(--h, 180) 38% 41%);
  margin-bottom: 16px;
}
.catx-bar:hover { color: #fff; background: hsl(var(--h, 180) 40% 46%); }
.catx-arrow { font-size: 1.25rem; line-height: 1; }
.catx-body { display: flex; gap: 14px; align-items: flex-start; }
.catx-thumb {
  flex: 0 0 116px; aspect-ratio: 4/3;
  border-radius: 10px; overflow: hidden; display: block;
  background: hsl(var(--h, 180) 48% 90%);
}
.catx-thumb img, .catx-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.catx-desc { font-size: .86rem; color: var(--c-ink-soft); line-height: 1.7; margin-bottom: 8px; }
.catx-kids { display: flex; flex-wrap: wrap; gap: 6px; }
.catx-kids a {
  display: inline-block; font-size: .78rem; font-weight: 500;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: 999px; padding: 3px 11px; color: var(--c-ink-soft);
}
.catx-kids a:hover { border-color: hsl(var(--h,180) 38% 52%); color: hsl(var(--h,180) 38% 42%); }

.cat-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 50%;
  background: hsl(var(--h, 180) 45% 92%);
}

/* ========== レイアウト ========== */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 72px;
}

.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.block-title {
  font-family: var(--font-round); font-size: 1.4rem; font-weight: 700;
  padding-left: 14px; position: relative;
}
.block-title::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 5px; background: var(--c-accent); border-radius: 3px;
}
.block-more { font-size: .88rem; font-weight: 700; color: var(--c-sub-d); }

.article-block { margin-bottom: 52px; }

/* 記事カード */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--c-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--c-line);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); transition: .25s; }
.card-thumb {
  display: block;
  aspect-ratio: 16/10; background: hsl(var(--h,180) 48% 88%);
  position: relative;
}
.card-thumb > a { display: block; width: 100%; height: 100%; }
.card-body { padding: 14px 16px 18px; }
.card-title {
  font-size: 1.0rem; font-weight: 700; line-height: 1.55; margin-bottom: 8px;
}
.card-title a:hover { color: var(--c-accent); }
.card-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.card-meta {
  display: flex; gap: 12px; font-size: .78rem; color: var(--c-ink-soft); flex-wrap: wrap;
}
.tag {
  display: inline-block; background: var(--c-accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
/* 子カテゴリーは白抜きにして、親カテゴリーとの階層が分かるようにする */
.tag-child {
  background: #fff; color: var(--c-accent-d);
  border: 1px solid var(--c-accent); padding: 2px 9px;
}
.tag-child:hover { background: var(--c-bg); color: var(--c-accent-d); }
/* 連載・特集タグ（#付き） */
.hashtag {
  font-size: .74rem; font-weight: 500; color: var(--c-ink-soft);
  white-space: nowrap;
}
.hashtag:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
/* PR（広告）表示 — ステルスマーケティング規制への対応 */
.badge-pr {
  display: inline-block; background: #6b7d80; color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px;
}
.card-thumb .badge-pr { position: absolute; left: 10px; top: 10px; z-index: 1; }
.pr-notice {
  font-size: .8rem; color: var(--c-ink-soft);
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 24px;
}

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 8px; }

/* ========== サイドバー ========== */
.widget {
  background: var(--c-card); border-radius: var(--radius);
  padding: 22px; margin-bottom: 24px; border: 1px solid var(--c-line);
}
.widget-title {
  font-family: var(--font-round); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px dotted var(--c-line);
}
.widget-profile { text-align: center; }
.widget-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: #dff3f2;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px;
}
.widget-profile p { font-size: .88rem; color: var(--c-ink-soft); }

.rank-list { counter-reset: rank; }
.rank-list li { counter-increment: rank; }
.rank-list a {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--c-line);
}
.rank-list li:last-child a { border-bottom: none; }
.rank-list a::before {
  content: counter(rank); flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg); color: var(--c-ink-soft);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  font-family: var(--font-round);
}
.rank-list li:nth-child(1) a::before { background: var(--c-accent); color: #fff; }
.rank-list li:nth-child(2) a::before { background: var(--c-sub); color: #fff; }
.rank-list li:nth-child(3) a::before { background: #c2b280; color: #fff; }
.rank-list span { font-size: .88rem; font-weight: 500; line-height: 1.5; }

.cat-list a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--c-line); font-size: .9rem; font-weight: 500;
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list span { color: var(--c-ink-soft); }

/* サイドバーの注意書き */
.widget-caution {
  background: linear-gradient(135deg, #dff3f2, #fde9e1);
  border: none;
}
.widget-caution p { font-size: .84rem; color: var(--c-ink-soft); }
.widget-caution .widget-title { border-bottom-color: rgba(255,255,255,.7); }

/* ========== フッター ========== */
.site-footer { background: #e6f2f2; padding: 48px 0 0; margin-top: auto; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px;
}
.footer-brand p { font-size: .86rem; color: var(--c-ink-soft); margin-top: 10px; max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav h3 { font-size: .95rem; margin-bottom: 14px; font-family: var(--font-round); }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: .86rem; color: var(--c-ink-soft); }
.footer-disclaimer {
  border-top: 1px solid #cfe3e3; padding: 20px 0;
  font-size: .78rem; color: var(--c-ink-soft); line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid #cfe3e3; text-align: center;
  padding: 20px; font-size: .8rem; color: var(--c-ink-soft);
}

/* トップへ戻る */
.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--c-accent); color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--c-accent-d); }

/* ========== スクロール演出 ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ========== サムネイルのイラスト・抜粋など ========== */
.card-thumb, .post-eyecatch { position: relative; overflow: hidden; }
.thumb-art { position: absolute; inset: 0; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.thumb-art svg { width: 100%; height: 100%; display: block; }
.card:hover .thumb-art { transform: scale(1.06); }
.card-title { transition: color .2s; }
.card:hover .card-title { color: var(--c-accent); }
.card-thumb .tag { position: absolute; left: 10px; top: 10px; z-index: 1; }
.card-excerpt {
  font-size: .85rem; color: var(--c-ink-soft); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tag-sub { background: #e6f2f2; color: var(--c-ink-soft); }
.empty {
  grid-column: 1 / -1; text-align: center; color: var(--c-ink-soft);
  background: var(--c-card); border: 1px dashed var(--c-line); border-radius: var(--radius); padding: 48px 20px;
}

/* ========== 固定ページ・サイトマップ ========== */
.page-static { max-width: 820px; margin: 0 auto; padding-bottom: 72px; }
.page-static .post-title { margin-bottom: 28px; }
.sitemap-block { margin-bottom: 8px; }
.sitemap-block h2 { margin-top: 0; }
.sitemap-list { list-style: none; margin: 0 0 28px; padding: 0; }
.sitemap-list li { border-bottom: 1px dashed var(--c-line); }
.sitemap-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; }
.sitemap-list a:hover { color: var(--c-accent); }
.sitemap-list .sitemap-cat { color: var(--c-ink-soft); font-size: .82rem; white-space: nowrap; }

/* ========== パンくず ========== */
.breadcrumb { padding: 16px 0; font-size: .82rem; color: var(--c-ink-soft); }
.breadcrumb .container { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span:not(:last-child) { color: #b9cfd0; }

/* ========== カテゴリーヒーロー ========== */
.cat-hero {
  background: hsl(var(--h,180) 45% 95%);
  padding: 44px 0; text-align: center; margin-bottom: 8px;
}
.cat-hero .cat-ico { margin: 0 auto 14px; background: #fff; }
.cat-hero h1 { font-family: var(--font-round); font-size: 2rem; margin-bottom: 10px; }
.cat-hero p { max-width: 620px; margin: 0 auto; color: var(--c-ink-soft); font-size: .92rem; }

/* ========== 検索ページ・404 ========== */
.search-hero { background: linear-gradient(135deg, #dff3f2, #fde9e1); padding: 40px 0; margin-bottom: 8px; text-align: center; }
.search-hero h1 { font-family: var(--font-round); font-size: 1.8rem; margin-bottom: 18px; }
.search-form--lg { max-width: 640px; margin: 0 auto; }
.search-form--lg input { padding: 15px 22px; font-size: 1rem; background: #fff; }
.search-summary { margin-top: 16px; color: var(--c-ink-soft); font-size: .92rem; }
.search-summary strong { color: var(--c-accent-d); }
.error-code {
  font-family: var(--font-round); font-weight: 700;
  font-size: 3.4rem; line-height: 1; color: var(--c-accent); opacity: .5;
  margin-bottom: 4px;
}
.cat-list--wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.archive-paged { font-size: .84rem; color: var(--c-ink-soft); margin-top: 6px; }

/* ========== 記事本文 ========== */
.post { background: var(--c-card); border-radius: var(--radius); padding: 40px; border: 1px solid var(--c-line); }
.post-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.post-title { font-family: var(--font-round); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.5; margin-bottom: 14px; }
.post-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--c-ink-soft); flex-wrap: wrap; }
.post-meta .reading-time::before { content: "⏱ "; }
.post-meta .reviewed-date::before { content: "📅 "; }
.post-eyecatch { aspect-ratio: 16/8; border-radius: var(--radius); background: hsl(var(--h,180) 48% 88%); margin: 24px 0 32px; }

.post-body { font-size: 1.02rem; counter-reset: hc-head; }
.post-body h2 {
  font-family: var(--font-round); font-size: 1.4rem; margin: 44px 0 18px;
  padding-bottom: 12px; border-bottom: 3px solid var(--c-line); position: relative;
}
.post-body h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 80px; height: 3px; background: var(--c-accent); }
.post-body h3 {
  font-family: var(--font-round); font-size: 1.15rem;
  margin: 32px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--c-sub);
}
.post-body h4 {
  font-family: var(--font-round); font-size: 1.02rem;
  margin: 24px 0 10px; color: var(--c-ink);
}
.post-body p { margin-bottom: 20px; }
.post-body h2 + p, .post-body h3 + p, .post-body h4 + p { margin-top: 0; }
.post-body img { border-radius: 12px; height: auto; margin: 8px 0; }
.post-body ul:not([class*="-list"]),
.post-body ol:not([class*="-list"]) { margin: 0 0 20px 1.4em; }
.post-body ul:not([class*="-list"]) { list-style: disc; }
.post-body ol:not([class*="-list"]) { list-style: decimal; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--c-accent-d); text-decoration: underline; }
.post-body blockquote {
  margin: 24px 0; padding: 16px 22px; background: var(--c-bg);
  border-left: 5px solid var(--c-sub); border-radius: 0 12px 12px 0; color: var(--c-ink-soft);
}
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: .82rem; color: var(--c-ink-soft); text-align: center; margin-top: 8px; }
.post-body .aligncenter, .post-body .wp-block-image.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.post-body .alignleft  { float: left;  margin: 8px 24px 16px 0; max-width: 50%; }
.post-body .alignright { float: right; margin: 8px 0 16px 24px; max-width: 50%; }
.post-body .alignwide, .post-body .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.post-body .wp-block-separator { border: none; border-top: 2px dashed var(--c-line); margin: 40px auto; max-width: 200px; }
.post-body .wp-block-embed, .post-body .wp-block-embed__wrapper { margin: 24px 0; }
.post-body .wp-block-buttons { margin: 24px 0; }
.post-body .wp-block-button__link { border-radius: 999px; background: var(--c-accent); }
.post-body .wp-block-code, .post-body pre {
  background: #eef6f6; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; font-size: .86rem; margin: 24px 0;
}

/* ---------- 出典リスト（記事末尾） ---------- */
.post-sources {
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 36px;
}
.post-sources h2 {
  font-family: var(--font-round); font-size: 1.02rem; margin: 0 0 10px;
  padding: 0; border: none;
}
.post-sources h2::after { display: none; }
.post-body .post-sources ol,
.post-sources ol { margin: 0; padding-left: 1.4em; list-style: decimal; }
.post-sources li { font-size: .86rem; color: var(--c-ink-soft); margin-bottom: 6px; line-height: 1.7; }
.post-sources a { color: var(--c-accent-d); text-decoration: underline; word-break: break-all; }

/* ---------- 免責事項（記事末尾に自動挿入） ---------- */
.post-disclaimer {
  background: #fff7f3; border: 1.5px solid #f4cbb9;
  border-radius: var(--radius); padding: 18px 22px; margin-top: 24px;
}
.post-disclaimer p { font-size: .84rem; color: #8a5a44; line-height: 1.8; margin: 0; }
.post-disclaimer p::before {
  content: "⚠️ 医療情報についてのご注意";
  display: block; font-family: var(--font-round); font-weight: 700;
  color: var(--c-sub-d); margin-bottom: 6px; font-size: .9rem;
}

/* ---------- 執筆者ボックス（記事末尾） ---------- */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--radius); padding: 20px; margin-top: 24px;
}
.author-avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; background: #dff3f2; border: 1.5px solid var(--c-line);
  display: grid; place-items: center; font-size: 30px;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-label { font-size: .75rem; color: var(--c-ink-soft); margin: 0; }
.author-name { font-family: var(--font-round); font-weight: 700; margin: 2px 0 2px; }
.author-title { font-size: .8rem; color: var(--c-ink-soft); margin: 0 0 6px; }
.author-bio { font-size: .88rem; color: var(--c-ink-soft); line-height: 1.7; margin: 0; }
/* 執筆者の名前リンクは、本文リンクの下線を引き継がない */
.post-body .author-name a,
.author-name a { color: inherit; text-decoration: none; }
.post-body .author-name a:hover,
.author-name a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- シェア ---------- */
.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.post-share > span { font-size: .84rem; font-weight: 700; color: var(--c-ink-soft); }
.share-btn {
  font-size: .8rem; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-soft);
}
.share-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- 目次 ---------- */
.hc-toc {
  margin: 8px 0 36px;
  padding: 20px 24px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
}
.hc-toc-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-round); font-weight: 700; font-size: 1.05rem;
  margin: 0 0 12px;
}
.hc-toc-title::before { content: "📑"; margin-right: 6px; }
.hc-toc-toggle {
  font: inherit; font-size: .78rem; font-weight: 500;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-ink-soft);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.hc-toc-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hc-toc-list { counter-reset: toc; margin: 0; padding: 0; list-style: none; }
.hc-toc.is-closed .hc-toc-list { display: none; }
.hc-toc-list li { margin: 0; line-height: 1.7; }
.hc-toc-list a {
  display: block; padding: 6px 0 6px 30px; position: relative;
  font-size: .92rem; color: var(--c-ink); text-decoration: none;
}
.hc-toc-list a:hover { color: var(--c-accent); }
.hc-toc-list .toc-lv2 { counter-increment: toc; }
.hc-toc-list .toc-lv2 > a { font-weight: 700; }
.hc-toc-list .toc-lv2 > a::before {
  content: counter(toc);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--c-accent); color: #fff;
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hc-toc-list .toc-lv3 > a { padding-left: 52px; font-size: .86rem; color: var(--c-ink-soft); }
.hc-toc-list .toc-lv3 > a::before {
  content: ""; position: absolute; left: 32px; top: 50%;
  width: 10px; height: 1px; background: var(--c-line);
}

/* ---------- 前後の記事 ---------- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav-item {
  display: block; padding: 16px 20px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.post-nav-item:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-label { display: block; font-size: .76rem; color: var(--c-ink-soft); margin-bottom: 6px; }
.post-nav-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .9rem; font-weight: 700; line-height: 1.6;
}

/* ---------- コメント ---------- */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.comment-list, .comment-list .children { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { margin-left: 24px; padding-left: 20px; border-left: 2px solid var(--c-line); }
.comment-list .comment-body {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 16px;
}
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-metadata { font-size: .76rem; color: var(--c-ink-soft); margin: 4px 0 10px; }
.comment-list .comment-content { font-size: .94rem; }
.comment-list .reply { font-size: .82rem; margin-top: 8px; }
.comment-list .reply a { color: var(--c-accent-d); font-weight: 700; }
.comment-respond { background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.comment-respond .comment-reply-title { font-family: var(--font-round); font-size: 1.15rem; margin-bottom: 8px; }
.comment-notes, .comment-form-cookies-consent label { font-size: .8rem; color: var(--c-ink-soft); }
.comment-form label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px;
}
.comment-form textarea { resize: vertical; }
.comment-form .comment-submit,
.comment-form input[type="submit"] {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 12px 32px; border: none; border-radius: 999px;
  background: var(--c-accent); color: #fff; transition: opacity .2s;
}
.comment-form .comment-submit:hover,
.comment-form input[type="submit"]:hover { opacity: .85; }

/* ============================================================
   WordPress 用の追加調整
   ============================================================ */
.hc-thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .hc-thumb-img { transform: scale(1.06); }
.custom-logo { width: 36px; height: 36px; display: block; border-radius: 8px; }

.pagination ul.page-numbers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--c-line); background: #fff;
  font-weight: 700; padding-inline: 12px; font-family: var(--font-round);
}
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .page-numbers.current { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.pagination .page-numbers.dots { border: none; background: transparent; }

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- アクセシビリティ ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px; width: auto; height: auto;
  clip: auto; clip-path: none; z-index: 200;
  padding: 10px 18px;
  background: var(--c-card); color: var(--c-ink);
  border-radius: 10px; box-shadow: var(--shadow);
}
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.post-body h2, .post-body h3, .post-body h4 { scroll-margin-top: 90px; }
#comments, .related { scroll-margin-top: 90px; }

/* ヘッダー常時表示の検索ボックス（PC） */
.header-search { margin-left: 4px; flex: 1 1 130px; min-width: 110px; max-width: 220px; }
.header-search input {
  width: 100%; min-width: 0;
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 9px 14px 9px 34px; font-size: .86rem; font-family: inherit;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="%236b7d80" stroke-width="2"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.5" y2="16.5"/></svg>') 12px center no-repeat;
}
.header-search input:focus { outline: 2px solid var(--c-accent); }
.header-search input::placeholder { color: #a7bcbd; }

@media (min-width: 1100px) {
  .search-btn { display: none; }
  .global-nav a { padding: 8px 8px; font-size: .86rem; }
  .logo-text { font-size: 1.15rem; }
}
@media (max-width: 1099px) {
  .header-search { display: none; }
}

/* ========== レスポンシブ ========== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .trust-bar .container { grid-template-columns: 1fr; }
  .post-body .alignwide, .post-body .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
  .post-body .alignleft, .post-body .alignright { float: none; margin: 24px 0; max-width: 100%; }
}

@media (max-width: 640px) {
  .global-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--c-line); margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s; box-shadow: var(--shadow);
  }
  .global-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .global-nav ul { flex-direction: column; padding: 8px; gap: 0; }
  .global-nav a { padding: 14px; border-bottom: 1px solid var(--c-line); }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .card-grid { grid-template-columns: 1fr; }
  .catx-grid { grid-template-columns: 1fr; }
  .post { padding: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: 1; text-align: left; }
}

/* ============================================================
   ランキング（週間／月間タブ）と横並びの記事行
   ============================================================ */
.rank-tabs { display: flex; gap: 6px; }
.rank-tab {
  font: inherit; font-size: .84rem; font-weight: 700; font-family: var(--font-round);
  padding: 7px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.rank-tab:hover { border-color: var(--c-accent); color: var(--c-accent); }
.rank-tab.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.row-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}
.row-card { border-bottom: 1px solid var(--c-line); }
.row-card:last-child, .row-list > .row-card:nth-last-child(-n+1) { border-bottom: none; }
.row-card > a { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.row-thumb {
  flex: 0 0 96px; width: 96px; aspect-ratio: 4/3;
  position: relative; overflow: hidden; border-radius: 8px;
  background: hsl(var(--h,180) 48% 88%);
}
.row-rank {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 24px; height: 24px; border-radius: 0 0 8px 0;
  background: var(--c-accent); color: #fff;
  font-family: var(--font-round); font-weight: 700; font-size: .78rem;
  display: grid; place-items: center;
}
.row-card:nth-child(1) .row-rank { background: var(--c-accent); }
.row-card:nth-child(2) .row-rank { background: var(--c-sub); }
.row-card:nth-child(3) .row-rank { background: #c2b280; }
.row-card:nth-child(n+4) .row-rank { background: var(--c-ink-soft); }
.row-body { min-width: 0; }
.row-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .92rem; font-weight: 700; line-height: 1.55;
}
.row-card:hover .row-title { color: var(--c-accent); }
.row-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: .74rem; color: var(--c-ink-soft); margin-top: 5px;
}
.row-cat {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: 999px; padding: 1px 9px;
}

/* ============================================================
   レスポンシブ（新しいセクション）
   ============================================================ */
@media (max-width: 1000px) {
  .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-card-thumb { aspect-ratio: 16/9; }
  .hero-card-body { padding: 20px 22px 24px; }
  /* 写真の下に本文が回り込むぶん、矢印が本文に重なる。
     スマホでは矢印とドットをカルーセルの下に1列に並べる。 */
  .carousel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
  .carousel-viewport { flex: 0 0 100%; order: 1; }
  .carousel-btn {
    position: static; transform: none;
    order: 2; width: 40px; height: 40px; box-shadow: none;
  }
  .carousel-dots { order: 3; margin-top: 0; }
  .carousel-next { order: 4; }
  .row-list { grid-template-columns: 1fr; }
  .row-card { border-bottom: 1px solid var(--c-line); }
  .row-list > .row-card:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chip { padding: 10px 10px; font-size: .84rem; }
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .block-section { padding: 32px 0; }
  .block-head { flex-wrap: wrap; gap: 10px; }
  .catx-body { flex-direction: column; }
  .catx-thumb { flex: none; width: 100%; aspect-ratio: 16/8; }
}

/* サイドバー：カテゴリーの子階層 */
.cat-list-kids > ul { padding: 4px 0 8px 14px; border-left: 2px solid var(--c-line); margin-left: 4px; }
.cat-list-kids a { padding: 7px 0; font-size: .84rem; font-weight: 400; border-bottom: none; }

/* カテゴリーページ：子カテゴリーへの導線 */
.cat-hero-kids { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.cat-hero-kids a {
  display: inline-block; background: #fff; border: 1px solid var(--c-line);
  border-radius: 999px; padding: 6px 16px; font-size: .84rem; font-weight: 500;
}
.cat-hero-kids a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* 複数ページに分けた記事のページ送り（wp_link_pages） */
.page-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 32px 0; font-size: .88rem; font-weight: 700; }
.page-links a, .page-links > span:not(:first-child) {
  min-width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: 8px; background: #fff; padding-inline: 8px;
}
.page-links a:hover { border-color: var(--c-accent); color: var(--c-accent); }
