@charset "UTF-8";

/* --- 1. 共通デザイン変数 (Dark Theme) --- */
:root {
    --bg-color: #11151c;
    --card-bg: #1e2532;
    --text-main: #edf2f7;
    --text-sub: #a0aec0; /* index.htmlの#718096に近い色で統一 */
    --gold: #d4af37;
    --gold-dim: #b59020;
    --accent-blue: #3182ce;
    --border: #2d3748;
    
    /* index.html由来のバッジ・プレイヤー用変数 */
    --accent-yellow: #975a16;
    --accent-water: #2a4365;
    --accent-purple: #553c9a;
    --accent-green: #22543d;
    --accent-red: #e53e3e;
    --accent-orange: #dd6b20;
    --player-bg: #1a202c;
    --waveform-bg: #4a5568;
}

/* --- 2. リセットとベーススタイル --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-y: scroll; /* ページ遷移時の横ズレ防止 */
    background-color: var(--bg-color);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: transparent; /* htmlに背景色を委譲するためtransparent */
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- 3. 背景ロゴの透かし設定 --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/WRC_logo.png'); /* archive.htmlのArchive_logo.pngは個別で上書きします */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

/* --- 4. ヘッダー共通設定 --- */
header {
    background-color: rgba(17, 21, 28, 0.95);
    height: 85px;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo { 
    font-size: 1.4rem; 
    font-weight: bold; 
    color: #fff; 
    text-decoration: none; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span { color: var(--gold); }
.logo img { height: 60px; width: auto; } /* HOME.htmlで小さくしたい場合は個別で指定します */

.nav-links { display: flex; gap: 15px; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--text-sub); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* β版バッジ */
.alpha-badge {
    font-size: 0.8rem;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    white-space: nowrap;
}

/* --- 5. メインコンテナ --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* --- 6. ニュースセクション --- */
.news-section {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
}

.news-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--gold);
    color: #111;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
}

.news-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date { font-size: 0.8rem; color: var(--gold); font-weight: bold; }
.news-text { font-size: 0.95rem; margin-top: 2px; }
.news-text a {
    color: var(--accent-blue);
    font-weight: bold;
    text-decoration: underline;
    margin: 0 4px;
    transition: color 0.3s;
}
.news-text a:hover { color: var(--gold); }

/* --- 7. モバイルレスポンシブ共通 (max-width: 600px) --- */
@media (max-width: 600px) {
header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 12px 15px 0 15px !important;
        height: auto !important; 
        min-height: 100px; 
    }

    .logo img {
        height: 45px !important; 
        width: auto !important;
    }

    .logo {
        flex-wrap: wrap;
        width: 100%;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .alpha-badge {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
        text-align: left;
        border: none;
        padding: 0;
        font-weight: bold;
        display: block;
    }

    .nav-links { 
        display: flex;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 12px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        border-bottom: none;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
        background: transparent;
        border-radius: 0;
        flex-shrink: 0;
        border-bottom: 2px solid transparent;
        color: var(--text-sub);
        margin-right: 2px;
        max-width: 100%;
    }

    .nav-links a.active {
        background: transparent;
        color: var(--gold);
        font-weight: bold;
        border-bottom: 2px solid var(--gold);
    }
    
    .container { padding: 15px 10px; }
}