/* 
 * Base Styles - Variables, Reset & Foundations
 * 休眠特許マッチング - yasutake.net
 * PC版優先設計
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette - 重厚感のある権威的カラー */
    --primary: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary: #047857;
    --secondary-hover: #059669;
    --accent: #DC2626;
    --accent-hover: #B91C1C;
    --gold: #d97706;
    --gold-hover: #b45309;
    --dark-navy: #0f172a;
    
    /* Neutral Colors */
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    
    /* Typography - 重厚感のある大きめフォント */
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 22px;
    --font-size-xl: 28px;
    --font-size-2xl: 36px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;
    --font-size-5xl: 72px;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows - より深く重厚感のあるシャドウ */
    --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.08);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.15);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.15);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.35);
    --text-shadow: 0 2px 4px rgb(0 0 0 / 0.3);
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 75px;
}

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

li {
    list-style-type: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== BASE TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { 
    font-size: var(--font-size-4xl);
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: var(--font-size-2xl);
    position: relative;
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 70%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--primary) 70%, var(--secondary) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

/* Centered h2 headings with centered decorative bar */
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 { 
    font-size: var(--font-size-2xl);
    color: var(--primary);
}

h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-white { color: var(--white); }
.text-gray-600 { color: var(--gray-600); }
.text-primary { color: var(--primary); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }