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

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

:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f0f2f6;
  --border: #e2e6ee;
  --border-light: #edf0f5;
  --text: #1c2133;
  --text-secondary: #5a6275;
  --text-dim: #8d95a8;

  --primary: #0f2b5b;
  --primary-mid: #1a4182;
  --primary-vivid: #2563eb;
  --primary-light: #c7d8f4;
  --primary-lighter: #eef4ff;

  --accent: #0891b2;
  --accent-light: #cffafe;

  --sora: #1e40af;
  --sora-vivid: #3b82f6;
  --sora-bg: #f0f5ff;
  --sora-border: #93b4f6;

  --hinata: #9a3412;
  --hinata-vivid: #ea580c;
  --hinata-bg: #fef7f0;
  --hinata-border: #f9b07a;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --font: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;
  --max-w: 840px;
  --content-max: 1120px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
  font-size: 15px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}
.site-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-parent {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.site-parent span { color: var(--accent); }
.site-parent:hover { color: var(--primary-vivid); }
.site-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.site-brand:hover { color: var(--primary-vivid); }
.site-brand svg { color: var(--primary-vivid); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.site-nav a:hover {
  color: var(--primary-vivid);
  background: var(--primary-lighter);
}
.site-nav a.active {
  color: var(--primary-vivid);
  background: var(--primary-lighter);
  font-weight: 700;
}
.site-module {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO BANNER — LP2式 全面グラデーション+人物マスク
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3f7a 40%, #1f5397 70%, var(--accent) 100%);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 300px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 100%, rgba(255,255,255,0.06), transparent),
    radial-gradient(ellipse 600px 300px at 80% 0%, rgba(8,145,178,0.15), transparent);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-vivid), var(--accent));
}

.hero-chara {
  height: 280px;
  width: auto;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  clip-path: ellipse(120px 150px at 50% 48%);
  margin: 0 -8px;
  filter: brightness(1.08) contrast(1.05);
}
.hero-left {
  align-self: flex-end;
  clip-path: ellipse(118px 150px at 52% 46%);
}
.hero-right {
  align-self: flex-end;
  clip-path: ellipse(118px 150px at 48% 46%);
}

.hero-center {
  flex: 1;
  text-align: center;
  padding: 48px 40px 36px;
  min-width: 0;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-module {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 4px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  color: white;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.hero-series {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.hero-series::before,
.hero-series::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ARTICLE NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 32px;
}
.article-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.article-nav a:hover {
  border-color: var(--primary-vivid);
  color: var(--primary-vivid);
  box-shadow: var(--shadow-sm);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ARTICLE LAYOUT — LP1式 メイン+サイドバー
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px 56px;
  align-items: start;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ARTICLE BODY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-body,
article.article-body {
  min-width: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.article-layout .article-body {
  padding: 0;
  max-width: none;
}

/* ── H2: LP3式 大番号セクション見出し ── */
.article-body h2 {
  font-size: 18px;
  font-weight: 900;
  margin-top: 52px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: var(--radius);
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-vivid), var(--accent));
  border-radius: 4px 0 0 4px;
}

.article-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--primary-mid);
}

.article-body p {
  margin-bottom: 10px;
}

/* ── HR: LP1式 3ドットセパレーター ── */
.article-body hr {
  border: none;
  height: auto;
  margin: 44px 0;
  text-align: center;
  background: none;
  position: relative;
  overflow: visible;
}
.article-body hr::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.article-body hr::after {
  content: '';
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary-vivid);
  border-radius: 50%;
  z-index: 1;
  box-shadow: -16px 0 0 var(--primary-light), 16px 0 0 var(--primary-light);
}

.article-body strong {
  color: var(--primary-mid);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(199,216,244,0.4) 60%);
  padding: 0 2px;
}
.article-body a {
  color: var(--primary-vivid);
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.2);
  font-weight: 500;
  transition: all 0.2s;
}
.article-body a:hover {
  border-bottom-color: var(--primary-vivid);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SPEECH BUBBLES — v3ベース+洗練
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  max-width: 82%;
}
.bubble-row.sora { flex-direction: row; margin-right: auto; }
.bubble-row.hinata { flex-direction: row-reverse; margin-left: auto; }
.bubble-row .avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 50px;
}
.bubble-row .avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2.5px solid white;
  box-shadow: var(--shadow);
}
.bubble-row.sora .avatar img {
  box-shadow: 0 0 0 2px var(--sora-border), var(--shadow);
}
.bubble-row.hinata .avatar img {
  box-shadow: 0 0 0 2px var(--hinata-border), var(--shadow);
}
.avatar-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.bubble-row.sora .avatar-name { color: var(--sora-vivid); }
.bubble-row.hinata .avatar-name { color: var(--hinata-vivid); }

.bubble-row .bubble {
  flex: 1;
  position: relative;
  padding: 13px 18px;
  line-height: 1.85;
  font-size: 14.5px;
}
.bubble-row .bubble::before {
  content: '';
  position: absolute;
  top: 15px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
.bubble-row.sora .bubble {
  background: white;
  border: 1px solid var(--border);
  border-radius: 3px var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-xs);
}
.bubble-row.sora .bubble::before {
  left: -4px;
  background: white;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bubble-row.hinata .bubble {
  background: var(--hinata-bg);
  border: 1px solid var(--hinata-border);
  border-radius: var(--radius) 3px var(--radius) var(--radius);
  box-shadow: var(--shadow-xs);
}
.bubble-row.hinata .bubble::before {
  right: -4px;
  background: var(--hinata-bg);
  border-right: 1px solid var(--hinata-border);
  border-top: 1px solid var(--hinata-border);
}
.bubble-row .bubble p { margin: 0; }
.bubble-row .bubble strong {
  background: none !important;
  padding: 0 !important;
}
.bubble-row.sora .bubble strong { color: var(--sora); font-weight: 700; }
.bubble-row.hinata .bubble strong { color: var(--hinata); font-weight: 700; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLE — LP2式 比較テーブル
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: white;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 12px 18px;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
td {
  padding: 11px 18px;
  border-top: 1px solid var(--border-light);
}
tr:nth-child(even) td {
  background: rgba(240,242,246,0.5);
}
tr:hover td {
  background: var(--primary-lighter);
}
td strong {
  background: none !important;
  padding: 0 !important;
  color: var(--primary-mid);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LISTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-body ol,
.article-body ul {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.article-body ol li,
.article-body ul li {
  position: relative;
  padding: 7px 0 7px 30px;
  margin-bottom: 2px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--primary-vivid);
  border-radius: 50%;
  opacity: 0.45;
}
.article-body ol {
  counter-reset: list-counter;
}
.article-body ol li {
  counter-increment: list-counter;
}
.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary-vivid), var(--accent));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── blockquote ── */
.article-body blockquote {
  background: white;
  border-left: 4px solid linear-gradient(var(--primary-vivid), var(--accent));
  border-image: linear-gradient(180deg, var(--primary-vivid), var(--accent)) 1;
  border-left-width: 4px;
  border-left-style: solid;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}
.article-body blockquote a { color: var(--primary-vivid); font-weight: 600; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUIZ CTA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.quiz-cta {
  max-width: var(--content-max);
  margin: 0 auto 36px;
  padding: 0 32px;
}
.quiz-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: white;
  text-decoration: none;
  padding: 18px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.25s;
}
.quiz-cta a:hover {
  box-shadow: var(--shadow-md), 0 0 0 3px var(--primary-light);
  transform: translateY(-2px);
}

/* ── footer ── */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR — LP1式 固定サイドバー
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar {
  position: sticky;
  top: 64px;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
}
.sidebar-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.sidebar-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-toc { list-style: none; margin: 0; padding: 0; }
.sidebar-toc li { margin-bottom: 2px; }
.sidebar-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}
.sidebar-toc a:hover {
  color: var(--primary-vivid);
  background: var(--primary-lighter);
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sidebar-tag {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.4;
  transition: all 0.15s;
}
.sidebar-tag:hover {
  background: var(--primary-lighter);
  color: var(--primary-vivid);
}
.sidebar-module-list { list-style: none; margin: 0; padding: 0; }
.sidebar-module-list li {
  margin-bottom: 2px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
}
.sidebar-module-list li.current {
  color: var(--primary-vivid);
  font-weight: 700;
  background: var(--primary-lighter);
}
.sidebar-module-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.sidebar-module-list a:hover { color: var(--primary-vivid); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INDEX PAGE — TOC
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.index-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px 48px;
}

.index-hero {
  position: relative;
  margin-bottom: 48px;
  min-height: 320px;
}
.index-hero-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  pointer-events: none;
}
.index-hero-bg {
  width: 100%;
  height: auto;
  display: block;
}
.index-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 0 40px;
  max-width: 55%;
}
.index-level-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.index-level-tag .level-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.index-hero h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--primary);
}
.index-hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}
.index-hero-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0;
}
.index-stats {
  display: flex;
  gap: 28px;
}
.index-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.index-stat strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.index-stat span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.index-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}
.index-stat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.index-stat strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}

.module-group {
  margin-bottom: 32px;
}
.module-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.module-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}
.module-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  margin-left: auto;
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.article-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}
.article-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm), 0 0 0 2px var(--primary-lighter);
  transform: translateY(-1px);
}
.article-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-lighter);
  color: var(--primary-vivid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.article-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.article-card:hover .article-title {
  color: var(--primary-vivid);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-banner { min-height: 220px; }
  .hero-chara { height: 220px; }
  .hero-title { font-size: 20px; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: 11px; padding: 5px 10px; }
  .site-parent { font-size: 12px; }
  .index-hero { min-height: 240px; }
  .index-hero h1 { font-size: 28px; }
  .index-hero-content { max-width: 55%; }
  .index-hero-visual { width: 55%; }
  .article-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sidebar { grid-template-columns: 1fr; }
  .site-header { padding: 0 16px; height: 52px; }
  .site-parent { display: none; }
  .site-divider { display: none; }
  .site-nav { display: none; }
  .hero-banner { min-height: 200px; }
  .hero-chara {
    height: 180px;
    clip-path: ellipse(70px 100px at 50% 55%);
  }
  .hero-left { clip-path: ellipse(68px 100px at 55% 55%); }
  .hero-right { clip-path: ellipse(68px 100px at 45% 55%); }
  .hero-title { font-size: 17px; }
  .hero-center { padding: 32px 20px 24px; }
  .article-body h2 { font-size: 16px; padding: 16px 20px; }
  .bubble-row { gap: 8px; max-width: 92%; }
  .bubble-row .avatar { width: 44px; }
  .bubble-row .avatar img { width: 38px; height: 38px; }
  .bubble-row .bubble { padding: 11px 14px; font-size: 14px; }
  .article-layout { padding: 0 16px 36px; gap: 24px; }
  article.article-body { padding: 8px 16px 36px; }
  .article-nav { padding: 12px 16px; }
  .quiz-cta { padding: 0 16px; }
  .index-main { padding: 0 16px 36px; }
  .index-hero { min-height: auto; }
  .index-hero h1 { font-size: 22px; }
  .index-hero-content { max-width: 100%; padding-bottom: 0; }
  .index-hero-visual { position: static; width: 100%; margin-top: 16px; }
  .index-stats { gap: 16px; }
  .index-stat strong { font-size: 18px; }
  .module-header { flex-wrap: wrap; gap: 8px; }
  .module-count { margin-left: 0; }
}
