/* =========================================================
   Initial State — Colors & Type
   株式会社イニシャルステート Design Tokens
   ========================================================= */

/* --- Brand webfonts (local files, provided by client) ---
   Noto Sans JP — Japanese body & display
   Outfit       — Latin display / wordmark / numerals
   (Outfit replaces the earlier JetBrains Mono substitute.)
*/
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/NotoSansJP-Light.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/NotoSansJP-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/NotoSansJP-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/NotoSansJP-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/NotoSansJP-Black.ttf') format('truetype'); }

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/Outfit-Light.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Outfit-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Outfit-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Outfit-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Outfit-Bold.ttf') format('truetype'); }

:root {
  /* ---------- BRAND COLORS (exact from logo PDF) ---------- */
  --is-navy:       #060E29;  /* primary brand — text, headers */
  --is-yellow:     #F5BC1A;  /* accent 1 — highlights, pull-quotes */
  --is-orange:     #F29219;  /* accent 2 — CTAs, arrows, emphasis */
  --is-red-orange: #ED6B1A;  /* accent 3 — critical KPIs, red arrows */

  /* Supporting brand tones (derived / sampled from slides) */
  --is-navy-2:     #1A2340;  /* softer navy for nav / cards on dark */
  --is-navy-wedge: #0F1B3A;  /* corner-wedge decoration on slides */
  --is-black:      #1D1D1F;  /* deep neutral used in bodyset on slides */

  /* ---------- NEUTRALS ---------- */
  --white:         #FFFFFF;
  --paper:         #FAFAFB;  /* page background */
  --ink-900:       #0E1421;  /* body headings */
  --ink-800:       #1E2538;  /* body text dark */
  --ink-700:       #303A52;  /* secondary text */
  --ink-600:       #5B6479;  /* tertiary */
  --ink-500:       #8791A3;  /* muted */
  --ink-400:       #B4BBC7;  /* borders-strong */
  --ink-300:       #D8DCE3;  /* borders */
  --ink-200:       #E8EAF0;  /* hairlines */
  --ink-100:       #F1F2F6;  /* surfaces subtle */
  --ink-050:       #F7F8FA;  /* surfaces */

  /* ---------- SOFT TINTS (pastel category blocks from slides) ---------- */
  --tint-blue:     #DCE6F2;  /* "activity summary" blue header bar */
  --tint-blue-bg:  #EDF2F8;
  --tint-yellow:   #FFF3CE;  /* soft yellow category card */
  --tint-yellow-bg:#FFF8E1;
  --tint-orange:   #FFE2C4;
  --tint-orange-bg:#FFF1E1;
  --tint-red:      #FBD6D1;
  --tint-red-bg:   #FDE9E5;

  /* ---------- SEMANTIC FG/BG ---------- */
  --fg-1:          var(--ink-900);   /* primary text */
  --fg-2:          var(--ink-700);   /* secondary text */
  --fg-3:          var(--ink-600);   /* muted text */
  --fg-4:          var(--ink-500);   /* captions */
  --fg-inverse:    var(--white);     /* text on dark */
  --fg-brand:      var(--is-navy);
  --fg-accent:     var(--is-orange);
  --fg-emphasis:   var(--is-red-orange);

  --bg-1:          var(--white);
  --bg-2:          var(--paper);
  --bg-3:          var(--ink-050);
  --bg-4:          var(--ink-100);
  --bg-dark:       var(--is-navy);
  --bg-dark-2:     var(--is-navy-2);

  --border-1:      var(--ink-200);
  --border-2:      var(--ink-300);
  --border-strong: var(--is-navy);

  /* ---------- SEMANTIC STATUS ---------- */
  --status-success: #1E8E5A;
  --status-warning: var(--is-yellow);
  --status-danger:  var(--is-red-orange);
  --status-info:    #2B6CB0;

  /* ---------- TYPOGRAPHY ---------- */
  --font-jp:       'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-display:  'Outfit', 'Noto Sans JP', system-ui, sans-serif; /* wordmark-style latin — replaces JetBrains Mono */
  --font-body:     'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-latin:    'Outfit', system-ui, sans-serif;
  --font-mono:     'Outfit', 'Noto Sans JP', system-ui, sans-serif; /* was JetBrains Mono; Outfit now covers eyebrows & numerals */

  /* Weights — IS tends to use heavy contrasts (Light/Regular vs Black) */
  --w-light:    300;
  --w-regular:  400;
  --w-medium:   500;
  --w-bold:     700;
  --w-black:    900;

  /* Type scale (decks & marketing surfaces) */
  --size-display-1: 56px;
  --size-display-2: 44px;
  --size-h1:        36px;
  --size-h2:        28px;
  --size-h3:        22px;
  --size-h4:        18px;
  --size-body-lg:   18px;
  --size-body:      16px;
  --size-body-sm:   14px;
  --size-caption:   12px;
  --size-eyebrow:   11px;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.55;
  --lh-loose:  1.75;

  --tracking-wide:   0.08em;   /* used for latin wordmark treatment */
  --tracking-normal: 0.02em;
  --tracking-tight: -0.01em;

  /* ---------- SPACING ---------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ---------- RADII ---------- */
  --r-0:   0;
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* ---------- SHADOWS ---------- */
  --shadow-xs: 0 1px 2px rgba(6, 14, 41, 0.06);
  --shadow-sm: 0 2px 6px rgba(6, 14, 41, 0.08);
  --shadow-md: 0 6px 20px rgba(6, 14, 41, 0.10);
  --shadow-lg: 0 16px 40px rgba(6, 14, 41, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06);

  /* ---------- MOTION ---------- */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.2, 1);
  --ease-entry:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-exit:     cubic-bezier(0.4, 0.0, 1, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;
}

/* =========================================================
   Semantic element styles (h1, p, code, etc.)
   ========================================================= */

html { color: var(--fg-1); background: var(--bg-1); }

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  font-feature-settings: "palt" 1; /* proportional JP spacing */
}

h1, .h1 {
  font-family: var(--font-jp);
  font-size: var(--size-h1);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-brand);
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-jp);
  font-size: var(--size-h2);
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-brand);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-jp);
  font-size: var(--size-h3);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-jp);
  font-size: var(--size-h4);
  font-weight: var(--w-medium);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0;
}
p {
  font-size: var(--size-body);
  line-height: var(--lh-normal);
  color: var(--fg-2);
  margin: 0 0 var(--sp-4) 0;
}
small, .caption {
  font-size: var(--size-caption);
  line-height: var(--lh-snug);
  color: var(--fg-3);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-accent);
}
.display-latin {
  /* The "initial state" wordmark-style treatment:
     monospaced feel, wide tracking, lowercase */
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  letter-spacing: 0.25em;
  text-transform: lowercase;
}

code, kbd, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}
code {
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--is-navy);
}
a {
  color: var(--is-orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-standard);
}
a:hover { border-bottom-color: var(--is-orange); }

hr {
  border: 0;
  border-top: 1px solid var(--border-1);
  margin: var(--sp-8) 0;
}

/* Slide-specific display scale (for 1920x1080 decks) */
.slide-display-1 { font-size: 88px; font-weight: var(--w-black); line-height: 1.1; letter-spacing: -0.02em; color: var(--is-navy); }
.slide-display-2 { font-size: 64px; font-weight: var(--w-black); line-height: 1.15; color: var(--is-navy); }
.slide-h1        { font-size: 44px; font-weight: var(--w-bold);  line-height: 1.2; color: var(--is-navy); }
.slide-body      { font-size: 26px; font-weight: var(--w-regular); line-height: 1.6; color: var(--ink-800); }

/* ============================================================
   Footer P-mark (Pマーク) - 全ページ共通
   ============================================================ */
.footer-pmark { margin-top: 28px; }
.footer-pmark-link {
  display: inline-flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 0 !important;
  text-decoration: none;
  color: rgba(255,255,255,0.85) !important;
}
.footer-pmark-link:hover { color: #fff !important; }
.footer-pmark-link:hover .footer-pmark-frame { border-color: #fff; }
.footer-pmark-frame {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: fit-content;
  padding: 8px 14px 8px 10px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}
.footer-pmark-p {
  grid-row: 1 / span 2;
  font-family: var(--font-latin);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  padding-right: 10px;
  border-right: 1.5px solid rgba(255,255,255,0.85);
}
.footer-pmark-label {
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1.2;
}
.footer-pmark-num {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
}
.footer-pmark-caption {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
