/* ===========================
   TokyoMK AI Portal – style.css
   Brand: Black × Gold / Light Professional
   =========================== */

:root {
  --gold:        #b8973a;
  --gold-lt:     #c9a84c;
  --gold-dk:     #8a6d1e;
  --gold-pale:   #fdf8ee;
  --gold-mid:    #e8d090;
  --black:       #0f0f0f;
  --black-soft:  #1a1a1a;

  --bg:          #f5f6f8;
  --surface:     #ffffff;
  --surface2:    #fafbfc;
  --surface3:    #f0f2f5;
  --border:      #e4e7ec;
  --border-mid:  #d0d5dd;

  --text:        #111827;
  --text-mid:    #4b5563;
  --text-dim:    #9ca3af;

  --accent:      #b8973a;
  --accent-dk:   #8a6d1e;
  --accent-lt:   #fdf8ee;
  --accent-mid:  #e8d090;

  --green:       #059669;
  --green-lt:    #ecfdf5;
  --yellow:      #d97706;
  --yellow-lt:   #fffbeb;
  --red:         #dc2626;
  --red-lt:      #fef2f2;
  --blue:        #2563eb;
  --blue-lt:     #eff6ff;

  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 2px 6px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 20px rgba(184,151,58,0.22);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --nav-h:     64px;
  --max-w:     860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(184,151,58,0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(184,151,58,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, nav, header, footer, .north-star { position: relative; z-index: 1; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  margin-right: 16px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-brand-logo {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--black);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184,151,58,0.4);
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-link.active { background: rgba(184,151,58,0.2); color: var(--gold); font-weight: 700; }

/* ── North Star ── */
.north-star {
  background: linear-gradient(135deg, var(--gold-pale), #fffef9);
  border-bottom: 1px solid var(--gold-mid);
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--gold-dk);
  font-weight: 600;
  line-height: 1.5;
}

/* ── Main ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 20px 100px;
}

/* ── Typography ── */
h1 { font-size: clamp(24px, 5.5vw, 36px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }
h2 { font-size: clamp(18px, 4vw, 26px); font-weight: 700; letter-spacing: -0.4px; line-height: 1.3; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card + .card { margin-top: 16px; }
.card-gold { border-top: 3px solid var(--gold); }

.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
  color: var(--black);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,151,58,0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-mid);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface3); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--gold-dk);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-pale); box-shadow: var(--shadow-gold); }

.btn-dark {
  background: var(--black);
  color: var(--gold);
  box-shadow: var(--shadow-md);
}
.btn-dark:hover { background: var(--black-soft); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hero ── */
.hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--gold);
}
.hero-title { margin-bottom: 12px; }
.hero-sub { font-size: 16px; color: var(--text-mid); margin-bottom: 28px; max-width: 520px; line-height: 1.75; }

/* ── Section ── */
.section { margin-bottom: 44px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.badge-gold   { background: var(--gold-pale); color: var(--gold-dk); border: 1px solid var(--gold-mid); }
.badge-green  { background: var(--green-lt); color: var(--green); }
.badge-yellow { background: var(--yellow-lt); color: var(--yellow); }
.badge-red    { background: var(--red-lt); color: var(--red); }
.badge-blue   { background: var(--blue-lt); color: var(--blue); }

/* ── Lists ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.65;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.point-list { list-style: none; counter-reset: pts; display: flex; flex-direction: column; gap: 10px; }
.point-list li {
  counter-increment: pts;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.65;
}
.point-list li::before {
  content: counter(pts);
  background: var(--black);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Charter ── */
.charter-layer {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
}
.charter-layer-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 8px;
}
.charter-layer h2 { margin-bottom: 14px; font-size: 20px; }
.charter-layer p  { color: var(--text-mid); font-size: 14px; margin-bottom: 10px; line-height: 1.8; }

.version-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--black);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.version-bar strong { color: var(--gold); }

.history-row {
  display: flex; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.history-date { color: var(--text-dim); min-width: 100px; }
.history-note { color: var(--text-mid); }

/* ── Quiz ── */
.quiz-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz-dot {
  flex: 1; height: 5px;
  border-radius: 99px;
  background: var(--border);
  transition: background 0.3s;
}
.quiz-dot.done    { background: var(--green); }
.quiz-dot.current { background: var(--gold); }

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.question-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 8px;
}
.question-text { font-size: 16px; font-weight: 700; margin-bottom: 18px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.option-label:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: var(--shadow-gold);
  transform: translateX(3px);
}
.option-label input { accent-color: var(--gold); transform: scale(1.1); }
.option-label.correct   { border-color: var(--green); background: var(--green-lt); }
.option-label.incorrect { border-color: var(--red);   background: var(--red-lt); }

.learn-point {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gold-dk);
  border-left: 3px solid var(--gold);
  display: none;
  line-height: 1.7;
}
.learn-point.show { display: block; }

/* ── Score ── */
.score-card { text-align: center; padding: 40px 24px; }
.score-number {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.score-label { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.score-sub   { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* ── Survey ── */
.survey-q { margin-bottom: 20px; }
.survey-q label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.survey-q .required { color: var(--red); margin-left: 4px; font-size: 12px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.radio-label:hover { border-color: var(--gold); background: var(--gold-pale); box-shadow: var(--shadow-gold); }
.radio-label input { accent-color: var(--gold); transform: scale(1.1); }

.rating-group { display: flex; gap: 8px; }
.rating-btn {
  flex: 1; padding: 14px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
  transition: all 0.15s; text-align: center;
  box-shadow: var(--shadow-xs);
}
.rating-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
.rating-btn.selected { border-color: var(--gold); background: var(--black); color: var(--gold); box-shadow: var(--shadow-md); }

/* ── Highlights ── */
.highlight {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 500;
}
.highlight-gold   { background: var(--gold-pale); border-left: 3px solid var(--gold); color: var(--gold-dk); }
.highlight-blue   { background: var(--blue-lt);   border-left: 3px solid var(--blue); color: #1e40af; }
.highlight-green  { background: var(--green-lt);  border-left: 3px solid var(--green); color: #065f46; }
.highlight-yellow { background: var(--yellow-lt); border-left: 3px solid var(--yellow); color: #78350f; }

/* ── CTA Grid ── */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 520px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: all 0.22s;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  opacity: 0; transition: opacity 0.2s;
}
.cta-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold-mid); }
.cta-card:hover::before { opacity: 1; }
.cta-card-icon  { font-size: 30px; }
.cta-card-title { font-size: 17px; font-weight: 800; }
.cta-card-sub   { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.cta-card-arrow { margin-top: auto; font-size: 12px; color: var(--gold-dk); font-weight: 700; }

/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 16px;
}
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border-bottom: 3px solid var(--gold);
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-num   { font-size: 22px; font-weight: 800; color: var(--gold); display: block; margin-bottom: 6px; }
.pillar-label { font-size: 13px; font-weight: 700; color: var(--text-mid); }

/* ── Anon table ── */
.anon-table {
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.anon-row {
  display: flex; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.anon-row:last-child { border-bottom: none; }
.anon-from  { background: var(--surface3); padding: 10px 14px; min-width: 150px; color: var(--text-dim); }
.anon-arrow { padding: 10px 10px; background: var(--surface2); color: var(--gold-dk); font-weight: 700; }
.anon-to    { padding: 10px 14px; background: var(--surface); color: var(--green); font-weight: 700; flex: 1; }

/* ── Note ── */
.note { font-size: 12px; color: var(--text-dim); line-height: 1.65; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--gold);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px; font-weight: 700;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-dk);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
footer {
  background: var(--black);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  position: relative; z-index: 1;
}
footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeUp 0.4s ease both; }
.fade-in-2 { animation: fadeUp 0.4s 0.1s ease both; }
.fade-in-3 { animation: fadeUp 0.4s 0.2s ease both; }
.fade-in-4 { animation: fadeUp 0.4s 0.3s ease both; }

/* ── Responsive ── */
@media (max-width: 600px) {
  main { padding: 20px 16px 70px; }
  .hero { padding: 28px 0 20px; }
  .card { padding: 18px 16px; }
  h1 { font-size: 26px; }
  .nav { padding: 0 16px; }
}
