/* ============================================
   入退院サポートナビ — 共通スタイル
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap');

/* ── リセット & ベース ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #4a90b8;
  --primary-light: #e8f1f7;
  --primary-dark:  #356a8a;

  --accent:        #e89556;
  --accent-light:  #fdefe2;
  --accent-dark:   #c47536;

  --cat-blue:      #4a90b8;
  --cat-blue-bg:   #e8f1f7;
  --cat-green:     #5aaa84;
  --cat-green-bg:  #e8f5ee;
  --cat-purple:    #9176b8;
  --cat-purple-bg: #f0eaf7;
  --cat-orange:    #e89556;
  --cat-orange-bg: #fdefe2;

  --bg:            #f7f5f1;
  --card-bg:       #ffffff;
  --text:          #1e2832;
  --text-muted:    #5c6470;
  --text-light:    #9098a4;
  --border:        #e2ded8;
  --border-light:  #edeae5;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow:     0 2px 12px rgba(0,0,0,.09);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);

  --font-body:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  --max-w:      1080px;
  --sidebar-w:  280px;
}

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4em; }

/* ── レイアウト ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
  padding: 36px 0 60px;
}

/* ── ヘッダー ── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.site-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

.site-logo .logo-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  line-height: 1.6;
}
/* 2行目（やさしくサポート）をやや薄く・小さく */
.site-logo .logo-sub br + * { opacity: .8; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.site-nav a:hover,
.site-nav a.active { background: var(--primary-light); color: var(--primary); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  margin-left: auto;
}

/* ── カテゴリタグ ── */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.cat-tag:hover { opacity: .8; text-decoration: none; }

.cat-blue   { background: var(--cat-blue-bg);   color: var(--cat-blue); }
.cat-green  { background: var(--cat-green-bg);  color: var(--cat-green); }
.cat-purple { background: var(--cat-purple-bg); color: var(--cat-purple); }
.cat-orange { background: var(--cat-orange-bg); color: var(--cat-orange); }

/* ── ヒーロー（トップ） ── */
.hero {
  background: linear-gradient(135deg, #2c5f80 0%, #3a9a6e 100%);
  color: #fff;
  padding: 48px 0 52px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: .8;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.hero-desc {
  font-size: 0.95rem;
  opacity: .9;
  line-height: 1.8;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-step {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background .15s;
}

.hero-step:hover { background: rgba(255,255,255,.25); text-decoration: none; color: #fff; }

.hero-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── セクション見出し ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
}

.section-heading .see-all {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
}

/* ── 注目記事（大カード） ── */
.featured-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  transition: box-shadow .2s;
}
.featured-card:hover { box-shadow: var(--shadow-md); }

.featured-card .fc-img {
  background: linear-gradient(135deg, var(--cat-blue-bg), var(--primary-light));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.featured-card .fc-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-card .fc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.featured-card .fc-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}
.featured-card:hover .fc-title { color: var(--primary); }

.featured-card .fc-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-wrap: pretty;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.read-more::after { content: '→'; }

/* ── 記事カード（リスト） ── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  transition: box-shadow .18s, transform .18s;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }

.article-card .ac-img {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--bg);
}

.article-card .ac-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-card .ac-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-card .ac-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.article-card .ac-readtime {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 3px;
}

.article-card .ac-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}
.article-card:hover .ac-title { color: var(--primary); }

.article-card .ac-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── サイドバー ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.sidebar-widget .sw-head {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
}

.sidebar-widget .sw-head.sw-head-popular {
  background: var(--primary);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.2);
}

.sidebar-widget .sw-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 人気記事 */
.popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.popular-item:hover .pi-title { color: var(--primary); }

.popular-item .pi-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popular-item:nth-child(1) .pi-num { background: #fff0d0; color: #c07838; }
.popular-item:nth-child(2) .pi-num { background: #eee; color: #666; }
.popular-item:nth-child(3) .pi-num { background: #fde8d8; color: #a05030; }

.popular-item .pi-title {
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
  transition: color .15s;
}

/* カテゴリリスト */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color .15s;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--primary); text-decoration: none; }

.cat-list-item .cli-count {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── カテゴリページ ヒーロー ── */
.cat-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 36px;
  margin: 16px 0 28px;
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.cat-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cat-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cat-hero-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.cat-hero-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* サブフィルター */
.sub-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.sub-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.sub-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.sub-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

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

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── 記事ページ ── */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep,
.breadcrumb .bc-sep { color: var(--border); }

/* article.html alias structure: .article-main wraps the article */
.article-main {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  font-size: 0.97rem;
  line-height: 1.75;
}
@media (max-width: 720px) {
  .article-main { padding: 22px; }
}

.article-main .article-header {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

/* ── 記事ページ内のarticle-card（ヘッダーとして使用） ─────────────
   リスト一覧用の横並びレイアウトを上書きし、縦積みのヘッダー表示に。
   ────────────────────────────────────────────────────────────────── */
.article-main .article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  cursor: default;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.article-main .article-card:hover {
  transform: none;
  box-shadow: none;
}
.article-main .article-card .article-hero,
.article-main .article-card .pro-hero-img {
  font-size: 2.6rem;
  line-height: 1;
  width: auto;
  height: auto;
  background: none !important;
  min-height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  flex-shrink: 0;
}
.article-main .article-card .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.83rem;
}
.article-main .article-card .article-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .article-main .article-card { padding: 20px 20px 18px; }
  .article-main .article-card .article-title { font-size: 1.35rem; }
}

/* alias classes used in article.html */
.ah-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ah-date,
.ah-readtime {
  font-size: 0.8rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-top: 14px;
  text-wrap: pretty;
}

/* 記事フッター（シェア＆関連） */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.related-articles {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.related-articles h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* category.html: cat-hero 拡張 */
.cat-hero-body { flex: 1; }
.cat-hero-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 8px 0 12px;
}
.cat-hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* category.html: フィルタバー */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tag {
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sort-select select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.85rem;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

/* page-link alias for pagination */
.page-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article-header {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.article-eyecatch {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--cat-green-bg) 100%);
}

.article-header-body {
  padding: 28px 32px 24px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-header-date {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-header-readtime {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--text);
  text-wrap: pretty;
}

/* 記事本文エリア */
.article-body {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  font-size: 0.97rem;
  line-height: 1.75;
}

/* 目次 */
.toc {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc ol {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.toc li a:hover { color: var(--primary); }

/* 記事内見出し */
.article-body h2,
.article-main h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  padding: 12px 18px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0 16px;
  line-height: 1.45;
}

.article-body h3,
.article-main h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-body h3::before,
.article-main h3::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--cat-green);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-body p,
.article-main p { margin-bottom: 14px; }

.article-main ul,
.article-main ol {
  margin: 0 0 16px 1.4em;
  line-height: 1.75;
}
.article-main ul li,
.article-main ol li { margin-bottom: 6px; }

/* チェックリスト */
.checklist {
  background: var(--cat-green-bg);
  border: 1px solid rgba(58,154,110,.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.checklist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cat-green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checklist ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--cat-green);
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
}

/* 注意ボックス */
.info-box {
  background: var(--cat-orange-bg);
  border: 1px solid rgba(192,120,56,.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-box-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.6; }

/* 関連記事 */
.related-articles {
  margin-top: 40px;
}

.related-articles h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-articles h3::before { display: none; }

/* ── フッター ── */
.site-footer {
  background: #1e2832;
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .fb-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .fb-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom .footer-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
}
.footer-bottom .footer-links a:hover { color: #fff; }

/* ── レスポンシブ ── */
@media (max-width: 860px) {
  html { font-size: 16px; }

  .site-nav { display: none; }
  .hamburger { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 48px;
  }

  .sidebar { position: static; }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .fc-img { min-height: 140px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-header-body { padding: 20px; }
  .article-body { padding: 20px; }
  .article-title { font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .article-card .ac-img { width: 80px; font-size: 1.8rem; }
  .article-card .ac-excerpt { display: none; }
}

/* ── 警告・禁止・情報ボックス ── */
.warn-box {
  background: #fff8e6;
  border-left: 4px solid #e8a420;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.75;
}
.warn-box-icon { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.warn-box strong { color: #b07000; }

.deny-box {
  background: #fdecec;
  border-left: 4px solid #d04040;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.75;
}
.deny-box-icon { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.deny-box strong { color: #b03030; }
.deny-box ul { margin-bottom: 0; }

.tip-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.75;
}
.tip-box-icon { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.tip-box strong { color: var(--accent-dark); }

.callout-box {
  background: #f7f5f1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

/* ── FAQ アコーディオン ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 50px 16px 52px;
  position: relative;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: 'Q';
  position: absolute;
  left: 18px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item summary::after {
  content: '＋';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 20px 18px 52px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  position: relative;
}
.faq-answer::before {
  content: 'A';
  position: absolute;
  left: 18px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 更新情報バッジ（記事ヘッダー） ── */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

/* ── カテゴリカード（4枚グリッド・トップページ用） ── */
.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}

.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--primary-light);
}

.cat-card .cc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.cat-card .cc-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.cat-card .cc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.cat-card .cc-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-card .cc-link::after { content: '→'; }

/* ── FAQ CTA バナー ── */
.faq-cta {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--cat-green-bg) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.faq-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.faq-cta-body { flex: 1; }
.faq-cta-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.faq-cta-desc { font-size: 0.88rem; color: var(--text-muted); }
.faq-cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.faq-cta-btn:hover { background: var(--primary-dark); text-decoration: none; }

@media (max-width: 560px) {
  .cat-card-grid { grid-template-columns: 1fr; }
  .faq-cta { flex-direction: column; text-align: center; padding: 24px; }
}

/* ═══════════════════════════════════════
   専門職向けセクション — pro.html用
═══════════════════════════════════════ */

/* 専門職テーマカラー上書き */
.pro-theme {
  --primary:       #2a4a6b;
  --primary-light: #e8eef5;
  --primary-dark:  #1a3050;

  --cat-blue:      #2a4a6b;
  --cat-blue-bg:   #e8eef5;
  --cat-green:     #2a7260;
  --cat-green-bg:  #e5f2ee;
  --cat-purple:    #6a3a8a;
  --cat-purple-bg: #f0eaf8;
  --cat-orange:    #9a5a20;
  --cat-orange-bg: #f5ece0;

  --bg:            #f4f5f7;
}

/* 専門職バナー */
.pro-banner {
  background: var(--primary, #2a4a6b);
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pro-banner a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .15s;
}
.pro-banner a:hover { color: #fff; }

/* カテゴリカードグリッド（専門職トップ） */
.pro-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pro-cat-card {
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border-light, #edeae5);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, transform .18s;
}
.pro-cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.pro-cat-card .pcc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.pro-cat-card .pcc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #1e2832);
  line-height: 1.35;
}

.pro-cat-card .pcc-count {
  font-size: 0.76rem;
  color: var(--text-light, #9098a4);
}

.pro-cat-card .pcc-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #5c6470);
  line-height: 1.65;
  margin-top: 4px;
}

/* 専門職ヒーロー */
.pro-hero {
  background: linear-gradient(135deg, #1a3050 0%, #2a4a6b 60%, #2a7260 100%);
  color: #fff;
  padding: 44px 0 48px;
}

.pro-hero-inner {
  max-width: var(--max-w, 1080px);
  margin: 0 auto;
  padding: 0 20px;
}

.pro-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pro-hero-title {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 1.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  text-wrap: pretty;
}

.pro-hero-desc {
  font-size: 0.92rem;
  opacity: .85;
  line-height: 1.85;
  max-width: 600px;
  text-wrap: pretty;
}

/* 実践Tipsボックス */
.pro-tip {
  background: #fff;
  border-left: 4px solid #e6a020;
  border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.pro-tip-label {
  background: #e6a020;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.pro-tip-body {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text, #1e2832);
}

/* 経験談ボックス */
.pro-experience {
  background: #f0eaf8;
  border: 1px solid rgba(106,58,138,.2);
  border-radius: var(--radius, 10px);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

.pro-experience-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6a3a8a;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 算定要件テーブル */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 20px 0;
  border-radius: var(--radius, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.req-table th {
  background: #2a4a6b;
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}

.req-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light, #edeae5);
  background: #fff;
  vertical-align: top;
  line-height: 1.6;
}

.req-table tr:last-child td { border-bottom: none; }
.req-table tr:nth-child(even) td { background: #f9f9fb; }

/* 専門職向けレスポンシブ */
@media (max-width: 860px) {
  .pro-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-hero-title { font-size: 1.5rem; }
}

@media (max-width: 560px) {
  .pro-cat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   後方互換スタイル（旧コンテンツCSSクラス対応）
   ─ 旧サイトの記事マークアップをそのまま表示するため ─
═══════════════════════════════════════════════ */

/* ── ページレイアウト（旧 .page-layout）── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .page-layout { grid-template-columns: 1fr; } }

/* ── 旧コンテンツ用 .info-box（直接テキストを書く形式） ──────────
   新サイトの.info-boxはdisplay:flexだが、古い記事はテキスト直書きのため
   display:blockで上書きしレイアウト崩れを防ぐ
   ──────────────────────────────────────────────────────────────── */
.article-main .info-box,
.article-body .info-box {
  display: block !important;     /* flexを強制解除 */
  background: var(--primary-light);
  border: 1px solid rgba(74,144,184,.25);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
}
.article-main .info-box strong,
.article-main .info-box b,
.article-body .info-box strong,
.article-body .info-box b {
  color: var(--primary-dark);
}
.article-main .info-box ul,
.article-body .info-box ul { padding-left: 1.4em; margin: 8px 0 0; }
.article-main .info-box li,
.article-body .info-box li { margin-bottom: 4px; }

/* ── 旧コンテンツ用 .warn-box ── */
.article-main .warn-box,
.article-body .warn-box {
  display: block !important;
  background: #fff8e6;
  border-left: 4px solid #e8a420;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.75;
}
.article-main .warn-box strong,
.article-body .warn-box strong { color: #b07000; }

/* ── 旧 .checklist-box ── */
.checklist-box {
  background: var(--cat-green-bg);
  border: 1px solid rgba(90,170,132,.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.checklist-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cat-green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist-box h3::before { display: none; }
.checklist-box ul { list-style: none; padding: 0; margin: 0; }
.checklist-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 3px 0;
  border-bottom: 1px solid rgba(90,170,132,.15);
}
.checklist-box li:last-child { border-bottom: none; }
.checklist-box li::before {
  content: '☑';
  color: var(--cat-green);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 旧 .ref-box ── */
.ref-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.88rem;
}
.ref-box > strong:first-child,
.ref-box > b:first-child {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ref-box ul { padding-left: 1.4em; margin: 0; }
.ref-box li { margin-bottom: 5px; }
.ref-box a { color: var(--primary); }

/* ── 旧 .step-list / .step-item / .step-num / .step-body ── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  list-style: none;   /* ・を消す */
  padding-left: 0;    /* ul のデフォルトインデントを消す */
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-serif);
}
.step-body {
  font-size: 0.92rem;
  line-height: 1.8;
  flex: 1;
}
.step-body > strong:first-child {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 4px;
  color: var(--text);
}
.step-body ul { margin: 6px 0 0; }

/* ── 記事本文内の汎用 table ──────────────────────────────────────
   HTMLコメントが除去された後に <table> が直接書かれるケースに対応。
   横幅超過時はスクロール、最小セル幅を確保して文字が縦潰れしない。
   ─────────────────────────────────────────────────────────────── */
.article-main table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 20px 0 28px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* 横幅が狭い場合はブロック+スクロールに切り替え */
  display: table;
}
/* スクロール対応ラッパー（tableを直接囲む親がない場合でも効くよう article-main 自体に） */
.article-main,
.article-body {
  overflow-x: auto;
}
.article-main table th,
.article-body table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;        /* ヘッダーは折り返しなし */
  min-width: 80px;
}
.pro-theme .article-main table th,
.pro-theme .article-body table th {
  background: #2a4a6b;
}
.article-main table td,
.article-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  min-width: 120px;           /* 極端に潰れるのを防ぐ */
  line-height: 1.65;
}
.article-main table tr:last-child td,
.article-body table tr:last-child td { border-bottom: none; }
.article-main table tr:nth-child(even) td,
.article-body table tr:nth-child(even) td { background: #f9f9fb; }
.article-main table tr:hover td,
.article-body table tr:hover td { background: var(--primary-light); }

/* ── 旧 .info-table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}
.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  vertical-align: top;
  line-height: 1.65;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: #f9f9fb; }

/* ── 旧バッジ ── */
.badge-pro {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(74,144,184,.3);
}
.badge-patient {
  display: inline-block;
  background: var(--cat-green-bg);
  color: var(--cat-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(90,170,132,.3);
}
.cat-label {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── 旧 .article-header (記事ページ内) ── */
.article-main .article-header,
.article-body .article-header {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.article-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── 記事ヘッダー内メタ情報 ── */
.category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(74,144,184,.3);
  text-decoration: none;
}
.category-badge.pro-cat {
  background: #e8eef5;
  color: #2a4a6b;
  border-color: rgba(42,74,107,.25);
}
.article-date,
.article-readtime {
  font-size: 0.78rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── 旧 .article-list-item（記事一覧カード）── */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.article-list-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  transition: box-shadow .18s, transform .18s;
}
.article-list-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}
.ali-thumb {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg);
}
.ali-thumb.bg-blue  { background: var(--cat-blue-bg); }
.ali-thumb.bg-green { background: var(--cat-green-bg); }
.ali-thumb.bg-purple{ background: var(--cat-purple-bg); }
.ali-thumb.bg-orange{ background: var(--cat-orange-bg); }
.ali-body {
  padding: 14px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ali-body h2 {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}
.article-list-item:hover .ali-body h2 { color: var(--primary); }
.ali-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.ali-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── 旧 .section-heading（記事一覧ページ）── */
.section-heading-legacy {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin: 32px 0 14px;
  color: var(--text);
}
h2.section-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin: 32px 0 14px;
  color: var(--text);
  /* 旧スタイルのh2.section-headingをリセット */
  background: none;
  padding-left: 0;
  border-left: none;
  border-radius: 0;
}

/* ── 旧 .pro-hero ── */
.pro-hero-legacy {
  background: linear-gradient(135deg, #1a3050 0%, #2a4a6b 60%, #2a7260 100%);
  color: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.pro-hero-legacy h1 { font-size: 1.4rem; margin-bottom: 10px; }
.pro-hero-legacy p  { font-size: 0.92rem; opacity: .85; line-height: 1.8; }

/* ── 旧 .category-grid（カテゴリカード）── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.cat-card.pro {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.cat-card.pro .cat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.cat-card.pro h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.cat-card.pro p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }

/* ── 旧 .notice-box ── */
.notice-box {
  background: var(--primary-light);
  border: 1px solid rgba(74,144,184,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ── 旧サイドバー ── */
.sidebar-box {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.sidebar-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sidebar-box h3::before { display: none; }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.sidebar-box a:hover { color: var(--primary); }

/* ── オーディエンス入り口カード（トップページ） ── */
.audience-gate {
  background: var(--bg);
  padding: 40px 0 48px;
}
.audience-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.audience-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .18s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.audience-card:hover::after { background: rgba(255,255,255,.06); }

.audience-pro  { background: linear-gradient(135deg, #2a4a6b 0%, #3d6a9a 100%); }
.audience-patient { background: linear-gradient(135deg, #3a8a64 0%, #5aaa84 100%); }

.audience-card .ac-icon { font-size: 2.4rem; line-height: 1; }
.audience-card h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
}
.audience-card p {
  font-size: 0.93rem;
  line-height: 1.75;
  opacity: .9;
  flex: 1;
}
.audience-card .ac-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  align-self: flex-start;
  transition: background .15s;
}
.audience-card:hover .ac-btn { background: rgba(255,255,255,.35); }

@media (max-width: 640px) {
  .audience-cards { grid-template-columns: 1fr; }
  .audience-card { padding: 28px 22px 24px; }
}
