/* Naify Docs v2 — warm, white, readable */

:root {
  --bg: #f8f5ef;
  --bg-soft: #fcfaf6;
  --panel: #ffffff;
  --ink: #2f2a24;
  --muted: #6c655c;
  --line: #e8e0d4;
  --brand: #b9652d;
  --logo-color: #b9652d;
  --brand-2: #d0874b;
  --brand-soft: #fff4e9;
  --ok: #256f4a;
  --warn: #985f14;
  --danger: #a02d2d;
  --code-bg: #1f1b18;
  --code-ink: #f7f2ea;
  --shadow: 0 10px 30px rgba(72, 52, 30, 0.08);
  --site-nav-logo-size: clamp(20px, 1vw + 16px, 26px);
  --site-nav-link-size: clamp(10.8px, 0.32vw + 10.1px, 13.2px);
  --site-nav-meta-size: clamp(10.2px, 0.22vw + 9.8px, 12px);
  --site-nav-summary-size: clamp(10.6px, 0.22vw + 10px, 11.8px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; padding: 0; }

@supports (view-transition-name: root) {
  @view-transition {
    navigation: auto;
  }

  @keyframes page-root-out {
    from {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
    to {
      opacity: 0;
      transform: translateY(8px);
      filter: blur(4px);
    }
  }

  @keyframes page-root-in {
    from {
      opacity: 0;
      transform: translateY(12px);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    body {
      animation: none;
    }

    ::view-transition-old(root) {
      animation: page-root-out 0.18s ease both;
    }

    ::view-transition-new(root) {
      animation: page-root-in 0.3s ease 0.02s both;
    }
  }
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 280px, var(--bg) 100%);
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

/* Site Navigation */
.site-nav {
  padding: 12px 24px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-nav-inner {
  width: min(1140px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.site-nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--site-nav-logo-size);
  color: var(--logo-color);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.naify-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
}
.site-nav-links a {
  font-size: var(--site-nav-link-size);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 7px;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.site-nav-links a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.site-nav-links a.current {
  color: var(--brand);
  background: var(--brand-soft);
}
.site-nav-top {
  color: var(--muted) !important;
  font-weight: 700;
}
.site-nav-group-head {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
}
.site-nav-group-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--site-nav-link-size);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 0 6px 8px;
  white-space: nowrap;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
}
.site-nav-group-label {
  cursor: default;
}
.site-nav-group:hover .site-nav-group-head,
.site-nav-group:focus-within .site-nav-group-head,
.site-nav-group.is-current-group .site-nav-group-head {
  background: #fff7ee;
}
.site-nav-group-link:hover,
.site-nav-group:hover .site-nav-group-link,
.site-nav-group:focus-within .site-nav-group-link,
.site-nav-group.is-current-group .site-nav-group-link,
.site-nav-group-link.current {
  color: var(--brand);
  background: transparent;
  text-decoration: none;
}
.site-nav-menu-toggle {
  appearance: none;
  display: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--site-nav-meta-size);
  font-weight: 700;
  padding: 6px 7px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  gap: 7px;
  justify-self: end;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav-menu-toggle:hover,
.site-nav-menu-toggle.is-open {
  color: var(--brand);
  background: #fff7ee;
  border-color: #f0dfcf;
}
.site-nav-contact-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--site-nav-meta-size);
  font-weight: 700;
  padding: 6px 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  justify-self: end;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav-contact-link:hover {
  color: var(--brand);
  background: #fff7ee;
  border-color: #f0dfcf;
}
.site-nav-contact-mobile {
  display: none;
}
.site-nav-ribbon-toggle {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--site-nav-meta-size);
  font-weight: 700;
  padding: 6px 7px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  justify-self: end;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav-ribbon-toggle-label {
  white-space: nowrap;
}
.site-nav-ribbon-toggle:hover,
.site-nav-ribbon-toggle.is-open {
  color: var(--brand);
  background: #fff7ee;
  border-color: #f0dfcf;
}
.site-nav-ribbon-toggle .toggle-arrow {
  font-size: 10px;
  opacity: 0.55;
  transition: transform 0.15s, opacity 0.15s;
}
.site-nav-ribbon-toggle.is-open .toggle-arrow {
  transform: rotate(180deg);
  opacity: 0.85;
}
.site-nav-ribbon {
  margin-top: 10px;
  border-top: 1px solid transparent;
  background: rgba(255, 255, 255, 0.97);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    visibility 0s linear 0.28s;
}
.site-nav-ribbon.is-open {
  border-top-color: var(--line);
  max-height: 760px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    visibility 0s linear 0s;
}
.site-nav-ribbon-inner {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 0 14px;
  display: block;
  column-width: clamp(220px, 18vw, 260px);
  column-gap: 12px;
  column-fill: balance;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}
.site-nav-ribbon-stack {
  display: contents;
}
.site-nav-ribbon-group {
  border: 1px solid #e9e3db;
  border-radius: 14px;
  background: #fff;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  vertical-align: top;
  padding: clamp(10px, 0.25vw + 9px, 12px) clamp(10px, 0.3vw + 8px, 12px) clamp(9px, 0.3vw + 8px, 11px);
}
.site-nav-ribbon-group.is-current {
  border-color: #e9e3db;
  background: #fff;
  box-shadow: 0 6px 18px rgba(72, 52, 30, 0.04);
}
@media (max-width: 1460px) {
  .site-nav-ribbon.is-open {
    max-height: min(82vh, 720px);
  }
  .site-nav-ribbon-inner {
    column-width: clamp(220px, 20vw, 250px);
    max-height: 560px;
  }
}

@media (max-width: 1120px) {
  .site-nav-ribbon-inner {
    column-width: auto;
    column-count: 3;
    max-height: 560px;
  }
}

@media (max-width: 900px) {
  .site-nav-ribbon-inner {
    column-count: 2;
    max-height: 560px;
  }
}
.site-nav-ribbon-title {
  margin: 0 0 8px;
  padding-left: 8px;
  font-size: clamp(12.8px, 0.26vw + 11.7px, 14.8px);
  font-weight: 700;
  color: #8b5a37;
}
.site-nav-ribbon-links {
  display: grid;
  gap: 1px;
}
.site-nav-ribbon-link {
  display: block;
  position: relative;
  padding: 4px 7px 4px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #4b4138;
  font-size: var(--site-nav-link-size);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-nav-ribbon-link-title {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: var(--site-nav-link-size);
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
}
.site-nav-ribbon-link-icon {
  width: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  text-align: center;
  opacity: 0.8;
}
.site-nav-ribbon-link-summary {
  display: block;
  margin-top: 2px;
  margin-left: 0;
  font-size: var(--site-nav-summary-size);
  font-weight: 400;
  line-height: 1.32;
  color: #b8aea4;
}
.site-nav-ribbon-link:hover {
  color: var(--brand);
  background: #fffaf4;
}
.site-nav-ribbon-link.current,
.site-nav-ribbon-link[aria-current="page"] {
  color: var(--brand);
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ed 100%);
  border-color: #e6c9ab;
  box-shadow: 0 8px 18px rgba(72, 52, 30, 0.06);
}
.site-nav-ribbon-link.current .site-nav-ribbon-link-summary,
.site-nav-ribbon-link[aria-current="page"] .site-nav-ribbon-link-summary {
  color: #b0896b;
}
.site-nav-ribbon-link.current::before,
.site-nav-ribbon-link[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.page-lead-highlight {
  font-weight: 800;
  color: #6f4122;
  text-decoration-line: underline;
  text-decoration-color: rgba(185, 101, 45, 0.45);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.site-nav-group {
  position: relative;
}
.site-nav-group::after,
.site-nav-page.has-sections::after {
  content: '';
  position: absolute;
  inset: 100% 0 auto;
  height: 8px;
}
.site-nav-group-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--site-nav-link-size);
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px 6px 3px;
  white-space: nowrap;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.site-nav-group-trigger:hover,
.site-nav-group:hover .site-nav-group-trigger,
.site-nav-group:focus-within .site-nav-group-trigger,
.site-nav-group.is-current-group .site-nav-group-trigger {
  color: var(--brand);
  background: transparent;
}
  .site-nav-group-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 8px;
    background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(72, 52, 30, 0.12);
  z-index: 320;
}
.site-nav-group:hover .site-nav-group-menu,
.site-nav-group:focus-within .site-nav-group-menu,
.site-nav-group.is-open .site-nav-group-menu {
  display: block;
}
.site-nav-group.is-edge .site-nav-group-menu {
  left: auto;
  right: 0;
}
.site-nav-page {
  position: relative;
}
.site-nav-page.has-divider {
  border-top: 1px solid #e8e0d4;
  margin-top: 8px;
  padding-top: 8px;
}
.site-nav-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
  .site-nav-page-link {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    padding: 8px 10px !important;
    border-radius: 8px;
    color: #4b4138 !important;
  font-size: var(--site-nav-link-size) !important;
  font-weight: 700 !important;
    text-decoration: none !important;
    white-space: normal;
  }
  .site-nav-page-link-icon {
    flex-shrink: 0;
    color: currentColor;
  }
  .site-nav-page-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
  }
  .site-nav-page-link-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    line-height: 1.35;
  }
  .site-nav-page-link-label {
    display: block;
  }
  .site-nav-page-summary {
    display: block;
    margin: 0;
    color: #9d8f82 !important;
    font: 400 var(--site-nav-summary-size) / 1.42 'Noto Sans JP', sans-serif !important;
    letter-spacing: 0;
    opacity: 1;
  }
  .site-nav-page-link:hover,
  .site-nav-page:hover .site-nav-page-link,
  .site-nav-page:focus-within .site-nav-page-link {
    color: var(--brand) !important;
    background: #fff7ee;
  }
  .site-nav-page-link:hover .site-nav-page-summary,
  .site-nav-page:hover .site-nav-page-summary,
  .site-nav-page:focus-within .site-nav-page-summary {
    color: #9d8f82 !important;
    opacity: 1;
  }
.site-nav-page-link.current,
.site-nav-page-link[aria-current="page"] {
  color: var(--brand) !important;
  background: #fff3e7;
}
.site-nav-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #b09279;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}
.site-nav-page:hover .site-nav-page-arrow,
.site-nav-page:focus-within .site-nav-page-arrow {
  color: var(--brand);
  background: #fff7ee;
}
.site-nav-page-menu {
  display: none;
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  min-width: 240px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(72, 52, 30, 0.12);
  z-index: 330;
}
.site-nav-page:hover .site-nav-page-menu,
.site-nav-page:focus-within .site-nav-page-menu {
  display: block;
}
.site-nav-group.is-edge .site-nav-page-menu {
  left: auto;
  right: calc(100% + 8px);
}
.site-nav-section-link {
  display: block;
  padding: 7px 10px !important;
  border-radius: 8px;
  color: #62584f !important;
  font-size: var(--site-nav-meta-size) !important;
  font-weight: 500 !important;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: normal;
}
.site-nav-section-link:hover {
  color: var(--brand) !important;
  background: #fff7ee;
}
.site-nav-arrow {
  font-size: 8px;
  margin-left: 0;
  opacity: 0.45;
  transition: transform 0.15s;
}
.site-nav-group:hover .site-nav-arrow,
.site-nav-group:focus-within .site-nav-arrow,
.site-nav-group.is-open .site-nav-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Hero (index) */
.hero {
  margin: 22px auto 32px;
  width: min(1080px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(1200px 400px at -10% -30%, #ffe7cf 0, #fff8ef 34%, #fff 72%);
  box-shadow: var(--shadow);
  padding: 56px 28px 46px;
  text-align: center;
}
.hero-logo {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--logo-color);
  line-height: 1.1;
}
.hero-logo-sub {
  font-weight: 300;
}
.hero-formula {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #a08a6e;
  margin-top: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  color: #4a3d2e;
  margin-top: 18px;
  line-height: 1.6;
}
.hero-copy {
  font-size: 15px;
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 600px;
}
.hero-badges {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #f0d8c2;
  border-radius: 999px;
  background: #fff9f1;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 700;
  color: #8d582f;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #b26a36;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 52px 0 12px;
}
.section-title {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.section-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
  max-width: 58em;
  text-wrap: pretty;
}

.top-axis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.top-axis-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas:
    'icon kicker'
    'icon title'
    'icon desc'
    'icon link';
  column-gap: 12px;
  row-gap: 5px;
  border: 1px solid #f1ebe3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  padding: 13px 13px 11px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.top-axis-card.is-wide {
  grid-column: 1 / -1;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    'icon kicker'
    'icon title'
    'icon desc'
    'icon note'
    'icon link';
  column-gap: 14px;
  row-gap: 6px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.95), rgba(255, 255, 255, 0.98));
}

.top-axis-card:hover {
  border-color: #e3d7ca;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(226, 209, 191, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.top-axis-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e6;
  color: var(--brand);
  font-size: 13px;
}

.top-axis-card.is-wide .top-axis-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
}

.top-axis-title {
  grid-area: title;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #4f4338;
}

.top-axis-card.is-wide .top-axis-title {
  font-size: 15px;
}

.top-axis-kicker {
  grid-area: kicker;
  align-self: end;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #b26a36;
  letter-spacing: -0.01em;
}

.top-axis-card.is-wide .top-axis-kicker {
  font-size: 20px;
}

.top-axis-card:hover .top-axis-title {
  color: #3f362d;
}

.top-axis-card:hover .top-axis-kicker {
  color: #9c5a2b;
  text-decoration: underline;
  text-decoration-color: rgba(156, 90, 43, 0.38);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.top-axis-desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.top-axis-card.is-wide .top-axis-desc {
  font-size: 13px;
  max-width: 68ch;
}

.top-axis-note {
  grid-area: note;
  margin: 1px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #f1e4d6;
  background: rgba(255, 255, 255, 0.72);
  color: #6a5a4e;
  font-size: 12px;
  line-height: 1.55;
}

.top-axis-link {
  grid-area: link;
  width: 100%;
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid #f3ede6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
  align-self: flex-start;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #95572d;
  text-decoration: underline;
  text-decoration-color: rgba(149, 87, 45, 0.58);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.16s ease, gap 0.16s ease, font-size 0.16s ease, text-decoration-color 0.16s ease;
}

.top-axis-card:hover .top-axis-link {
  color: #8f4c22;
  font-size: 14px;
  gap: 9px;
  text-decoration: underline;
  text-decoration-color: rgba(143, 76, 34, 0.72);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #ecccae;
}
.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 13px;
  color: var(--muted);
}

.quote-block,
.quote-box {
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
  padding: 18px 22px;
  margin: 28px 0;
}
.quote-text,
.quote-box p {
  color: #6b3f22;
  font-size: 15px;
}
.quote-attr { margin-top: 8px; color: #9f7f68; font-size: 12px; }

.nav-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nav-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-card:hover {
  transform: translateY(-1px);
  border-color: #e7c7aa;
  box-shadow: var(--shadow);
}
.nav-card-num {
  width: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 22px;
}
.nav-card-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 700;
}
.nav-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nav-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.62;
}
.nav-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: rgba(185, 101, 45, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.nav-card:hover .nav-card-arrow {
  text-decoration-color: rgba(185, 101, 45, 0.72);
}

/* Page layout with sidebar */
.page-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}
.page-content {
  flex: 0 1 860px;
  min-width: 0;
  padding-right: 32px;
}

/* Sidebar (table of contents) */
.page-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  margin-top: 120px;
  flex-shrink: 0;
  width: 240px;
  max-height: calc(100vh - 100px);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffdfa 0%, #fff8f1 100%);
  border: 1px solid #e2d1bf;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(72, 52, 30, 0.08);
}
.page-sidebar:empty { display: none; }
.page-sidebar .toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #8f745f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-sidebar a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  line-height: 1.45;
  border-left: 2px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
  word-break: break-all;
}
.page-sidebar a:hover {
  color: var(--brand);
}
.page-sidebar a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: rgba(255, 244, 233, 0.72);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }
  .page-sidebar { display: none; }
}

/* Common content pages */
.page-content {
  padding-top: 34px;
  padding-bottom: 66px;
}
.page-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4.8vw, 38px);
  color: #31261f;
  margin-bottom: 10px;
  line-height: 1.24;
  scroll-margin-top: 112px;
}
.page-content .page-lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
}
.page-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  line-height: 1.35;
  margin: 38px 0 12px;
  color: #6f3f20;
  padding-bottom: 8px;
  border-bottom: 1px solid #efdfcf;
  scroll-margin-top: 112px;
}
.page-content h2.headline-emphasis {
  font-size: 26px;
  font-weight: 800;
  color: #5f371b;
  letter-spacing: -0.02em;
}
.page-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #44352b;
  scroll-margin-top: 112px;
}
.page-content p {
  margin: 0 0 14px;
  color: #433b34;
}
.page-content ul,
.page-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page-content li {
  margin: 5px 0;
  color: #433b34;
}

/* Cards and custom blocks */
.section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(104, 75, 46, 0.05);
}
.section-card h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-card h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fdf1e5;
  color: var(--brand);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.position-chart {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  margin: 16px 0;
  overflow: hidden;
}
.position-bar {
  height: 6px;
  border-radius: 3px;
  margin: 34px 20px 54px;
  background: linear-gradient(to right, #f4dcc6, #c7763d);
}
.position-labels {
  margin: 0 20px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ab8f79;
}
.position-items {
  position: relative;
  min-height: 132px;
  margin: 0 20px;
}
.pos-item {
  position: absolute;
  width: 140px;
  transform: translateX(-50%);
  text-align: center;
}
.pos-item .pos-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #453326;
}
.pos-item .pos-desc {
  margin-top: 2px;
  color: #a18670;
  font-size: 11px;
  line-height: 1.55;
}
.pos-item .pos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9a391;
  margin: 0 auto 6px;
}
.pos-item.highlight .pos-name { color: #9f5528; font-size: 16px; }
.pos-item.highlight .pos-dot {
  width: 14px;
  height: 14px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 122, 60, 0.18);
}

/* Table (docs ページ内のみ) */
.page-content table,
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
  background: #fff;
  font-size: 14px;
}
.page-content th, .page-content td,
.cmp-table th, .cmp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0e7dc;
  vertical-align: top;
  text-align: left;
}
.page-content th,
.cmp-table th {
  background: #faf2e8;
  color: #553a27;
  font-weight: 700;
}
.page-content tr:last-child td,
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:last-child {
  background: #fff7ef;
  color: #7a4d2d;
}

/* Code */
pre, pre[class*=language-] {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid #3d332c;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font: 12px/1.68 'Fira Code', Consolas, monospace !important;
}
pre code,
pre code[class*=language-] {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  font: inherit !important;
  white-space: pre;
}
code {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.89em;
  background: #f8efe7;
  color: #8b3d12;
  border: 1px solid #ecdaca;
  border-radius: 5px;
  padding: 1px 6px;
}
.tok-keyword { color: #ffb57a; }
.tok-string { color: #ffd8a8; }
.tok-comment { color: #b5a79a; font-style: italic; }
.tok-variable { color: #96e6c2; }
.tok-class { color: #8dc3ff; }
.tok-func { color: #f6c4ff; }

.code-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0;
}
.code-compare > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.code-compare pre { margin: 0; flex: 1; font-size: 12px; }
.code-compare-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px 7px 0 0;
}
.code-compare-label.bad {
  background: #fff0ec;
  color: #a23d27;
}
.code-compare-label.good {
  background: #edf9f1;
  color: #246747;
}

.diagram-box {
  white-space: pre;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  color: #4d4035;
  padding: 14px 16px;
  font: 13px/1.65 'Fira Code', Consolas, monospace;
  margin: 14px 0;
}

.framework-spectrum {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
  padding: 18px 16px 16px;
  margin: 14px 0;
  overflow: hidden;
}
.framework-spectrum-line {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(164, 146, 128, 0.28) 0%, rgba(185, 101, 45, 0.72) 50%, rgba(164, 146, 128, 0.28) 100%);
  transform: translateY(-50%);
  opacity: 0.9;
}
.framework-spectrum-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.framework-spectrum-item {
  position: relative;
  border: 1px solid #ddd6cc;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 246, 0.98) 100%);
  padding: 16px 14px 14px;
  box-shadow: 0 4px 14px rgba(104, 75, 46, 0.04);
  text-align: center;
}
.framework-spectrum-item.is-core {
  background: linear-gradient(180deg, #fffdfa 0%, #fff8f0 100%);
  border-color: #c88f61;
  box-shadow:
    0 12px 28px rgba(94, 60, 38, 0.12),
    0 0 0 5px rgba(200, 143, 97, 0.12);
}
.framework-spectrum-item.is-core::after {
  content: '';
  position: absolute;
  inset: auto 18% -12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(200, 143, 97, 0.18);
  filter: blur(12px);
}
.framework-spectrum-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a08772;
}
.framework-spectrum-title {
  margin-top: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #4a3b2e;
  line-height: 1.2;
}
.framework-spectrum-item.is-core .framework-spectrum-title {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--logo-color);
  font-size: 28px;
  letter-spacing: -0.03em;
  box-shadow: none;
}
.framework-spectrum-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #8b7868;
}
.framework-spectrum-item.is-core .framework-spectrum-kicker {
  color: #9a775f;
}
.framework-spectrum-item.is-core .framework-spectrum-sub {
  color: #7e6655;
}
.framework-spectrum-body {
  margin-top: 12px;
  border-top: 1px solid #ede5db;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #5b4a3c;
}
.framework-spectrum-item.is-core .framework-spectrum-body {
  border-top-color: #ecd8c7;
  color: #7a4b2b;
}

.glance-panel {
  max-width: 900px;
  margin: 0 auto 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.glance-group-title {
  margin: 0 0 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a57c5f;
}
.glance-group-desc {
  margin: -4px 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #6d5a4d;
}
.glance-spectrum {
  margin: 0 0 22px;
}
.glance-spectrum .framework-spectrum-title {
  margin-top: 0;
}
.glance-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.glance-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff8f2 100%);
  padding: 14px 14px 13px;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.glance-point:hover,
.glance-point:focus-visible {
  transform: translateY(-1px);
  border-color: #d7c2ae;
  box-shadow: 0 8px 20px rgba(143, 76, 34, 0.08);
}
.glance-point:focus-visible {
  outline: 2px solid rgba(143, 76, 34, 0.22);
  outline-offset: 2px;
}
.glance-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff1e2;
  color: var(--brand);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.glance-point-body {
  min-width: 0;
}
.glance-point-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #4a3425;
  line-height: 1.45;
}
.glance-point-desc {
  margin: 3px 0 0;
  font-size: 12px;
  color: #8b7868;
  line-height: 1.5;
}

/* Shared status panel component, including the legacy .note alias. */
.note-box, .note {
  border: 0;
  border-radius: 11px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.72;
  background: #fff5ea;
  color: #774724;
}
.note-box.info, .note.info { background: #fff5ea; color: #774724; }
.note-box.warn, .note.warn { background: #fff8e9; color: var(--warn); }
.note-box.ok, .note.ok { background: #eef9f2; color: var(--ok); }
.note-box.danger, .note.danger { background: #fff1f1; color: var(--danger); }

.section-linkline {
  margin: 18px 0 0;
  text-align: right;
}

.section-linkline-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(185, 101, 45, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.section-linkline-anchor:hover {
  text-decoration-color: rgba(185, 101, 45, 0.72);
}

.no-list { list-style: none; padding-left: 0; }
.no-list li::before {
  content: "\2717\0020";
  color: #cb4d3c;
  font-weight: 700;
}
.check-list { list-style: none; padding-left: 0; }
.check-list li::before {
  content: "\2713\0020";
  color: #2f855a;
  font-weight: 700;
}

.key-messages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.key-msg {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 14px;
}
.key-msg .num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  color: var(--brand);
  font-weight: 700;
}
.key-msg .msg {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #4a3425;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-footer {
  text-align: center;
  margin-top: 42px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  color: #98846f;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
}
.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav {
    padding: 10px 14px 0;
  }
  .site-nav-inner {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
  }
  .site-nav-menu-toggle {
    display: inline-flex;
    grid-column: 2;
  }
  .site-nav-ribbon-toggle {
    display: none;
  }
  .site-nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    justify-content: flex-start;
  }
  .site-nav.is-menu-open .site-nav-links {
    display: flex;
  }
  .site-nav-contact-desktop {
    display: none;
  }
  .site-nav-contact-mobile {
    display: inline-flex;
    justify-content: flex-start;
  }
  .site-nav-links > a {
    width: 100%;
    text-align: left;
  }
  .site-nav-ribbon {
    display: none !important;
  }
  .site-nav-ribbon-inner {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 12px 0 14px;
  }
  .site-nav-ribbon-stack {
    display: contents;
  }
  .site-nav-group {
    width: 100%;
  }
  .site-nav-group-trigger {
    width: 100%;
    text-align: left;
  }
  .site-nav-group-menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin-top: 6px;
    box-shadow: none;
  }
  .site-nav-group.is-edge .site-nav-group-menu {
    right: auto;
  }
  .site-nav-page-menu,
  .site-nav-group.is-edge .site-nav-page-menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin: 4px 0 0 12px;
    box-shadow: none;
    border-style: dashed;
  }
  .site-nav-page-menu {
    display: block;
  }
  .hero {
    width: calc(100vw - 20px);
    margin-top: 14px;
    padding: 38px 18px 32px;
  }
  .container { padding: 0 14px 36px; }
  .page-content { padding: 22px 0 36px; }
  .features,
  .top-axis-grid,
  .nav-cards,
  .code-compare,
  .key-messages,
  .grid-2 { grid-template-columns: 1fr; }
  .position-items {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pos-item {
    position: static;
    width: auto;
    transform: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pos-item .pos-dot { margin: 0; flex-shrink: 0; }
  .position-bar,
  .position-labels { display: none; }
  .framework-spectrum {
    padding: 12px;
  }
  .framework-spectrum-line {
    display: none;
  }
  .framework-spectrum-grid {
    grid-template-columns: 1fr;
  }
  .framework-spectrum-item {
    text-align: left;
  }
  .glance-panel {
    padding: 18px 18px 18px;
  }
  .glance-points {
    grid-template-columns: 1fr;
  }
  .top-axis-card.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .site-nav-ribbon.is-open {
    max-height: 640px;
  }
  .site-nav-page-menu,
  .site-nav-group.is-edge .site-nav-page-menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin: 4px 0 0 12px;
    box-shadow: none;
    border-style: dashed;
  }
}

@media (max-width: 1420px) {
  .site-nav-ribbon-toggle {
    padding: 6px 8px;
    gap: 6px;
  }
}

@media (max-width: 1260px) {
  .site-nav-ribbon-toggle-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .site-nav-ribbon {
    transition: none;
  }
}

/* Unified nav state */
.site-nav-top.current,
.site-nav-top[aria-current="page"] {
  color: var(--brand) !important;
  background: #fff7ee;
}

/* Legacy content wrappers compatibility */
.content-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  margin: 0 0 16px;
  box-shadow: 0 6px 20px rgba(104, 75, 46, 0.05);
}
.content-block > h2:first-child { margin-top: 0; }

.syntax-divider {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin: 34px 0 18px;
  padding: 0 0 10px;
}
.syntax-divider h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}
.syntax-divider p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.diagram {
  white-space: pre;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  color: #4d4035;
  padding: 14px 16px;
  font: 13px/1.65 'Fira Code', Consolas, monospace;
  margin: 14px 0;
}

/* v2 refinement block */

.section-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.card-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 16px;
  box-shadow: 0 6px 20px rgba(104, 75, 46, 0.05);
}
.card-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #513826;
}
.card-panel p:last-child { margin-bottom: 0; }
.card-panel ul {
  margin: 0;
  padding-left: 20px;
}
.card-panel li { margin: 4px 0; }

.code-tour {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 6px;
}
.code-tour .tour-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 10px;
}
.tour-step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fae8d5;
  color: var(--brand);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
}
.tour-step .step-label {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #5a3e2a;
}
.tour-step .step-caption {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: #8c735f;
}

.page-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.page-index a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
  color: #6c5847;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.page-index a:hover {
  border-color: #e8c9aa;
  color: var(--brand);
  background: #fff9f1;
}

.page-manifesto {
  margin: -10px 0 28px;
  border: 1px solid #ead7c4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
  box-shadow: 0 6px 18px rgba(92, 64, 40, 0.05);
  padding: 14px 16px 15px;
}
.page-manifesto-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a57c5f;
}
.page-manifesto-text {
  margin-top: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #5d3b24;
}

@media (max-width: 768px) {
  .section-split,
  .code-tour {
    grid-template-columns: 1fr;
  }
  .page-manifesto {
    margin-top: 0;
  }
  .page-manifesto-text {
    font-size: clamp(18px, 6vw, 22px);
  }
}

/* Reader-first diagrams */
.flow-canvas {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
  padding: 14px;
  margin: 12px 0;
}
.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.flow-node {
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 10px;
  padding: 8px 11px;
  color: #4b392d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.flow-node.subtle {
  background: #fff8ef;
  color: #7f5633;
  border-color: #efdeca;
  font-weight: 600;
}
.flow-node.core {
  background: #f9efe4;
  border-color: #e7c8a9;
  color: #8d4f21;
}
.flow-arrow {
  color: #b88a65;
  font-size: 12px;
  font-weight: 700;
}
.flow-legend {
  margin-top: 10px;
  font-size: 12px;
  color: #85705f;
}

.workflow-lane-stack {
  display: grid;
  gap: 14px;
}

.workflow-lane-card {
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.workflow-lane-card.app {
  background: #fffcf7;
  border-color: #ead6bf;
}

.workflow-lane-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #7d4a24;
}

.flow-node.user {
  background: #f7fbff;
  border-color: #d5e6f6;
  color: #335577;
}

.workflow-step-stack {
  display: grid;
  gap: 10px;
}

.workflow-step-card {
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.workflow-step-card.core {
  background: #fff7ef;
  border-color: #e7c8a9;
}

.workflow-step-card.user {
  background: #f7fbff;
  border-color: #d5e6f6;
}

.workflow-step-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #4b392d;
}

.workflow-step-card.core .workflow-step-title {
  color: #8d4f21;
}

.workflow-step-card.user .workflow-step-title {
  color: #335577;
}

.workflow-step-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #75675b;
}

.workflow-step-linkline {
  margin: 10px 0 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.4;
}

.workflow-step-linkline a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(185, 101, 45, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.workflow-step-linkline a:hover {
  text-decoration-color: rgba(185, 101, 45, 0.72);
}

.workflow-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b88a65;
  font-size: 12px;
}

.layer-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.layer-item {
  border: 1px solid #eadfce;
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
}
.layer-item strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 13px;
  color: #613f28;
}
.layer-item span {
  color: #7b695b;
  font-size: 13px;
}

@media (max-width: 768px) {
  .flow-canvas { padding: 12px; }
  .flow-row { gap: 6px; }
  .flow-node { width: 100%; }
  .flow-arrow { display: none; }
}

/* Gentle motion */
@keyframes softRise {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feature,
.nav-card,
.section-card,
.content-block,
.flow-canvas,
.layer-item {
  animation: softRise 0.42s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .feature,
  .nav-card,
  .section-card,
  .content-block,
  .flow-canvas,
  .layer-item {
    animation: none;
  }
}


/* 3-layer positioning diagram */
.position-3layer {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.layer-band {
  border: 1px solid #eadfce;
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
}
.layer-band .layer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5f412b;
}
.layer-band .layer-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #876f5d;
}
.layer-band .layer-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #4f4237;
}
.layer-band.naify {
  background: #fff6ec;
  border-color: #e6c8ab;
}
.layer-band.naify .layer-title { color: var(--logo-color); }
.layer-arrow {
  text-align: center;
  color: #b58d6f;
  font-size: 12px;
  font-weight: 700;
}


.flow-auto-detail {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}
.flow-auto-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #6b4a31;
  list-style: none;
}
.flow-auto-detail summary::-webkit-details-marker {
  display: none;
}
.flow-auto-detail summary::before {
  content: '\25B8';
  margin-right: 8px;
  color: var(--brand);
}
.flow-auto-detail[open] summary::before {
  content: '\25BE';
}



.code-compare-label.neutral {
  background: #f4f6f8;
  color: #4f5b66;
}

/* ========= Promise (3 つの約束) — top-axis-grid のバリアント ========= */
.promise-axis-grid {
  margin-bottom: 20px;
}

/* ========= Why Naify Panel (FAQ 含む、見出しまで包んで目立たせる) ========= */
.why-panel {
  position: relative;
  overflow: hidden;
  margin: 0 auto 40px;
  max-width: 900px;
  padding: 26px 32px 18px;
  border: 1px solid #e9d8c7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 76, 34, 0.07), transparent 48%),
    radial-gradient(circle at 0% 100%, rgba(194, 122, 74, 0.05), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  box-shadow: 0 24px 60px rgba(143, 76, 34, 0.12), 0 2px 8px rgba(143, 76, 34, 0.04);
}
.why-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #8f4c22 0%, #b15f30 50%, #d99467 100%);
  z-index: 1;
}
.why-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(143, 76, 34, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.why-panel > * {
  position: relative;
  z-index: 1;
}
.why-panel-header {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 820px;
}
.why-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f4c22, #a85f30);
  color: #fff;
  font: 700 11px/1.3 'SF Mono', Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(143, 76, 34, 0.3);
}
.why-panel-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  color: #2e1f15;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.why-panel-title .naify-logo {
  background: linear-gradient(135deg, #8f4c22, #c27a4a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.why-panel-desc {
  margin: 0 auto;
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #6b5a4c;
}
.why-panel-desc strong {
  color: #8f4c22;
  font-weight: 700;
}
@media (max-width: 820px) {
  .why-panel {
    padding: 28px 22px 12px;
    border-radius: 20px;
  }
  .why-panel-header {
    margin-bottom: 22px;
  }
}

/* ========= FAQ ========= */
.faq-panel {
  padding: 0 22px 10px;
  overflow: hidden;
}

/* panel-in-panel: why-panel 内の group title */
.why-panel .glance-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 6px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #3c2a1d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.why-panel .glance-group-title i {
  color: var(--brand, #8f4c22);
  font-size: 14px;
}
.why-panel .glance-group-desc {
  margin: 0 2px 14px;
  font-size: 13.5px;
  color: #6b5a4c;
}

/* FAQ list を内パネルとして囲む */
.faq-list {
  padding: 18px 18px 8px;
  border-radius: 16px;
  background: rgba(255, 248, 238, 0.55);
  border: 1px solid #ead8c3;
  margin: 0 0 10px;
}

/* FAQ CTA (パネル末尾) */
.faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 2px 6px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf3 0%, #fff1e2 100%);
  border: 1px dashed #e3c7ab;
}
.faq-cta-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8f4c22, #a85f30);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(143, 76, 34, 0.25);
}
.faq-cta-body {
  flex: 1;
  min-width: 0;
}
.faq-cta-title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: #3c2a1d;
  letter-spacing: -.01em;
}
.faq-cta-desc {
  margin: 0;
  font-size: 12.5px;
  color: #7a6753;
  line-height: 1.7;
}
.faq-cta-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.faq-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand, #8f4c22);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 6px 14px rgba(143, 76, 34, 0.2);
}
.faq-cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(143, 76, 34, 0.32);
  background: #a85f30;
}
.faq-cta-link.is-ghost {
  background: #fff;
  color: var(--brand, #8f4c22);
  border: 1px solid #e3c7ab;
  box-shadow: none;
}
.faq-cta-link.is-ghost:hover {
  background: #fffaf3;
  border-color: #c79e74;
}
@media (max-width: 720px) {
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .faq-cta-actions {
    width: 100%;
  }
  .faq-cta-link {
    flex: 1;
    justify-content: center;
  }
}

/* FAQ 先頭の訴求カード (pain point → answer) — why-panel 内の子パネル */
.faq-pitch {
  position: relative;
  overflow: hidden;
  margin: 0 0 4px;
  padding: 22px 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(220, 38, 38, 0.06), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(143, 76, 34, 0.06), transparent 40%),
    linear-gradient(180deg, #fff8f2 0%, #fffdfa 100%);
  border: 1px solid #ead8c3;
}
.faq-pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
  opacity: .7;
  pointer-events: none;
}
.faq-pitch-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.faq-pitch-col {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 20px 22px;
  border-radius: 14px;
  /* 控えめな赤: 薄いローズ背景 */
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.6), transparent 55%),
    linear-gradient(160deg, #fff0f0 0%, #fde8e8 100%);
  color: #7f1d1d;
  border: 1px solid #fca5a5;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.10);
}
.faq-pitch-col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #f87171, #dc2626);
}
.faq-pitch-col.is-answer {
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 76, 34, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  border-color: #e9d8c7;
  color: #3c2a1d;
  box-shadow: 0 8px 20px rgba(143, 76, 34, 0.10);
}
.faq-pitch-col.is-answer::before {
  background: linear-gradient(180deg, #c27a4a, var(--brand, #8f4c22));
}
.faq-pitch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font: 700 10.5px/1.3 'SF Mono', Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid #b91c1c;
}
.faq-pitch-col.is-answer .faq-pitch-kicker {
  background: #16a34a;
  color: #fff;
  border-color: #15803d;
}
.faq-pitch-head {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #991b1b;
}
.faq-pitch-col.is-answer .faq-pitch-head {
  color: #2e1f15;
}
.faq-pitch-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #b91c1c;
}
.faq-pitch-body strong {
  color: #7f1d1d;
  font-weight: 700;
}
.faq-pitch-col.is-answer .faq-pitch-body {
  color: #5f4d3f;
}
.faq-pitch-col.is-answer .faq-pitch-body strong {
  color: var(--brand, #8f4c22);
}
@media (max-width: 820px) {
  .faq-pitch {
    padding: 20px 22px 18px;
  }
  .faq-pitch-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.faq-item {
  margin: 0 0 10px;
  border: 1px solid #ead8c3;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease, background .2s ease;
}
.faq-item:first-of-type {
  border-top: 1px solid #ead8c3;
}
.faq-item:hover {
  transform: translateY(-1px);
  border-color: #d7c2ae;
  box-shadow: 0 8px 20px rgba(143, 76, 34, 0.08);
}
.faq-item[open] {
  border-color: rgba(143, 76, 34, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  box-shadow: 0 12px 26px rgba(143, 76, 34, 0.12);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #3c2a1d;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.6;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  color: var(--brand, #8f4c22);
}
.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand, #8f4c22);
  color: #fff;
  font: 700 12px/1 'SF Mono', Consolas, monospace;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(143, 76, 34, 0.22);
}
.faq-q-text {
  flex: 1;
  padding-top: 6px;
  min-width: 0;
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a08a76;
  transition: transform .25s ease, color .15s;
  font-size: 12px;
  margin-top: 2px;
}
.faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  color: var(--brand, #8f4c22);
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px 18px 18px;
  animation: faqReveal .2s ease;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff1e2;
  color: var(--brand, #8f4c22);
  font: 700 12px/1 'SF Mono', Consolas, monospace;
  flex-shrink: 0;
  border: 1px solid #f3d7be;
}
.faq-a-text {
  flex: 1;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #6b5a4c;
  font-weight: 400;
}
.faq-a-text strong {
  color: #3c2a1d;
}
.faq-a-text em {
  font-style: normal;
  color: var(--brand, #8f4c22);
  font-weight: 600;
}

/* Categorized article navigation */
.page-sidebar .toc-group-heading { display: flex; align-items: center; }
.page-sidebar .toc-group-heading > a { flex: 1; font-weight: 600; padding: 8px 0 8px 8px; }
.page-sidebar .toc-toggle { flex: 0 0 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.page-sidebar .toc-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.page-sidebar .toc-toggle:hover { background: #f3e6d9; }
.page-sidebar .toc-group.is-current > .toc-group-heading > a { color: var(--brand); }
.page-sidebar .toc-items { margin: 0 0 6px 10px; }
.page-sidebar .toc-items[hidden] { display: none; }
.page-sidebar .toc-items a { font-size: 12px; overflow-wrap: anywhere; word-break: normal; }
.page-sidebar a:focus-visible, .page-sidebar button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.page-content h2[id] { scroll-margin-top: 100px; }

/* Keep category transitions brief and respect reduced-motion preferences. */
.page-sidebar .toc-items { overflow: hidden; }
.page-sidebar .toc-toggle { transition: transform 220ms ease, background-color 150ms ease; }
@media (prefers-reduced-motion: reduce) {
  .page-sidebar .toc-toggle { transition: none; }
}

/* Reusable concept diagrams: semantic HTML, no image or script dependency. */
.concept-diagram { margin: 24px 0; padding: 24px; border-radius: 16px; background: #fff8f1; color: #574333; }
.concept-diagram figcaption { margin-bottom: 20px; font-size: 17px; font-weight: 700; }
.concept-diagram .concept-caption { margin: 18px 0 0; font-size: 13px; line-height: 1.7; color: #756354; }
.concept-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.concept-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; background: #fff; margin: 0; min-width: 0; }
.concept-steps li + li::before { content: '→'; position: absolute; left: -20px; top: 50%; color: #a87550; transform: translateY(-50%); }
.concept-step-number { font-size: 12px; font-weight: 700; color: #a87550; }
.concept-steps strong { font-size: 15px; }
.concept-steps li > span:last-child { font-size: 13px; line-height: 1.65; }
.concept-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; border-radius: 12px; background: #f0e3d5; text-align: center; }
.concept-app strong { font-size: 19px; }
.concept-app span { font-size: 13px; }
.concept-connector { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 12px 0; font-size: 12px; color: #756354; }
.concept-connector span { font-size: 22px; }
.concept-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.concept-package { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; border-radius: 12px; background: #fff; color: #574333; text-decoration: none; border: 1px solid transparent; }
.concept-package:nth-child(2) { background: #eef7f0; }
.concept-package:nth-child(3) { background: #eef3fa; }
.concept-package:hover { border-color: var(--brand); }
.concept-package:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.concept-package > span:first-child { font-size: 12px; }
.concept-package strong { font-size: 20px; overflow-wrap: anywhere; }
.concept-package small { font-size: 12px; line-height: 1.6; }
.concept-link { margin-top: auto; font-size: 12px; text-decoration: underline; }
@media (max-width: 640px) {
  .concept-diagram { padding: 18px; }
  .concept-steps, .concept-packages { grid-template-columns: 1fr; }
  .concept-steps li + li::before { content: '↓'; left: 50%; top: -23px; transform: translateX(-50%); }
}

/* Full WOIM text is readable without a Markdown renderer or JavaScript. */
.woim-page { padding-top: 32px; max-width: 1120px; }
.woim-formats { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
pre.woim-source {
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4;
  background: var(--bg, #f8f5ef); color: var(--text, #332d28);
  border: 1px solid var(--line, #e8e0d4); border-radius: 12px;
  padding: clamp(16px, 3vw, 32px); font-size: 14px; line-height: 1.85;
}
