/* ================================================
   DESIGN TOKENS
   ================================================ */

:root {
  /* === Brand Colors === */
  --color-crimson:       #B8293D;
  --color-crimson-dark:  #8E1F2F;
  --color-crimson-light: #E8D0D4;

  --color-ink:           #1C1C28;
  --color-ink-soft:      #2D2D3D;
  --color-ink-muted:     #6B6B7B;

  --color-gold:          #C49A2A;
  --color-gold-soft:     #E8D9A8;

  /* === Neutral === */
  --color-bg:            #FAF9F6;
  --color-bg-warm:       #F5F0E8;
  --color-bg-card:       #FFFFFF;
  --color-border:        #E5E0D8;
  --color-border-light:  #F0ECE4;

  /* === Text === */
  --color-text:          #2C2C2C;
  --color-text-secondary:#6B6B7B;
  --color-text-on-dark:  #F5F0E8;

  /* === Semantic === */
  --color-success:       #2D7A4F;
  --color-warning:       #C47F17;
  --color-error:         #C43333;
  --color-info:          #2A6CB8;

  /* === Typography === */
  --font-heading-en: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body-en:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading-ja: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  /* 英日混在の見出し用（欧文=Cormorant / 和文=Noto Serif JP にグリフ単位でフォールバック） */
  --font-heading-mixed: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --font-body-ja:    'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  /* === Type Scale (Major Third 1.250) === */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* === Line Height === */
  --leading-tight:   1.25;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* === Letter Spacing === */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;

  /* === Layout === */
  --header-height: 60px;
  
  /* === Spacing === */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* === Shadows === */
  --shadow-sm:  0 1px 3px rgba(28, 28, 40, 0.06);
  --shadow-md:  0 4px 12px rgba(28, 28, 40, 0.08);
  --shadow-lg:  0 8px 24px rgba(28, 28, 40, 0.10);
  --shadow-xl:  0 16px 48px rgba(28, 28, 40, 0.12);

  /* === Radius === */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* === Transitions === */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;

  /* === Layout === */
  --container-sm:  640px;
  --container-md:  960px;
  --container-lg:  1200px;
  --container-xl:  1400px;
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

body {
  font-family: var(--font-body-en);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading-en);
  line-height: var(--leading-tight);
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h4 {
  font-size: var(--text-lg);
  font-weight: 500;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  h2 {
    font-size: var(--text-3xl);
  }
}

:focus-visible {
  outline: 2px solid var(--color-crimson);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-crimson-light);
  color: var(--color-ink);
}
