/* ============================================================
   NEXA BLOG — モダンテックスタイル / ダークテーマ
   Modern Tech Blog (Japanese) — Global Stylesheet
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a0f1c;
  --bg-2: #0d1526;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #101a2e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e8eefb;
  --text-2: #aab6cf;
  --text-3: #6b7a97;

  /* Accent */
  --accent: #22d3ee;          /* primary: cyan */
  --accent-2: #38bdf8;
  --accent-dim: rgba(34, 211, 238, 0.14);
  --rose: #fb7185;            /* category: xiaohongshu */
  --rose-dim: rgba(251, 113, 133, 0.14);
  --amber: #fbbf24;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;

  /* Fonts */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Menlo", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 8%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(38% 34% at 88% 14%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(50% 44% at 78% 92%, rgba(251, 113, 133, 0.05), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-sub { color: var(--text-2); font-size: 15px; margin-top: 8px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121c;
  box-shadow: 0 8px 28px -8px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.6); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn .arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 15, 28, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121c;
  box-shadow: 0 6px 20px -6px rgba(34, 211, 238, 0.7);
}

.brand-name { background: linear-gradient(120deg, #fff 20%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

.nav-cta { margin-left: 8px; }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile nav */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 15, 28, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .nav-link { font-size: 20px; padding: 14px 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  /* 日本語の見出しが「実践ノ/ウハウ」のように語中で折り返すのを防ぐ */
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

.hero h1 .grad {
  /* グラデ文字はインライン分割されると背景クリップが途切れるため一塊で保持 */
  display: inline-block;
}
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #7dd3fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p.lead {
  color: var(--text-2);
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--border); }
.stat:last-child { padding-right: 0; margin-right: 0; border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat .lbl { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* Hero visual — terminal card */
.hero-visual { position: relative; }

.terminal {
  background: rgba(13, 21, 38, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(34, 211, 238, 0.4);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease-out);
}
.terminal:hover { transform: rotate(0deg); }

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.term-bar .tb { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .tb.r { background: #f87171; }
.term-bar .tb.y { background: #fbbf24; }
.term-bar .tb.g { background: #34d399; }
.term-bar .tb-name { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

.term-body { padding: 20px 22px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; }
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .c-1 { color: #93c5fd; }
.term-body .c-2 { color: var(--accent); }
.term-body .c-3 { color: #f9a8d4; }
.term-body .c-4 { color: #86efac; }
.term-body .c-dim { color: var(--text-3); }
.term-body .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2) infinite;
}

/* Floating chips */
.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(13, 21, 38, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.chip-float .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.chip-float.f1 { top: -22px; left: -18px; }
.chip-float.f2 { bottom: -20px; right: 8px; animation-delay: -3s; }
.chip-float.f1 .ic { background: var(--accent-dim); color: var(--accent); }
.chip-float.f2 .ic { background: var(--rose-dim); color: var(--rose); }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  display: block;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 20% 0%, var(--c-dim, rgba(34,211,238,0.12)), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.35s;
}
.cat-card:hover::before { opacity: 1; }

.cat-card.seo { --c: var(--accent); --c-dim: rgba(34, 211, 238, 0.14); }
.cat-card.red { --c: var(--rose); --c-dim: rgba(251, 113, 133, 0.14); }

.cat-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--c-dim);
  color: var(--c);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
}

.cat-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; position: relative; }
.cat-card p { color: var(--text-2); font-size: 14.5px; position: relative; }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cat-meta .count { font-family: var(--font-mono); font-size: 13px; color: var(--c); }
.cat-meta .go {
  color: var(--c);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: gap 0.25s var(--ease-out);
}
.cat-card:hover .go { gap: 11px; }

/* ---------- Article cards ---------- */
.art-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.art-feature:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.art-cover {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.art-cover .cv {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.16);
  transition: transform 0.6s var(--ease-out);
}
.art-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 15, 28, 0.9) 100%);
}
.art-feature:hover .cv { transform: scale(1.08) rotate(-4deg); }
.art-cover .cat-chip-cover {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
}

.art-body { padding: 30px 32px; display: flex; flex-direction: column; }

.art-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
  transition: color 0.2s;
}
.art-title:hover { color: var(--accent); }

.art-excerpt { color: var(--text-2); font-size: 14.5px; line-height: 1.8; flex: 1; }

.art-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.art-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* compact cards grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.art-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.art-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.art-card .mini-cover {
  height: 128px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  border: 1px solid var(--border);
}

.art-card h3 {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.art-card h3 a:hover { color: var(--accent); }

.art-card .ex { color: var(--text-3); font-size: 13.5px; line-height: 1.75; flex: 1; }

.art-card .foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Category chip ---------- */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cat-chip.seo { background: var(--accent-dim); color: var(--accent); }
.cat-chip.red { background: var(--rose-dim); color: var(--rose); }
.cat-chip .cd { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Newsletter ---------- */
.newsletter {
  border-radius: var(--radius-lg);
  padding: 56px;
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  text-align: center;
  backdrop-filter: blur(10px);
}
.newsletter h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.newsletter p { color: var(--text-2); margin: 12px auto 30px; max-width: 46ch; font-size: 15px; }

.news-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.news-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-form input::placeholder { color: var(--text-3); }
.news-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }

.news-note { font-size: 12.5px; color: var(--text-3); margin-top: 16px; }

/* ---------- Page header (category pages) ---------- */
.page-head { padding: 76px 0 44px; }
.page-head .crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.page-head .crumbs a { color: var(--text-2); }
.page-head .crumbs a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.page-head .lead { color: var(--text-2); max-width: 56ch; margin-top: 14px; font-size: 16px; }

.cat-head-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 22px;
}
.cat-head-icon.seo { background: var(--accent-dim); color: var(--accent); }
.cat-head-icon.red { background: var(--rose-dim); color: var(--rose); }

/* list layout for category pages */
.art-list { display: flex; flex-direction: column; gap: 18px; }

.art-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.art-row:hover { transform: translateX(6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.art-row .row-cover {
  height: 92px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.art-row h3 { font-size: 17px; font-weight: 650; line-height: 1.5; margin-bottom: 7px; transition: color 0.2s; }
.art-row h3 a:hover { color: var(--accent); }
.art-row .ex { color: var(--text-3); font-size: 13.5px; }
.art-row .arrow-go { color: var(--text-3); transition: color 0.2s, transform 0.2s; }
.art-row:hover .arrow-go { color: var(--accent); transform: translateX(4px); }

/* ---------- Article page ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }

.article-head { padding: 60px 0 30px; text-align: center; }
.article-head .crumbs { justify-content: center; }
.article-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin: 18px 0; }
.article-head .lead { color: var(--text-2); max-width: 62ch; margin: 0 auto 22px; font-size: 16px; }

.art-top-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

.article-cover-hero {
  height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 8px 0 40px;
  display: grid;
  place-items: center;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.article-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,15,28,0.55) 100%);
}

/* prose */
.prose { font-size: 16.5px; line-height: 2.0; color: #dbe4f5; }
.prose p { margin-bottom: 22px; }
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}
.prose h3 { font-size: 19px; font-weight: 650; margin: 34px 0 12px; }
.prose strong { color: #fff; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 26px; }
.prose ul li { list-style: none; position: relative; padding-left: 8px; margin-bottom: 10px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 12px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.prose ol li { list-style: decimal; margin-bottom: 10px; }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent);
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  color: var(--text-2);
  margin: 26px 0;
  font-style: italic;
}
.prose a { color: var(--accent); border-bottom: 1px dashed rgba(34,211,238,0.4); }
.prose a:hover { border-bottom-style: solid; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 34px 0 40px;
  backdrop-filter: blur(8px);
}
.toc .toc-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.toc ul { padding-left: 0; margin: 0; }
.toc li { list-style: none; padding-left: 0; margin-bottom: 8px; }
.toc li::before { display: none; }
.toc a { color: var(--text-2); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s, transform 0.2s; }
.toc a:hover { color: var(--accent); transform: translateX(3px); }
.toc .tnum { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* article footer tags & share */
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 44px 0 56px;
}
.article-tags .tag-lbl { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-right: 4px; letter-spacing: 0.12em; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 60px;
}
.art-nav-item {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.art-nav-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.art-nav-item.next { text-align: right; }
.art-nav-item .dir { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.18em; }
.art-nav-item .t { font-size: 14.5px; font-weight: 600; margin-top: 6px; line-height: 1.5; color: var(--text); }
.art-nav-item:hover .t { color: var(--accent); }

/* ---------- Related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 72px; }

.related-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.related-card h3 { font-size: 14.5px; font-weight: 650; line-height: 1.55; margin: 12px 0 10px; transition: color 0.2s; }
.related-card h3 a:hover { color: var(--accent); }
.related-card .rmeta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); display: flex; gap: 10px; align-items: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 12, 22, 0.6);
  padding: 56px 0 30px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .brand { margin-bottom: 14px; }
.footer-about { color: var(--text-3); font-size: 13.5px; line-height: 1.85; max-width: 32ch; }
.footer h4 { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; color: var(--text-2); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-3); font-size: 13.5px; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom .heart { color: var(--rose); }

/* ---------- Skeleton (loading state) ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.4s infinite;
}
.skel-line { height: 14px; border-radius: 6px; background: rgba(255,255,255,0.07); margin-bottom: 12px; }
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Section spacing ---------- */
.sec { padding: 72px 0; }
.sec-tight { padding: 40px 0 72px; }

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 70px 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-3);
  font-size: 15px;
}
.empty-state .big { font-size: 42px; margin-bottom: 14px; color: var(--text-3); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.2s, border-color 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 620px; }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .cat-grid { grid-template-columns: 1fr; }
  .art-feature { grid-template-columns: 1fr; }
  .art-cover { min-height: 200px; }
  .article-nav { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .sec { padding: 52px 0; }
  .art-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter { padding: 38px 24px; }
  .art-row { grid-template-columns: 92px 1fr; }
  .art-row .arrow-go { display: none; }
  .art-row .row-cover { height: 72px; font-size: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats { flex-wrap: wrap; gap: 14px 0; }
  .stat { padding-right: 20px; margin-right: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .terminal { transform: none; }
  .chip-float { animation: none; }
}
/* ============================================================
   NEXA BLOG — Hub & Spoke 2.0 追加コンポーネント
   （Mega menu / ページモデル / 索引テーブル / 5カラムフッター）
   ============================================================ */

/* ---------- Nav : Mega menu trigger ---------- */
.nav-caret {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
}
.nav-link.has-mega:hover .nav-caret,
.nav-link.has-mega.mega-open .nav-caret { transform: rotate(180deg); opacity: 1; }

/* ---------- Mega menu panel ---------- */
.mega {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  z-index: 60;
  background: rgba(10, 15, 28, 0.97);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  animation: megaIn 0.22s var(--ease-out);
}
.mega[hidden] { display: none; }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega-inner { padding: 30px 28px 26px; }
.mega-hd {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.mega-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.mega-sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mega-card {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.mega-card:hover {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}
.mega-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.mega-name {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--text);
}
.mega-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 7px;
}
.mega-ft {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.mega-ft a { color: var(--text-2); }
.mega-ft a:hover { color: var(--accent); }

/* ---------- Mobile menu (多階層) ---------- */
.mm-sep {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 22px 28px 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.mobile-menu .mm-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 28px;
  font-size: 15.5px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu .mm-sub:hover { color: var(--accent); background: var(--surface); }
.mobile-menu .mm-no { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.mobile-menu { overflow-y: auto; max-height: 100dvh; padding-bottom: 40px; }
body.menu-open { overflow: hidden; }

/* ---------- Breadcrumbs (汎用) ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 34px;
  margin-bottom: 4px;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumb-sep { color: var(--text-3); opacity: 0.55; }
.page-head .crumbs { padding-top: 0; margin-bottom: 20px; }

/* ---------- Page head : 記事タイプ ---------- */
.art-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.art-type-chip .ic { font-size: 13px; }
.badge-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ---------- Layout : 2カラム（本文 + サイド） ---------- */
.pillar-grid-wrap,
.page-art-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 48px;
  align-items: start;
  padding-bottom: 76px;
}
.pillar-main, .page-art-main { min-width: 0; }
.pillar-side, .page-art-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- サイドカード ---------- */
.side-card {
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.side-card.accent {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(56, 189, 248, 0.04));
  border-color: rgba(34, 211, 238, 0.3);
}
.side-card.accent .side-title { color: var(--accent); }
.side-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.side-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list li { list-style: none; }
.side-list a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 8px;
  padding: 9px 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.side-list a:hover { background: var(--surface-2); }
.side-no { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); grid-row: span 2; padding-top: 2px; }
.side-t { font-size: 13.5px; color: var(--text); line-height: 1.5; font-weight: 550; }
.side-list a:hover .side-t { color: var(--accent); }
.side-v { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.side-kw { display: flex; flex-wrap: wrap; gap: 7px; }
.side-kw li {
  list-style: none;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.side-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 12.5px; }
.side-dl dt { color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; }
.side-dl dd { color: var(--text); word-break: break-all; }
.side-dl dd code { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
.side-schema li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding: 5px 0 5px 20px;
  position: relative;
}
.side-schema li::before {
  content: "\25CB";
  position: absolute;
  left: 0;
  opacity: 0.45;
}
.side-schema li.on { color: #86efac; }
.side-schema li.on::before { content: "\25CF"; color: #86efac; opacity: 1; }
.side-parent {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  transition: background 0.2s;
}
.side-parent:hover { background: var(--accent-dim); }
.sp-no { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.sp-t { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; }
.sp-v { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ---------- 章セクション ---------- */
.msec { padding: 34px 0 6px; border-top: 1px solid var(--border); margin-top: 34px; }
.msec:first-of-type { border-top: none; margin-top: 0; }
.msec-note { color: var(--text-3); font-size: 13px; margin: -6px 0 20px; }
.mh2 {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 18px;
}
.mh3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- モデルスロット（本文プレースホルダ） ---------- */
.mslot {
  border: 1px dashed rgba(34, 211, 238, 0.32);
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.05), rgba(34, 211, 238, 0.015));
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.mslot-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mslot-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent);
}
.mslot-label { font-size: 13px; font-weight: 700; color: var(--text); }
.mslot-words { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; }
.mslot-hint { color: var(--text-2); font-size: 13px; line-height: 1.8; margin: 0; }

/* ---------- サブスロット / テーブルスロット ---------- */
.sub-slots { margin: 6px 0 16px; }
.sub-slots .mslot { margin-left: 14px; padding: 11px 15px; }
.table-slot {
  border: 1px dashed rgba(34, 211, 238, 0.32);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.table-slot-hd {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(34, 211, 238, 0.08);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
}
.table-slot-hd .hint { color: var(--text-3); font-weight: 400; font-size: 12px; }
.table-slot-body {
  padding: 34px 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 上位ハブ / 子ガイド ---------- */
.upstream {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 18px 0 24px;
}
.up-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.upstream a { color: var(--accent); font-size: 14px; font-weight: 600; }

.msub {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.msub:hover { border-color: var(--border-strong); }
.msub .mslot { margin-bottom: 12px; }
.msub-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
}
.msub-type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  margin-left: auto;
}
.msub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.msub-link:hover { color: var(--accent); }
.msub-link .arrow { transition: transform 0.2s; }
.msub-link:hover .arrow { transform: translateX(3px); }

/* ---------- 総目録 : 学習ステージ ---------- */
.stage-block { margin-top: 44px; }
.stage-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.stage-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.stage-desc { color: var(--text-2); font-size: 14px; }
.stage-count { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }

.pillar-cat-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- 索引テーブル ---------- */
.idx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.idx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.idx-table caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.idx-table thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: #0d1526;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.idx-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.idx-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.idx-table .c-no { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); width: 46px; }
.idx-table .c-kw a { color: var(--text); font-weight: 550; }
.idx-table .c-kw a:hover { color: var(--accent); }
.idx-table .c-vol, .idx-table .c-kd, .idx-table .c-int, .idx-table .c-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.idx-table tr.idx-group td {
  background: rgba(34, 211, 238, 0.07);
  font-weight: 750;
  font-size: 14px;
  padding: 13px 16px;
  color: var(--text);
}
.idx-table tr.idx-group a { color: var(--text); }
.idx-table tr.idx-group a:hover { color: var(--accent); }
.idx-hub-kw {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 12px;
}
.kd {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
}
.kd-lo { background: rgba(134, 239, 172, 0.16); color: #86efac; }
.kd-mi { background: rgba(34, 211, 238, 0.16); color: var(--accent); }
.kd-hi { background: rgba(251, 191, 36, 0.16); color: var(--amber); }
.kd-ex { background: rgba(251, 113, 133, 0.16); color: var(--rose); }

/* ---------- 5カラムフッター ---------- */
.footer-grid-5 { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 32px; }
.footer-grid-5 .footer-about { max-width: 30ch; }
.footer-grid-5 .footer-links a { display: inline-block; max-width: 100%; }

/* ---------- 用語辞典 ---------- */
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.term-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.term-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-3px); }
.term-card dt { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.term-card dd { font-size: 13px; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.term-card dd:last-child { margin-bottom: 0; }
.term-card a { font-size: 12.5px; color: var(--accent); }
.term-alpha {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 26px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

/* ---------- 運営者 / 編集方針（E-E-A-T） ---------- */
.doc-block {
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 18px;
}
.doc-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.doc-block p, .doc-block li { color: var(--text-2); font-size: 14.5px; line-height: 1.95; }
.doc-block ul, .doc-block ol { padding-left: 22px; margin-top: 10px; }
.doc-block li { margin-bottom: 8px; }
.doc-block ul li { list-style: none; position: relative; padding-left: 6px; }
.doc-block ul li::before {
  content: "";
  position: absolute; left: -12px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.doc-block ol li::marker { color: var(--accent); font-weight: 700; }
.meta-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; font-size: 14px; }
.meta-list dt { color: var(--text-3); font-family: var(--font-mono); font-size: 12.5px; }
.meta-list dd { color: var(--text); }

/* ---------- 更新履歴 ---------- */
.log-list { position: relative; padding-left: 26px; }
.log-list::before {
  content: "";
  position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.log-item { position: relative; padding-bottom: 24px; }
.log-item::before {
  content: "";
  position: absolute; left: -24px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}
.log-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.log-title { font-size: 15px; font-weight: 650; margin: 5px 0 6px; }
.log-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar-grid-wrap, .page-art-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
  .pillar-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-5 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .mega { display: none !important; }
  .pillar-grid-wrap, .page-art-grid { grid-template-columns: 1fr; gap: 30px; }
  .pillar-side, .page-art-side { position: static; }
}
@media (max-width: 820px) {
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .mega-grid { grid-template-columns: 1fr; }
  .pillar-cat-grid, .glossary-grid { grid-template-columns: 1fr; }
  .footer-grid-5 { grid-template-columns: 1fr; }
  .idx-table { min-width: 620px; }
  .meta-list { grid-template-columns: 1fr; gap: 3px 0; }
  .meta-list dd { margin-bottom: 10px; }
  .side-list a { grid-template-columns: 24px 1fr; }
}
