/* ============================================
   わたし羅針盤 — Design Tokens & Base
   ============================================ */

:root {
  /* —— Color ——————————————————————————————— */
  --ink-deep:   #0B1426;       /* night-sky navy */
  --ink-mid:    #14213D;
  --ink-soft:   #1F2C49;
  --ink-haze:   #2A3656;
  --paper:      #F6F1E6;       /* warm ivory */
  --paper-deep: #EBE3D0;
  --paper-edge: #D9CFB6;
  --gold:       #C9A565;
  --gold-hi:    #E0C893;
  --gold-soft:  rgba(201,165,101,.18);
  --blue-haze:  #6B82A8;
  --blue-soft:  #A6B4CC;
  --plum:       #7D5A75;
  --moss:       #6B7A5A;
  --terracotta: #B57A55;
  --rose:       #B5829A;

  /* On-dark text */
  --on-dark-1: rgba(246,241,230,1);
  --on-dark-2: rgba(246,241,230,.74);
  --on-dark-3: rgba(246,241,230,.48);
  --on-dark-line: rgba(246,241,230,.12);

  /* On-light text */
  --on-light-1: #14213D;
  --on-light-2: #4A5067;
  --on-light-3: #7A7666;
  --on-light-line: rgba(20,33,61,.10);

  /* —— Type ——————————————————————————————— */
  --f-serif:  "Shippori Mincho B1", "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --f-sans:   "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --f-mono:   "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* —— Radii / Shadow ———————————————————————— */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(11,20,38,.06), 0 4px 12px rgba(11,20,38,.04);
  --sh-2: 0 6px 28px rgba(11,20,38,.12), 0 2px 6px rgba(11,20,38,.06);
  --sh-glow: 0 0 60px rgba(201,165,101,.18);

  /* —— Motion ——————————————————————————————— */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --e-in-out: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--on-light-1);
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================
   Section scaffolding
   ============================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.h-display {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.18;
  letter-spacing: .005em;
  margin: 0;
  text-wrap: pretty;
}
.h-section {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  margin: 0;
  text-wrap: pretty;
}
.h-card {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}
.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--on-light-2);
  text-wrap: pretty;
}
.label-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ============================================
   Paper texture (subtle)
   ============================================ */
.paper-tex {
  background-color: var(--paper);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(20,33,61,.05) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 80%, rgba(20,33,61,.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 65%, rgba(20,33,61,.035) 50%, transparent 51%);
  background-size: 240px 240px, 320px 320px, 180px 180px;
}
.ink-tex {
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,130,168,.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,165,101,.10), transparent 60%),
    radial-gradient(1px 1px at 12% 20%, rgba(246,241,230,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 30%, rgba(246,241,230,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, rgba(246,241,230,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 85%, rgba(246,241,230,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 50%, rgba(246,241,230,.25) 50%, transparent 51%);
  background-size: 100% 100%, 100% 100%, 300px 300px, 420px 420px, 360px 360px, 280px 280px, 500px 500px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform .4s var(--e-out), background .3s var(--e-out), color .3s var(--e-out), box-shadow .3s var(--e-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: 0 8px 24px rgba(201,165,101,.32), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gold-hi);
  box-shadow: 0 14px 36px rgba(201,165,101,.42), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--on-dark-1);
  border: 1px solid var(--on-dark-line);
}
.btn-ghost:hover {
  background: rgba(246,241,230,.06);
  border-color: rgba(246,241,230,.28);
}
.btn-ghost-light {
  background: transparent;
  color: var(--on-light-1);
  border: 1px solid var(--on-light-line);
}
.btn-ghost-light:hover {
  background: rgba(20,33,61,.04);
  border-color: rgba(20,33,61,.22);
}
.btn .arr {
  width: 16px; height: 16px;
  transition: transform .4s var(--e-out);
}
.btn:hover .arr { transform: translateX(4px); }

/* ============================================
   Floating animations
   ============================================ */
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -6px); }
}
@keyframes drift-r {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, 6px); }
}
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.08); }
}
.drift     { animation: drift 9s var(--e-in-out) infinite; }
.drift-r   { animation: drift-r 11s var(--e-in-out) infinite; }
.spin-slow { animation: slow-spin 90s linear infinite; }
.twinkle   { animation: twinkle 4s ease-in-out infinite; }

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Type chip colors (used in C-galaxy)
   ============================================ */
.t-analyst   { --t: #8FA3C7; }
.t-diplomat  { --t: #B5A0C0; }
.t-sentinel  { --t: #C9A565; }
.t-explorer  { --t: #B5829A; }

/* ============================================
   Utility
   ============================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--on-light-line) 20%, var(--on-light-line) 80%, transparent);
}
.divider-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--on-dark-line) 20%, var(--on-dark-line) 80%, transparent);
}

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--on-light-line);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--on-light-2);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.kicker-dark {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--on-dark-2);
  background: rgba(246,241,230,.04);
  backdrop-filter: blur(8px);
}

/* Disclaimer */
.disclaimer {
  font-size: 11px;
  color: var(--on-light-3);
  line-height: 1.7;
  letter-spacing: .02em;
}
.disclaimer-dark { color: var(--on-dark-3); }

/* Scrollbar polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--paper-edge); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
