/* リーガレンジ ダークテーマ専用CSS */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カラー変数 - ダークテーマ専用 */
:root {
    /* 背景色（夜空のグラデーション） */
    --bg-darkest: #0A1628;      /* 最も深い背景 */
    --bg-dark: #162447;         /* メイン背景 */
    --bg-medium: #1F3A5F;       /* カード背景 */
    --bg-light: #2D4059;        /* 浮き上がった要素 */
    
    /* プライマリーカラー（月光ブルー） */
    --primary: #4A90E2;         /* メインアクセント */
    --primary-light: #6BB6FF;   /* ホバー時 */
    --primary-dark: #3A7BC8;    /* アクティブ時 */
    
    /* セカンダリーカラー（星明かりゴールド） */
    --secondary: #FFD700;       /* 重要なアクセント */
    --secondary-light: #FFC107; /* サブアクセント */
    --secondary-dark: #F59E0B;  /* 押下時 */
    
    /* テキストカラー */
    --text-primary: #FFFFFF;    /* メインテキスト */
    --text-secondary: #E2E8F0;  /* サブテキスト */
    --text-muted: #94A3B8;      /* 補助テキスト */
    --text-disabled: #475569;   /* 無効テキスト */
    
    /* 機能色 */
    --success: #10B981;
    --success-light: #34D399;
    --success-dark: #059669;
    
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --warning-dark: #D97706;
    
    --error: #EF4444;
    --error-light: #F87171;
    --error-dark: #DC2626;
    
    --info: #3B82F6;
    --info-light: #60A5FA;
    --info-dark: #2563EB;
    
    /* ボーダー色 */
    --border-default: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --border-focus: var(--primary);
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
}

/* 星空背景エフェクト */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 30% 80%, white, transparent);
    background-size: 300px 300px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
.header {
    background: rgba(22, 36, 71, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-default);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}


.btn-secondary {
    background: var(--secondary);
    color: var(--bg-darkest);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* セクション */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: rgba(31, 58, 95, 0.3);
}

/* 見出し */
h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* カード */
.card {
    background: rgba(31, 58, 95, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(74, 144, 226, 0.2);
}

/* グラスモーフィズム（ダークテーマ版） */
.glass {
    background: rgba(31, 58, 95, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* 光る効果 */
.glow {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.glow-gold {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* フッター */
.footer {
    background: var(--bg-darkest);
    color: var(--text-muted);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-default);
}

.footer h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* グリッド */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* ユーティリティ */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--secondary);
}

.text-muted {
    color: var(--text-muted);
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 48px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 48px; }