/* ====== クリティカルCSS v1.0 ====== */
/* Above the Foldで必要な最小限のスタイル */
/* パフォーマンス最適化: レンダリングブロック削減 */

/* デザインシステム - クリティカル変数のみ */
:root {
    --space-unit: 8px;
    --space-2: 4px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    
    --font-bold: 700;
    
    --color-primary-400: #f7ff0b;
    --color-primary-500: #e6f000;
    --color-text-primary: #1a202c;
    --color-gray-900: #1a1a1a;
    --color-gray-800: #2d2d2d;
    --white: #ffffff;
    
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-xl: 1200px;
}

/* ベーススタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ヘッダー（Above the Fold） */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin: 0;
    line-height: 1;
}

.site-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-top: var(--space-2);
    line-height: 1;
}

/* ナビゲーション */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    align-items: flex-start;
    text-align: left;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.main-nav a:hover {
    color: var(--color-primary-400);
}

/* ヒーローセクション（Above the Fold） */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-8);
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-tight);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

/* ボタン（クリティカル） */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--color-primary-400);
    color: var(--color-gray-900);
    font-weight: var(--font-bold);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-500);
    transform: translateY(-2px);
}

/* コンテナ */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* 隠し要素 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* レスポンシブ - モバイル */
@media (max-width: 767px) {
    .header-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .site-branding {
        gap: var(--space-2);
    }
    
    .logo-image {
        max-height: 48px;
    }
    
    .site-title {
        font-size: var(--font-size-xl);
        line-height: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
        text-align: left;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
        height: 55px;
    }
    
    .logo-image {
        max-height: 40px;
    }
    
    .site-title {
        font-size: var(--font-size-lg);
        line-height: 1;
    }
}
