/**
 * variables.css
 * Design System: Trust & Authority — Aoyama Law Office
 * Generated from: design-system/MASTER.md
 */

:root {
  /* ============================================================
     Color Palette — Authority navy + trust gold
     ============================================================ */

  /* Primary: 権威のネイビー */
  --color-primary: #1E3A8A;

  /* Secondary: やや明るいネイビー（アクセント・ホバー） */
  --color-secondary: #1E40AF;

  /* CTA / Accent: 信頼のアンバーゴールド */
  --color-cta: #B45309;
  --color-cta-hover: #92400E;

  /* Background: 落ち着いたオフホワイト */
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F1F5F9;

  /* Text */
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-subtle: #94A3B8;

  /* Border */
  --color-border: #E2E8F0;
  --color-border-focus: #1E3A8A;

  /* Feedback */
  --color-success: #059669;
  --color-error: #DC2626;
  --color-warning: #D97706;

  /* Trust badge */
  --color-badge: #B45309;
  --color-badge-bg: #FEF3C7;

  /* ============================================================
     Typography
     ============================================================ */

  /* Heading: EB Garamond — 格式・権威・法律らしさ */
  --font-heading: 'EB Garamond', 'Georgia', serif;

  /* Body: Lato — 読みやすさ・清潔感 */
  --font-body: 'Lato', 'Helvetica Neue', 'Arial', sans-serif;

  /* Font sizes — モバイルファースト */
  --font-size-xs:   0.75rem;   /* 12px */
  --font-size-sm:   0.875rem;  /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg:   1.125rem;  /* 18px */
  --font-size-xl:   1.25rem;   /* 20px */
  --font-size-2xl:  1.5rem;    /* 24px */
  --font-size-3xl:  1.875rem;  /* 30px */
  --font-size-4xl:  2.25rem;   /* 36px */
  --font-size-5xl:  3rem;      /* 48px */

  /* Font weights */
  --font-weight-light:   300;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;

  /* Line heights */
  --line-height-tight:  1.25;
  --line-height-snug:   1.5;
  --line-height-base:   1.75;
  --line-height-loose:  2;

  /* Letter spacing */
  --letter-spacing-tight:  -0.025em;
  --letter-spacing-normal:  0;
  --letter-spacing-wide:    0.05em;
  --letter-spacing-wider:   0.1em;

  /* ============================================================
     Spacing — MASTER.md 定義
     ============================================================ */

  --space-xs:  0.25rem;   /* 4px  — タイトなギャップ */
  --space-sm:  0.5rem;    /* 8px  — アイコン・インライン */
  --space-md:  1rem;      /* 16px — 標準パディング */
  --space-lg:  1.5rem;    /* 24px — セクション内パディング */
  --space-xl:  2rem;      /* 32px — 大きなギャップ */
  --space-2xl: 3rem;      /* 48px — セクションマージン */
  --space-3xl: 4rem;      /* 64px — ヒーローパディング */

  /* ============================================================
     Shadows — MASTER.md 定義
     ============================================================ */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* ============================================================
     Border Radius
     ============================================================ */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ============================================================
     Transitions
     ============================================================ */

  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;

  /* ============================================================
     Layout
     ============================================================ */

  --container-max: 1200px;
  --container-padding: var(--space-md);

  /* ============================================================
     Z-index
     ============================================================ */

  --z-base:    0;
  --z-above:   10;
  --z-dropdown: 40;
  --z-nav:     50;
  --z-modal:   100;
  --z-toast:   200;
}

/* Responsive font scaling */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1.0625rem; /* 17px */
    --container-padding: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  :root {
    --font-size-base: 1.125rem; /* 18px */
    --container-padding: var(--space-xl);
  }
}
