/* 基本スタイル */
* {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden; /* 横方向のスクロールを無効化 */
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* 薄いグレーに変更 */
    color: #333;
    line-height: 1.6;
}

/* 全体の余白を削除 */
body {
    margin: 0;
    padding: 0;
}

header {
    background-color: #1f1f1f; /* ダークグレーに変更 */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff69b4; /* ホバー時の色をピンクに変更 */
}

main {
    padding: 0; /* メイン要素のパディングを削除 */
    max-width: 1000px;
    margin: 20px auto;
    background: none; /* メイン要素の背景を削除 */
    box-shadow: none; /* メイン要素の影を削除 */
    border-radius: 8px;
}

/* コンテンツセクションの表示/非表示制御 */
.content-section {
    display: none; /* デフォルトではすべて非表示 */
}

.content-section.active {
    display: block; /* activeクラスを持つセクションのみ表示 */
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* セクション間の余白を調整 */
section {
    margin: 0;
    padding: 0;
}

section:last-child {
    border-bottom: none;
}

h2 {
    color: #1f1f1f; /* ダークグレーに変更 */
    border-bottom: 2px solid #ff69b4; /* ピンクのボーダーに変更 */
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2em;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1f1f1f; /* ダークグレーに変更 */
    color: white;
    margin-top: 30px;
}

/* イントロ画面のスタイル */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* 黒背景 */
    color: #ff69b4; /* ピンク色 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem; /* サイズ調整 */
    font-weight: bold;
    z-index: 1000; /* 他の要素の上に表示 */
    opacity: 1; /* 初期は表示 */
    transition: opacity 1s ease-out; /* フェードアウトのアニメーション */
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none; /* フェードアウト後にクリックイベントを無効化 */
}

/* スライドショー（ホーム、原作小説）共通スタイル */
.slide-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* 最大幅を設定 */
    height: 500px; /* 画像の高さに合わせて調整 */
    overflow: hidden;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がコンテナに収まるように調整 */
    opacity: 0; /* 最初はすべてのスライドを非表示 */
    transition: opacity 1s ease-in-out, transform 0.5s ease; /* フェードと変形アニメーション */
}

.slide.active {
    opacity: 1; /* activeクラスが適用されたスライドを表示 */
    transform: translateY(-8px) scale(1.01); /* 浮いてる感じと少し拡大 */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35); /* 影で立体感 */
}

/* 原作小説スライドショー内のテキスト */
#novel-slideshow .slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

#novel-slideshow .slide .vertical-text {
    writing-mode: vertical-rl; /* 縦書き（右から左） */
    text-orientation: upright; /* 文字の向きを揃える */
    font-size: 2em; /* フォントサイズ調整 */
    line-height: 1.8;
    white-space: pre-wrap;
    font-weight: bold;
    color: white; /* テキスト色を白に */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 影をつけて読みやすく */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景を追加 */
    padding: 10px;
    border-radius: 5px;
}

#novel-slideshow img {
    height: 400px; /* 画像の高さを固定 */
    width: auto; /* 横幅は自動調整 */
    object-fit: cover; /* 画像を切らずに表示 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 楽曲一覧ページ スタイル */
#song-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* レスポンシブなグリッド */
    gap: 15px;
    margin-top: 20px;
}

#song-list button {
    background-color: #ff69b4; /* ピンクに変更 */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#song-list button:hover {
    background-color: #e04a99; /* ホバー時の色を濃く */
    transform: translateY(-2px);
}

/* 楽曲画像表示の要素はHTMLから削除されたため、関連CSSも削除しました */
/* #song-image-container, #song-image は不要になったため削除 */

/* ライブ情報ページ スタイル */
#live-section {
    position: relative; /* 子要素のvideo-background, video-overlayがabsoluteで配置されるため */
    padding-top: 20px; /* 必要に応じて調整 */
    padding-bottom: 20px; /* 必要に応じて調整 */
    border-radius: 8px; /* 角丸を保持 */
    overflow: hidden; /* 動画がはみ出さないように */
    background-color: white; /* セクション自体の背景色を白に設定（オーバーレイの下） */
}

.video-background {
    position: absolute; /* 親要素に対して絶対配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2; /* オーバーレイの下に配置するためz-indexをさらに下げる */
}

.video-background iframe {
    width: 100%; /* 親要素の幅に合わせる */
    height: 100%; /* 親要素の高さに合わせる */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央に配置 */
    min-width: 100%; /* 画面サイズに合わせて拡大・縮小 */
    min-height: 100%; /* 画面サイズに合わせて拡大・縮小 */
    pointer-events: none; /* 動画上のクリックイベントを無効化し、下の要素をクリック可能にする */
}

/* 半透明のオーバーレイ */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黒色で50%の透明度 */
    z-index: -1; /* 動画の上に重ねる */
    pointer-events: none; /* クリックイベントを無効化 */
}

.live-block {
    position: relative; /* z-indexを有効にするため */
    z-index: 1; /* 動画とオーバーレイの上に表示 */
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* ライブブロックの背景を半透明の白に（コンテンツを見やすくする） */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.live-block h3 {
    margin-top: 0;
    color: #1f1f1f;
    border-bottom: 1px dashed #ff69b4; /* ピンクの点線ボーダー */
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.live-block ul {
    list-style: none;
    padding-left: 0;
}

.live-block li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.live-block li:last-child {
    border-bottom: none;
}

/* メンバー紹介セクション */
#members-introduction {
    text-align: center;
    padding: 30px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

#members-introduction h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #1f1f1f;
    border-bottom: 2px solid #ff69b4;
    display: inline-block;
    padding-bottom: 10px;
}

.member-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.member-profile:hover {
    transform: translateY(-5px);
}

.member-profile img {
    /* 画像のサイズを統一し、円形に、アスペクト比を保ちつつトリミング */
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #ff69b4;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.member-profile h3 {
    color: #1f1f1f;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
}

.member-profile p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: left;
    padding: 0 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    nav a {
        font-size: 1em;
    }
    main {
        padding: 10px;
    }
    h2 {
        font-size: 1.8em;
    }
    .slide-container {
        height: 300px;
    }
    #novel-slideshow .slide .vertical-text {
        font-size: 1.2em;
        left: auto;
        position: relative;
    }
    #novel-slideshow img {
        height: 250px;
    }
    .member-profile {
        padding: 15px;
    }
    .member-profile img {
        width: 140px;
        height: 140px;
    }
    .member-profile h3 {
        font-size: 1.5em;
    }
    .member-profile p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    nav a {
        font-size: 0.9em;
    }
    .slide-container {
        height: 250px;
    }
    #novel-slideshow .slide {
        flex-direction: column;
        gap: 10px;
    }
    #novel-slideshow .slide .vertical-text {
        font-size: 1em;
        padding: 5px;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    #novel-slideshow img {
        height: 200px;
    }
    #song-list button {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .member-profile {
        padding: 10px;
    }
    .member-profile img {
        width: 100px;
        height: 100px;
    }
    .member-profile h3 {
        font-size: 1.3em;
    }
    .member-profile p {
        font-size: 0.9em;
    }
}
/* ライブ情報ページ スタイル */
#live-section {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    /* background-color: white; */ /* 動画背景を使用するためコメントアウトまたは削除 */
    color: white; /* ライブ情報セクション全体の文字色を白に */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* 文字に影を追加して見やすく */
}

/* 動画背景 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 動画を親要素にフィット */
    opacity: 0.5; /* 半透明に設定 */
    pointer-events: none; /* ユーザー操作を無効化 */
}

/* 半透明のオーバーレイ */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 透明度を少し上げて、動画の視認性を保ちつつコンテンツを読みやすく */
    z-index: -1;
    pointer-events: none;
}

/* ライブブロックのスタイルを調整 */
.live-block {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.85); /* 半透明の白で背景を強調しつつ、動画も見えるように */
    color: #333; /* ライブブロック内の文字色を読みやすい濃い色に */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px); /* 背景を少しぼかす効果 */
}

.live-block h3 {
    margin-top: 0;
    color: #1f1f1f;
    border-bottom: 1px dashed #ff69b4;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.live-block ul {
    list-style: none;
    padding-left: 0;
}

.live-block li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.live-block li:last-child {
    border-bottom: none;
}

/* ライブ映像セクションのスタイル */
#liveeizou-section {
    position: relative;
    padding: 0;
    margin: 0 auto; /* セクションを中央揃え */
    color: white;
    text-align: center;
    overflow: hidden;
    height: 100vh; /* セクション全体を画面いっぱいに表示 */
    width: 100%; /* 横幅を100%に設定 */
}

.video-background {
    position: absolute;
    top: 0;
    width: 1400px; /* 動画の横幅を固定 */
    height: auto; /* 縦幅を自動調整 */
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%; /* 親要素の幅に合わせる */
    height: 100%; /* 縦幅を自動調整 */
    object-fit: cover; /* 動画を画面全体にフィット */
    opacity: 0.5; /* 動画を半透明に設定 */
    pointer-events: none; /* ユーザーが動画を操作できないようにする */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明の黒で動画を少し暗く */
    z-index: -1;
}

#liveeizou-section h2 {
    margin: 0;
    padding: 20px 0; /* タイトルの上下に適切なスペースを追加 */
    font-size: 2.5em; /* フォントサイズを調整 */
    color: white;
    text-align: center;
    margin-top: 20px;
    opacity: 0; /* 初期状態で非表示 */
    animation: fadeIn 2s ease-in-out forwards; /* フェードインアニメーションを適用 */
    margin: 0; /* 余白を削除 */
    padding: 20px 0; /* タイトルの上下に適切なスペースを追加 */
}

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 下から上に移動 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 元の位置に戻る */
    }
}

.image-grid {
    display: flex;
    justify-content: center;
    gap: 20px; /* 要素間の間隔を調整 */
    flex-wrap: wrap;
    margin: 0 auto; /* グリッドを中央揃え */
    padding: 0;
}

.image-grid a {
    display: block;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

