:root {
  --bg: #fff8fb;
  --surface: #ffffff;
  --surface-tint: #fff1f7;
  --ink: #2b192d;
  --muted: #6b536e;
  --accent: #e11d6b;
  --accent-hover: #be1258;
  --accent-soft: #fce7f3;
  --highlight: #f59e0b;
  --teal: #0d9488;
  --border: #f2d5e3;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(43, 25, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 25, 45, 0.08);
  --font-display: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
h1 { font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1.2;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero-compact {
  padding-top: 24px;
  padding-bottom: 16px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kana-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: #9d174d;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
}

/* Tool stage */
.tool-section {
  padding-bottom: 32px;
}
.tool-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

/* Engagement bar */
.engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.share-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.share-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.engage-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.like-btn[data-gf-liked], .like-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.engage-count {
  font-variant-numeric: tabular-nums;
}
.share-msg {
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
}


/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* Sections */
.content-band, .prose-band, .faq-band, .comments-band {
  padding-top: 48px;
  padding-bottom: 16px;
}
.section-head {
  margin-bottom: 24px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Editorial Illustration Gallery */
.illustration-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.illustration-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.illustration-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 670;
  object-fit: cover;
}
.illustration-card figcaption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Archetype Grid (2x4 editorial dossier cards) */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.archetype-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.archetype-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.archetype-head-meta { flex: 1; min-width: 0; }
.archetype-avatar-link {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.archetype-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archetype-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.kana-stamp {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #9d174d;
  font-weight: 700;
  font-size: 13px;
}
.archetype-vibe {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.archetype-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.archetype-quote {
  margin: 0 0 8px;
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.archetype-desc {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--muted);
}
.archetype-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Prose */
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 32px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; }
.prose p { margin: 0 0 16px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.prose th { background: var(--surface-tint); font-weight: 700; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Comments */
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-tint);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.comment-form[data-gf-replying] .reply-banner { display: flex !important; }
.form-row { margin-bottom: 12px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.comment-msg { font-size: 14px; color: var(--teal); font-weight: 700; }
.comments-list { display: grid; gap: 12px; }
.comments-empty {
  display: none;
  color: var(--muted);
  padding: 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 0;
}
.comments-list[data-gf-empty] .comments-empty { display: block; }
.comment-card, .reply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.comment-card[data-gf-owner], .reply-card[data-gf-owner] {
  border-color: var(--accent);
  background: var(--surface-tint);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 14px;
}
.owner-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-time, .reply-to { color: var(--muted); font-size: 13px; }
.comment-body { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }
.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

/* Inner & Legal Pages */
.inner-page {
  padding-top: 32px;
  padding-bottom: 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.inner-hero-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.inner-portrait {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.inner-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.inner-head { margin-bottom: 24px; }
.inner-lead, .legal-updated { color: var(--muted); margin: 0; font-size: 16px; }
.inner-cta { margin-top: 24px; }
.not-found {
  padding: 64px 24px;
  text-align: center;
}
.not-found p { color: var(--muted); margin: 0 auto 24px; max-width: 46ch; }

/* Footer */
.site-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 42ch;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .site-nav { gap: 14px; font-size: 14px; }
  .tool-shell { padding: 18px; }
  .archetype-grid { grid-template-columns: 1fr; }
  .illustration-gallery { grid-template-columns: 1fr; }
  .inner-hero-split { grid-template-columns: 1fr; text-align: left; }
  .inner-portrait { max-width: 240px; }
  .prose { padding: 20px; }
  .engage-bar { flex-direction: column; align-items: stretch; }
  .share-group { justify-content: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; }
}
