/* KURONYLAB 進捗報告 — design system */
:root {
  /* Palette — Stripe-ish navy & violet on warm white */
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-dark: #0a2540;
  --bg-dark-2: #0e2d4f;
  --ink: #0a2540;
  --ink-2: #425466;
  --ink-3: #6b7c93;
  --muted: #8898aa;
  --line: #e3e8ee;
  --line-2: #eef2f7;
  --accent: #635bff;
  --accent-2: #00d4ff;
  --positive: #00a86b;
  --warn: #f6a609;

  /* Type scale (1920×1080) */
  --type-eyebrow: 24px;
  --type-title: 72px;
  --type-subtitle: 44px;
  --type-section: 56px;
  --type-body: 30px;
  --type-small: 24px;
  --type-tiny: 24px;
  --type-stat: 168px;
  --type-stat-md: 120px;
  --type-stat-sm: 80px;

  /* Spacing */
  --pad-x: 120px;
  --pad-top: 96px;
  --pad-bottom: 88px;
  --gap-title: 56px;
  --gap-item: 32px;
  --gap-section: 72px;

  /* Type */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage section {
  background: var(--bg);
  color: var(--ink);
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-feature-settings: "palt";
}

deck-stage section.dark {
  background: var(--bg-dark);
  color: #f6f9fc;
}
deck-stage section.dark .ink-2 { color: #b8c5d6; }
deck-stage section.dark .line { background: #1c3a5e; }

/* Common bits */
.eyebrow {
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-num);
}
.eyebrow.muted { color: var(--muted); }

.slide-title {
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.slide-subtitle {
  font-size: var(--type-subtitle);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0;
}

.body { font-size: var(--type-body); line-height: 1.55; color: var(--ink-2); margin: 0; }
.small { font-size: var(--type-small); line-height: 1.55; color: var(--ink-3); margin: 0; }
.tiny { font-size: var(--type-tiny); line-height: 1.5; color: var(--muted); margin: 0; }
.tiny { font-size: 24px; }

.ink { color: var(--ink); }
.ink-2 { color: var(--ink-2); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.num { font-family: var(--font-num); font-feature-settings: "tnum"; }
.mono { font-family: var(--font-mono); }

/* Slide chrome */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: var(--gap-title);
}

.slide-meta {
  position: absolute;
  top: 56px;
  right: var(--pad-x);
  font-family: var(--font-num);
  font-size: 24px;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: flex;
  gap: 32px;
  align-items: center;
}
.slide-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
deck-stage section.dark .slide-meta { color: #6b7c93; }

.slide-brand {
  position: absolute;
  bottom: 48px;
  left: var(--pad-x);
  font-family: var(--font-num);
  font-size: 24px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
deck-stage section.dark .slide-brand { color: #6b7c93; }

/* Generic cards */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px;
}

.card.dark {
  background: var(--bg-dark);
  color: #f6f9fc;
  border-color: transparent;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.divider.dark { background: #1c3a5e; }

/* Big numbers */
.bignum {
  font-family: var(--font-num);
  font-size: var(--type-stat);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-feature-settings: "tnum";
}
.bignum .unit { font-size: 0.4em; font-weight: 500; color: var(--muted); margin-left: 0.15em; letter-spacing: 0; }
.bignum.md { font-size: var(--type-stat-md); }
.bignum.sm { font-size: var(--type-stat-sm); }

/* Logo mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-num);
  letter-spacing: 0.22em;
  font-weight: 600;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 2px;
}

/* Tags / pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 24px;
  color: var(--ink-2);
  background: #fff;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

deck-stage section.dark .pill { background: rgba(255,255,255,0.04); border-color: #1c3a5e; color: #b8c5d6; }

/* Progress bar */
.progress {
  height: 18px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 999px;
}
deck-stage section.dark .progress { background: #173659; }

/* Print/screen tweaks */
@media print {
  html, body { background: #fff; }
}
