/* KIGYO NODE (キギョウノード) — design system v2 + v5 brand (see docs/DESIGN_SYSTEM.md, docs/design/UI_CONCEPTS.md)
   CSP-safe: no inline styles anywhere; all visuals live here. */

/* ---------- Tokens ---------- */
:root {
  --ink: #12251E;
  --forest: #164C38;
  --forest-hover: #1E5E46;
  --leaf: #2B7954;
  --canvas: #FBFCF9;
  --mint: #EAF1E6;
  --citrine: #D7F074;
  --paper: #FFFFFF;
  --muted: #4F5F57;      /* 6.6:1 on canvas */
  --line: #D9E4DA;
  --line-strong: #A9BFAE;
  --danger: #A3312A;     /* 6.0:1 on white */
  --danger-bg: #FBECEA;
  --success-bg: #EEF7D6;
  --focus: #1F6FEB;
  --radius-control: 8px;
  --radius-card: 16px;
  --shadow: 0 18px 50px rgba(18, 37, 30, .08);
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --gutter: max(5vw, 16px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0; overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.4; font-weight: 800; letter-spacing: -.02em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
::selection { background: var(--citrine); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-control); }
.skip:focus { top: 12px; }
main { display: block; outline: none; }
.break { word-break: break-all; }
small { font-size: .82em; color: var(--muted); }

/* Japanese phrase-level wrapping: break only between phrases */
.phrase { display: inline-block; }
.hl { background: linear-gradient(transparent 62%, var(--citrine) 62%); padding: 0 .06em; }

.micro { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--leaf); text-transform: uppercase; margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--muted); max-width: 32em; }
.fineprint { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px;
  padding: 12px 22px; border-radius: var(--radius-control); border: 2px solid transparent;
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; line-height: 1.4;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22, 76, 56, .25); }
.btn-citrine { background: var(--citrine); color: var(--ink); }
.btn-citrine:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--mint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8A2822; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--citrine); color: var(--ink); font-size: 15px; }
.btn-citrine .btn-arrow { background: var(--ink); color: var(--citrine); }
.btn-text { font-weight: 700; color: var(--forest); display: inline-flex; align-items: center; min-height: 44px; }
.btn-small { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--paper); }
.btn-small:hover { border-color: var(--forest); }
.link-button { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Header / footer ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); background: var(--canvas); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 6px solid var(--forest); background: var(--citrine); display: inline-block; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: -.03em; }
.brand-micro { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.site-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { text-decoration: underline; }
.site-nav form { margin: 0; }
.nav-cta { background: var(--forest); color: #fff !important; padding: 0 18px; border-radius: 99px; }
.nav-cta:hover { background: var(--forest-hover); text-decoration: none !important; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #CFE0D5; padding: 40px var(--gutter); font-size: 13px; margin-top: 0; }
.site-footer p { margin: 0 0 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; color: #fff; }
.footer-brand .brand-mark { width: 22px; height: 22px; border-width: 5px; border-color: var(--citrine); background: var(--ink); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--citrine); }

/* ---------- Flash & errors ---------- */
.flash-stack { max-width: 1120px; margin: 20px auto 0; padding: 0 var(--gutter); display: grid; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius-control); border: 1px solid; font-weight: 700; font-size: 15px; }
.flash-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.flash-success { background: var(--success-bg); border-color: #B7D27A; }
.flash-success .flash-icon { background: var(--forest); color: var(--citrine); }
.flash-info { background: var(--mint); border-color: var(--line-strong); }
.flash-info .flash-icon { background: var(--ink); color: #fff; }
.flash-error { background: var(--danger-bg); border-color: #E2A59F; color: var(--danger); }
.flash-error .flash-icon { background: var(--danger); color: #fff; }

.error-summary { border: 2px solid var(--danger); background: var(--danger-bg); border-radius: var(--radius-control); padding: 14px 18px; color: var(--ink); }
.error-summary p { margin: 0 0 4px; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 15px; }
.req { color: var(--danger); text-decoration: none; font-weight: 900; }
.opt { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.field input {
  height: 52px; width: 100%; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius-control);
  padding: 0 14px; background: var(--paper); color: var(--ink); font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #5F6C65; opacity: 1; }
.field input:hover { border-color: var(--leaf); }
.field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(43, 121, 84, .22); }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error input { border-color: var(--danger); border-width: 2px; background: #FFFAF9; }
.field-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 700; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--forest); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent-row { display: grid; gap: 4px; }
.stack { display: grid; gap: 12px; justify-items: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-title { font-size: 20px; margin: 0; }
.req-note { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.form-foot { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.form-foot a { font-weight: 800; }

.card-form { display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); margin: 28px 0 16px; }

/* ---------- Layout primitives ---------- */
.section { padding: 88px var(--gutter); max-width: 1240px; margin: 0 auto; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 20px; letter-spacing: -.04em; }
.narrow-page { max-width: 600px; margin: 0 auto; padding: 64px 20px 96px; }
.narrow-page.center { text-align: center; }
.narrow-page.center .steps, .narrow-page.center .check-list { margin-left: auto; margin-right: auto; text-align: left; }
.page-title { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.04em; margin: 0 0 16px; }
.back-link { margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3vw; align-items: center; padding: 56px var(--gutter) 72px; max-width: 1320px; margin: 0 auto; }
.display { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.32; letter-spacing: -.05em; margin: 0 0 22px; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 22px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 700; }
.trust-list li::before { content: "✓"; color: var(--leaf); font-weight: 900; margin-right: 6px; }

/* Network map (v5 brand, KIGYO NODE): students and student organisations as connected nodes — an illustration, not data */
.network-map { margin: 0; }
.network-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.nm-edge { fill: none; stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: nm-draw 1.8s ease-out both; }
.nm-edge-you { stroke: var(--forest); stroke-width: 6; animation-delay: .6s; }
.nm-founder { fill: var(--forest); }
.nm-pre { fill: #fff; stroke: var(--forest); stroke-width: 5; }
.nm-org { fill: var(--leaf); stroke: var(--forest); stroke-width: 3; }
.nm-you { fill: var(--citrine); stroke: var(--ink); stroke-width: 6; }
.network-map text { font-family: var(--font); font-size: 16px; font-weight: 800; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.network-map .nm-you-label { font-size: 17px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; box-sizing: border-box; }
.lg-founder::before { border-radius: 50%; background: var(--forest); }
.lg-pre::before { border-radius: 50%; background: #fff; border: 3px solid var(--forest); }
.lg-org::before { border-radius: 3px; background: var(--leaf); border: 2px solid var(--forest); }
.nm-note { flex-basis: 100%; text-align: center; font-size: 12px; }
@keyframes nm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Stations (available now) ---------- */
.stations { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stations::before { content: ""; position: absolute; left: 20px; right: 20px; top: 21px; height: 8px; border-radius: 4px; background: var(--forest); }
.stations li { position: relative; padding: 64px 28px 0 0; }
.stations li::before { content: ""; position: absolute; top: 7px; left: 8px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 7px solid var(--forest); }
.stations li:first-child::before { background: var(--citrine); border-color: var(--ink); }
.station-no { font-size: 12px; font-weight: 900; letter-spacing: .16em; color: var(--leaf); }
.stations h3 { font-size: 22px; margin: 2px 0 8px; }
.stations p { color: var(--muted); margin: 0; }

/* ---------- Trust ---------- */
.section-trust { border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 16px; }
.trust-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.trust-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.trust-card ul { margin: 0; padding-left: 1.2em; color: var(--ink); }
.trust-card li { margin: 4px 0; }
.trust-card-private { background: var(--ink); color: #E7F0EA; border-color: var(--ink); }
.trust-card-private h3, .trust-card-private ul { color: #fff; }
.icon-check, .icon-lock { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--citrine); color: var(--ink); font-size: 13px; }
.icon-check::before { content: "✓"; font-weight: 900; }
.icon-lock::before { content: ""; width: 10px; height: 8px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 -2px transparent; position: relative; top: 2px; }
.icon-lock::after { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; transform: translateY(-5px); }
.icon-lock { position: relative; }

/* ---------- Book ---------- */
.section-book { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; background: var(--mint); border-radius: 24px; max-width: 1180px; padding: 56px; margin-bottom: 24px; }
.book-mark { aspect-ratio: 3/4; background: var(--forest); color: #fff; border-radius: 6px 14px 14px 6px; box-shadow: inset 10px 0 0 rgba(0, 0, 0, .18), 16px 18px 0 var(--citrine); display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px 18px 26px; font-weight: 900; font-size: 22px; line-height: 1.35; }
.book-mark small { color: var(--citrine); font-size: 11px; letter-spacing: .2em; font-weight: 800; }

/* ---------- Planned ---------- */
.section-later p { color: var(--muted); }
.planned-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.planned-list li { display: inline-flex; align-items: center; gap: 10px; border: 2px dashed var(--line-strong); border-radius: var(--radius-control); padding: 10px 16px; font-weight: 700; color: var(--muted); background: var(--canvas); }
.badge-plan { font-size: 11px; font-weight: 900; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 4px; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--forest); color: #fff; text-align: center; padding: 88px var(--gutter); }
.final-cta .micro { color: var(--citrine); }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.05em; margin: 0 0 16px; }
.final-cta p { color: #D4E7DB; }
.final-cta .notice-plain { color: var(--ink); } /* closed-mode note on the dark band: keep dark text on its light box */
.final-cta .btn { margin: 12px 0 8px; }
.final-cta .support { font-size: 12px; margin-top: 28px; color: #B9D3C3; }
.final-cta :focus-visible { outline-color: var(--citrine); }

/* ---------- Register (ticket) ---------- */
.split-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "intro ticket" "aside ticket"; grid-template-rows: auto 1fr; gap: 0 56px; max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 96px; align-items: start; }
.split-intro { grid-area: intro; }
.split-page .ticket { grid-area: ticket; }
.split-aside { grid-area: aside; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promise-list li { padding-left: 32px; position: relative; font-size: 15px; }
.promise-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--citrine); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.ticket { display: grid; grid-template-columns: 132px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.ticket-stub { background: var(--forest); color: #CFE3D6; padding: 28px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .18em; border-right: 3px dashed var(--canvas); }
.ticket-stub b { color: var(--citrine); font-size: 19px; letter-spacing: 0; line-height: 1.35; margin-bottom: 18px; }
.ticket-form { padding: 32px; display: grid; gap: 20px; }

/* Steps (sign-up progress) */
.steps { list-style: none; padding: 0; margin: 28px 0; display: flex; max-width: 420px; }
.steps li { flex: 1; position: relative; display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 4px; background: var(--line-strong); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--forest); }
.steps-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--line-strong); }
.steps .done .steps-dot { background: var(--forest); border-color: var(--forest); }
.steps .done .steps-dot::after { content: "✓"; color: var(--citrine); font-size: 12px; font-weight: 900; display: grid; place-items: center; height: 100%; line-height: 1; }
.steps .current { color: var(--ink); }
.steps .current .steps-dot { background: var(--citrine); border-color: var(--ink); }

/* Sent */
.envelope { width: 88px; height: 64px; margin: 0 auto 24px; background: var(--paper); border: 4px solid var(--forest); border-radius: 8px; position: relative; overflow: hidden; }
.envelope::before { content: ""; position: absolute; left: -6px; right: -6px; top: -36px; height: 70px; border-bottom: 4px solid var(--forest); transform: rotate(0); border-radius: 0 0 50% 50%; background: var(--mint); }
.envelope span { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--citrine); border: 4px solid var(--ink); }
.check-list { max-width: 460px; padding-left: 1.2em; margin: 20px 0 28px; }
.check-list li { margin: 6px 0; }

/* ---------- Dashboard ---------- */
.dashboard { max-width: 1120px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-head p:last-child { color: var(--muted); margin: 0; }
.journey { margin: 36px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 28px 22px; }
.journey-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.journey-line li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.journey-line li::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 8px; background: var(--forest); }
.journey-line li:first-child::before { display: none; }
.journey-line li.current::before { background: var(--forest); }
.journey-line li.planned::before { background: repeating-linear-gradient(90deg, var(--leaf) 0 6px, transparent 6px 14px); height: 6px; top: 13px; }
.j-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 7px solid var(--forest); background: #fff; }
.journey-line .done .j-dot { background: var(--forest); }
.journey-line .current .j-dot { background: var(--citrine); border-color: var(--ink); }
.journey-line .planned .j-dot { border-style: dashed; border-color: var(--leaf); border-width: 4px; }
.j-label { font-weight: 800; font-size: 15px; }
.j-state { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.journey-line .current .j-state { background: var(--citrine); color: var(--ink); padding: 0 8px; border-radius: 4px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.panel h2 { font-size: 20px; margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.badge-private { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--mint); border-radius: 99px; padding: 4px 12px 4px 4px; }
.badge-private .icon-lock { width: 22px; height: 22px; }
.count { font-size: 13px; font-weight: 800; color: var(--muted); }
.profile { margin: 0 0 12px; display: grid; gap: 10px; }
.profile div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.profile dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.profile dd { margin: 0; font-weight: 700; min-width: 0; }
.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.org { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-left: 6px solid var(--forest); border-radius: 10px; padding: 14px 16px; }
.org h3 { font-size: 16px; margin: 0; }
.org p { margin: 0; font-size: 13px; color: var(--muted); }
.empty { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; }
.empty p { color: var(--muted); }
.panel-soon { margin-top: 20px; background: var(--mint); border-style: dashed; border-color: var(--line-strong); }
.panel-soon h2 { font-size: 17px; margin-bottom: 6px; }
.panel-soon p:last-child { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Danger zone / legal ---------- */
.danger-zone { margin-top: 40px; border: 1px solid #E2A59F; border-radius: var(--radius-card); padding: 24px; background: #FFFCFB; }
.danger-zone h2 { font-size: 18px; margin: 0 0 8px; color: var(--danger); }
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.draft-note { background: #FFF8DB; border-left: 6px solid #C9A400; padding: 12px 16px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .split-page { grid-template-columns: 1fr; grid-template-areas: "intro" "ticket" "aside"; grid-template-rows: auto; gap: 24px; padding-top: 28px; }
  .split-intro .steps { margin: 16px 0 0; }
  .split-intro p { margin-bottom: 0; }
  .section-book { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .book-mark { width: 150px; font-size: 17px; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { padding: 10px 16px; }
  .brand-micro { display: none; }
  .brand-name { font-size: 16px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .nav-cta { padding: 0 14px; }
  .section { padding: 64px 16px; }
  .display { font-size: clamp(30px, 9vw, 40px); }
  .hero { padding: 28px 16px 48px; }
  .stations { grid-template-columns: 1fr; }
  .stations::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 8px; height: auto; }
  .stations li { padding: 4px 0 30px 72px; }
  .stations li::before { top: 0; left: 8px; }
  .trust-grid { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 20px; border-right: 0; border-bottom: 3px dashed var(--canvas); }
  .ticket-stub b { font-size: 15px; margin: 0 8px 0 0; }
  .ticket-stub b br { display: none; }
  .ticket-form, .card-form { padding: 22px 18px; }
  .journey { padding: 20px 12px 16px; }
  .j-label { font-size: 12px; }
  .j-state { font-size: 11px; }
  .footer-meta { align-items: flex-start; }
  .final-cta { padding: 64px 16px; }
}
@media (max-width: 380px) {
  .site-nav a:not(.nav-cta) { font-size: 12px; }
  .brand-name { font-size: 15px; }
}

/* ---------- v3 refinements: see block "v3" at the end ---------- */

/* ---------- Motion & forced colors ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .brand-mark, .steps-dot, .j-dot { forced-color-adjust: none; }
  .btn { border-color: ButtonText; }
}

/* =====================================================================================
   v3 (2026-10-18 brush-up) — typography, spacing rhythm, hero board, flows, new components
   ===================================================================================== */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: clamp(64px, 9vw, 112px);
}

/* Typography: Japanese headings use proportional metrics (palt) instead of negative tracking,
   which made kana feel cramped. Body keeps monospaced kana for reading comfort. */
h1, h2, h3, .display, .page-title, .section-title, .final-cta h2 {
  font-feature-settings: "palt" 1; letter-spacing: .01em; line-height: 1.38;
}
.display { font-size: clamp(32px, 4.1vw, 54px); letter-spacing: .005em; line-height: 1.3; margin-bottom: var(--space-5); }
.section-title { font-size: clamp(26px, 3.2vw, 40px); }
.page-title { font-size: clamp(26px, 3.8vw, 38px); }
.micro { font-size: 12px; letter-spacing: .16em; display: flex; align-items: center; gap: var(--space-2); }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; }
.lead-sm { color: var(--muted); }
.nowrap { white-space: nowrap; }
.section { padding-top: var(--space-9); padding-bottom: var(--space-9); }

/* CTA arrow drawn in CSS (glyphs rendered like a minus sign at small sizes) */
.btn-arrow { position: relative; width: 30px; height: 30px; flex: none; }
.btn-arrow::before { content: ""; position: absolute; left: 8px; top: 14px; width: 13px; height: 2px; background: currentColor; border-radius: 2px; }
.btn-arrow::after { content: ""; position: absolute; left: 13px; top: 10px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn-arrow { transform: translateX(2px); transition: transform .2s ease; }

/* Busy state (set by app.js; purely visual — the request is already on its way) */
.btn.is-busy { opacity: .85; cursor: progress; }
.btn.is-busy .btn-arrow::before, .btn.is-busy .btn-arrow::after { display: none; }
.btn.is-busy .btn-arrow { border-radius: 50%; border: 3px solid rgba(18, 37, 30, .25); border-top-color: var(--ink); background: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero: the map sits on a board (grid paper) so it reads as an object, not floating art */
.hero { gap: clamp(24px, 4vw, 64px); padding-top: clamp(32px, 5vw, 72px); }
.hero-art {
  background: var(--paper) repeating-linear-gradient(0deg, transparent 0 31px, #EEF3EC 31px 32px),
              repeating-linear-gradient(90deg, transparent 0 31px, #EEF3EC 31px 32px);
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.4vw, 32px); box-shadow: var(--shadow); position: relative;
}
.hero-art::before { content: "NETWORK · つながりのイメージ"; position: absolute; top: 14px; left: 18px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.nm-pulse { fill: none; stroke: var(--citrine); stroke-width: 4; transform-origin: 250px 205px; animation: nm-pulse 2.4s ease-out infinite; }
@keyframes nm-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(43, 121, 84, .5); animation: dot-pulse 2.4s ease-out infinite; }
@keyframes dot-pulse { to { box-shadow: 0 0 0 10px rgba(43, 121, 84, 0); } }
.trust-list { gap: var(--space-2) var(--space-5); }

/* Organizations section */
.section-orgs { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; border-top: 1px solid var(--line); }
.org-steps { list-style: none; counter-reset: s; padding: 0; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-3); }
.org-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--space-3); color: var(--muted); font-size: 15px; }
.org-steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--citrine); display: grid; place-items: center; font-weight: 900; }
.org-steps b { color: var(--ink); font-size: 16px; }
.org-card-preview { background: var(--mint); border-radius: 24px; padding: var(--space-6) var(--space-5) var(--space-5); display: grid; gap: var(--space-3); position: relative; }
.org-card-preview .org { background: var(--paper); }
.preview-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.role-tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; background: var(--mint); border-radius: 4px; padding: 1px 8px; }

/* FAQ (native <details>, keyboard accessible without JS) */
.faq { display: grid; gap: var(--space-3); max-width: 860px; margin-top: var(--space-5); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); font-weight: 800; display: flex; justify-content: space-between; gap: var(--space-4); min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--muted); }

/* Dashboard next step */
.next-step { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; background: var(--forest); color: #E6F1EA; border-radius: 20px; padding: var(--space-6); margin: 0 0 var(--space-6); }
.next-step h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 var(--space-2); }
.next-step .micro { color: var(--citrine); }
.next-step p:last-child { margin: 0; max-width: 34em; }
.next-step :focus-visible { outline-color: var(--citrine); }

/* Selects & choice chips */
.field select { height: 52px; width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-control); padding: 0 40px 0 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: var(--space-2); }
.chips-select { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--paper); }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--citrine); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Sent page */
.sent-to { background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 12px; padding: var(--space-4) var(--space-5); margin: var(--space-5) auto; max-width: 460px; }
.sent-to p { margin: 0; }
.sent-to-label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.sent-to-address { font-size: 18px; font-weight: 800; }
.sent-to-fix { font-size: 14px; color: var(--muted); }
.notice-plain { background: var(--success-bg); border-radius: 12px; padding: var(--space-4) var(--space-5); text-align: left; }
.suggest { margin: 4px 0 0; color: var(--ink); }
.suggest .link-button { min-height: 32px; padding: 0 2px; color: var(--forest); font-weight: 800; }

/* Ticket polish */
.ticket-no { margin-top: auto; font-style: normal; font-size: 10px; letter-spacing: .2em; opacity: .7; }
.ticket-form { gap: var(--space-5); }
.promise-list li b { display: block; }
.req-note { margin-left: var(--space-3); }

/* Legal pages */
.legal { line-height: 1.95; }
.legal h2 { font-size: 19px; margin: var(--space-7) 0 var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin: 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.7; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--mint); font-weight: 800; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Scroll-linked reveal (progressive; Chromium). Content is fully visible without support. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stations li, .join-grid li, .trust-card, .faq details, .org-card-preview, .planned-list li {
      animation: reveal both ease-out; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .section-orgs { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}
@media (max-width: 720px) {
  .display { font-size: clamp(28px, 8.6vw, 38px); }
  .hero-art { padding: 28px 8px 12px; border-radius: 18px; }
  .next-step { padding: var(--space-5); }
  .faq summary { padding: var(--space-3) var(--space-4); }
  .faq details p { padding: 0 var(--space-4) var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .nm-pulse, .pulse-dot, .nm-edge { animation: none !important; }
}
/* v3.1: centred pages — keep the label centred, but set explanatory paragraphs left-aligned in a readable measure */
.narrow-page.center .micro { justify-content: center; }
.narrow-page.center > p:not(.micro):not(.fineprint) { text-align: left; max-width: 34em; margin-left: auto; margin-right: auto; }

/* =====================================================================================
   v5 brand (2026-10-19): KIGYO NODE — logomark "K made of nodes" (hub = citrine) — see docs/brand/BRAND_GUIDE.md
   ===================================================================================== */
.logo-mark { width: 34px; height: 34px; flex: none; display: block; }
.logo-mark .lm-edge { fill: none; stroke: var(--forest); stroke-width: 6; stroke-linecap: round; }
.logo-mark .lm-node { fill: var(--forest); }
.logo-mark .lm-hub { fill: var(--citrine); stroke: var(--forest); stroke-width: 5; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: 'Helvetica Neue', Arial, var(--font); font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.brand-micro { font-size: 10px; letter-spacing: .24em; color: var(--leaf); font-weight: 800; }
.footer-brand .logo-mark { width: 26px; height: 26px; }
.footer-brand .logo-mark .lm-edge, .footer-brand .logo-mark .lm-hub { stroke: var(--citrine); }
.footer-brand .logo-mark .lm-node { fill: var(--citrine); }
.footer-brand .logo-mark .lm-hub { fill: var(--ink); }
.footer-brand-name { font-family: 'Helvetica Neue', Arial, var(--font); font-weight: 900; letter-spacing: .06em; }
.footer-latin { font-size: 10px; letter-spacing: .24em; color: var(--citrine); font-weight: 800; margin-left: 4px; }

/* Staging instance banner (D-036): visible on every page so testers always know which instance they are using */
.instance-banner { background: var(--danger); color: #fff; font-size: 14px; line-height: 1.6; padding: 8px var(--gutter); }
.instance-banner strong { display: inline-block; background: #fff; color: var(--danger); border-radius: 4px; padding: 0 8px; margin-right: 8px; }

/* Who can join: four kinds of participants, keyed to the network-map legend */
.join-grid { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.join-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5); }
.join-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 var(--space-2); }
.join-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.join-grid h3::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; }
.join-founder h3::before { border-radius: 50%; background: var(--forest); }
.join-pre h3::before { border-radius: 50%; background: #fff; border: 4px solid var(--forest); }
.join-org h3::before { border-radius: 4px; background: var(--leaf); border: 3px solid var(--forest); }
.join-note { color: var(--muted); }
@media (max-width: 960px) { .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .join-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .brand-micro { display: block; font-size: 8.5px; }
  .brand-name { font-size: 16px; }
  .logo-mark { width: 30px; height: 30px; }
}

/* =====================================================================================
   v6 (2026-10-19): roadmap-aligned information architecture, see docs/content/ROADMAP_GAP.md
   Status labels carry meaning by text + shape, never colour alone:
   受付中/いま = citrine with check, 準備中 = ink with hollow ring, 予定 = dashed outline.
   ===================================================================================== */
section[id], nav[id] { scroll-margin-top: 16px; }

/* Header: in-page sections (desktop) + disclosure menu (narrow); works without JavaScript */
.site-header { position: relative; }
.site-sections { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-sections { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; font-size: 14px; font-weight: 700; }
.nav-sections a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-sections a:hover { text-decoration: underline; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 99px; font-size: 14px; font-weight: 800; cursor: pointer; background: var(--paper); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav-menu[open] summary { border-color: var(--forest); background: var(--mint); }
.nav-menu ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.nav-menu li a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: var(--radius-control); color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-menu li a:hover { background: var(--mint); }
.nav-menu-account { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
@media (max-width: 1180px) {
  .site-sections { justify-content: flex-end; }
  .nav-sections { display: none; }
  .nav-menu { display: block; }
  .nav-login { display: none !important; }
}
@media (max-width: 720px) { .site-header { gap: 8px; } }
@media (max-width: 400px) {
  .nav-menu summary { padding: 0; width: 44px; justify-content: center; font-size: 0; gap: 0; }
}

/* Status labels */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 99px; font-size: 12px; font-weight: 900; letter-spacing: .06em; line-height: 1.7; white-space: nowrap; vertical-align: middle; border: 1.5px solid transparent; }
.status-now { background: var(--citrine); color: var(--ink); border-color: var(--ink); }
.status-now::before { content: "✓"; font-size: 11px; }
.status-prep { background: var(--ink); color: #fff; }
.status-prep::before { content: ""; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--citrine); }
.status-plan { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--ink); }
.status-key { margin: var(--space-4) 0 0; font-size: 13px; color: var(--muted); }

/* Audience paths directly under the hero */
.paths { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.paths ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.path { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5) 52px var(--space-5) var(--space-5); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.path:hover { border-color: var(--forest); box-shadow: var(--shadow); transform: translateY(-2px); }
.path::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid var(--forest); border-right: 2px solid var(--forest); transform: rotate(45deg); }
.path h2 { font-size: clamp(18px, 1.7vw, 21px); margin: var(--space-1) 0 var(--space-2); }
.path h2 a { color: var(--ink); text-decoration: none; }
.path h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.path h2 a:hover { text-decoration: underline; }
.path > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.path-who { margin: 0; font-size: 13px; font-weight: 800; color: var(--leaf); display: flex; align-items: center; gap: 8px; }
.path .path-who::before { content: ""; flex: none; width: 14px; height: 14px; box-sizing: border-box; }
.path-student .path-who::before { border-radius: 50%; background: var(--forest); }
.path-org .path-who::before { border-radius: 4px; background: var(--leaf); border: 3px solid var(--forest); }
.path-partner .path-who::before { border: 3px solid var(--forest); transform: rotate(45deg); width: 12px; height: 12px; margin: 0 1px; }

/* About: activities with status */
.about-lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; max-width: 40em; }
.activity-grid { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.activity-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.activity-grid h3 { font-size: 17px; margin: var(--space-1) 0 0; }
.activity-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.now-cta { margin: var(--space-7) 0 0; }

/* Organisation benefits next to the dashboard preview */
.org-side { display: grid; gap: var(--space-4); }
.org-benefits { margin: 0; display: grid; gap: var(--space-3); }
.org-benefits > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: var(--space-4) var(--space-5); }
.org-benefits dt { margin-bottom: var(--space-2); }
.org-benefits dd { margin: 0; font-size: 15px; }

/* Learn (book) */
.learn-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.learn-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-weight: 700; }
.learn-list .status { min-width: 5.2em; justify-content: center; }

/* Crowdfunding notice */
.section-cf { max-width: 1180px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 56px; margin-top: var(--space-5); margin-bottom: var(--space-5); position: relative; overflow: hidden; }
.section-cf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--citrine); }
.cf-lead { font-size: clamp(16px, 1.4vw, 18px); max-width: 40em; }
.cf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0 var(--space-5); }
.cf-facts > div { border-top: 3px solid var(--forest); padding-top: var(--space-3); }
.cf-facts dt { font-size: 13px; font-weight: 800; color: var(--leaf); letter-spacing: .04em; }
.cf-facts dd { margin: var(--space-1) 0 0; font-size: 17px; font-weight: 800; line-height: 1.65; }
.cf-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: 700; }

/* Companies & universities */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-6) 0 var(--space-5); }
.partner-card { background: var(--ink); color: #CFE0D5; border-radius: var(--radius-card); padding: var(--space-6); }
.partner-card .path-who { color: var(--citrine); }
.partner-card h3 { color: #fff; font-size: 22px; margin: var(--space-1) 0 var(--space-2); }
.partner-card p:last-child { margin: 0; }
.partner-contact { font-weight: 700; }

/* Roadmap: five steps, "now" filled, planned dashed (an indication, not a promise) */
.roadmap { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-5); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 28px; right: 0; top: 11px; height: 3px; background: repeating-linear-gradient(90deg, var(--leaf) 0 6px, transparent 6px 14px); }
.roadmap > li { position: relative; margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-5) var(--space-4); }
.roadmap > li::before { content: ""; position: absolute; top: -34px; left: 18px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: var(--paper); border: 3px dashed var(--leaf); }
.roadmap > li.rm-now { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.roadmap > li.rm-now::before { background: var(--citrine); border: 5px solid var(--ink); }
.rm-when { margin: 0 0 var(--space-1); font-size: 14px; font-weight: 800; display: grid; line-height: 1.5; }
.rm-step { font-size: 11px; letter-spacing: .16em; color: var(--leaf); }
.roadmap h3 { font-size: 17px; margin: 0 0 var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.roadmap ul { margin: 0; padding-left: 1.1em; font-size: 14px; color: var(--muted); line-height: 1.7; }
.roadmap ul li { margin: 3px 0; }

/* News */
.news-empty { max-width: 860px; margin: 0; background: var(--paper); border: 2px dashed var(--line-strong); border-radius: 12px; padding: var(--space-5); color: var(--muted); }
.news-list { list-style: none; padding: 0; margin: 0; max-width: 860px; display: grid; gap: var(--space-3); }
.news-list li { display: grid; grid-template-columns: 9em 1fr; gap: var(--space-4); border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); }
.news-list time { font-size: 14px; font-weight: 800; color: var(--leaf); }
.news-list h3 { font-size: 17px; margin: 0 0 var(--space-1); }
.news-list p { margin: 0; color: var(--muted); }

/* Operator / contact */
.section-contact { border-top: 1px solid var(--line); }
.operator { margin: var(--space-5) 0 0; max-width: 860px; border-top: 1px solid var(--line); }
.operator > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.operator dt { font-size: 14px; font-weight: 800; color: var(--muted); }
.operator dd { margin: 0; font-weight: 700; }
.contact-pending { color: var(--muted); }

/* Footer navigation */
.footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 20px; max-width: 520px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* Register / dashboard additions */
.register-org-note { margin-top: var(--space-3); padding-left: var(--space-3); border-left: 4px solid var(--leaf); font-size: 14px; color: var(--muted); }
.soon-list { list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-3); display: grid; gap: var(--space-2); font-size: 15px; }
.soon-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

@media (max-width: 1080px) {
  .roadmap { grid-template-columns: 1fr; gap: var(--space-3); }
  .roadmap::before { left: 10px; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--leaf) 0 6px, transparent 6px 14px); }
  .roadmap > li { margin: 0 0 0 40px; }
  .roadmap > li::before { top: 22px; left: -40px; }
}
@media (max-width: 960px) {
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-cf { padding: 40px 24px; }
}
@media (max-width: 860px) {
  .paths ul, .cf-facts, .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .paths { padding: 0 16px; }
  .partner-card { padding: var(--space-5); }
}
@media (max-width: 560px) {
  .activity-grid { grid-template-columns: 1fr; }
  .operator > div, .news-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .path:hover { transform: none; }
}
.footer-meta { gap: 0; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 40px; }
.nav-menu li a { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.5; }
.nav-menu li a small { font-size: 12px; font-weight: 700; color: var(--muted); }
.nav-menu form { margin: 0; }
.nav-menu .link-button { width: 100%; min-height: 48px; padding: 8px 14px; text-align: left; border-radius: var(--radius-control); font-size: 16px; }
.nav-menu .link-button:hover { background: var(--mint); }
@media (max-width: 1180px) { .nav-logout { display: none; } }
@media (max-width: 400px) { .brand { min-width: 0; } .site-nav { gap: 10px; } }
.org .btn-small { flex: none; white-space: nowrap; }

/* =====================================================================================
   v7 (2026-10-19): official book 『学生起業 実務の教科書 第1巻 起業・設立編』 + video course.
   The cover is the supplied image, cropped and resized only (public/assets/book-cover-front*, see docs/brand/book).
   Book area uses white, pale blue and generous space; buttons and labels keep the KIGYO NODE greens.
   ===================================================================================== */
:root { --sky-50: #F4F8FD; --sky-100: #E6F0FA; --sky-line: #CFE0F2; --sky-ink: #1B5A9E; }
.status-idea { background: var(--paper); color: var(--ink); border: 1.5px dotted var(--ink); }
.status-idea::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px dotted currentColor; }

/* Book section (replaces the v5 placeholder book mark) */
.section-book { display: block; max-width: 1180px; padding: 64px 56px; margin: var(--space-5) auto; border-radius: 28px; border: 1px solid var(--sky-line);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sky-50) 55%, var(--sky-100) 100%); }
.section-book .micro, .section-course .micro { color: var(--sky-ink); }
.book-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.book-visual { display: flex; justify-content: center; perspective: 1600px; padding: 12px 0 28px; }
.book-cover { position: relative; margin: 0; width: min(340px, 100%); border-radius: 2px 6px 6px 2px;
  transform: rotateY(-14deg) rotateX(2deg); transform-origin: 40% 50%;
  box-shadow: 1px 0 0 #FFFFFF, 2px 0 0 #DCE5EF, 3px 1px 0 #FFFFFF, 4px 1px 0 #D6E0EB, 5px 2px 0 #FFFFFF, 6px 2px 0 #CED9E6,
              28px 34px 48px rgba(16, 42, 78, .22), 8px 10px 18px rgba(16, 42, 78, .16); }
.book-cover img { display: block; width: 100%; height: auto; border-radius: 2px 6px 6px 2px; }
/* binding shade on the left edge — presentation only, the image file itself is untouched */
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; border-radius: 2px 0 0 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(255, 255, 255, .28) 28%, rgba(255, 255, 255, 0) 100%); }
.book-status { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-3); font-size: 14px; font-weight: 800; }
.book-title { font-size: clamp(26px, 3vw, 38px); margin-bottom: var(--space-4); }
.book-lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; }
.book-note { color: var(--muted); font-size: 14px; margin: 0; }
.book-block { margin-top: var(--space-8); }
.book-h { font-size: clamp(20px, 2vw, 26px); margin: 0 0 var(--space-3); padding-left: 14px; border-left: 5px solid var(--sky-ink); line-height: 1.4; }
.book-catch { font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; color: var(--sky-ink); margin-bottom: var(--space-3); }
.book-purpose p:not(.book-catch) { max-width: 46em; }
.book-sub { color: var(--muted); font-size: 14px; }
.topic-grid { list-style: none; counter-reset: t; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.topic-grid li { counter-increment: t; position: relative; background: #FFFFFF; border: 1px solid var(--sky-line); border-radius: var(--radius-card); padding: var(--space-5) var(--space-5) var(--space-5) 76px; }
.topic-grid li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-100); color: var(--sky-ink); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.topic-grid h4 { font-size: 17px; margin: 0 0 var(--space-2); line-height: 1.5; word-break: auto-phrase; }
.topic-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.book-steps { margin-top: var(--space-6); background: #FFFFFF; border: 1px dashed var(--sky-line); border-radius: var(--radius-card); padding: var(--space-5); }
.book-steps-title { font-weight: 800; margin-bottom: var(--space-3); }
.step-chain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.step-chain li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--sky-50); border: 1px solid var(--sky-line); font-size: 14px; font-weight: 700; }
.step-chain b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-ink); color: #FFFFFF; font-size: 13px; }
.reader-list { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.reader-list li { position: relative; padding: 14px 16px 14px 48px; background: #FFFFFF; border: 1px solid var(--sky-line); border-radius: 12px; font-weight: 700; }
.reader-list li::before { content: "✓"; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--sky-ink); color: var(--sky-ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; line-height: 1; }

/* Distribution + crowdfunding notice */
.section-cf .micro { color: var(--leaf); }
.cf-box { margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.cf-box-title { font-size: 20px; margin: 0; }
.cf-box .cf-facts { margin-top: var(--space-4); }

/* Video course */
.section-course { max-width: 1180px; }
.course-lead { max-width: 46em; font-size: clamp(16px, 1.4vw, 18px); }
.course-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-5) 0 var(--space-6); }
.course-card { background: linear-gradient(180deg, #FFFFFF, var(--sky-50)); border: 1px solid var(--sky-line); border-radius: var(--radius-card); padding: var(--space-5); }
.course-card .path-who { color: var(--sky-ink); }
.course-card h3 { font-size: 19px; margin: var(--space-1) 0 var(--space-2); }
.course-card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.course-list-title { font-size: 18px; margin: 0 0 var(--space-3); }
.course-list { margin: 0 0 var(--space-3); padding: 0; list-style: none; counter-reset: c; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
.course-list li { counter-increment: c; display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.course-list li::before { content: "第" counter(c) "講"; font-size: 13px; font-weight: 800; color: var(--sky-ink); padding-top: 1px; }

@media (max-width: 960px) {
  .book-hero { grid-template-columns: 1fr; }
  .book-visual { padding-bottom: 12px; }
  .section-book { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .section-book { margin: var(--space-4) 0; border-radius: 22px; padding: 32px 16px; }
  /* Phones: flat, large cover so the title on the cover stays readable */
  .book-cover { width: min(72vw, 320px); transform: none; box-shadow: 0 14px 30px rgba(16, 42, 78, .18), 0 2px 6px rgba(16, 42, 78, .12); border-radius: 4px; }
  .book-cover img { border-radius: 4px; }
  .book-cover::after { display: none; }
  .topic-grid, .reader-list, .course-pair, .course-list { grid-template-columns: 1fr; }
  .topic-grid li { padding: var(--space-4) var(--space-4) var(--space-4) 64px; }
  .topic-grid li::before { left: 16px; top: 18px; width: 34px; height: 34px; }
  .book-block { margin-top: var(--space-7); }
}
@media (prefers-reduced-motion: reduce) { .book-cover { transition: none; } }
