/**
 * AdQuecto Design System - CSS Variables
 * 究極のデザインシステム変数定義
 * Version: 2.0 Ultimate
 */

:root {
    /* ===========================================
       Color System - ブランドカラーパレット
    =========================================== */
    
    /* Primary Colors - 深みのあるブルー */
    --color-deep-blue: #0D2B5C;
    --color-primary-blue: #1E4B8E;
    --color-light-blue: #2A5F9E;
    --color-lighter-blue: #4A7DB8;
    --color-sky-blue: #6B9DD0;
    
    /* Accent Colors - 知的なゴールド */
    --color-accent-gold: #C9A227;
    --color-light-gold: #E8D48A;
    --color-dark-gold: #A88920;
    --color-gold-gradient: linear-gradient(135deg, #C9A227 0%, #E8D48A 50%, #C9A227 100%);
    --color-gold-shimmer: linear-gradient(90deg, #C9A227 0%, #F0E68C 50%, #C9A227 100%);
    
    /* Background Colors */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8FAFC;
    --color-bg-tertiary: #F1F5F9;
    --color-bg-light-blue: #EEF4FA;
    --color-bg-cream: #FEFDFB;
    --color-bg-dark: #0D2B5C;
    --color-bg-darker: #081B3D;
    
    /* Text Colors */
    --color-text-primary: #1A202C;
    --color-text-secondary: #4A5568;
    --color-text-muted: #718096;
    --color-text-light: #A0AEC0;
    --color-text-inverse: #FFFFFF;
    --color-text-gold: #B8941F;
    
    /* UI Colors */
    --color-border: #E2E8F0;
    --color-border-light: #EDF2F7;
    --color-border-dark: #CBD5E0;
    --color-divider: rgba(13, 43, 92, 0.08);
    --color-overlay: rgba(13, 43, 92, 0.6);
    --color-overlay-light: rgba(13, 43, 92, 0.3);
    --color-glass: rgba(255, 255, 255, 0.85);
    
    /* Status Colors */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;

    /* ===========================================
       Typography - 洗練されたタイポグラフィ
    =========================================== */
    
    --font-family-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'メイリオ', sans-serif;
    --font-family-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-display: 'Inter', var(--font-family-ja);
    --font-family-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
    
    /* Font Sizes - Mobile First */
    --font-size-2xs: 0.625rem;   /* 10px */
    --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: 2.75rem;    /* 44px */
    --font-size-5xl: 3.25rem;    /* 52px */
    --font-size-6xl: 4rem;       /* 64px */
    
    /* 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;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tighter: -0.04em;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* ===========================================
       Spacing - 統一された余白システム
    =========================================== */
    
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;  /* 2px */
    --space-1: 0.25rem;     /* 4px */
    --space-1-5: 0.375rem;  /* 6px */
    --space-2: 0.5rem;      /* 8px */
    --space-2-5: 0.625rem;  /* 10px */
    --space-3: 0.75rem;     /* 12px */
    --space-3-5: 0.875rem;  /* 14px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-7: 1.75rem;     /* 28px */
    --space-8: 2rem;        /* 32px */
    --space-9: 2.25rem;     /* 36px */
    --space-10: 2.5rem;     /* 40px */
    --space-11: 2.75rem;    /* 44px */
    --space-12: 3rem;       /* 48px */
    --space-14: 3.5rem;     /* 56px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-28: 7rem;       /* 112px */
    --space-32: 8rem;       /* 128px */
    --space-36: 9rem;       /* 144px */
    --space-40: 10rem;      /* 160px */

    /* ===========================================
       Layout - レイアウト設定
    =========================================== */
    
    --container-max-width: 1200px;
    --container-padding: var(--space-5);
    --content-max-width: 720px;
    
    --header-height: 64px;
    --header-height-desktop: 80px;
    --footer-height: auto;
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-4xl: 32px;
    --radius-full: 9999px;

    /* ===========================================
       Shadows - 洗練されたシャドウ
    =========================================== */
    
    --shadow-xs: 0 1px 2px rgba(13, 43, 92, 0.04);
    --shadow-sm: 0 2px 4px rgba(13, 43, 92, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 43, 92, 0.08);
    --shadow-lg: 0 8px 24px rgba(13, 43, 92, 0.10);
    --shadow-xl: 0 16px 40px rgba(13, 43, 92, 0.12);
    --shadow-2xl: 0 24px 64px rgba(13, 43, 92, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(13, 43, 92, 0.06);
    
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);
    --shadow-gold-hover: 0 8px 32px rgba(201, 162, 39, 0.35);
    --shadow-gold-glow: 0 0 40px rgba(201, 162, 39, 0.3);
    
    --shadow-blue: 0 4px 20px rgba(30, 75, 142, 0.2);
    --shadow-blue-hover: 0 8px 32px rgba(30, 75, 142, 0.25);
    
    --shadow-card: 0 4px 6px -1px rgba(13, 43, 92, 0.05), 0 2px 4px -1px rgba(13, 43, 92, 0.03);
    --shadow-card-hover: 0 20px 40px -12px rgba(13, 43, 92, 0.15);

    /* ===========================================
       Animation - スムーズなアニメーション
    =========================================== */
    
    --duration-instant: 50ms;
    --duration-faster: 100ms;
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
    --duration-slowest: 1000ms;
    
    --ease-linear: linear;
    --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.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* ===========================================
       Z-Index - 重なり順の管理
    =========================================== */
    
    --z-negative: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 900;
    --z-overlay: 950;
    --z-modal: 1000;
    --z-popover: 1100;
    --z-tooltip: 1200;
    --z-max: 9999;
}

/* ===========================================
   Responsive Typography & Spacing
=========================================== */

@media (min-width: 640px) {
    :root {
        --container-padding: var(--space-6);
    }
}

@media (min-width: 768px) {
    :root {
        --container-padding: var(--space-8);
        --font-size-2xl: 2rem;
        --font-size-3xl: 2.5rem;
        --font-size-4xl: 3rem;
        --font-size-5xl: 3.75rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: var(--space-10);
        --header-height: var(--header-height-desktop);
        --font-size-3xl: 2.75rem;
        --font-size-4xl: 3.5rem;
        --font-size-5xl: 4.25rem;
        --font-size-6xl: 5rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-max-width: 1280px;
    }
}

/* ===========================================
   Reduced Motion Support
=========================================== */

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-instant: 0ms;
        --duration-faster: 0ms;
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
        --duration-slowest: 0ms;
    }
}
