/**
 * ========================================
 * CSS Variables - クリスマス特設LP
 * ========================================
 * 
 * プロジェクト全体で使用する変数を定義
 * カラー、フォント、スペーシング、アニメーション設定
 * 
 * @version 1.0.0
 * @author Senior Web Designer & Frontend Engineer
 */

:root {
  /* ========================================
   * カラーパレット - Color Pattern 09
   * ======================================== */
  
  /* プライマリーカラー - Primary Colors */
  --color-navy: #1e3a5f;           /* メインカラー: 見出し、背景、ナビゲーション */
  --color-gold: #f4c430;           /* アクセントカラー: CTAボタン、重要な要素 */
  --color-terracotta: #d4845f;     /* セカンダリーカラー: ホバー効果、リンク */
  --color-ivory: #f5f3ed;          /* 背景カラー: セクション背景 */
  --color-white: #ffffff;          /* テキストカラー: 白文字、カード背景 */
  
  /* カラーバリエーション - Color Variations */
  --color-navy-light: #2a5080;     /* ネイビー明るめ: ホバー時 */
  --color-navy-dark: #152840;      /* ネイビー暗め: フッター、強調背景 */
  --color-navy-alpha-90: rgba(30, 58, 95, 0.9);   /* 半透明ネイビー: オーバーレイ */
  --color-navy-alpha-80: rgba(30, 58, 95, 0.8);   /* 半透明ネイビー: モーダル背景 */
  
  --color-gold-light: #f7d66a;     /* ゴールド明るめ: ホバー時、グラデーション */
  --color-gold-dark: #d4a617;      /* ゴールド暗め: アクティブ状態 */
  --color-gold-alpha-20: rgba(244, 196, 48, 0.2);  /* 半透明ゴールド: 背景装飾 */
  
  --color-terracotta-light: #e09c7f; /* テラコッタ明るめ: ホバー時 */
  --color-terracotta-dark: #b86a47;  /* テラコッタ暗め: アクティブ状態 */
  
  /* グレースケール - Grayscale */
  --color-gray-100: #f8f9fa;       /* 最も明るいグレー: 背景 */
  --color-gray-200: #e9ecef;       /* 明るいグレー: ボーダー */
  --color-gray-300: #dee2e6;       /* グレー: 区切り線 */
  --color-gray-400: #ced4da;       /* ミドルグレー: プレースホルダー */
  --color-gray-500: #adb5bd;       /* グレー: アイコン、非活性テキスト */
  --color-gray-600: #6c757d;       /* ダークグレー: セカンダリーテキスト */
  --color-gray-700: #495057;       /* より暗いグレー: 本文テキスト */
  --color-gray-800: #343a40;       /* 非常に暗いグレー: 見出し */
  --color-gray-900: #212529;       /* 最も暗いグレー: 強調テキスト */
  
  /* セマンティックカラー - Semantic Colors */
  --color-success: #28a745;        /* 成功: 予約完了メッセージ */
  --color-error: #dc3545;          /* エラー: バリデーションエラー */
  --color-warning: #ffc107;        /* 警告: 注意事項 */
  --color-info: #17a2b8;           /* 情報: 補足情報 */
  
  /* ========================================
   * タイポグラフィ - Typography
   * ======================================== */
  
  /* フォントファミリー - Font Families */
  --font-serif-en: 'Playfair Display', serif;           /* 英語見出し: エレガント */
  --font-serif-jp: 'Noto Serif JP', serif;              /* 日本語見出し: 格調高い */
  --font-sans-jp: 'Noto Sans JP', sans-serif;           /* 日本語本文: 可読性 */
  --font-accent: 'Cormorant Garamond', serif;           /* アクセント: 装飾的 */
  
  /* システムフォントフォールバック - System Font Fallback */
  --font-system-serif: -apple-system-ui-serif, 'Times New Roman', 'Yu Mincho', YuMincho, serif;
  --font-system-sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  
  /* フォントファミリー統合 - Combined Font Families */
  --font-heading-en: var(--font-serif-en), var(--font-system-serif);
  --font-heading-jp: var(--font-serif-jp), var(--font-system-serif);
  --font-body: var(--font-sans-jp), var(--font-system-sans);
  --font-decorative: var(--font-accent), var(--font-system-serif);
  
  /* フォントサイズ - Font Sizes (モバイルファースト: 375px基準) */
  --font-size-xs: 0.75rem;         /* 12px - キャプション、注釈 */
  --font-size-sm: 0.875rem;        /* 14px - 小さめテキスト */
  --font-size-base: 1rem;          /* 16px - 基本テキストサイズ */
  --font-size-md: 1.125rem;        /* 18px - リード文 */
  --font-size-lg: 1.25rem;         /* 20px - 小見出し */
  --font-size-xl: 1.5rem;          /* 24px - 中見出し */
  --font-size-2xl: 1.875rem;       /* 30px - 大見出し */
  --font-size-3xl: 2.25rem;        /* 36px - 特大見出し */
  --font-size-4xl: 3rem;           /* 48px - ヒーロー見出し(モバイル) */
  --font-size-5xl: 3.75rem;        /* 60px - ヒーロー見出し(タブレット) */
  --font-size-6xl: 4.5rem;         /* 72px - ヒーロー見出し(デスクトップ) */
  
  /* フォントウェイト - Font Weights */
  --font-weight-light: 300;        /* ライト */
  --font-weight-regular: 400;      /* レギュラー */
  --font-weight-medium: 500;       /* ミディアム */
  --font-weight-semibold: 600;     /* セミボールド */
  --font-weight-bold: 700;         /* ボールド */
  --font-weight-extrabold: 800;    /* エクストラボールド */
  --font-weight-black: 900;        /* ブラック */
  
  /* 行高 - Line Heights */
  --line-height-tight: 1.2;        /* タイト: 見出し用 */
  --line-height-snug: 1.375;       /* やや狭め: サブ見出し */
  --line-height-normal: 1.5;       /* 通常: 通常テキスト */
  --line-height-relaxed: 1.75;     /* ゆったり: リード文 */
  --line-height-loose: 2;          /* ルーズ: 読みやすさ重視 */
  
  /* レターケーシング - Letter Spacing */
  --letter-spacing-tight: -0.02em; /* タイト: 大きな見出し */
  --letter-spacing-normal: 0;      /* 通常 */
  --letter-spacing-wide: 0.05em;   /* ワイド: 小さなテキスト */
  --letter-spacing-wider: 0.1em;   /* より広く: 装飾的テキスト */
  
  /* ========================================
   * スペーシング - Spacing
   * ======================================== */
  
  /* 基本スペーシング - Base Spacing (8pxグリッドシステム) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* セクションスペーシング - Section Spacing */
  --section-padding-mobile: var(--space-16);    /* 64px - モバイル */
  --section-padding-tablet: var(--space-20);    /* 80px - タブレット */
  --section-padding-desktop: var(--space-24);   /* 96px - デスクトップ */
  
  /* コンテナ - Container */
  --container-max-width: 1200px;                /* 最大コンテナ幅 */
  --container-padding: var(--space-4);          /* コンテナ内側余白(モバイル) */
  --container-padding-tablet: var(--space-6);   /* コンテナ内側余白(タブレット) */
  --container-padding-desktop: var(--space-8);  /* コンテナ内側余白(デスクトップ) */
  
  /* ========================================
   * レイアウト - Layout
   * ======================================== */
  
  /* ブレークポイント - Breakpoints (メディアクエリで使用) */
  --breakpoint-sm: 576px;    /* スマートフォン横向き */
  --breakpoint-md: 768px;    /* タブレット縦向き */
  --breakpoint-lg: 1024px;   /* タブレット横向き・小型ノートPC */
  --breakpoint-xl: 1440px;   /* デスクトップ */
  
  /* Z-Index階層 - Z-Index Layers */
  --z-index-base: 1;
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-tooltip: 700;
  
  /* ========================================
   * ボーダー - Borders
   * ======================================== */
  
  /* ボーダー幅 - Border Widths */
  --border-width-thin: 1px;
  --border-width-normal: 2px;
  --border-width-thick: 4px;
  
  /* ボーダー半径 - Border Radius */
  --border-radius-sm: 4px;     /* 小: ボタン、入力欄 */
  --border-radius-md: 8px;     /* 中: カード */
  --border-radius-lg: 12px;    /* 大: モーダル、大きなカード */
  --border-radius-xl: 16px;    /* 特大: ヒーローセクション */
  --border-radius-full: 9999px; /* 完全な円形: アバター、バッジ */
  
  /* ========================================
   * シャドウ - Shadows
   * ======================================== */
  
  /* ボックスシャドウ - Box Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* カラーシャドウ - Colored Shadows (クリスマス装飾用) */
  --shadow-gold: 0 4px 12px rgba(244, 196, 48, 0.3);
  --shadow-gold-glow: 0 0 20px rgba(244, 196, 48, 0.5);
  --shadow-navy: 0 4px 12px rgba(30, 58, 95, 0.3);
  
  /* テキストシャドウ - Text Shadows */
  --text-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --text-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2);
  --text-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
  --text-shadow-glow: 0 0 10px rgba(255, 255, 255, 0.8);
  
  /* ========================================
   * トランジション - Transitions
   * ======================================== */
  
  /* トランジション持続時間 - Transition Durations */
  --transition-fast: 150ms;
  --transition-base: 250ms;
  --transition-slow: 350ms;
  --transition-slower: 500ms;
  
  /* トランジションイージング - Transition Easings */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 統合トランジション - Combined Transitions */
  --transition-all: all var(--transition-base) var(--ease-in-out);
  --transition-color: color var(--transition-base) var(--ease-in-out);
  --transition-bg: background-color var(--transition-base) var(--ease-in-out);
  --transition-transform: transform var(--transition-base) var(--ease-out);
  --transition-opacity: opacity var(--transition-base) var(--ease-in-out);
  --transition-shadow: box-shadow var(--transition-base) var(--ease-in-out);
  
  /* ========================================
   * アニメーション - Animations
   * ======================================== */
  
  /* アニメーション持続時間 - Animation Durations */
  --animation-fast: 200ms;
  --animation-base: 400ms;
  --animation-slow: 600ms;
  --animation-slower: 1000ms;
  
  /* 雪エフェクト設定 - Snow Effect Settings (Particles.js用) */
  --snow-particle-count: 80;       /* 雪の粒子数 */
  --snow-opacity: 0.7;             /* 雪の透明度 */
  --snow-size-min: 2;              /* 最小サイズ */
  --snow-size-max: 6;              /* 最大サイズ */
  
  /* ========================================
   * その他 - Miscellaneous
   * ======================================== */
  
  /* オーバーレイ - Overlays */
  --overlay-light: rgba(255, 255, 255, 0.9);
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-navy: var(--color-navy-alpha-90);
  
  /* フォーカスリング - Focus Ring (アクセシビリティ) */
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-gold);
  
  /* 最大幅 - Max Widths */
  --max-width-prose: 65ch;         /* 読みやすいテキスト幅 */
  --max-width-content: 800px;      /* コンテンツ最大幅 */
}

/**
 * ========================================
 * ダークモード対応（将来の拡張用）
 * ========================================
 * 必要に応じて以下の形式で追加可能:
 * 
 * @media (prefers-color-scheme: dark) {
 *   :root {
 *     --color-navy: #2a5080;
 *     --color-background: #1a1a1a;
 *   }
 * }
 */

/**
 * ========================================
 * アクセシビリティ - モーション設定
 * ========================================
 * ユーザーがモーションを減らす設定をしている場合
 */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
    --animation-fast: 0ms;
    --animation-base: 0ms;
    --animation-slow: 0ms;
    --animation-slower: 0ms;
  }
}
