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

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* — Background layer — */
  --bg:        #f4f7fb;
  --bg-alt:    #eef3fb;
  --surface:   #ffffff;
  --surface-2: #f8fbff;

  /* — Text — */
  --ink:        #0f172a;
  --ink-soft:   #334155;
  --ink-muted:  #64748b;
  --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:       #2563eb;
  --brand-dark:  #1d4ed8;
  --brand-tint:  #eff6ff;
  --brand-2:     #06b6d4;   /* cyan */
  --brand-2-tint:#ecfeff;
  --brand-3:     #7c3aed;   /* violet */
  --brand-3-tint:#f5f3ff;
  --amber:       #d97706;
  --amber-tint:  #fffbeb;
  --emerald:     #059669;
  --emerald-tint:#ecfdf5;
  --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;
}

/* ================================================================
   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); }

@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); }

/* 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; }

.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; }

/* ================================================================
   13. COMPARE TABLE
   ================================================================ */
.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; }

/* ================================================================
   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; }

/* ================================================================
   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);
}
.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-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; }

/* 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-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 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;
}
