/* ==================================================
   Base Typography & Colors
   ================================================== */

:root {
    /* Colors */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-darker: #047857;
    --secondary-blue: #3b82f6;
    --secondary-blue-dark: #1d4ed8;
    --accent-purple: #667eea;
    --accent-purple-dark: #764ba2;
    --warning-yellow: #fbbf24;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --success-green: #22c55e;
    
    /* 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;
    
    /* Background colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f0fdf4;
    --bg-green-light: #ecfdf5;
    --bg-blue-light: #eff6ff;
    --bg-purple-light: #f3f4f6;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-secondary: 'Poppins', 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --radius-xl: 1.6rem;
    --radius-2xl: 2rem;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-green: 0 8px 32px rgba(16, 185, 129, 0.3);
    --shadow-blue: 0 8px 32px rgba(59, 130, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--gray-800);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.0rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-green-dark);
}

a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Focus visible for better keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Selection colors */
::selection {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--primary-green-darker);
}

/* Responsive typography scaling */
@media (min-width: 481px) {
    h1 { font-size: 3.6rem; }
    h2 { font-size: 3.2rem; }
    h3 { font-size: 2.8rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 4.4rem; }
    h2 { font-size: 3.8rem; }
    h3 { font-size: 3.2rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 4.8rem; }
    h2 { font-size: 4.2rem; }
    h3 { font-size: 3.6rem; }
}

@media (min-width: 1440px) {
    h1 { font-size: 5.6rem; }
    h2 { font-size: 4.8rem; }
    h3 { font-size: 4.0rem; }
}