/* ============================================================
   AGAed (ハゲとEDの診察室) — Global Theme Styles
   SANGO 子テーマ用のメインスタイルシート
   prototype の style.css をベースに、SANGO の装飾を上書き
   ============================================================ */

/* ----------------------------------------------------------
   1. デザイントークン(色・タイポ)
   ---------------------------------------------------------- */
:root {
  /* Color */
  --paper:       #F7F5F0;
  --paper-warm:  #F0EBE0;
  --paper-deep:  #ECE6D8;
  --ink:         #0E2A47;
  --ink-2:       #1B4A85;
  --ink-soft:    #2A4A6E;
  --sand:        #B8956A;
  --sand-soft:   #D9C9AE;
  --hair:        #D4CFC4;
  --hair-2:      #B8B2A1;
  --text:        #1A1A1A;
  --text-mid:    #5A5A5A;
  --text-dim:    #8A8579;

  /* Type */
  --display: "Manrope", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --sans:    "Noto Sans JP", "Hiragino Sans", "Manrope", sans-serif;
  --latin:   "Manrope", "Noto Sans JP", system-ui, sans-serif;

  /* Sizing */
  --container-max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ----------------------------------------------------------
   2. SANGO の上書き(全体)
   SANGO はデフォルトで body に背景色 #eaedf2 を入れているので
   そこから上書きしていく
   ---------------------------------------------------------- */

/* グローバルなフォント・色の上書き */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
body.home,
body.archive,
body.single,
body.page {
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper); /* SANGOのデフォルト背景を上書き */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 見出し:明朝(serif)系を使わずゴシック+太字で */
h1, h2, h3, h4, h5, h6,
.entry-title,
.archive-title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* リンク色 */
a { color: inherit; }
a:hover { color: var(--ink-2); }

/* 選択時の色 */
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ----------------------------------------------------------
   3. SANGO の不要装飾を抑制
   ---------------------------------------------------------- */

/* SANGO のデフォルト「角丸カード型レイアウト」を一旦抑制 */
#main-wrap,
#mainArea,
.main-area {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* SANGO のデフォルトの装飾的な見出しスタイルをリセット */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  background: none;
  border: none;
  color: var(--ink);
  padding: 0;
}

/* h2 にだけ下線(編集物的なルール) */
.entry-content h2 {
  border-bottom: 1px solid var(--hair);
  padding-bottom: 14px;
  margin-top: 56px;
  margin-bottom: 28px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
}

/* h3:左側にアクセント線 */
.entry-content h3 {
  position: relative;
  padding-left: 18px;
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 3px;
  background: var(--sand);
}

/* 強調系 */
.entry-content strong {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--sand);
}

/* ----------------------------------------------------------
   4. ロゴ / ヘッダー(SANGOのヘッダー部分)
   ---------------------------------------------------------- */

/* SANGO の custom-logo を表示する箇所のサイズ調整 */
.custom-logo,
.custom-logo-link img {
  height: 22px !important;
  width: auto !important;
  aspect-ratio: 875 / 128;
  object-fit: contain;
  display: block;
}

@media (max-width: 540px) {
  .custom-logo,
  .custom-logo-link img {
    height: 20px !important;
  }
}

/* ----------------------------------------------------------
   5. 共通コンポーネント(ヘアラインルール、メタラベル)
   今後、ハブページやランキングページでも使う基本コンポーネント
   ---------------------------------------------------------- */

.agaed-hairline {
  height: 1px;
  background: var(--hair);
  border: none;
  margin: 0;
}

.agaed-section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--latin);
  font-size: 12px;
  color: var(--ink);
  flex-wrap: wrap;
}
.agaed-section-meta__num {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 13px;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.agaed-section-meta__line {
  display: none;  /* セクション番号と英字ラベルの間の横線を非表示 */
}
.agaed-section-meta__label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.agaed-section-meta__jp {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-mid);
  padding-left: 14px;
  border-left: 1px solid var(--hair);
}

/* ----------------------------------------------------------
   6. PR表記 / アフィリエイト透明性パーツ
   ---------------------------------------------------------- */

.agaed-pr-pill {
  display: inline-block;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sand);
  border: 1px solid var(--sand);
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ----------------------------------------------------------
   7. レスポンシブ基本
   ---------------------------------------------------------- */

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Container & Common
   ============================================================ */
.agaed-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.agaed-mt-24 { margin-top: 24px; }

.agaed-section-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 36px;
}
.agaed-section-headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(184, 149, 106, 0.32) 64%, rgba(184, 149, 106, 0.32) 88%, transparent 88%);
  padding: 0 4px;
}
.agaed-section-body {
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.agaed-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}
.agaed-text-link:hover { gap: 14px; color: var(--ink-2); }
.agaed-line-short { width: 32px !important; }

/* 本文末尾に置く小さめテキストリンク(段落の流れにつながる) */
.agaed-section-body__link {
  display: inline-flex;
  margin-left: 8px;
  font-size: 13px;
  vertical-align: baseline;
  white-space: nowrap;
}

/* ============================================================
   CTA Buttons
   ============================================================ */
.agaed-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.agaed-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.agaed-cta-arrow { font-size: 18px; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.agaed-cta:hover .agaed-cta-arrow { transform: translateX(6px); }
.agaed-cta--primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.agaed-cta--primary:hover {
  background: var(--ink-2); border-color: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(14, 42, 71, 0.5);
  color: var(--paper);
}
.agaed-cta--secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.agaed-cta--secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.agaed-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.agaed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.agaed-brand,
.agaed-site-header .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;          /* SANGOの block/center を抑え、コンテンツ幅で固定 */
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  max-width: 240px;                    /* 念のため上限 */
}
.agaed-brand-logo,
.agaed-site-header .custom-logo,
.agaed-site-header .custom-logo-link img {
  height: 22px !important;
  width: auto !important;              /* WPがimg width属性で875を入れるのを上書き */
  max-width: none !important;
  aspect-ratio: 875 / 128;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.agaed-primary-nav ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agaed-primary-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.agaed-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--sand);
  transition: width 0.4s ease;
}
.agaed-primary-nav a:hover { color: var(--ink-2); }
.agaed-primary-nav a:hover::after { width: 100%; }
.agaed-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.agaed-header-cta:hover { background: var(--ink-2); transform: translateY(-1px); color: var(--paper); }

/* ============================================================
   HERO (TOP)
   ============================================================ */
.agaed-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}
.agaed-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 42, 71, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
  opacity: 0.4;
}
.agaed-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
.agaed-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--sand);
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.agaed-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--sand);
}
.agaed-hero-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 32px;
}
.agaed-hero-headline > span { display: block; }
.agaed-hero-headline .agaed-accent {
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.agaed-hero-headline .agaed-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: rgba(184, 149, 106, 0.35);
  z-index: -1;
}
.agaed-hero-headline .agaed-dot { color: var(--sand); font-weight: 700; }
.agaed-hero-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 32em;
}

/* Hero right portrait + stats */
.agaed-hero-right {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.agaed-hero-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
  border-radius: 2px;
}
.agaed-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-hero-portrait:hover img { transform: scale(1.03); }
.agaed-hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0.0) 30%, rgba(14,42,71,0.55) 100%);
  pointer-events: none;
}
.agaed-hero-portrait__overlay {
  position: absolute;
  left: 18px; top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.agaed-hero-portrait__overlay::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--sand);
  border-radius: 50%;
}
.agaed-overlay-tag {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.agaed-hero-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: var(--paper);
  padding: 22px 20px;
  position: relative;
  z-index: 2;
}
.agaed-hero-stat::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.agaed-hero-stat__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
  border-right: 1px solid rgba(247, 245, 240, 0.18);
}
.agaed-hero-stat__row:first-child { padding-left: 0; }
.agaed-hero-stat__row:last-child { border-right: none; padding-right: 0; }
.agaed-hero-stat__num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.agaed-hero-stat__num small {
  font-size: 14px;
  color: var(--sand);
  margin-left: 1px;
  font-weight: 500;
}
.agaed-hero-stat__lbl {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.8);
}

/* ============================================================
   ABOUT
   ============================================================ */
.agaed-about {
  padding: clamp(80px, 12vw, 160px) 0;
}
.agaed-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.agaed-value-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 36px;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  list-style: none;
}
.agaed-value-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 20px;
  align-items: start;
}
.agaed-value-num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 16px;
  color: var(--sand);
  letter-spacing: 0.04em;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.agaed-value-list h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.6;
}
.agaed-value-list p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.85;
}
.agaed-doctors-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}
.agaed-doctors-label > span:last-child {
  color: var(--text-mid);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.agaed-doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.agaed-doctor-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 24px 20px 22px;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.agaed-doctor-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -16px rgba(14, 42, 71, 0.25);
}
.agaed-doctor-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agaed-doctor-photo::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 26px;
  color: var(--paper);
}
.agaed-doctor-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 2px;
}
.agaed-doctor-title {
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.agaed-doctor-quote {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

/* ============================================================
   TOPIC sections (AGA / ED on TOP)
   ============================================================ */
.agaed-topic {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.agaed-topic--aga {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-topic--ed { background: var(--paper); }
.agaed-topic-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: 60px;
}
.agaed-topic-lede {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0;
}
.agaed-topic-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
  margin-bottom: 56px;
}
.agaed-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 80px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  min-height: 200px;
}
.agaed-pillar-card:last-child { border-right: none; }
.agaed-pillar-card:hover { background: rgba(255, 255, 255, 0.6); }
.agaed-pillar-num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--sand);
  text-transform: uppercase;
}
.agaed-pillar-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.agaed-pillar-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}
.agaed-pillar-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-pillar-card:hover .agaed-pillar-arrow {
  transform: translate(6px, -4px);
  color: var(--sand);
}

/* Ranking CTA banner */
.agaed-ranking-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px clamp(28px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.agaed-ranking-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.agaed-ranking-cta > div { position: relative; }
.agaed-ranking-eyebrow {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.agaed-ranking-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--paper);
  margin: 0 0 6px;
}
.agaed-ranking-desc {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.7);
  margin: 0;
}
.agaed-ranking-cta .agaed-cta--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  white-space: nowrap;
}
.agaed-ranking-cta .agaed-cta--primary:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--paper);
}

/* ============================================================
   HOW (criteria list)
   ============================================================ */
.agaed-how {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-how-headline { margin-bottom: 60px; }
.agaed-criteria-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
  list-style: none;
  margin: 0;
  padding: 0;
}
.agaed-criteria-list li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: clamp(16px, 4vw, 60px);
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--hair);
  transition: padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-criteria-list li:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(255, 255, 255, 0.5);
}
.agaed-criteria-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.agaed-criteria-num::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sand);
  margin-bottom: 14px;
}
.agaed-criteria-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.55;
}
.agaed-criteria-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.85;
  max-width: 56ch;
}
.agaed-criteria-tag {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  white-space: nowrap;
  background: var(--paper);
}

/* ============================================================
   FAQ
   ============================================================ */
.agaed-faq {
  padding: clamp(80px, 11vw, 140px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.agaed-faq-container { max-width: 960px; }
.agaed-faq-list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair-2);
}
.agaed-faq-item { border-bottom: 1px solid var(--hair-2); }
.agaed-faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
}
.agaed-faq-item summary::-webkit-details-marker { display: none; }
.agaed-faq-item summary:hover .agaed-faq-text { color: var(--ink-2); }
.agaed-faq-q {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 22px;
  color: var(--sand);
}
.agaed-faq-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink);
  line-height: 1.6;
  transition: color 0.3s ease;
}
.agaed-faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
}
.agaed-faq-icon::before, .agaed-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.agaed-faq-icon::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.agaed-faq-icon::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.agaed-faq-item details[open] .agaed-faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.agaed-faq-answer { padding: 4px 0 28px 52px; max-width: 64ch; }
.agaed-faq-answer p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0;
}
.agaed-faq-answer strong {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--sand);
}

/* ============================================================
   NEWS / Latest
   ============================================================ */
.agaed-news {
  padding: clamp(80px, 11vw, 140px) 0;
}
.agaed-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.agaed-news-head .agaed-section-headline { margin: 0; }
.agaed-news-head__links { display: flex; gap: 28px; flex-wrap: wrap; }
.agaed-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
}
.agaed-article-card {
  --pl: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 32px var(--pl);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  position: relative;
  transition: padding 0.4s ease, background 0.3s ease;
}
.agaed-article-card:nth-child(3n+1) { --pl: 0px; }
.agaed-article-card:nth-child(3n) { padding-right: 0; border-right: none; }
.agaed-article-card:hover {
  padding-left: calc(var(--pl) + 16px);
  background: rgba(255, 255, 255, 0.5);
}
.agaed-article-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--latin);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-article-cat { color: var(--sand); font-weight: 700; }
.agaed-article-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.agaed-article-title a { text-decoration: none; color: inherit; }
.agaed-article-title a:hover { color: var(--ink-2); }
.agaed-article-excerpt {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.agaed-site-footer {
  background: var(--ink);
  color: rgba(247, 245, 240, 0.7);
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.agaed-site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.agaed-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
  position: relative;
}
.agaed-footer-logo {
  height: 30px;
  width: auto;
  aspect-ratio: 875 / 128;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin: 0 0 12px;
}
.agaed-footer-sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.6);
  margin: 0 0 18px;
}
.agaed-footer-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--sand-soft);
  margin: 0 0 16px;
  line-height: 1.7;
}
.agaed-footer-org {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(247, 245, 240, 0.6);
  margin: 0;
}
.agaed-footer-h {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--sand);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.agaed-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agaed-footer-col ul li { margin-bottom: 10px; }
.agaed-footer-col a {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.agaed-footer-col a:hover {
  color: var(--paper);
  border-bottom-color: var(--sand);
}
.agaed-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  position: relative;
}
.agaed-pr-notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.55);
  margin: 0;
  max-width: 60%;
  line-height: 1.7;
}
.agaed-copyright {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.45);
  margin: 0;
}

/* ============================================================
   HUB PAGES (AGA / ED)
   ============================================================ */

/* Sub-nav (sticky, in-page TOC) */
.agaed-subnav {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-subnav-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.agaed-subnav-inner::-webkit-scrollbar { display: none; }
.agaed-subnav-label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  padding-right: 18px;
  border-right: 1px solid var(--hair);
  white-space: nowrap;
  flex-shrink: 0;
}
.agaed-subnav-list {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agaed-subnav-list a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.agaed-subnav-list a:hover,
.agaed-subnav-list a.is-current {
  color: var(--ink);
  border-bottom-color: var(--sand);
}

/* Breadcrumb */
.agaed-breadcrumb {
  background: transparent;
  padding: 22px 0 0;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-breadcrumb ol {
  display: flex;
  gap: 12px;
  font-family: var(--latin);
  font-weight: 600;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agaed-breadcrumb li { position: relative; padding-right: 18px; }
.agaed-breadcrumb li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 0;
  color: var(--hair-2);
}
.agaed-breadcrumb a { color: var(--text-mid); transition: color 0.3s ease; text-decoration: none; }
.agaed-breadcrumb a:hover { color: var(--ink); }
.agaed-breadcrumb [aria-current="page"] { color: var(--ink); }

/* Smooth scroll offset for anchor links */
.agaed-page-hub { scroll-padding-top: 130px; }
html:has(.agaed-page-hub) { scroll-padding-top: 130px; }

/* Hub Hero (AGA / ED) */
.agaed-hub-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.agaed-hub-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14, 42, 71, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
  opacity: 0.4;
}
.agaed-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
}
.agaed-hub-hero-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.32;
  color: var(--ink);
  margin: 24px 0 32px;
}
.agaed-hub-hero-headline > span { display: block; }
.agaed-hub-hero-headline em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.agaed-hub-hero-headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: rgba(184, 149, 106, 0.35);
  z-index: -1;
}
.agaed-hub-hero-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 36em;
}

/* Timeline card (AGA hero right) */
.agaed-timeline-card,
.agaed-cause-card {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 30px 32px;
}
.agaed-timeline-card__head,
.agaed-cause-card__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.agaed-timeline-card__label,
.agaed-cause-card__label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.agaed-timeline-card__sub,
.agaed-cause-card__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-mid);
}
.agaed-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0; padding: 0; list-style: none;
}
.agaed-timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 14px 0;
  position: relative;
}
.agaed-timeline li::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  transform: translateX(-50%);
}
.agaed-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 100px;
  top: 32px;
  bottom: -8px;
  width: 1px;
  background: var(--hair-2);
  transform: translateX(-50%);
}
.agaed-timeline-month {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.agaed-timeline-month small { font-size: 11px; font-weight: 500; margin-left: 1px; }
.agaed-timeline-text { padding-left: 14px; }
.agaed-timeline-text strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.agaed-timeline-text p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7; }
.agaed-timeline-note,
.agaed-cause-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* Cause list (ED hero right) */
.agaed-cause-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.agaed-cause-list li {
  display: grid;
  grid-template-columns: 36px 1fr 70px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.agaed-cause-list li:last-child { border-bottom: none; }
.agaed-cause-rank {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 13px;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.agaed-cause-text strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.agaed-cause-text p { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.65; }
.agaed-cause-pct { text-align: right; }
.agaed-cause-pct__num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.agaed-cause-pct__num small { font-size: 13px; color: var(--sand); margin-left: 1px; font-weight: 500; }

/* Hub sections (common) */
.agaed-hub-section {
  padding: clamp(70px, 10vw, 130px) 0;
  position: relative;
}
.agaed-hub-section--alt {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.agaed-two-col--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

/* Fact list */
.agaed-fact-list {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 28px 28px 24px;
}
.agaed-fact-list__h {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.agaed-fact-list dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.agaed-fact-list dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.agaed-fact-list dt { font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--ink); }
.agaed-fact-list dd { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* Stage scale (AGA) */
.agaed-stage-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 36px;
  border-top: 1px solid var(--hair);
  list-style: none; padding: 0;
}
.agaed-stage {
  padding: 28px 24px 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: relative;
  transition: background 0.3s ease;
}
.agaed-stage:last-child { border-right: none; }
.agaed-stage:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-stage-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--sand);
  margin-bottom: 14px;
}
.agaed-stage-svg { width: 56px; height: 56px; color: var(--ink); margin-bottom: 12px; }
.agaed-stage h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.agaed-stage p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); margin: 0; }

/* Cause types (ED) */
.agaed-cause-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 36px;
  border-top: 1px solid var(--hair);
  list-style: none; padding: 0;
}
.agaed-cause-type {
  padding: 28px 26px 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s ease;
}
.agaed-cause-type:last-child { border-right: none; }
.agaed-cause-type:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-cause-type__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.agaed-cause-type__num {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--sand);
  margin-right: 2px;
}
.agaed-cause-type__desc { font-size: 13px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 4px; flex: 1; }
.agaed-cause-type__sign {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agaed-cause-type__sign-label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-cause-type__sign-text { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.5; }

/* Callout */
.agaed-callout {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.agaed-callout::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.agaed-callout-q {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 245, 240, 0.92);
  position: relative;
}
.agaed-callout .agaed-text-link { color: var(--sand-soft); border-bottom-color: var(--sand-soft); }
.agaed-callout .agaed-text-link:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* Compare table */
.agaed-compare-table-wrap { margin: 36px 0 0; overflow-x: auto; }
.agaed-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  min-width: 720px;
}
.agaed-compare-table thead th {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-mid);
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair-2);
  background: var(--paper-warm);
}
.agaed-compare-table tbody td,
.agaed-compare-table tbody th {
  padding: 22px 18px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.agaed-compare-table tbody tr:last-child td,
.agaed-compare-table tbody tr:last-child th { border-bottom: none; }
.agaed-compare-table tbody th {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  width: 200px;
}
.agaed-compare-grade {
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  font-family: var(--latin);
  font-weight: 800;
  font-size: 13px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  margin-right: 10px;
}

/* Drug grid */
.agaed-drug-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.agaed-drug-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.agaed-drug-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(14, 42, 71, 0.35);
}
.agaed-drug-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-drug-num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sand);
}
.agaed-drug-class {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 3px 9px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
}
.agaed-drug-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.4;
}
.agaed-drug-card h3 small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mid);
  margin-left: 2px;
}
.agaed-drug-action { font-size: 13px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; min-height: 48px; }
.agaed-drug-meta { margin: 0 0 18px; display: flex; flex-direction: column; }
.agaed-drug-meta > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  font-size: 12px;
}
.agaed-drug-meta > div:last-child { border-bottom: 1px solid var(--hair); }
.agaed-drug-meta dt { font-family: var(--sans); font-weight: 700; color: var(--text-mid); letter-spacing: 0.04em; }
.agaed-drug-meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.agaed-drug-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}
.agaed-drug-link:hover { gap: 12px; color: var(--ink-2); }

/* Cost bar */
.agaed-cost-bar {
  margin-top: 36px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 30px 32px 24px;
}
.agaed-cost-bar__head {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-cost-bar__chart { display: flex; flex-direction: column; gap: 14px; }
.agaed-cost-row {
  display: grid;
  grid-template-columns: 180px 1fr 130px;
  align-items: center;
  gap: 16px;
}
.agaed-cost-row__label { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); }
.agaed-cost-row__bar {
  position: relative;
  height: 12px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}
.agaed-cost-row__fill {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--from);
  right: calc(100% - var(--to));
  background: linear-gradient(90deg, var(--ink-2), var(--ink));
  border-radius: 999px;
}
.agaed-cost-row__value {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.agaed-cost-row__value small { color: var(--text-mid); font-weight: 500; margin: 0 1px; }
.agaed-cost-bar__note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Cost projection (right side) */
.agaed-cost-projection {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
}
.agaed-cost-projection::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.agaed-cost-projection h3 {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
  position: relative;
}
.agaed-proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
  align-items: center;
  position: relative;
}
.agaed-proj-row:last-of-type { border-bottom: none; }
.agaed-proj-label { font-family: var(--sans); font-weight: 600; font-size: 13px; color: rgba(247, 245, 240, 0.85); grid-row: 1; }
.agaed-proj-value {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 28px;
  color: var(--paper);
  text-align: right;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  grid-row: 1 / span 2;
  align-self: center;
}
.agaed-proj-value small { font-size: 14px; color: var(--sand-soft); margin-left: 2px; font-weight: 500; }
.agaed-proj-sub { font-family: var(--sans); font-weight: 400; font-size: 11px; color: rgba(247, 245, 240, 0.5); grid-row: 2; }
.agaed-cost-projection .agaed-text-link { color: var(--sand-soft); border-bottom-color: var(--sand-soft); }
.agaed-cost-projection .agaed-text-link:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* VS grid */
.agaed-vs-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-top: 48px;
  align-items: stretch;
}
.agaed-vs-col {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 32px 32px 28px;
}
.agaed-vs-col--online { border-right: none; }
.agaed-vs-col--offline { border-left: none; }
.agaed-vs-tag {
  display: inline-block;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-warm);
  padding: 5px 12px;
  border: 1px solid var(--hair-2);
  margin-bottom: 16px;
}
.agaed-vs-col h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.agaed-vs-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.agaed-vs-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.agaed-vs-check, .agaed-vs-cross {
  width: 18px; height: 18px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
}
/* チェックマーク: ボーダー回転技法でクリーンなレ点を描画 */
.agaed-vs-check::before {
  content: "";
  position: absolute;
  display: block;
  width: 6px;
  height: 12px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  left: 5px;
  top: 0px;
}
.agaed-vs-cross::before, .agaed-vs-cross::after {
  content: "";
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--text-dim);
  left: 1px; top: 8.5px;
}
.agaed-vs-cross::before { transform: rotate(45deg); }
.agaed-vs-cross::after { transform: rotate(-45deg); }
.agaed-vs-divider { display: flex; align-items: center; justify-content: center; position: relative; }
.agaed-vs-divider span {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  background: var(--paper);
  padding: 8px 12px;
  border: 1px solid var(--hair);
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 2;
}
.agaed-vs-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--hair);
}

/* Voices */
.agaed-voices-head .agaed-section-headline { margin-bottom: 16px; }
.agaed-voices-lede { margin: 0 0 28px; }
.agaed-voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.agaed-voice-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-voice-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgba(14, 42, 71, 0.3);
}
.agaed-voice-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}
.agaed-voice-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.agaed-voice-avatar::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
}
.agaed-voice-name { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 2px; }
.agaed-voice-occ { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--text-mid); margin: 0; }
.agaed-voice-quote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 18px;
  border-left: 2px solid var(--sand);
  padding: 0 0 0 14px;
}
.agaed-voice-info {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.agaed-voice-info > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}
.agaed-voice-info dt { font-family: var(--sans); font-weight: 700; color: var(--text-mid); letter-spacing: 0.04em; }
.agaed-voice-info dd { margin: 0; color: var(--ink); }
.agaed-voice-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}
.agaed-voice-link:hover { gap: 12px; color: var(--ink-2); }
.agaed-voices-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.agaed-voices-disclaim {
  font-size: 11px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.7;
  max-width: 60%;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hub Ranking (big cta) */
.agaed-hub-ranking {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.agaed-hub-ranking::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.agaed-hub-ranking-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  position: relative;
}
.agaed-hub-ranking-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
  border-top: 2px solid var(--sand);
}
.agaed-hub-ranking-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.agaed-hub-ranking-label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}
.agaed-hub-ranking-h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 20px;
}
.agaed-hub-ranking-h em {
  font-style: normal;
  color: var(--paper);
  background: linear-gradient(transparent 64%, rgba(184, 149, 106, 0.6) 64%, rgba(184, 149, 106, 0.6) 88%, transparent 88%);
  padding: 0 4px;
}
.agaed-hub-ranking-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  color: rgba(247, 245, 240, 0.75);
  max-width: 56ch;
  margin: 0 0 32px;
}
.agaed-hub-ranking-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(247, 245, 240, 0.18);
  border-bottom: 1px solid rgba(247, 245, 240, 0.18);
  max-width: 540px;
}
.agaed-hub-ranking-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid rgba(247, 245, 240, 0.12);
}
.agaed-hub-ranking-stats > div:first-child { padding-left: 0; }
.agaed-hub-ranking-stats > div:last-child { border-right: none; padding-right: 0; }
.agaed-hub-ranking-stats .agaed-num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 28px;
  color: var(--paper);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.agaed-hub-ranking-stats .agaed-num small { font-size: 13px; font-weight: 500; color: var(--sand); margin-left: 1px; }
.agaed-hub-ranking-stats .agaed-lbl {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.75);
}
.agaed-cta--ranking {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.agaed-cta--ranking:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--paper);
}
.agaed-hub-ranking-pr {
  margin: 22px 0 0;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.5);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.agaed-hub-ranking-pr a { color: rgba(247, 245, 240, 0.7); }

/* Topics grid */
.agaed-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.agaed-topic-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 22px;
  background: var(--paper);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 240px;
}
.agaed-topic-card:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-topic-card:hover .agaed-topic-card__arrow { transform: translate(8px, -4px); color: var(--sand); }
.agaed-topic-card--primary { background: var(--ink); color: var(--paper); }
.agaed-topic-card--primary .agaed-topic-card__num,
.agaed-topic-card--primary .agaed-topic-card__en { color: var(--sand); }
.agaed-topic-card--primary h3 { color: var(--paper); }
.agaed-topic-card--primary .agaed-topic-card__desc { color: rgba(247, 245, 240, 0.78); }
.agaed-topic-card--primary .agaed-topic-card__count { color: rgba(247, 245, 240, 0.6); }
.agaed-topic-card--primary .agaed-topic-card__arrow { color: var(--paper); }
.agaed-topic-card--primary:hover { background: var(--ink-2); }
.agaed-topic-card--primary:hover .agaed-topic-card__arrow { color: var(--sand); }
.agaed-topic-card__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.agaed-topic-card__num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.agaed-topic-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.agaed-topic-card__en {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.agaed-topic-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.agaed-topic-card__desc { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin: 0; }
.agaed-topic-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  margin-top: auto;
}
.agaed-topic-card--primary .agaed-topic-card__foot { border-top-color: rgba(247, 245, 240, 0.18); }
.agaed-topic-card__count {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}
.agaed-topic-card__arrow {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

/* Hub responsive */
@media (max-width: 980px) {
  .agaed-hub-hero-grid { grid-template-columns: 1fr; }
  .agaed-two-col, .agaed-two-col--wide { grid-template-columns: 1fr; }
  .agaed-stage-scale { grid-template-columns: repeat(3, 1fr); }
  .agaed-stage:nth-child(3) { border-right: none; }
  .agaed-cause-types { grid-template-columns: repeat(2, 1fr); }
  .agaed-cause-type:nth-child(2n) { border-right: none; }
  .agaed-drug-grid { grid-template-columns: repeat(2, 1fr); }
  .agaed-voices-grid { grid-template-columns: 1fr; }
  .agaed-vs-grid { grid-template-columns: 1fr; }
  .agaed-vs-col--online { border-right: 1px solid var(--hair); }
  .agaed-vs-col--offline { border-left: 1px solid var(--hair); }
  .agaed-vs-divider { display: none; }
  .agaed-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .agaed-hub-ranking-grid { grid-template-columns: 1fr; }
  .agaed-hub-ranking-meta { flex-direction: row; align-items: end; gap: 16px; padding-top: 0; border-top: none; padding-bottom: 14px; border-bottom: 2px solid var(--sand); }
}
@media (max-width: 720px) {
  .agaed-stage-scale { grid-template-columns: repeat(2, 1fr); }
  .agaed-stage { border-right: 1px solid var(--hair); }
  .agaed-stage:nth-child(2n) { border-right: none; }
  .agaed-cause-types { grid-template-columns: 1fr; }
  .agaed-cause-type { border-right: none; }
  .agaed-drug-grid { grid-template-columns: 1fr; }
  .agaed-topics-grid { grid-template-columns: 1fr; }
  .agaed-compare-table { min-width: 600px; }
  .agaed-cost-row { grid-template-columns: 1fr; gap: 6px; }
  .agaed-cost-row__bar { order: 3; }
  .agaed-cost-row__value { text-align: left; order: 2; }
  .agaed-voices-disclaim { max-width: 100%; }
  .agaed-voices-foot { flex-direction: column; align-items: flex-start; }
  .agaed-subnav-label { display: none; }
}
@media (max-width: 540px) {
  .agaed-hub-hero-headline { font-size: clamp(30px, 9vw, 44px); }
  .agaed-hub-ranking-num { font-size: 40px; }
}

/* ============================================================
   RANKING PAGE
   ============================================================ */
.agaed-page-ranking { background: var(--paper); }

.agaed-rank-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 60px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-rank-hero__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.4;
  color: var(--ink);
  margin: 24px 0 24px;
}
.agaed-rank-hero__h em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.agaed-rank-hero__h em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: rgba(184, 149, 106, 0.35);
  z-index: -1;
}
.agaed-rank-hero__lede {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 28px;
}
.agaed-rank-hero__editor {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 70ch;
  margin: 0 0 28px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--sand);
}
.agaed-rank-hero__editor p { margin: 0 0 14px; }
.agaed-rank-hero__editor p:last-child { margin: 0; }

.agaed-rank-hero__pr {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--hair);
  max-width: 60em;
  flex-wrap: wrap;
}
.agaed-rank-hero__pr a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.agaed-rank-list-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.agaed-rank-empty {
  padding: 48px 32px;
  border: 2px dashed var(--hair-2);
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.85;
}
.agaed-rank-empty strong { color: var(--ink); }

.agaed-rank-criteria {
  padding: clamp(48px, 7vw, 100px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--hair);
}

/* ============================================================
   CLINIC CARD
   ============================================================ */
.agaed-clinic-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.agaed-clinic-card:hover {
  border-color: var(--ink);
  box-shadow: 0 16px 40px -24px rgba(14, 42, 71, 0.3);
}

/* Ranked card: 順位バッジ列(80px)+ コンテンツ列を grid-template-areas で明示 */
.agaed-clinic-card--ranked {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas:
    "rank head"
    "rank body"
    "rank foot";
}
.agaed-clinic-card--ranked .agaed-clinic-card__rank { grid-area: rank; }
.agaed-clinic-card--ranked .agaed-clinic-card__head { grid-area: head; min-width: 0; }
.agaed-clinic-card--ranked .agaed-clinic-card__body { grid-area: body; min-width: 0; }
.agaed-clinic-card--ranked .agaed-clinic-card__foot { grid-area: foot; min-width: 0; }

/* Non-ranked card: 単純な縦積み */
.agaed-clinic-card:not(.agaed-clinic-card--ranked) {
  display: flex;
  flex-direction: column;
}

/* Rank badge */
.agaed-clinic-card__rank {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 8px;
  position: relative;
  overflow: hidden;
}
.agaed-clinic-card__rank::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.agaed-rank-list__item:nth-child(1) .agaed-clinic-card__rank {
  background: linear-gradient(160deg, #B8956A 0%, #8C6E4A 100%);
}
.agaed-rank-list__item:nth-child(2) .agaed-clinic-card__rank {
  background: linear-gradient(160deg, #98989E 0%, #6A6A70 100%);
}
.agaed-rank-list__item:nth-child(3) .agaed-clinic-card__rank {
  background: linear-gradient(160deg, #A07050 0%, #6E4830 100%);
}
.agaed-clinic-card__rank-label {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.7);
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
}
.agaed-clinic-card__rank-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  position: relative;
}

/* Card body wrapper */
.agaed-clinic-card__head,
.agaed-clinic-card__body,
.agaed-clinic-card__foot {
  padding: 22px 28px;
}
.agaed-clinic-card__head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--hair);
}
.agaed-clinic-card__head--no-logo {
  grid-template-columns: 1fr;  /* ロゴ未設定時はheadingが全幅 */
}
.agaed-clinic-card__logo {
  width: 88px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
}
.agaed-clinic-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.agaed-clinic-card__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agaed-clinic-card__heading .agaed-pr-pill {
  align-self: flex-start;
}
.agaed-clinic-card__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}
.agaed-clinic-card__summary {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.agaed-clinic-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.agaed-clinic-card__body-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
/* スコアが無いとき body-left が全幅にひろがるように */
.agaed-clinic-card__body:not(:has(.agaed-clinic-card__scores)) {
  grid-template-columns: 1fr;
}

/* Facts */
.agaed-clinic-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hair);
}
.agaed-clinic-card__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-clinic-card__fact:nth-child(2n) { border-right: none; }
.agaed-clinic-card__fact:nth-last-child(-n+2) { border-bottom: none; }
.agaed-clinic-card__fact dt {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-clinic-card__fact dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.agaed-clinic-card__fact--price dd {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.agaed-clinic-card__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  margin-left: 1px;
}

/* Drugs */
.agaed-clinic-card__drugs {
  margin-top: 14px;
}
.agaed-clinic-card__drugs-label {
  display: block;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.agaed-clinic-card__drugs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agaed-clinic-card__drugs li {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 10px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  border-radius: 999px;
}

/* Scores */
.agaed-clinic-card__scores {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 18px 18px 14px;
}
.agaed-clinic-card__scores-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-clinic-card__scores-label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-clinic-card__scores-avg {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.agaed-clinic-card__scores-avg small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  margin-left: 2px;
}
.agaed-clinic-card__scores-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.agaed-clinic-card__scores-detail > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
}
.agaed-clinic-card__scores-detail dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-soft);
}
.agaed-clinic-card__scores-detail dd {
  margin: 0;
}

.agaed-score-bar {
  display: block;
  position: relative;
  height: 6px;
  background: var(--hair);
  border-radius: 999px;
  overflow: hidden;
}
.agaed-score-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-2), var(--ink));
  border-radius: 999px;
}

/* Card footer (CTA) */
.agaed-clinic-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  background: var(--paper-warm);
}
.agaed-clinic-card__cta {
  flex: 1 1 auto;
  justify-content: center;
}
.agaed-clinic-card__detail-link {
  flex-shrink: 0;
}

/* Responsive: clinic card */
@media (max-width: 980px) {
  .agaed-clinic-card { grid-template-columns: 64px 1fr; }
  .agaed-clinic-card__rank-num { font-size: 30px; }
  .agaed-clinic-card__rank-label { font-size: 9px; }
  .agaed-clinic-card__body { grid-template-columns: 1fr; }
  .agaed-clinic-card__head,
  .agaed-clinic-card__body,
  .agaed-clinic-card__foot { padding: 18px 22px; }
}
@media (max-width: 720px) {
  .agaed-clinic-card__head { grid-template-columns: 1fr; gap: 14px; }
  .agaed-clinic-card__logo { width: 100px; height: 60px; }
  .agaed-clinic-card__facts { grid-template-columns: 1fr 1fr; }
  .agaed-clinic-card__foot { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   SINGLE CLINIC PAGE
   ============================================================ */
.agaed-clinic-hero {
  padding: clamp(40px, 5vw, 60px) 0 clamp(36px, 4vw, 50px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-clinic-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.agaed-clinic-hero__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.agaed-clinic-hero__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.agaed-clinic-hero__summary {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
  max-width: 64ch;
}
.agaed-clinic-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  width: 100%;
}
.agaed-clinic-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agaed-clinic-hero__meta-label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-clinic-hero__meta-val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.agaed-clinic-hero__meta-val small {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
  margin-left: 2px;
}
.agaed-clinic-hero__logo-wrap {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agaed-clinic-hero__logo-wrap img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.agaed-clinic-detail-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-clinic-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.agaed-clinic-treatment {
  margin-bottom: 48px;
}
.agaed-clinic-detail-dl {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
}
.agaed-clinic-detail-dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.agaed-clinic-detail-dl dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.agaed-clinic-detail-dl dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.85;
}
.agaed-clinic-detail-dl dd strong {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.agaed-clinic-detail-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agaed-clinic-detail-tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  padding: 5px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  border-radius: 999px;
}

.agaed-clinic-content {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--hair);
}
.agaed-clinic-content__body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-top: 24px;
}

/* Side card */
.agaed-clinic-side-card {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 22px 22px 18px;
  margin-bottom: 24px;
  position: sticky;
  top: 100px;
}
.agaed-clinic-side-card + .agaed-clinic-side-card { position: static; }
.agaed-clinic-side-card__h {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-clinic-side-card__avg {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}
.agaed-clinic-side-card__avg-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 38px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.agaed-clinic-side-card__avg-unit {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}
.agaed-clinic-side-card__detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.agaed-clinic-side-card__detail > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
}
.agaed-clinic-side-card__detail dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
}
.agaed-clinic-side-card__detail dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.agaed-clinic-side-card__detail dd .agaed-score-bar { flex: 1; }
.agaed-clinic-side-card__detail-num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.agaed-clinic-side-card__info > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.agaed-clinic-side-card__info > div:last-child { border-bottom: none; }
.agaed-clinic-side-card__info dt { font-family: var(--sans); font-weight: 700; color: var(--text-mid); }
.agaed-clinic-side-card__info dd { margin: 0; color: var(--ink); }
.agaed-clinic-side-card__info a { color: var(--ink-2); border-bottom: 1px solid currentColor; }
.agaed-clinic-side-cta { display: flex; justify-content: center; }

@media (max-width: 980px) {
  .agaed-clinic-hero__grid { grid-template-columns: 1fr; }
  .agaed-clinic-hero__logo-wrap { width: 200px; }
  .agaed-clinic-detail-grid { grid-template-columns: 1fr; }
  .agaed-clinic-side-card { position: static; }
}

/* ============================================================
   DOCTOR (TOP page card variant — image)
   ============================================================ */
.agaed-doctor-photo--has-image {
  overflow: hidden;
  padding: 0;
}
.agaed-doctor-photo--has-image::before { display: none; }
.agaed-doctor-photo--has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 体験談 空状態 */
.agaed-voices-empty {
  grid-column: 1 / -1;
  padding: 48px 32px;
  border: 2px dashed var(--hair-2);
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.85;
}
.agaed-voices-empty strong { color: var(--ink); }


/* ============================================================
   SINGLE DOCTOR PAGE
   ============================================================ */
.agaed-doctor-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 60px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-doctor-hero__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.agaed-doctor-hero__photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--hair);
}
.agaed-doctor-hero__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agaed-doctor-hero__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.agaed-doctor-hero__placeholder::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 800;
  font-size: 84px;
  color: var(--paper);
}
.agaed-doctor-hero__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.4;
  color: var(--ink);
  margin: 16px 0 6px;
}
.agaed-doctor-hero__title {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.agaed-doctor-hero__specialties {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agaed-doctor-hero__specialties li {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.agaed-doctor-hero__message {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--sand);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.agaed-doctor-hero__supervises {
  margin: 0;
  font-size: 12px;
  color: var(--text-mid);
}
.agaed-doctor-hero__supervises span {
  font-family: var(--latin);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 10px;
}

.agaed-doctor-detail-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-doctor-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
.agaed-doctor-career__body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-top: 24px;
}

@media (max-width: 720px) {
  .agaed-doctor-hero__grid { grid-template-columns: 1fr; }
  .agaed-doctor-hero__photo-wrap { width: 160px; height: 160px; margin: 0 auto; }
}


/* ============================================================
   SINGLE VOICE PAGE
   ============================================================ */
.agaed-voice-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 60px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-voice-hero__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0 28px;
}
.agaed-voice-avatar--lg {
  width: 80px;
  height: 80px;
}
.agaed-voice-avatar--lg::before {
  font-size: 32px;
}
.agaed-voice-hero__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.agaed-voice-hero__occ {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
}
.agaed-voice-hero__quote {
  margin: 28px 0;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--sand);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
  color: var(--ink);
  max-width: 64ch;
}
.agaed-voice-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.agaed-voice-hero__facts > div {
  padding: 0 18px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agaed-voice-hero__facts > div:first-child { padding-left: 0; }
.agaed-voice-hero__facts > div:last-child { border-right: none; padding-right: 0; }
.agaed-voice-hero__facts dt {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-voice-hero__facts dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.agaed-voice-hero__facts a { color: var(--ink-2); border-bottom: 1px solid currentColor; }

.agaed-voice-content-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-voice-content-grid {
  max-width: 760px;
  margin: 0 auto;
}
.agaed-voice-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.agaed-voice-disclaimer {
  padding: 24px 0 60px;
  background: var(--paper-warm);
  border-top: 1px solid var(--hair);
}

/* ============================================================
   ARTICLE PAGE (single post)
   ============================================================ */

/* Hero */
.agaed-article-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-article-hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 24px 0 18px;
}
.agaed-article-lede {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 64ch;
}
.agaed-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-bottom: 24px;
}
.agaed-article-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agaed-article-meta__label {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-article-meta__val {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* 大型 監修医バナー(記事ヒーロー内、目立つ位置に独立) */
.agaed-supervisor-banner {
  display: grid;
  grid-template-columns: auto 72px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--sand);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-supervisor-banner:hover {
  border-color: var(--ink);
  border-left-color: var(--sand);
  box-shadow: 0 12px 28px -20px rgba(14, 42, 71, 0.3);
  transform: translateY(-2px);
}
.agaed-supervisor-banner__stamp {
  font-family: var(--latin);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-right: 1px solid var(--hair);
  padding-right: 14px;
  margin: 4px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.agaed-supervisor-banner__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.agaed-supervisor-banner__avatar::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 30px;
  color: var(--paper);
}
.agaed-supervisor-banner__avatar--has-image::before { display: none; }
.agaed-supervisor-banner__avatar img { width: 100%; height: 100%; object-fit: cover; }

.agaed-supervisor-banner__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.agaed-supervisor-banner__intro {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-supervisor-banner__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
}
.agaed-supervisor-banner__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.agaed-supervisor-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.agaed-supervisor-banner__tags span {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3px 9px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.agaed-supervisor-banner__arrow {
  font-size: 22px;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
.agaed-supervisor-banner:hover .agaed-supervisor-banner__arrow {
  transform: translateX(6px);
  color: var(--sand);
}

@media (max-width: 720px) {
  .agaed-supervisor-banner {
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
  }
  .agaed-supervisor-banner__stamp { display: none; }
  .agaed-supervisor-banner__avatar { width: 60px; height: 60px; }
  .agaed-supervisor-banner__avatar::before { font-size: 24px; }
  .agaed-supervisor-banner__name { font-size: 16px; }
}
.agaed-article-eyecatch { margin: 24px 0 0; }
.agaed-article-eyecatch img { width: 100%; height: auto; display: block; }

/* Body section with TOC sidebar */
.agaed-article-body-section {
  padding: clamp(40px, 6vw, 60px) 0 clamp(40px, 6vw, 80px);
}
.agaed-article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.agaed-article-side {
  position: sticky;
  top: 100px;
}
.agaed-article-toc {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 18px 20px 18px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.agaed-article-toc__h {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.agaed-article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}
.agaed-article-toc__list ol {
  list-style: none;
  margin: 6px 0 6px 12px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--hair);
}
.agaed-article-toc__h2 {
  margin-bottom: 10px;
}
.agaed-article-toc__h2 > a {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.agaed-article-toc__h2 > a.is-current {
  border-left-color: var(--sand);
  color: var(--ink-2);
}
.agaed-article-toc__h3 {
  margin-bottom: 6px;
}
.agaed-article-toc__h3 a {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: color 0.2s ease;
}
.agaed-article-toc__h3 a.is-current {
  color: var(--ink);
  font-weight: 600;
}

/* Article body styling (entry-content) */
.agaed-article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 740px;
}
.agaed-article-body > * + * { margin-top: 18px; }
.agaed-article-body h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.5;
  color: var(--ink);
  margin: 56px 0 20px;
  padding: 14px 0 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hair);
  letter-spacing: 0.005em;
}
.agaed-article-body h2:first-child { margin-top: 0; }
.agaed-article-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--sand);
}
.agaed-article-body h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 28px 0 10px;
}
.agaed-article-body p { margin: 0 0 16px; }
.agaed-article-body p:last-child { margin-bottom: 0; }
.agaed-article-body strong {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 70%, rgba(184, 149, 106, 0.32) 70%);
}
.agaed-article-body a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.agaed-article-body a:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}
.agaed-article-body ul,
.agaed-article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.agaed-article-body ul li,
.agaed-article-body ol li {
  margin-bottom: 8px;
  line-height: 1.85;
}
.agaed-article-body ul li::marker { color: var(--sand); }
.agaed-article-body ol li::marker { color: var(--sand); font-weight: 700; }
.agaed-article-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: var(--paper-warm);
  border-left: 3px solid var(--sand);
  font-style: normal;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}
.agaed-article-body blockquote p:last-child { margin-bottom: 0; }
.agaed-article-body code {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--ink);
}
.agaed-article-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 22px;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}
.agaed-article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.agaed-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.agaed-article-body th,
.agaed-article-body td {
  border: 1px solid var(--hair);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.agaed-article-body th {
  background: var(--paper-warm);
  font-weight: 700;
  color: var(--ink);
}
.agaed-article-body img {
  width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 2px;
}
.agaed-article-body hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 36px 0;
}

/* Inline shortcodes inside article body */
.agaed-clinic-card-inline,
.agaed-voice-card-inline {
  margin: 28px 0;
}
.agaed-clinic-card-inline-list { margin: 28px 0; }
.agaed-clinic-card-inline-list .agaed-rank-list { gap: 18px; }
.agaed-shortcode-error {
  padding: 12px 16px;
  background: #fff4f4;
  border: 1px solid #f3b6b6;
  color: #b00;
  font-size: 13px;
  border-radius: 2px;
  margin: 16px 0;
}

/* Article foot */
.agaed-article-foot {
  padding: clamp(36px, 5vw, 60px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--hair);
}

/* Supervisor block at the end of article */
.agaed-article-supervisor-block {
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  padding: 28px;
  margin-bottom: 32px;
}
.agaed-article-supervisor-block__h {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-article-supervisor-block__link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}
.agaed-article-supervisor-block__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.agaed-article-supervisor-block__avatar::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 26px;
  color: var(--paper);
}
.agaed-article-supervisor-block__avatar--has-image::before { display: none; }
.agaed-article-supervisor-block__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.agaed-article-supervisor-block__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agaed-article-supervisor-block__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.agaed-article-supervisor-block__title {
  font-size: 12px;
  color: var(--text-mid);
}
.agaed-article-supervisor-block__msg {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 4px;
}

/* PR notice on every article */
.agaed-article-pr-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--hair);
  margin-bottom: 32px;
}
.agaed-article-pr-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mid);
}
.agaed-article-pr-notice a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

/* Related articles */
.agaed-article-related .agaed-section-headline {
  margin-bottom: 20px;
  font-size: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.agaed-article-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--hair);
  border-top: 1px solid var(--hair);
}
.agaed-article-related__item {
  display: block;
  padding: 18px 22px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  background: var(--paper);
  height: 100%;
  transition: background 0.2s ease;
}
.agaed-article-related__item:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-article-related__cat {
  display: block;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}
.agaed-article-related__title {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 10px;
}
.agaed-article-related__date {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-mid);
}

@media (max-width: 980px) {
  .agaed-article-grid { grid-template-columns: 1fr; }
  .agaed-article-side { position: static; }
  .agaed-article-toc { max-height: none; }
  .agaed-article-related__list { grid-template-columns: repeat(2, 1fr); }
  .agaed-article-related__item:nth-child(3n) { border-right: 1px solid var(--hair); }
  .agaed-article-related__item:nth-child(2n) { border-right: none; }
}
@media (max-width: 720px) {
  .agaed-article-related__list { grid-template-columns: 1fr; }
  .agaed-article-related__item { border-right: none; }
  .agaed-article-meta__item--supervisor { margin-left: 0; }
}

/* ============================================================
   CATEGORY ARCHIVE PAGE
   ============================================================ */
.agaed-archive-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
/* 親カテゴリページ上部の TOPICS グリッド */
.agaed-archive-topics {
  padding: clamp(48px, 7vw, 80px) 0 clamp(20px, 3vw, 36px);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.agaed-archive-topics__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.45;
  color: var(--ink);
  margin: 16px 0 36px;
}
.agaed-archive-topics__h em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(184, 149, 106, 0.35) 64%, rgba(184, 149, 106, 0.35) 88%, transparent 88%);
  padding: 0 4px;
}
.agaed-archive-h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.4;
  color: var(--ink);
  margin: 24px 0 18px;
}
.agaed-archive-h em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(184, 149, 106, 0.35) 64%, rgba(184, 149, 106, 0.35) 88%, transparent 88%);
  padding: 0 4px;
}
.agaed-archive-desc {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 64ch;
}
.agaed-archive-desc p { margin: 0 0 12px; }
.agaed-archive-desc p:last-child { margin: 0; }

.agaed-archive-count {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.agaed-archive-count span {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.agaed-archive-list-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.agaed-archive-list__item {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.agaed-archive-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 24px 26px;
  text-decoration: none;
  background: var(--paper);
  height: 100%;
  transition: background 0.3s ease;
}
.agaed-archive-card:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-archive-card:hover .agaed-archive-card__title { color: var(--ink-2); }

.agaed-archive-card__thumb {
  width: 160px;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.agaed-archive-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
/* サムネイルが無いとき(noimg時)のプレースホルダ */
.agaed-archive-card__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--hair) 100%);
}
.agaed-archive-card__thumb--noimg span {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0.7;
}
.agaed-archive-card:not(:has(.agaed-archive-card__thumb)) {
  grid-template-columns: 1fr;
}
.agaed-archive-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.agaed-archive-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--latin);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.agaed-archive-card__cat { color: var(--sand); font-weight: 700; }
.agaed-archive-card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  transition: color 0.3s ease;
}
.agaed-archive-card__excerpt {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}
.agaed-archive-card__supervisor {
  font-size: 11px;
  color: var(--text-mid);
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
}
.agaed-archive-card__supervisor span {
  font-family: var(--latin);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-right: 6px;
}
/* 右下に → を控えめに */
.agaed-archive-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: var(--latin);
  color: var(--sand);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.agaed-archive-card { position: relative; }
.agaed-archive-card:hover .agaed-archive-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Pagination */
.agaed-archive-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.agaed-archive-pagination .page-numbers,
.agaed-archive-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.agaed-archive-pagination .page-numbers li { list-style: none; }
.agaed-archive-pagination a,
.agaed-archive-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--latin);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.agaed-archive-pagination a:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}
.agaed-archive-pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.agaed-archive-pagination .dots { border-color: transparent; }

/* Empty state */
.agaed-archive-empty {
  padding: 56px 32px;
  border: 2px dashed var(--hair-2);
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.85;
}
.agaed-archive-empty strong { color: var(--ink); }
.agaed-archive-empty code {
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .agaed-archive-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .agaed-archive-card { grid-template-columns: 1fr; gap: 14px; }
  .agaed-archive-card__thumb { width: 100%; aspect-ratio: 16 / 9; }
}

/* ============================================================
   DOCTOR ARCHIVE PAGE (/doctors/)
   ============================================================ */
.agaed-doctor-archive-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-doctor-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.agaed-doctor-archive-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--hair);
  text-decoration: none;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.agaed-doctor-archive-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 32px -22px rgba(14, 42, 71, 0.3);
  transform: translateY(-3px);
}
.agaed-doctor-archive-card__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1B4A85 0%, #0E2A47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.agaed-doctor-archive-card__photo::before {
  content: attr(data-initial);
  font-family: var(--latin);
  font-weight: 700;
  font-size: 48px;
  color: var(--paper);
}
.agaed-doctor-archive-card__photo--has-image::before { display: none; }
.agaed-doctor-archive-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.agaed-doctor-archive-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agaed-doctor-archive-card__supervises {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}
.agaed-doctor-archive-card__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}
.agaed-doctor-archive-card__title {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
}
.agaed-doctor-archive-card__specialties {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.agaed-doctor-archive-card__specialties li {
  font-size: 11px;
  color: var(--ink);
  padding: 3px 9px;
  background: var(--paper-warm);
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.agaed-doctor-archive-card__msg {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: normal;
}

@media (max-width: 720px) {
  .agaed-doctor-archive-list { grid-template-columns: 1fr; }
  .agaed-doctor-archive-card { grid-template-columns: 88px 1fr; gap: 18px; padding: 20px; }
  .agaed-doctor-archive-card__photo { width: 88px; height: 88px; }
  .agaed-doctor-archive-card__photo::before { font-size: 36px; }
}


/* ============================================================
   404 PAGE
   ============================================================ */
.agaed-404-container {
  padding: clamp(60px, 10vw, 140px) 0;
  text-align: center;
}
.agaed-404-num {
  font-family: var(--latin);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 1;
  color: var(--sand);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 16px;
  opacity: 0.85;
}
.agaed-404-h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.5;
}
.agaed-404-lede {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 auto 48px;
  max-width: 48ch;
}
.agaed-404-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 48px;
  max-width: 880px;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.agaed-404-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 36px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  background: var(--paper);
  position: relative;
  transition: background 0.3s ease;
  text-align: left;
  min-height: 160px;
}
.agaed-404-card:hover { background: rgba(255, 255, 255, 0.7); }
.agaed-404-card:hover .agaed-404-card__arrow { transform: translateX(6px); color: var(--sand); }
.agaed-404-card__num {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sand);
}
.agaed-404-card h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.agaed-404-card p {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}
.agaed-404-card__arrow {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.agaed-404-search {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--ink);
}
.agaed-404-search label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.agaed-404-search input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  border: none;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
}
.agaed-404-search input:focus { outline: none; background: var(--paper-warm); }
.agaed-404-search button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.agaed-404-search button:hover { background: var(--ink-2); }

@media (max-width: 720px) {
  .agaed-404-grid { grid-template-columns: repeat(2, 1fr); }
  .agaed-404-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
  .agaed-404-grid { grid-template-columns: 1fr; }
  .agaed-404-card { border-right: none; }
}


/* ============================================================
   SEARCH PAGE
   ============================================================ */
.agaed-search-form {
  display: flex;
  margin: 18px 0 14px;
  max-width: 480px;
  border: 1px solid var(--ink);
}
.agaed-search-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  border: none;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
}
.agaed-search-form input:focus { outline: none; background: var(--paper-warm); }
.agaed-search-form button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
}
.agaed-search-form button:hover { background: var(--ink-2); }

/* ============================================================
   DEFAULT PAGE TEMPLATE
   (privacy, terms, editorial-policy, about, etc.)
   ============================================================ */
.agaed-default-hero {
  padding: clamp(40px, 6vw, 70px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--hair);
}
.agaed-default-hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.4;
  color: var(--ink);
  margin: 24px 0 12px;
}
.agaed-default-hero__updated {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin: 0;
}
.agaed-default-body-section {
  padding: clamp(40px, 6vw, 70px) 0 clamp(48px, 7vw, 80px);
}
.agaed-default-body-container {
  max-width: 800px;
}

/* ============================================================
   SITEMAP PAGE
   ============================================================ */
.agaed-sitemap-section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.agaed-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(28px, 4vw, 56px);
}
.agaed-sitemap-block {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.agaed-sitemap-block__h {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: 0.005em;
}
.agaed-sitemap-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agaed-sitemap-block ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.agaed-sitemap-block ul li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.agaed-sitemap-block ul a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  display: block;
  position: relative;
  padding-right: 24px;
  transition: color 0.2s ease, padding-right 0.2s ease;
}
.agaed-sitemap-block ul a::after {
  content: "→";
  position: absolute;
  right: 0; top: 0;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}
.agaed-sitemap-block ul a:hover {
  color: var(--ink-2);
  padding-right: 30px;
}
.agaed-sitemap-block ul a:hover::after {
  color: var(--sand);
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .agaed-sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .agaed-sitemap-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .agaed-hero-grid { grid-template-columns: 1fr; }
  .agaed-hero-right { margin-top: 30px; }
  .agaed-hero-portrait { aspect-ratio: 16 / 10; }
  .agaed-about-grid { grid-template-columns: 1fr; }
  .agaed-topic-head { grid-template-columns: 1fr; gap: 24px; }
  .agaed-topic-pillars { grid-template-columns: repeat(2, 1fr); }
  .agaed-pillar-card:nth-child(2) { border-right: none; }
  .agaed-news-grid { grid-template-columns: repeat(2, 1fr); }
  /* tablet: 2列レイアウトに合わせて nth-child を再設定 */
  .agaed-article-card { --pl: 20px; }
  .agaed-article-card:nth-child(3n+1) { --pl: 20px; }
  .agaed-article-card:nth-child(2n+1) { --pl: 0px; }
  .agaed-article-card:nth-child(3n) { border-right: 1px solid var(--hair); padding-right: 28px; }
  .agaed-article-card:nth-child(2n) { padding-right: 0; border-right: none; }
  .agaed-footer-grid { grid-template-columns: 1fr 1fr; }
  .agaed-ranking-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 720px) {
  .agaed-header-cta { display: none; }
  .agaed-primary-nav ul { gap: 22px; }
  .agaed-doctor-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .agaed-topic-pillars { grid-template-columns: 1fr; }
  .agaed-pillar-card { border-right: none; }
  .agaed-news-grid { grid-template-columns: 1fr; }
  .agaed-article-card { border-right: none !important; padding-right: 0 !important; }
  .agaed-footer-grid { grid-template-columns: 1fr; }
  .agaed-footer-bottom { flex-direction: column; align-items: flex-start; }
  .agaed-pr-notice { max-width: 100%; }
  .agaed-criteria-list li { grid-template-columns: 70px 1fr; }
  .agaed-criteria-tag { display: none; }
  .agaed-faq-answer { padding-left: 0; }
}
@media (max-width: 540px) {
  .agaed-primary-nav { display: none; }
  .agaed-hero-headline { font-size: clamp(34px, 10vw, 48px); }
  .agaed-hero-stat { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .agaed-hero-stat__row { padding: 0; padding-bottom: 16px; border-right: none; border-bottom: 1px solid rgba(247, 245, 240, 0.18); }
  .agaed-hero-stat__row:last-child { padding-bottom: 0; border-bottom: none; }
  .agaed-brand-logo,
  .agaed-site-header .custom-logo { height: 20px !important; }
  .agaed-footer-logo { height: 26px; }
}
