/* ==============================================
   Modern Sophistication - プロフェッショナルデザインシステム
   ============================================== */

:root {
    /* ==============================================
       洗練されたカラーパレット
       ============================================== */
    
    /* プライマリカラー - Deep Ocean Blue */
    --primary-50: #f0f4f8;
    --primary-100: #d9e2ec;
    --primary-200: #bcccdc;
    --primary-300: #9fb3c8;
    --primary-400: #829ab1;
    --primary-500: #627d98;  /* メイン */
    --primary-600: #486581;
    --primary-700: #334e68;
    --primary-800: #243b53;  /* ダーク */
    --primary-900: #102a43;
    
    /* アクセントカラー - Ocean Blue */
    --accent-50: #eff6ff;
    --accent-100: #dbeafe;
    --accent-200: #bfdbfe;
    --accent-300: #93c5fd;
    --accent-400: #60a5fa;
    --accent-500: #3b82f6;  /* メイン */
    --accent-600: #2563eb;
    --accent-700: #1d4ed8;  /* ダーク */
    --accent-800: #1e40af;
    --accent-900: #1e3a8a;
    
    /* CTA - Vibrant Coral */
    --cta-50: #fff5f5;
    --cta-100: #fed7d7;
    --cta-200: #feb2b2;
    --cta-300: #fc8181;
    --cta-400: #f56565;
    --cta-500: #e53e3e;
    --cta-600: #c53030;
    --cta-700: #9b2c2c;
    --cta-800: #822727;
    --cta-900: #63171b;

    /* CTAカラー - Premium Gradient Base */
    --cta-red-50: #fff0f3;
    --cta-red-100: #ffd6e0;
    --cta-red-200: #ffb3c6;
    --cta-red-300: #ff8fab;
    --cta-red-400: #ff5a8a;
    --cta-red-500: #ff2e6c;
    --cta-red-600: #ff0a54;  /* メイン */
    --cta-red-700: #e60049;  /* ホバー */
    --cta-red-800: #c10041;
    --cta-red-900: #7a0030;

    /* Success Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --success-800: #166534;
    --success-900: #14532d;

    /* Warning Amber - Refined */
    --warning-50: #fefce8;
    --warning-100: #fef9c3;
    --warning-200: #fef08a;
    --warning-300: #fde047;
    --warning-400: #facc15;
    --warning-500: #eab308;
    --warning-600: #ca8a04;
    --warning-700: #a16207;
    --warning-800: #854d0e;
    --warning-900: #713f12;

    /* Professional Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Surface Colors */
    --surface-primary: #ffffff;
    --surface-secondary: #f9fafb;
    --surface-tertiary: #f3f4f6;
    
    /* テキストカラー */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-inverse: #ffffff;
    
    /* ボーダーカラー */
    --border-light: #e5e7eb;
    --border-default: #d1d5db;
    --border-dark: #9ca3af;
    
    /* フォント変数 */
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* フォントウェイト */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* 行間 */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;
    --leading-loose: 2;
    
    /* トランジション */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Premium Shadows - Sophisticated Depth */
    --shadow-xs: 0 0.5px 2px rgba(0, 0, 0, 0.07), 0 1px 1px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 0px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 0px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08), 0 0px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.08), 0 0px 16px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.12), 0 0px 24px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0px 20px rgba(168, 85, 247, 0.4);

    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius System - Modern Curves */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-default: 0.75rem; /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-2xl: 2rem;      /* 32px */
    --radius-3xl: 3rem;      /* 48px */
    --radius-full: 9999px;

    /* Typography Scale - Mobile First (14px base) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 0.875rem; /* 14px */
    --text-lg: 1rem;       /* 16px */
    --text-xl: 1.125rem;   /* 18px */
    --text-2xl: 1.25rem;   /* 20px */
    --text-3xl: 1.5rem;    /* 24px */
    --text-4xl: 1.875rem;  /* 30px */
    --text-5xl: 2.25rem;   /* 36px */
    --text-6xl: 3rem;      /* 48px */
    --text-7xl: 3.75rem;   /* 60px */
    --text-8xl: 4.5rem;    /* 72px */
    --text-9xl: 6rem;      /* 96px */
}

/* Mobile Spacing System - iPhone SE (320px) optimized */
@media (max-width: 480px) {
    :root {
        /* Consistent mobile spacing */
        --mobile-space-xs: 8px;
        --mobile-space-sm: 12px;
        --mobile-space-md: 16px;
        --mobile-space-lg: 24px;
        --mobile-space-xl: 32px;
        --mobile-space-2xl: 48px;
    }
}

/* Tablet and Desktop: Larger font sizes */
@media (min-width: 768px) {
    :root {
        /* Typography Scale - Desktop (16px base) */
        --text-base: 1rem;      /* 16px */
        --text-lg: 1.125rem;    /* 18px */
        --text-xl: 1.25rem;     /* 20px */
        --text-2xl: 1.5rem;     /* 24px */
        --text-3xl: 1.875rem;   /* 30px */
        --text-4xl: 2.25rem;    /* 36px */
        --text-5xl: 3rem;       /* 48px */
        --text-6xl: 3.75rem;    /* 60px */
        --text-7xl: 4.5rem;     /* 72px */
    }
}

/* Legacy color variables for backward compatibility */
:root {
    --primary-color: var(--accent-600);
    --primary-dark: var(--accent-700);
    --secondary-color: var(--cta-600);
    --secondary-dark: var(--cta-700);
    --background-primary: var(--surface-primary);
    --background-secondary: var(--surface-secondary);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border-color: var(--gray-200);
    --success-color: var(--success-500);
    --warning-color: var(--warning-500);
}