/* ===========================================
   Design Tokens
   AirElixir LP — クワイエット・インターフェース哲学
   =========================================== */

:root {
  /* ---------- Color Palette ---------- */
  --color-base: #FFFFFF;              /* ピュア・ホワイト：純粋さ */
  --color-text: #00638A;              /* ディープ・ウォーター：知性・本文テキスト */
  --color-text-sub: #4A6B7A;          /* サブテキスト */
  --color-text-muted: #7A8E99;        /* キャプション・補助 */
  --color-accent-sky: #22BEF0;        /* スカイ・ブルー：大気と信頼 */
  --color-accent-lime: #B3D235;       /* ライム・グリーン：再生可能性・CTA */
  --color-accent-lime-hover: #9DBA28;
  --color-bg-soft: #F5FAFC;           /* セクション交互背景 */
  --color-bg-deep: #003D54;           /* フッターなど濃色背景 */
  --color-border: #E1ECF0;
  --color-shadow: rgba(0, 99, 138, 0.08);
  --color-shadow-strong: rgba(0, 99, 138, 0.16);
  --color-overlay: rgba(0, 61, 84, 0.6);
  --color-success: #4CAF50;
  --color-error: #E53935;

  /* ---------- Typography ---------- */
  /* 見出し: 明朝体（Shippori Mincho B1）で和の上質感、英数字は Cormorant 系で品格 */
  --font-display: 'Shippori Mincho B1', 'Cormorant Garamond', 'Noto Serif JP', 'YuMincho', 'Yu Mincho', serif;
  --font-heading: 'Shippori Mincho B1', 'Cormorant Garamond', 'Noto Serif JP', 'YuMincho', serif;
  --font-body: 'Inter', 'Noto Sans JP', 'Roboto', system-ui, sans-serif;
  --font-sans: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3: clamp(1.375rem, 2.5vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.8vw, 1.375rem);
  --fs-body: clamp(1rem, 1.6vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-base: 1.7;
  --lh-relaxed: 1.85;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --tracking-tight: -0.02em;
  --tracking-base: 0;
  --tracking-wide: 0.04em;
  --tracking-widest: 0.12em;

  /* ---------- Spacing (8px base) ---------- */
  --space-0: 0;
  --space-1: 0.5rem;     /* 8px */
  --space-2: 1rem;       /* 16px */
  --space-3: 1.5rem;     /* 24px */
  --space-4: 2rem;       /* 32px */
  --space-5: 2.5rem;     /* 40px */
  --space-6: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-10: 5rem;      /* 80px */
  --space-12: 6rem;      /* 96px */
  --space-16: 8rem;      /* 128px */
  --space-20: 10rem;     /* 160px */

  /* ---------- Layout ---------- */
  --container-max: 1440px;
  --container-narrow: 880px;
  --container-wide: 1600px;
  --container-padding: clamp(1.125rem, 4vw, 2.5rem);

  --section-padding-y: clamp(1.75rem, 5vw, 4rem);

  /* iPhone セーフエリア（ノッチ・ホームインジケーター） */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* タップターゲット最小サイズ（Apple HIG: 44pt） */
  --tap-min: 44px;

  /* ---------- Radius ---------- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---------- Shadow ---------- */
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 16px 48px var(--color-shadow-strong);
  --shadow-glow: 0 0 32px rgba(34, 190, 240, 0.25);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 560ms;
  --duration-deliberate: 800ms;

  /* ---------- Z-Index ---------- */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
