/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー変数の定義 */
    --primary-color: #0088cc; /* 青系：VRChatボタンと同じ、落ち着いた青に変更 */
    --text-color: #f5f5f5; /* 明るいテキスト */
    --bg-color: #101a24; /* 濃い青/黒系：夜の街、ネオンのイメージ */
    --darker-bg-color: #0a0f14; /* さらに濃い背景色 */
    --shadow-color: rgba(0, 136, 204, 0.5); /* プライマリーカラーの影 (新しい青系) */
    --font-family: 'Arial', 'Inter', sans-serif;
    
    /* 追加のカラー */
    --discord-color: #5865F2;    /* Discordのブランドカラー */
    --instagram-color: #E4405F;  /* Instagramのブランドカラー */
    --spotify-color: #1DB954;    /* Spotifyのブランドカラー */
    --apple-color: #FFFFFF;
    --amazon-color: #FF9900;
    --booth-color: #ff3399;      /* BOOTHのブランドカラー (ピンク) */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    /* パララックス効果のためにbodyに高さを持たせる */
    height: 100%;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ボタンのスタイル */
.btn-primary, .btn-large {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff; 
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.btn-large {
    padding: 15px 40px;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.btn-primary:hover, .btn-large:hover {
    background-color: #33aaff; /* 新しい青に合わせたホバー色 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.8); /* 新しい青に合わせたホバーシャドウ */
}

/* --- ヘッダー（固定） --- */
.site-header {
    background-color: var(--darker-bg-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* 言語ボタンのために追加 */
}
.main-nav li {
    margin-left: 30px;
}
.main-nav a:not(.btn-primary) {
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
    opacity: 0.8;
}
.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.main-nav a:not(.btn-primary):hover {
    opacity: 1;
}
.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2em;
    cursor: pointer;
}

/* 言語切り替えボタン */
.lang-switch-container {
    margin-left: 20px !important;
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s;
}
.lang-btn.active-lang {
    background-color: var(--primary-color);
    color: var(--darker-bg-color);
    font-weight: bold;
}
.lang-btn:hover:not(.active-lang) {
    background-color: #1a3a5a; /* 青系のホバー背景色 */
}

/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; 
    overflow: hidden;
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 🚨 プレースホルダー画像に差し替えてください */
    /* 黒の不透明度を0.8から0.6に下げ、背景画像を見やすくしました */
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--bg-color) 90%), url('placeholder-hero-bg.jpg'); 
    background-size: cover;
    background-position: center top;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.event-date {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.hero-content h2 {
    font-size: 4.5em;
    margin-bottom: 40px;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px var(--primary-color);
}

/* --- コンテンツセクション --- */
.content-section {
    padding: 80px 0;
    text-align: center;
}
.dark-bg {
    background-color: var(--darker-bg-color);
}
.content-section h3 {
    font-size: 2.8em;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 136, 204, 0.5); /* 新しい青に合わせたシャドウ */
}
.game-description-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 概要カード */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.card {
    background-color: #1d3d5a; 
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 136, 204, 0.2); /* 新しい青に合わせたシャドウ */
}
.card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}
.card p {
    font-size: 1.1em;
}

/* デモ・ミュージックセクション (YouTube/iFrame) */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    /* 16:9 のアスペクト比を維持 */
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.music-note {
    font-size: 1.1em;
    margin-bottom: 30px;
}
.music-embed-container {
    margin-bottom: 40px;
}

/* --- 2. 最新のお知らせ (パララックスセクション) --- */
#news-parallax {
    /* パララックス効果のため、背景を固定 */
    background: url('https://placehold.co/1920x800/22374e/ffffff?text=LATEST+NEWS+BACKGROUND') fixed center no-repeat;
    background-size: cover;
    height: 400px; /* セクションの高さ */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 80px 0; /* 前後のセクションとの間隔 */
}

#news-parallax::before {
    /* オーバーレイでコンテンツを見やすくする */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 1;
}

.news-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.news-content h3 {
    color: #fff; /* パララックスセクションのタイトルは白 */
    font-size: 3em;
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 20px;
    border-bottom: none;
}

.news-scroll-box {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.1); /* 半透明の白背景 */
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    overflow-y: scroll; /* スクロール可能にする */
    text-align: left;
    padding: 15px;
}

.news-item {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1em;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item a {
    color: var(--primary-color);
}
/* --- パララックスセクション終了 --- */


/* ストア・ミュージック・ソーシャルリンク共通 */
.store-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* ボタンが多いため折り返しを許可 */
}
.store-btn {
    display: flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.3s;
    min-width: 200px;
}
.store-btn i {
    margin-right: 15px;
    font-size: 1.4em;
}
.store-btn:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}
/* Steamカラー */
.steam-btn {
    background-color: #1b2838;
    box-shadow: 0 4px 15px rgba(27, 40, 56, 0.6);
}
/* BOOTHカラー (ピンク) */
.booth-btn {
    background-color: var(--booth-color); /* #ff3399 */
    box-shadow: 0 4px 15px rgba(255, 51, 153, 0.6); 
}

/* ミュージックリンクカラー */
.amazon-btn {
    background-color: var(--amazon-color);
    color: var(--bg-color);
}
.apple-btn {
    background-color: var(--apple-color);
    color: var(--bg-color);
}
.spotify-btn {
    background-color: var(--spotify-color);
    color: #fff;
}

/* ソーシャルリンクカラー */
.social-links-subheading {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--text-color);
}
.discord-btn {
    background-color: var(--discord-color);
}
.instagram-btn {
    background-color: var(--instagram-color);
}
/* .vrchat-btn は primary-color に統合するため削除 */


/* --- 1. 花火ちゃんの日記セクション (iframe埋め込み用) --- */
#hanabi-diary-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.diary-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--shadow-color);
}

.diary-iframe {
    width: 100%;
    height: 600px; /* 適切な高さを設定 */
    border: none;
    display: block;
}
/* --- 花火ちゃんの日記セクション終了 --- */


/* Xセクション */
#x-embed-container {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: #1d3d5a; 
    padding: 20px;
    border-radius: 8px;
    min-height: 100px; 
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}


/* フッター */
.site-footer {
    background-color: var(--darker-bg-color);
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #3a3a5a;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links a {
    margin-left: 20px;
    color: #aaa;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}

/* --- レスポンシブ対応 (モバイル表示) --- */
@media (max-width: 900px) {
    /* ヘッダー */
    .menu-toggle {
        display: none; 
    }
    .main-nav {
        display: none; 
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: var(--darker-bg-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
        z-index: 90;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #3a3a5a;
    }
    .main-nav li:last-child {
        border-bottom: none;
    }
    .main-nav a {
        display: block;
        padding: 15px 0;
        margin-left: 0;
    }
    .main-nav .btn-primary {
        display: block;
        margin: 10px 20px;
    }
    .lang-switch-container {
        justify-content: center;
        margin: 10px auto 15px auto !important;
        width: fit-content;
    }

    /* ヒーローセクション */
    .hero-content h2 {
        font-size: 2.5em;
    }

    /* 概要カードを縦並びに変更 */
    .info-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
        max-width: 400px;
    }
    
    /* ストア/ミュージックリンクを縦並びに変更 */
    .store-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .store-btn {
        width: 90%;
        max-width: 350px;
    }
    
    /* パララックスセクションの高さ調整 */
    #news-parallax {
        height: 300px;
    }
    .news-content h3 {
        font-size: 2em;
    }

    /* 花火ちゃんの日記 */
    .diary-iframe {
        height: 400px;
    }

    /* フッター */
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 10px;
    }
    .footer-links a {
        margin: 0 10px;
    }
}