/* AutoAIPlatform — main.css
   Design system: Future Utility / Editorial Tech
   Mobile-first, 60代以上可読性優先, BIZ UDPGothic + Inter
   ---------------------------------------------------------- */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Tailwind-compatible color scale */
  --color-slate-50:  #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-blue-50:   #eff6ff;
  --color-blue-100:  #dbeafe;
  --color-blue-200:  #bfdbfe;
  --color-blue-300:  #93c5fd;
  --color-blue-400:  #60a5fa;
  --color-blue-500:  #3b82f6;
  --color-blue-600:  #2563eb;
  --color-blue-700:  #1d4ed8;
  --color-cyan-50:   #ecfeff;
  --color-cyan-500:  #06b6d4;
  --color-cyan-700:  #0e7490;
  --color-violet-50: #f5f3ff;
  --color-violet-600:#7c3aed;
  --color-amber-50:  #fffbeb;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-emerald-50:#ecfdf5;
  --color-emerald-600:#059669;

  /* — Background layer — */
  --bg:        var(--color-slate-100);
  --bg-alt:    #eef3fb;
  --surface:   #ffffff;
  --surface-2: #f8fbff;

  /* — Text — */
  --ink:        var(--color-slate-900);
  --ink-soft:   var(--color-slate-700);
  --ink-muted:  var(--color-slate-500);
  --ink-on-dark: rgba(255,255,255,0.92);
  --ink-on-dark-soft: rgba(255,255,255,0.70);

  /* — Lines / Borders — */
  --line:       rgba(15,23,42,0.08);
  --line-strong: rgba(15,23,42,0.14);

  /* — Brand / Accent — */
  --brand:       var(--color-blue-600);
  --brand-dark:  var(--color-blue-700);
  --brand-tint:  var(--color-blue-50);
  --brand-2:     var(--color-cyan-500);
  --brand-2-tint:var(--color-cyan-50);
  --brand-3:     var(--color-violet-600);
  --brand-3-tint:var(--color-violet-50);
  --amber:       var(--color-amber-600);
  --amber-tint:  var(--color-amber-50);
  --emerald:     var(--color-emerald-600);
  --emerald-tint:var(--color-emerald-50);
  --accent-glow: rgba(37,99,235,0.15);

  /* — Hero (dark) — */
  --hero-bg:    #071226;
  --hero-bg-2:  #0c1f45;

  /* — Legacy compat aliases (used in older component refs) — */
  --c-bg:         var(--bg);
  --c-bg-alt:     var(--bg-alt);
  --c-text:       var(--ink);
  --c-text-soft:  var(--ink-soft);
  --c-line:       var(--line);
  --c-accent:     var(--brand);
  --c-accent-soft: var(--brand-tint);
  --c-card:       var(--surface);
  --c-badge-bg:   #e8eef7;
  --c-badge-text: var(--ink-soft);
  --c-cta-bg:     var(--amber-tint);
  --c-cta-border: #fbbf24;

  /* — Spacing / Shape — */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  20px;
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.05), 0 4px 16px rgba(15,23,42,0.05);
  --shadow-md:  0 4px 8px rgba(15,23,42,0.07), 0 12px 32px rgba(15,23,42,0.08);
  --shadow-lg:  0 8px 24px rgba(15,23,42,0.10), 0 24px 64px rgba(15,23,42,0.10);

  /* — Layout — */
  --maxw:       1200px;
  --maxw-grid:  1160px;
  --maxw-prose: 48rem;

  /* — Transition — */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 17px; /* mobile base */
}
@media (min-width: 900px) { html { font-size: 18px; } }

body {
  margin: 0;
  font-family: 'BIZ UDPGothic', 'Noto Sans JP', 'Hiragino Sans',
               'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic',
               'Meiryo', system-ui, sans-serif;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
input, button, textarea, select { font: inherit; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1rem; line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 2.5rem 0 0.75rem; line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 0 0 0.5rem; }
h4 { font-size: 1.1rem; margin: 0 0 0.4rem; }

.text-muted { color: var(--ink-muted); }
.text-soft  { color: var(--ink-soft); }
.mono { font-family: 'Inter', 'SF Mono', 'Consolas', monospace; }

/* ================================================================
   4. LAYOUT
   ================================================================ */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.125rem;
}
.container--grid {
  max-width: var(--maxw-grid);
  margin-inline: auto;
  padding-inline: 1.125rem;
}
.container.narrow,
.container--prose {
  max-width: var(--maxw-prose);
}
@media (min-width: 768px) {
  .container { padding-inline: 1.75rem; }
  .container--grid { padding-inline: 1.75rem; }
}

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brand); color: #fff;
  padding: .5rem 1rem; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* ================================================================
   5. HEADER / NAV
   ================================================================ */
.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow 0.2s var(--ease-out);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(15,23,42,0.07); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.125rem;
  gap: 1rem;
  min-height: 60px;
}
@media (min-width: 768px) { .header-inner { padding: 0 1.75rem; min-height: 64px; } }

/* Brand */
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 2px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: var(--brand);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}
.brand-sep { color: var(--line-strong); margin: 0 1px; font-weight: 300; }
.brand-sub { color: var(--ink-soft); font-weight: 600; }

/* Hamburger toggle */
.nav-toggle { position: relative; }
.nav-toggle > summary {
  list-style: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary:hover { background: var(--bg-alt); border-color: var(--line-strong); }
.nav-toggle-bar {
  display: block; width: 20px; height: 2px;
  background: var(--ink-soft); border-radius: 2px;
  transition: opacity 0.15s;
}
.nav-toggle[open] > summary .nav-toggle-bar:nth-child(1) { opacity: 0.4; }

/* Dropdown nav */
.primary-nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.5rem;
}
.primary-nav ul { list-style: none; padding: 0; margin: 0; }
.primary-nav li { display: block; }
.primary-nav a {
  display: block;
  padding: 0.6rem 0.875rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.1s, color 0.1s;
}
.primary-nav a:hover {
  background: var(--brand-tint);
  color: var(--brand);
  text-decoration: none;
}
.primary-nav .nav-secondary a { color: var(--ink-muted); font-weight: 400; }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle > summary { display: none; }
  .nav-toggle, .primary-nav {
    position: static; border: none; box-shadow: none;
    background: transparent; padding: 0; min-width: 0;
  }
  .primary-nav { display: block !important; }
  .primary-nav ul {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0;
  }
  .primary-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
  }
  .primary-nav a:hover { background: var(--brand-tint); color: var(--brand); }
  .primary-nav .nav-secondary a { color: var(--ink-muted); font-size: 0.85rem; }
  .nav-toggle > .primary-nav { display: block; }
}

/* ================================================================
   6. HERO
   ================================================================ */
.hero {
  background: linear-gradient(155deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}
@media (min-width: 768px) { .hero { padding: 5.5rem 0 5rem; } }

/* Subtle grid decoration */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* Bottom accent line */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.6), rgba(6,182,212,0.6), transparent);
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--brand-2); border-radius: 2px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  max-width: 680px;
}
.hero-title .accent { color: var(--brand-2); }

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.85;
  color: var(--ink-on-dark-soft);
  max-width: 600px;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.875rem;
  align-items: center;
}

/* Buttons (hero) */
.hero .btn-primary {
  background: #fff;
  color: var(--hero-bg);
  border-color: #fff;
  font-weight: 700;
}
.hero .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  text-decoration: none;
}
.hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.home-entry {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.home-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.home-entry-card {
  display: grid;
  gap: 0.28rem;
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.home-entry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-1px);
}
.home-entry-card span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.home-entry-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}
.home-entry-card small {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}
.home-entry-card--industry { border-left-color: var(--amber); }
.home-entry-card--compare { border-left-color: var(--brand-3); }
@media (min-width: 820px) {
  .home-entry {
    padding: 1.25rem 0;
  }
  .home-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================================================================
   7. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  min-height: 48px;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: var(--brand);
}
.btn-ghost:hover { background: var(--brand-tint); text-decoration: none; }
.btn-sm { min-height: 38px; padding: 0.5rem 0.875rem; font-size: 0.9rem; }

/* ================================================================
   8. SECTIONS
   ================================================================ */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--hero-bg); color: #fff; }

.section-head {
  margin-bottom: 1.75rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--section-accent, var(--brand));
}
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin: 0 0 0.4rem;
  color: var(--ink);
  line-height: 1.3;
}
.section-lead {
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.section-foot {
  margin-top: 1.5rem;
}
.section-foot a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Section accent colors */
.section--atlas   { --section-accent: var(--brand); }
.section--radar   { --section-accent: var(--brand-2); }
.section--cases   { --section-accent: var(--brand-2); }
.section--compare { --section-accent: var(--brand-3); }
.section--learn   { --section-accent: var(--emerald); }
.section--watch   { --section-accent: var(--amber); }
.section--tools   { --section-accent: var(--brand); }
.section--starter { --section-accent: var(--emerald); }
.section--industries { --section-accent: var(--amber); }
.section--glossary { --section-accent: var(--emerald); }
.section-head--people { --section-accent: var(--brand-3); }

@media (min-width: 768px) { .section { padding: 4rem 0; } }

/* ================================================================
   9. CARD GRID
   ================================================================ */
.card-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ================================================================
   10. CARDS
   ================================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.375rem 1.25rem 1.125rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
/* Top accent strip */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--brand));
  border-radius: var(--radius) var(--radius) 0 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Section-specific accent colors */
.map-card      { --card-accent: var(--brand); }
.signal-card   { --card-accent: var(--brand-2); }
.compare-card  { --card-accent: var(--brand-3); }
.learn-card    { --card-accent: var(--emerald); }
.case-card     { --card-accent: var(--brand-2); }
.tool-card     { --card-accent: var(--brand); }
.statement-card { --card-accent: var(--amber); }
.person-card   { --card-accent: var(--brand-3); }
.industry-card { --card-accent: var(--amber); }
.glossary-card { --card-accent: var(--emerald); }

/* Card internals */
.card-eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  color: var(--ink);
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-summary {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 0 0 0.75rem;
  flex: 1;
}
.card-meta {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0;
  line-height: 1.5;
}
.card-vendor {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin: 0 0 0.375rem;
}
.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ================================================================
   11. BADGES
   ================================================================ */
.badges {
  list-style: none; padding: 0; margin: 0.625rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.375rem;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  background: var(--c-badge-bg);
  color: var(--c-badge-text);
  white-space: nowrap;
}
.badge-kind {
  background: var(--brand-tint);
  color: var(--brand);
}
.badge-radar  { background: var(--brand-2-tint); color: #0e7490; }
.badge-compare{ background: var(--brand-3-tint); color: var(--brand-3); }
.badge-learn  { background: var(--emerald-tint); color: var(--emerald); }
.badge-watch  { background: var(--amber-tint); color: var(--amber); }
.badge-meta {
  background: transparent;
  color: var(--ink-muted);
  font-weight: 400;
  padding-left: 0;
}
.badge-edition { background: var(--amber-tint); color: var(--amber); font-weight: 700; }
.badge-pr { background: #fee2e2; color: #b91c1c; font-weight: 700; }

/* ================================================================
   12. PAGE DETAIL LAYOUT
   ================================================================ */
.page-head {
  padding: 2.5rem 0 1.75rem;
  background: linear-gradient(180deg, var(--hero-bg) 0%, #0d2146 100%);
  color: #fff;
  border-bottom: none;
}
.page-head .breadcrumb {
  color: var(--ink-on-dark-soft);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.page-head .breadcrumb a { color: var(--brand-2); font-weight: 500; }
.page-head .breadcrumb a:hover { text-decoration: underline; }
.page-head h1 { color: #fff; margin: 0 0 0.875rem; }
.page-head .lead {
  color: var(--ink-on-dark-soft);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0.5rem 0 0;
  max-width: 640px;
}
.page-head .meta,
.page-head .meta-list { color: var(--ink-on-dark-soft); font-size: 0.875rem; }
.meta-list {
  list-style: none; padding: 0; margin: 0.75rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.375rem 1.125rem;
}
.meta-list li { line-height: 1.6; }
.meta-list a { color: var(--brand-2); }

/* Section within page */
.page-detail .section { padding: 2.5rem 0; }
@media (min-width: 768px) { .page-detail .section { padding: 3.5rem 0; } }

/* Content blocks */
.bullet-list { padding-left: 1.25rem; }
.bullet-list li { margin: 0.5rem 0; line-height: 1.8; }

.summary-block {
  white-space: pre-wrap;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.125rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.85;
  margin: 0.5rem 0 1.25rem;
  color: var(--ink-soft);
}

.first-step {
  background: linear-gradient(135deg, var(--amber-tint) 0%, #fff9ed 100%);
  border: 1px solid rgba(217,119,6,0.25);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.first-step h2 { margin-top: 0; color: #92400e; font-size: 1.1rem; }
.first-step p { margin: 0; line-height: 1.8; }

.learn-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.125rem;
  margin: 0 0 2rem;
}
.learn-overview-head {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.875rem;
}
.learn-overview-kicker {
  margin: 0;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 700;
}
.learn-overview h2 {
  margin: 0;
  font-size: 1.15rem;
}
.learn-overview-list {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  padding: 0;
  margin: 0;
}
.learn-overview-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: start;
  gap: 0.75rem;
  min-height: 2rem;
  color: var(--ink);
  line-height: 1.55;
}
.learn-overview-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 800;
}
@media (min-width: 720px) {
  .learn-overview {
    padding: 1.25rem 1.375rem;
  }
  .learn-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learn-overview-list li:first-child {
    grid-column: 1 / -1;
  }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.meta-note {
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}
.vendor { color: var(--ink-muted); font-weight: 400; font-size: 0.875em; }

.editorial-note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
}
.editorial-note h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.editorial-note p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.75;
}
.editorial-note ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.editorial-note li { margin: 0.2rem 0; }

/* ================================================================
   13. COMPARE TABLE
   ================================================================ */
/* Compare transparency notice */
.compare-notice {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.compare-notice p { margin: 0; }

/* Compare caution note */
.compare-caution {
  background: #fffbeb;
  border: 1px solid rgba(217,119,6,0.2);
  border-left: 3px solid #d97706;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
.compare-caution p { margin: 0; }

.compare-boundary {
  background: var(--amber-tint);
  border: 1px solid rgba(217,119,6,0.18);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.compare-boundary h2 {
  margin: 0 0 0.65rem;
  color: #92400e;
  font-size: 1.05rem;
}
.compare-boundary ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}
.compare-boundary li {
  margin: 0.25rem 0;
}

.compare-table-wrap { overflow-x: auto; margin: 1rem 0; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem; min-width: 540px;
}
.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.875rem;
  text-align: left; vertical-align: top;
  line-height: 1.65;
}
.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--ink);
}
.compare-table tbody tr:hover td { background: var(--brand-tint); }

/* ================================================================
   14. FILTER BAR
   ================================================================ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.filter-bar button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.15s;
}
.filter-bar button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}
.filter-bar button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.is-hidden { display: none !important; }

.page-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
.page-kpi {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page-kpi__value {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}
.page-kpi__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .page-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================================================
   15. STARTER PATH
   ================================================================ */
.starter-path {
  background: linear-gradient(135deg, var(--emerald-tint) 0%, #f0fdf8 100%);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.starter-steps { padding-left: 1.5rem; }
.starter-steps li {
  margin: 0.75rem 0;
  line-height: 1.8;
  font-size: 1rem;
}

/* ================================================================
   16. TRUST BLOCK
   ================================================================ */
.trust-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-xs);
}
.trust-block .section-title { margin-top: 0; }
.trust-block p { line-height: 1.85; color: var(--ink-soft); }

/* ================================================================
   17. PERSON CARD (Watch)
   ================================================================ */
.person-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.person-card {
  text-align: center;
  padding: 1.25rem 1rem;
}
.person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: #fff;
  margin: 0 auto 0.75rem;
}
.person-name { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.2rem; }
.person-name-ja { font-size: 1rem; font-weight: 700; margin: 0 0 0.1rem; color: var(--ink); }
.person-name-en { font-size: 0.78rem; color: var(--ink-muted); margin: 0 0 0.25rem; }
.person-role { color: var(--ink-muted); font-size: 0.82rem; }
.person-card--detail {
  max-width: 360px;
  text-align: left;
  padding: 1.25rem;
}
.person-card-media {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}
.person-avatar--inline {
  margin: 0;
  flex-shrink: 0;
}
.person-name-ja--compact,
.person-name-en--compact {
  margin: 0;
}
.person-role--compact {
  margin: 0.1rem 0 0;
}
.person-summary {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

/* ================================================================
   18. WATCH / STATEMENT
   ================================================================ */
.statement-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.breadcrumb--person {
  margin-top: 0.25rem;
}
.badge-watch--compact {
  font-size: 0.82rem;
}
.watch-section {
  background: linear-gradient(135deg, #0a1830 0%, #111827 100%);
  color: #fff;
}
.watch-section .section-title { color: #fff; }
.watch-section .section-lead { color: var(--ink-on-dark-soft); }
.watch-section .section-foot a { color: var(--brand-2); }
.watch-section .section-head { border-left-color: var(--amber); }

/* ================================================================
   19. FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  background: var(--hero-bg);
  color: var(--ink-on-dark-soft);
  margin-top: 4rem;
}
.footer-tagline {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.footer-links {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 0.25rem 0.125rem;
  margin: 0.5rem 0 1.25rem;
}
.footer-links a {
  display: block; padding: 0.25rem 0.625rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.footer-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.footer-meta {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin: 0.25rem 0;
  line-height: 1.6;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1.25rem 0;
}

/* ================================================================
   20. PROSE (long-form content)
   ================================================================ */
.prose p { margin: 0 0 1rem; line-height: 1.85; }
.prose ul { padding-left: 1.25rem; }
.prose ul li { margin: 0.4rem 0; line-height: 1.8; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }

/* ================================================================
   21. AD SLOT
   ================================================================ */
.ad-slot {
  display: block; margin: 2rem 0;
  text-align: center; min-height: 90px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.ad-slot::before {
  content: "広告";
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ================================================================
   22. TOOL DETAIL ENHANCEMENTS
   ================================================================ */
/* Official link button */
.btn-official {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--brand); color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-official:hover { background: var(--brand-dark); transform: translateY(-1px); }

.official-link-inline {
  margin-top: 1.25rem;
}

.official-note {
  font-size: 0.8rem; color: var(--ink-muted);
  margin: 0.5rem 0 0; line-height: 1.5;
}

.official-link-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.official-link-block h2 { margin-top: 0; }

/* Tool what-is-it intro paragraph */
.tool-what-is-it {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--ink-soft);
}

/* Tool cautions block */
.tool-cautions {
  background: var(--amber-tint);
  border: 1px solid rgba(217,119,6,0.25);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.tool-cautions h2 { margin-top: 0; color: #92400e; }

.tool-fact-table th {
  width: 10rem;
  white-space: nowrap;
}

.tool-fact-table td {
  line-height: 1.8;
}

/* Card use-case tags */
.card-tags { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* ================================================================
   23. UTILITIES
   ================================================================ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
}
.scroll-sentinel,
.copy-fallback-textarea {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
}
.copy-fallback-textarea {
  position: fixed;
  inset: 0 auto auto 0;
}

/* scroll-triggered header shadow via JS (optional enhancement) */
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .filter-bar button { transition: none; }
  .card:hover { transform: none; }
}

/* ================================================================
   24. PROMPT UI COMPONENTS
   ================================================================ */

/* Grid */
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
@media (min-width: 720px) {
  .prompt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.prompt-grid--home {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .prompt-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.prompt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow 0.18s;
}
.prompt-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}
.prompt-card--compact {
  gap: 0.5rem;
}

/* Level badge */
.prompt-level {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}
.prompt-level--beginner {
  background: var(--emerald-tint);
  color: var(--emerald);
  border: 1px solid rgba(5,150,105,0.18);
}
.prompt-level--intermediate {
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid rgba(37,99,235,0.18);
}

/* Card header */
.prompt-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.prompt-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}
.prompt-card-summary {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* Prompt box */
.prompt-box-wrap {
  position: relative;
}
.prompt-box {
  background: #f1f5fc;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1rem 1rem 2.75rem;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-soft);
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Copy button */
.copy-prompt-button {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.copy-prompt-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.copy-prompt-button:active {
  transform: translateY(0);
}

/* Collapsible details */
.prompt-replace-details,
.prompt-checkpoint-details,
.prompt-howto-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.prompt-replace-details > summary,
.prompt-checkpoint-details > summary,
.prompt-howto-details > summary {
  cursor: pointer;
  padding: 0.6rem 0.875rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  list-style: none;
  user-select: none;
}
.prompt-replace-details > summary::-webkit-details-marker,
.prompt-checkpoint-details > summary::-webkit-details-marker,
.prompt-howto-details > summary::-webkit-details-marker { display: none; }
.prompt-replace-details > summary::before,
.prompt-checkpoint-details > summary::before,
.prompt-howto-details > summary::before {
  content: "▶ ";
  font-size: 0.65em;
  color: var(--ink-muted);
}
.prompt-replace-details[open] > summary::before,
.prompt-checkpoint-details[open] > summary::before,
.prompt-howto-details[open] > summary::before { content: "▼ "; }

/* Replace list */
.prompt-replace-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.prompt-replace-list code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  font-size: 0.80rem;
  color: var(--brand-3);
}

/* Checkpoints */
.prompt-checkpoints {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.prompt-checkpoints li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 700;
}

/* Howto */
.prompt-howto {
  padding: 0.75rem 0.875rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.prompt-howto p { margin: 0.3rem 0; }

/* Tool suggestions */
.prompt-tools {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.badge-tool {
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid rgba(37,99,235,0.15);
  font-size: 0.72rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.prompt-work-links {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.prompt-work-links-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.prompt-work-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.prompt-work-links a {
  color: var(--brand);
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
}
.prompt-work-links a:hover {
  text-decoration: underline;
}

/* Prompt section divider */
.prompt-section {
  margin-bottom: 2.5rem;
}
.prompt-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.prompt-section-title a {
  color: inherit;
  text-decoration: none;
}
.prompt-section-title a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.prompt-section-summary {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.prompt-section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ================================================================
   25. MAP DETAIL: STEP LIST & HUMAN CHECK PANEL
   ================================================================ */

/* 3-step guide */
.guide-step-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  counter-reset: guide-step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.guide-step-list li {
  counter-increment: guide-step;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}
.guide-step-list li::before {
  content: counter(guide-step);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.05rem;
}

/* AI vs Human panel */
.human-check-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .human-check-panel {
    grid-template-columns: 1fr 1fr;
  }
}
.human-check-col {
  border-radius: 10px;
  padding: 1rem 1.125rem;
}
.human-check-col--ai {
  background: var(--brand-tint);
  border: 1px solid rgba(37,99,235,0.14);
}
.human-check-col--human {
  background: var(--amber-tint);
  border: 1px solid rgba(217,119,6,0.14);
}
.human-check-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.human-check-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.human-check-col--ai ul li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}
.human-check-col--human ul li::before {
  content: "→ ";
  color: var(--amber);
  font-weight: 700;
}
.human-check-col ul li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Statement takeaway */
.statement-takeaway {
  background: var(--emerald-tint);
  border: 1px solid rgba(5,150,105,0.18);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 1rem 0;
  line-height: 1.6;
}
.statement-takeaway strong {
  color: var(--emerald);
  margin-right: 0.3rem;
}

/* ================================================================
   WORK USECASE PAGES (業務別AI活用ガイド)
   ================================================================ */

/* article lead box: opens the page with a soft, readable intro */
.article-lead-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.125rem 1.25rem;
  margin: 0 0 2rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-size: 1rem;
}
.article-lead-box p { margin: 0; white-space: pre-line; }

/* "このページでわかること" summary card */
.summary-card {
  background: linear-gradient(135deg, var(--brand-tint) 0%, #f5f8fc 100%);
  border: 1px solid rgba(43,108,176,0.18);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.5rem;
  margin: 1rem 0 2rem;
}
.summary-card-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  line-height: 1.85;
  font-size: 1rem;
  color: var(--ink);
}
.summary-card-list li { margin: 0.25rem 0; }

/* note box: subtle background warnings for cautions list */
.note-box {
  background: #fffbeb;
  border: 1px solid rgba(217,119,6,0.18);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.note-box-list {
  margin: 0;
  padding-left: 1.25rem;
}
.note-box-list li { margin: 0.25rem 0; }

/* AI disclaimer box */
.ai-disclaimer-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.ai-disclaimer-box p { margin: 0; white-space: pre-line; }

/* tool example grid */
.tool-example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin: 1rem 0 2rem;
}
@media (min-width: 720px) {
  .tool-example-grid { grid-template-columns: repeat(2, 1fr); }
}
.tool-example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
}
.tool-example-name {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.tool-example-name a { color: var(--brand); text-decoration: none; }
.tool-example-name a:hover { text-decoration: underline; }
.tool-example-summary {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.tool-example-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 0;
}

/* related links list (work-detail bottom) */
.related-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}
@media (min-width: 720px) {
  .related-links { grid-template-columns: repeat(2, 1fr); }
}
.related-links li { margin: 0; }
.related-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  min-height: 48px;
}
.related-links a:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.related-links-kind {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(43,108,176,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.625rem;
  white-space: nowrap;
}
.related-links-title {
  font-size: 0.95rem;
  line-height: 1.5;
}

.recipe-related-works {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}
.recipe-related-works li {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.recipe-related-works a {
  display: inline-block;
  font-weight: 700;
  line-height: 1.45;
}
.recipe-related-works span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Category shortcuts on hub pages */
.category-nav {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) {
  .category-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .category-nav { grid-template-columns: repeat(4, 1fr); }
}
.category-nav a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
}
.category-nav a:hover {
  background: var(--brand-tint);
  border-color: rgba(37,99,235,0.24);
}
.category-nav span {
  font-weight: 700;
  line-height: 1.4;
}
.category-nav strong {
  color: var(--brand);
  font-size: 0.85rem;
  white-space: nowrap;
}
.work-index-intro {
  margin-bottom: 1.5rem;
}

.purpose-shortcuts {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.purpose-shortcuts-head {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
}
.purpose-shortcuts-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.purpose-shortcuts-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.purpose-shortcut-grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .purpose-shortcut-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .purpose-shortcut-grid { grid-template-columns: repeat(3, 1fr); }
}
.purpose-shortcut-grid a {
  display: grid;
  align-content: start;
  min-height: 92px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.purpose-shortcut-grid a:hover {
  border-color: rgba(37,99,235,0.24);
  background: var(--brand-tint);
}
.purpose-shortcut-grid span {
  font-weight: 700;
  line-height: 1.45;
}
.purpose-shortcut-grid strong {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* guided next-action block on learn detail pages */
.next-action-panel {
  margin: 2rem 0 0;
}
.next-action-panel h2 {
  margin-bottom: 0.5rem;
}
.next-action-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.related-links--guided {
  margin-top: 0;
}

/* work usecase card (used on /work/ index and home teaser) */
.work-usecase-card .card-title a { color: var(--ink); }
.work-usecase-card .card-title a:hover { color: var(--brand); }

.card-mini-links {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.card-mini-links-title {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}
.card-mini-links a {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}
.card-mini-links a:hover { text-decoration: underline; }

/* work-detail: tighter check panel when only the human column is shown */
.human-check-panel.work-check-panel { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .human-check-panel.work-check-panel { grid-template-columns: 1fr; }
}

/* mobile: keep first-step visually consistent at smaller widths */
@media (max-width: 600px) {
  .article-lead-box,
  .summary-card,
  .note-box,
  .ai-disclaimer-box { padding: 1rem; }
}

/* article-prose: narrative paragraph blocks within work-detail */
.article-prose { margin: 0 0 1.5rem; }
.article-prose p {
  margin: 0 0 1rem;
  line-height: 1.85;
  font-size: 1rem;
  color: var(--ink);
}
.article-prose p:last-child { margin-bottom: 0; }
.article-prose ul.bullet-list { margin: 0.75rem 0 1rem; }

/* note-box: paragraph styles inside narrative caution box */
.note-box p {
  margin: 0 0 0.875rem;
  line-height: 1.85;
}
.note-box p:last-child { margin-bottom: 0; }

/* FAQ blocks for work detail pages */
.faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: "＋";
  display: inline-block;
  width: 1.25rem;
  color: var(--brand);
}
.faq-item[open] > summary {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.faq-item[open] > summary::before { content: "−"; }
.faq-answer {
  padding: 0.875rem 1rem 1rem;
  color: var(--ink-soft);
}
.faq-answer p {
  margin: 0 0 0.75rem;
  line-height: 1.85;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* article-lead-box: paragraph styles for narrative lead */
.article-lead-box p {
  margin: 0 0 0.875rem;
  line-height: 1.85;
}
.article-lead-box p:last-child { margin-bottom: 0; }

/* first-step: narrative summary block */
.first-step p {
  margin: 0 0 0.875rem;
  line-height: 1.8;
}
.first-step p:last-child { margin-bottom: 0; }

/* ================================================================
   N. CASES — overseas case re-editing cards
   ================================================================ */

/* Cases listing grid: keep cards readable when content is dense */
.card-grid--cases { grid-template-columns: 1fr; }
@media (min-width: 720px)  { .card-grid--cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid--cases { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.case-card { padding: 1.25rem 1.25rem 1.1rem; }
.case-card__labels {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  margin: 0 0 0.625rem;
}
.case-card .card-title { margin-bottom: 0.875rem; line-height: 1.45; }

.case-card__section {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.875rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--brand-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.case-card__section + .case-card__section { margin-top: 0.5rem; }
.case-card__section-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0e7490;
}
.case-card__section-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}

.case-card__footer { display: flex; flex-direction: column; gap: 0.5rem; }
.case-card__cta { margin: 0; }
.case-card__cta a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: none;
}
.case-card__cta a:hover { text-decoration: underline; }

/* Detail page blocks */
.case-highlight-box {
  background: var(--brand-2-tint);
  border: 1px solid rgba(14,116,144,0.18);
  border-left: 3px solid var(--brand-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1rem 0 2rem;
}
.case-highlight-box h2 {
  margin-top: 0; margin-bottom: 0.5rem;
  font-size: 1.05rem; color: #0e7490;
}
.case-highlight-box ul { margin-bottom: 0; }

.case-steps {
  list-style: none;
  counter-reset: case-step;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  display: grid;
  gap: 0.625rem;
}
.case-steps > li {
  counter-increment: case-step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.75;
}
.case-steps > li::before {
  content: counter(case-step);
  position: absolute;
  left: 0.85rem; top: 0.7rem;
  width: 1.65rem; height: 1.65rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
}

.case-caution {
  background: #fff8f1;
  border: 1px solid #fbcfa4;
  border-left: 3px solid #d97706;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.case-caution h2 {
  margin-top: 0; margin-bottom: 0.5rem;
  font-size: 1.05rem; color: #92400e;
}
.case-caution ul { margin-bottom: 0; }

/* Site search */
.site-search-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 2rem;
  padding: 1rem;
}
.site-search-form label {
  color: var(--ink);
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.site-search-row {
  display: grid;
  gap: 0.75rem;
}
.site-search-row input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  width: 100%;
}
.site-search-help {
  margin: 0 0 1.5rem;
}
.site-search-status {
  color: var(--ink-soft);
  font-weight: 700;
  margin: 1rem 0;
}
.site-search-type-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 1rem;
}
.site-search-type-pill {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.35rem 0.55rem;
}
.site-search-grid .card-title {
  font-size: 1rem;
  margin-top: 0.65rem;
}
.site-search-grid mark {
  background: #fff1a8;
  border-radius: 3px;
  color: inherit;
  padding: 0 0.12em;
}
.site-search-result-meta {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}
.site-search-result-path {
  color: var(--ink-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.site-search-result-action {
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.site-search-result-action::after {
  content: " →";
}
.site-search-empty {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1rem;
  padding: 1rem;
}
.site-search-empty h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.site-search-empty p {
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}
.site-search-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-search-empty-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
}
@media (min-width: 640px) {
  .site-search-row { grid-template-columns: minmax(0, 1fr) auto; }
}
