/* ==========================================================================
   優投生塾 投球障害専門ポータルサイト — Brand Color Edition (v2)
   Palette: Warm Obsidian Charcoal (#171619) x Passion Crimson (#B91C1C) x Theoretical Amber Gold (#D97706 / #FACC15)
   Concept: 「理論の黄色（根拠・分析）」×「情熱の赤（行動・現場力）」×「研ぎ澄まされた白と黒（専門メディアの信頼感）」
   ========================================================================== */

:root {
  /* Dark Charcoal / Obsidian (Refined warm dark base) */
  --charcoal-950: #111113;
  --charcoal-900: #18181b;
  --charcoal-800: #242327;
  --charcoal-700: #36343a;

  /* Passion Crimson Red (Deep, executive red — never garish) */
  --crimson-800: #7f1d1d;
  --crimson-700: #991b1b;
  --crimson-600: #b91c1c;
  --crimson-500: #dc2626;
  --crimson-100: #fee2e2;
  --crimson-50: #fef2f2;

  /* Theoretical Amber Gold / Yellow (Intellectual warmth & clarity) */
  --amber-700: #92400e;
  --amber-600: #b45309;
  --amber-500: #d97706;
  --amber-400: #f59e0b;
  --amber-300: #facc15;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  /* Warm Neutral Greys (Stone scale — harmonizes with red & yellow) */
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --white: #ffffff;

  /* Legacy alias mapping so inline style="var(--...)" in HTML stays 100% harmonized */
  --navy-950: var(--charcoal-950);
  --navy-900: var(--charcoal-900);
  --navy-800: var(--charcoal-800);
  --navy-700: var(--charcoal-700);
  --teal-800: var(--crimson-800);
  --teal-700: var(--crimson-700);
  --teal-600: var(--crimson-600);
  --teal-500: var(--crimson-500);
  --teal-100: var(--amber-100);
  --teal-50: var(--amber-50);
  --gold-600: var(--amber-600);
  --gold-500: var(--amber-500);
  --gold-100: var(--amber-100);
  --slate-900: var(--stone-900);
  --slate-800: var(--stone-800);
  --slate-700: var(--stone-700);
  --slate-600: var(--stone-600);
  --slate-500: var(--stone-500);
  --slate-400: var(--stone-400);
  --slate-300: var(--stone-300);
  --slate-200: var(--stone-200);
  --slate-100: var(--stone-100);
  --slate-50: var(--stone-50);
  --danger-50: #fff1f2;
  --danger-700: #9f1239;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.05), 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 12px 28px rgba(24, 24, 27, 0.09), 0 2px 8px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 22px 48px rgba(17, 17, 19, 0.18);
  --shadow-book: 0 14px 32px rgba(24, 24, 27, 0.24), 0 4px 10px rgba(24, 24, 27, 0.1);
  --container-max: 1140px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--stone-800);
  background-color: var(--white);
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--crimson-700);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--charcoal-900); }

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

.section { padding: 88px 0; }
.section-sm { padding: 58px 0; }
.section-alt {
  background-color: var(--stone-50);
  border-top: 1px solid rgba(28, 25, 23, 0.07);
  border-bottom: 1px solid rgba(28, 25, 23, 0.07);
}
.section-dark {
  background: linear-gradient(135deg, var(--charcoal-950) 0%, var(--charcoal-900) 58%, #2b1416 100%);
  color: var(--white);
}

/* Reading Progress Bar (Passion Crimson -> Theoretical Amber Gold) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--crimson-600) 0%, var(--amber-500) 65%, var(--amber-300) 100%);
  z-index: 200;
  transition: width 0.08s linear;
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-600);
  margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--amber-300); }

h1, h2, h3, h4 {
  margin: 0 0 14px;
  color: var(--charcoal-900);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.03rem;
  color: var(--stone-600);
  max-width: 780px;
  line-height: 1.85;
}
.section-dark .lead { color: rgba(255, 255, 255, 0.84); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  background: rgba(17, 17, 19, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); opacity: 0.92; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--crimson-600) 0%, var(--crimson-700) 52%, var(--amber-500) 100%);
  border: 1px solid rgba(253, 230, 138, 0.35);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.08rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.05em; }
.brand-sub { font-size: 0.69rem; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.05em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  border-bottom-color: var(--amber-300);
}
.nav-cta {
  background: linear-gradient(135deg, var(--crimson-600), var(--crimson-700)) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border: 1px solid rgba(254, 226, 226, 0.28);
  border-bottom: 1px solid rgba(254, 226, 226, 0.28) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.38);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-600)) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1.35;
}
.btn-primary {
  background: linear-gradient(135deg, var(--crimson-600), var(--crimson-700));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.26);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--crimson-700), var(--crimson-800));
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.34);
}
.btn-white {
  background: var(--white);
  color: var(--charcoal-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.btn-white:hover {
  background: var(--amber-50);
  color: var(--crimson-700);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 230, 138, 0.44);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(250, 204, 21, 0.14);
  border-color: var(--amber-300);
  color: var(--white);
}
.btn-outline {
  background: var(--white);
  border-color: var(--stone-300);
  color: var(--charcoal-900);
}
.btn-outline:hover {
  border-color: var(--crimson-600);
  color: var(--crimson-700);
  background: var(--crimson-50);
}
.btn-gold {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--white);
}
.btn-gold:hover { background: var(--amber-700); color: var(--white); }
.btn-sm { padding: 9px 17px; font-size: 0.85rem; border-radius: 9px; }

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pill-dark {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.34);
  color: var(--amber-200);
}
.pill-teal {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-200);
}
.pill-gold {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border: 1px solid #fecaca;
}

/* Hero (Obsidian Charcoal x Subtle Crimson Passion Glow x Amber Gold Theory Accent) */
.hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(185, 28, 28, 0.34), transparent 44%),
    radial-gradient(circle at 14% 88%, rgba(217, 119, 6, 0.22), transparent 40%),
    linear-gradient(135deg, #0d0d0f 0%, #18171b 56%, #261416 100%);
  color: var(--white);
  padding: 84px 0 78px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--amber-500);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.55;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.86fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  margin: 18px 0 22px;
  line-height: 1.26;
  font-weight: 900;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  margin-bottom: 30px;
}
.hero-lead strong { color: var(--amber-200); }
.hero-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-top: 3px solid var(--amber-400);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
.hero-card h3 { color: var(--white); font-size: 1.14rem; margin-bottom: 10px; }
.hero-card p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.hero-stack { display: grid; gap: 10px; }
.hero-stack-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--crimson-500);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-stack-item span { font-size: 0.74rem; font-weight: 700; color: var(--amber-300); }

.metrics-bar {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metric-val { font-size: 1.44rem; font-weight: 900; color: var(--amber-300); line-height: 1.2; }
.metric-label { font-size: 0.76rem; color: rgba(255, 255, 255, 0.74); margin-top: 4px; line-height: 1.45; }

/* Subpage Header */
.page-hero {
  background:
    radial-gradient(circle at 86% 24%, rgba(185, 28, 28, 0.28), transparent 44%),
    radial-gradient(circle at 12% 85%, rgba(217, 119, 6, 0.16), transparent 36%),
    linear-gradient(135deg, #0d0d0f 0%, #18171b 58%, #2a1416 100%);
  color: var(--white);
  padding: 58px 0 54px;
  position: relative;
  border-bottom: 3px solid var(--amber-500);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.breadcrumb a:hover { color: var(--amber-300); }

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease; }
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(185, 28, 28, 0.36);
}
.card-num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber-600);
  margin-bottom: 8px;
}
.card-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--crimson-600); margin-bottom: 12px; }

/* Callout Quote Box (Warm Theoretical Amber Accent) */
.callout-box {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-left: 5px solid var(--crimson-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin-top: 30px;
  font-weight: 800;
  color: var(--charcoal-900);
  font-size: 1.05rem;
  line-height: 1.75;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--charcoal-900);
}
.flow-strip span:not(.arrow) {
  background: var(--white);
  border: 1px solid var(--amber-200);
  border-bottom: 3px solid var(--amber-500);
  padding: 7px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.flow-strip .arrow { color: var(--crimson-600); font-weight: 900; }

/* ==========================================================================
   Real Visual Components (Portraits & Physical Book Covers)
   ========================================================================== */
.avatar-frame {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--amber-50) 0%, var(--stone-100) 100%);
  border: 2.5px solid var(--white);
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.14);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar-frame-lg {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  border: 2px solid var(--amber-200);
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.avatar-stack .avatar-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--amber-50) 0%, var(--stone-100) 100%);
  border: 2.5px solid var(--white);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.16);
  margin-left: -10px;
}
.avatar-stack .avatar-mini:first-child { margin-left: 0; }
.avatar-stack .avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.book-cover-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.book-cover-frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.38), rgba(0,0,0,0.08) 45%, transparent);
  pointer-events: none;
}
.book-cover-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(24, 24, 27, 0.28);
}
.book-cover-frame img { width: 100%; height: auto; display: block; }

.top-books-thumbs {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.top-books-thumbs .book-cover-frame { width: 82px; flex-shrink: 0; }

/* ==========================================================================
   Textbook Hub (pharm-kusuri style structured index — All 33 Live!)
   ========================================================================== */
.hub-controls {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-top: 3px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.search-row { display: flex; gap: 12px; margin-bottom: 16px; }
.search-input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--stone-300);
  border-radius: 11px;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  background: var(--stone-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-input:focus {
  background: var(--white);
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  background: var(--stone-100);
  border: 1px solid transparent;
  color: var(--stone-700);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.filter-tab:hover {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: var(--amber-200);
}
.filter-tab.active {
  background: var(--crimson-600);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.24);
}

.hub-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--stone-600);
}

.cat-block {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-header {
  background: linear-gradient(95deg, var(--charcoal-900) 0%, #2a181a 100%);
  color: var(--white);
  padding: 19px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--amber-500);
}
.cat-header-left { display: flex; align-items: center; gap: 14px; }
.cat-badge {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--amber-300);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.cat-header h3 { color: var(--white); margin: 0; font-size: 1.12rem; }
.cat-desc {
  background: var(--stone-50);
  border-bottom: 1px solid var(--stone-200);
  padding: 12px 26px;
  font-size: 0.86rem;
  color: var(--stone-600);
}
.article-list { list-style: none; margin: 0; padding: 0; }
.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--stone-100);
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: var(--amber-50); }
.article-row:hover .article-title { color: var(--crimson-700); }
.article-row-main { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.article-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--amber-700);
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  padding: 2px 9px;
  border-radius: 6px;
  margin-top: 2px;
  flex-shrink: 0;
}
.article-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--charcoal-900);
  line-height: 1.5;
  transition: color 0.15s ease;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-chip {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-weight: 600;
}
.article-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--crimson-700);
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--crimson-50);
  border: 1px solid #fecaca;
}
.article-row:hover .article-arrow {
  background: var(--crimson-600);
  color: var(--white);
  border-color: var(--crimson-600);
}

/* Split Panel (Seminar LP) */
.split-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 28px;
  align-items: stretch;
}
.split-dark-box {
  background:
    radial-gradient(circle at 90% 10%, rgba(185, 28, 28, 0.3), transparent 48%),
    linear-gradient(155deg, var(--charcoal-950), var(--charcoal-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 4px solid var(--amber-500);
  box-shadow: var(--shadow-md);
}
.split-dark-box h2 { color: var(--white); margin: 14px 0 18px; }
.split-dark-box p { color: rgba(255, 255, 255, 0.84); font-size: 0.95rem; }
.mini-card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}
.mini-card::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-600), var(--amber-500));
  margin-top: 12px;
  border-radius: 2px;
}
.mini-card h4 { font-size: 1rem; margin-bottom: 6px; }
.mini-card p { font-size: 0.85rem; color: var(--stone-600); }

/* Curriculum Grid */
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lesson-item {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.lesson-num {
  background: var(--charcoal-900);
  color: var(--amber-300);
  font-size: 0.73rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.lesson-tag {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--crimson-700);
  background: var(--crimson-50);
  border: 1px solid #fecaca;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.lesson-catch { font-size: 0.81rem; color: var(--amber-600); font-weight: 700; margin-bottom: 3px; }
.lesson-title { font-size: 0.98rem; font-weight: 800; color: var(--charcoal-900); margin-bottom: 0; }

/* Instructor Cards */
.instructor-card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.instructor-head { display: flex; align-items: center; gap: 14px; }
.instructor-card-vertical .instructor-head { flex-direction: column; text-align: center; gap: 12px; }
.instructor-role { font-size: 0.74rem; font-weight: 800; color: var(--crimson-700); letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
.instructor-name { font-size: 1.2rem; font-weight: 800; color: var(--charcoal-900); margin: 0; }
.instructor-affil {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--stone-600);
}
.instructor-affil li { position: relative; padding-left: 14px; margin-bottom: 5px; line-height: 1.6; }
.instructor-affil li::before { content: "・"; position: absolute; left: 0; color: var(--amber-500); font-weight: 900; }

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.spec-table th, .spec-table td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--stone-200);
  vertical-align: top;
  font-size: 0.94rem;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 26%; background: var(--amber-50); color: var(--charcoal-900); font-weight: 800; }

/* Book Showcase */
.book-card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
  box-shadow: var(--shadow-md);
}
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--stone-600);
  margin: 14px 0 20px;
  padding: 13px 16px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 19px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--charcoal-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-q:hover { background: var(--amber-50); }
.faq-icon { font-size: 1.25rem; color: var(--crimson-600); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 14px 24px 20px;
  font-size: 0.92rem;
  color: var(--stone-600);
  border-top: 1px solid var(--stone-100);
}
.faq-item.open .faq-a { display: block; }

/* CTA Banner */
.cta-box {
  background:
    radial-gradient(circle at 90% 15%, rgba(185, 28, 28, 0.36), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(217, 119, 6, 0.22), transparent 40%),
    linear-gradient(135deg, var(--charcoal-950) 0%, var(--charcoal-900) 56%, #2b1315 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(250, 204, 21, 0.24);
  box-shadow: var(--shadow-lg);
}
.cta-box h2, .cta-box h3 { color: var(--white); }
.cta-box p { color: rgba(255, 255, 255, 0.84); }
.cta-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); margin-top: 10px; }

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal-900);
  color: var(--amber-300);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--crimson-600); color: var(--white); }

/* Footer */
.site-footer {
  background: var(--charcoal-950);
  color: rgba(255, 255, 255, 0.76);
  padding: 60px 0 30px;
  font-size: 0.88rem;
  border-top: 3px solid var(--crimson-700);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 { color: var(--amber-200); font-size: 0.95rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.76); }
.footer-links a:hover { color: var(--amber-300); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
}

/* ==========================================================================
   Article Page Styles (High-readability clinical textbook layout)
   ========================================================================== */
.article-hero {
  background:
    radial-gradient(circle at 86% 24%, rgba(185, 28, 28, 0.26), transparent 44%),
    radial-gradient(circle at 12% 90%, rgba(217, 119, 6, 0.16), transparent 36%),
    linear-gradient(135deg, #0d0d0f 0%, #18171b 60%, #2a1416 100%);
  color: var(--white);
  padding: 50px 0 46px;
  border-bottom: 3px solid var(--amber-500);
}
.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.28rem);
  line-height: 1.38;
  margin: 14px 0 18px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.article-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-hero-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.36);
  color: var(--amber-200);
}

.article-section { padding: 56px 0 80px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 44px;
  align-items: start;
}
.article-body { min-width: 0; }

/* Theoretical Summary Box (Amber Top Border) */
.summary-box {
  background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 100%);
  border: 1px solid var(--amber-200);
  border-top: 4px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 38px;
  box-shadow: var(--shadow-sm);
}
.summary-box-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--amber-700);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.summary-box ul { margin: 0; padding-left: 20px; }
.summary-box li { margin-bottom: 9px; font-size: 0.94rem; color: var(--stone-700); line-height: 1.75; }
.summary-box li:last-child { margin-bottom: 0; }

/* Section Headings: Passion Crimson bar on H2, Theoretical Amber bar on H3 */
.article-body h2 {
  font-size: 1.44rem;
  margin: 48px 0 20px;
  padding: 11px 0 11px 16px;
  border-left: 5px solid var(--crimson-600);
  border-bottom: 1px solid var(--stone-200);
  color: var(--charcoal-900);
  scroll-margin-top: 94px;
}
.article-body h3 {
  font-size: 1.12rem;
  margin: 30px 0 12px;
  color: var(--charcoal-800);
  padding-left: 11px;
  border-left: 3.5px solid var(--amber-500);
}
.article-body p {
  font-size: 0.99rem;
  line-height: 1.92;
  color: var(--stone-800);
  margin-bottom: 18px;
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; font-size: 0.96rem; line-height: 1.82; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.89rem;
  min-width: 560px;
}
.data-table thead th {
  background: var(--charcoal-900);
  color: var(--amber-200);
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.data-table thead th:last-child { border-right: none; }
.data-table tbody td, .data-table tbody th {
  padding: 13px 16px;
  border-top: 1px solid var(--stone-200);
  border-right: 1px solid var(--stone-100);
  vertical-align: top;
  line-height: 1.68;
}
.data-table tbody td:last-child { border-right: none; }
.data-table tbody tr:nth-child(even) { background: var(--stone-50); }
.data-table tbody th {
  background: var(--amber-50);
  color: var(--charcoal-900);
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

/* Clinical Theory Box (Theoretical Amber Gold) */
.clinical-box {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-left: 4px solid var(--amber-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
  margin: 26px 0;
}
.clinical-box-title {
  font-size: 0.89rem;
  font-weight: 800;
  color: var(--amber-700);
  margin-bottom: 9px;
  letter-spacing: 0.03em;
}
.clinical-box p, .clinical-box li { font-size: 0.93rem; color: var(--stone-700); }

/* Red Flag Box (Medical Alert — Deep Rose / Burgundy so it stays clearly distinct) */
.red-flag-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 5px solid #9f1239;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
  margin: 28px 0;
}
.red-flag-title { font-size: 0.9rem; font-weight: 800; color: #9f1239; margin-bottom: 9px; }
.red-flag-box p, .red-flag-box li { font-size: 0.92rem; color: #4c0519; }

/* How Bridge CTA inside every article */
.how-bridge {
  margin-top: 48px;
  background:
    radial-gradient(circle at 90% 18%, rgba(185, 28, 28, 0.36), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(217, 119, 6, 0.18), transparent 42%),
    linear-gradient(145deg, var(--charcoal-950) 0%, var(--charcoal-900) 60%, #2a1315 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  border: 1px solid rgba(250, 204, 21, 0.34);
  box-shadow: var(--shadow-md);
}
.how-bridge-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber-200);
  background: rgba(217, 119, 6, 0.24);
  border: 1px solid rgba(253, 230, 138, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 13px;
}
.how-bridge h2 {
  color: var(--white) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  font-size: 1.32rem !important;
}
.how-bridge p { color: rgba(255, 255, 255, 0.86) !important; font-size: 0.92rem !important; margin-bottom: 16px; }
.how-bridge ul { margin: 0 0 22px; padding-left: 20px; }
.how-bridge li { color: rgba(255, 255, 255, 0.92); font-size: 0.9rem; margin-bottom: 7px; }
.how-bridge-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.how-bridge-note { margin-top: 14px !important; margin-bottom: 0 !important; font-size: 0.79rem !important; color: rgba(255, 255, 255, 0.68) !important; }

.article-pager {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--stone-200);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.pager-card {
  display: block;
  padding: 15px 17px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.pager-card:hover { border-color: var(--crimson-600); background: var(--amber-50); transform: translateY(-1px); }
.pager-dir { display: block; font-size: 0.72rem; font-weight: 800; color: var(--crimson-700); margin-bottom: 4px; }
.pager-title { display: block; font-size: 0.86rem; font-weight: 700; color: var(--charcoal-900); line-height: 1.45; }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: grid;
  gap: 20px;
}
.side-card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card-title {
  font-size: 0.81rem;
  font-weight: 800;
  color: var(--charcoal-900);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--amber-100);
}
.toc-list, .side-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.toc-list a {
  display: block;
  font-size: 0.83rem;
  color: var(--stone-600);
  line-height: 1.48;
  padding-left: 10px;
  border-left: 2px solid var(--stone-200);
}
.toc-list a:hover { color: var(--crimson-700); border-left-color: var(--crimson-600); }
.side-cat-list a, .side-cat-list span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.48;
  padding: 6px 9px;
  border-radius: 7px;
}
.side-cat-list a { color: var(--stone-700); }
.side-cat-list a:hover { background: var(--amber-50); color: var(--crimson-700); }
.side-cat-list .current-art { background: var(--charcoal-900); color: var(--amber-300); font-weight: 700; }

.side-cta {
  background:
    radial-gradient(circle at 90% 10%, rgba(185, 28, 28, 0.34), transparent 52%),
    linear-gradient(155deg, var(--charcoal-950), #271315);
  color: var(--white);
  border: 1px solid rgba(250, 204, 21, 0.28);
}
.side-cta .side-card-title { color: var(--amber-300); border-bottom-color: rgba(255, 255, 255, 0.14); }
.side-cta p { font-size: 0.83rem; color: rgba(255, 255, 255, 0.84); margin-bottom: 14px; }

.side-book-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.side-book-row .book-cover-frame {
  width: 68px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(24, 24, 27, 0.2);
}

/* Evidence Visual Cards & Bar Charts */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0 30px;
}
.evidence-card {
  background: var(--white);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-top: 3px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.evidence-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.evidence-card-title { font-size: 0.93rem; font-weight: 800; color: var(--charcoal-900); }
.evidence-pval {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--crimson-700);
  background: var(--crimson-50);
  border: 1px solid #fecaca;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.bar-group { margin-bottom: 13px; }
.bar-group:last-child { margin-bottom: 0; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stone-600);
  margin-bottom: 5px;
}
.bar-track { height: 10px; background: var(--stone-100); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-before { background: #a8a29e; }
.bar-after-rom { background: linear-gradient(90deg, var(--amber-500), var(--amber-300)); }
.bar-after-pain { background: linear-gradient(90deg, #15803d, #22c55e); }
.bar-pain-high { background: linear-gradient(90deg, var(--crimson-700), var(--crimson-500)); }

.step-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 30px;
}
.step-node {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.step-node.active-node {
  background: var(--amber-50);
  border-color: var(--amber-500);
  box-shadow: var(--shadow-xs);
}
.step-node-num { font-size: 0.72rem; font-weight: 800; color: var(--crimson-700); letter-spacing: 0.05em; margin-bottom: 4px; }
.step-node-title { font-size: 0.95rem; font-weight: 800; color: var(--charcoal-900); margin-bottom: 4px; }
.step-node-desc { font-size: 0.79rem; color: var(--stone-600); line-height: 1.55; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split-feature, .cta-box, .book-card, .article-layout {
    grid-template-columns: 1fr;
  }
  .book-cover-frame { max-width: 220px; }
  .article-sidebar { position: static; }
  .how-bridge-actions { grid-template-columns: 1fr; }
  .article-pager { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .lesson-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--charcoal-900);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 12px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .lesson-grid, .footer-grid, .metrics-bar, .evidence-grid, .step-chain {
    grid-template-columns: 1fr;
  }
  .section { padding: 58px 0; }
  .hero { padding: 54px 0; }
  .cta-box { padding: 30px 24px; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: none; padding-bottom: 6px; }
  .article-row { flex-direction: column; align-items: flex-start; }
}
