/* 1. カスタムプロパティ（変数）の定義 */
@property --angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

:root {
    --labs-sys-color-background: #111;
    --labs-sys-color-on-background: white;
    --base-speed: 4s;
    --labs-sys-color-grid: #fac4ff;
    --labs-sys-color-grid-glow: #df7373;
    --labs-sys-color-sun-1: #fdb428;
    --labs-sys-color-sun-2: #f672ca;
    --labs-sys-color-sun-glow: #b9f;
    --labs-sys-color-star: #f6c0c0;
    --color-palm-trunk: #333;
    --color-palm-leaf: #333;
    --color-palm-leaf-2: #b9f;
    --labs-sys-color-triangle: #6eccee;
    --labs-sys-color-volume: var(--labs-sys-color-triangle);
    /* --labs-sys-color-sun-2: #ff69b4;
    --labs-sys-color-triangle: #6eccee; */
}

/* ==========================================================================
   1. 基本レイアウト & 共通設定
   ========================================================================== */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* サイト内のすべての画像に対してダウンロード対策 */
img {
    /* マウス右クリックや長押しによるメニュー選択を禁止 */
    pointer-events: none;
    
    /* 画像の選択・コピーを禁止 */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;     /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* 各種ブラウザ共通 */
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: url('img/picture/haikyo.png') no-repeat center center/cover;
    z-index: -1;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    min-height: calc(100dvh - 80px);
    box-sizing: border-box;
}

/* --- コンテンツボックス --- */
.content-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* 共通ボタン */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #333;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.7;
}

.play-btn {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   2. ヘッダー設定（ハンバーガーボタン制御含む）
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* ヘッダー自体は高さをなくし、背後の要素のクリックを邪魔しない */
    z-index: 100;
}

/* ボタンのコンテナ（左上に完全にピン留め固定） */
.menu-btn-container {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(17, 17, 17, 0.6) !important; /* 背景に馴染みつつ見やすくなる黒ベース */
    border-radius: 50%;
    /*cursor: pointer !important;*/
    cursor: url('img/picture/carrot.png'), pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 101 !important; /* メニュー（99）より前面に固定、開閉を可能に */
    transition: background-color 0.3s;
}

.menu-btn-container:hover {
    background-color: rgba(255, 105, 180, 0.4) !important;
}

/* 三本線の線の形 */
.menu-btn {
    position: relative;
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff !important; /* 線を白にする */
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ボタンが開いた時のアニメーション（X印） */
/* 1番上の線：＼ */
.menu-btn-container.open .menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn-container.open .menu-btn span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

/* 3番目の線：／ */
.menu-btn-container.open .menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   3. ナビゲーションメニューエリア（左からスライドイン・縦並び）
   ========================================================================== */
#navMenu {
    position: fixed;
    top: 0;
    left: -100%; /* 初期状態は右側に完全に隠す */
    width: 300px; /* PCでのメニューバーの幅 */
    height: 100dvh;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 99; /* ボタン(101)より下、メインコンテンツより上 */
}

/* ナビゲーションメニューが開いた時 */
#navMenu.open {
    left: 0;
}

/* リストアイテムの縦一列化 */
#navMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* メニュー間の縦の隙間 */
    width: 100%;
}

#navMenu ul li {
    width: 100%;
    text-align: center;
}

#navMenu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s, transform 0.3s;
    cursor: url('img/picture/carrot.png'), pointer;
}

#navMenu a:hover {
    color: #ff69b4;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
}

/* ==========================================================================
   3. HOME専用要素 (バナー / スライド)
   ========================================================================== */
/* --- index.html（トップページ）専用：画面を固定してスクロールを禁止 --- */
body:has(.top-page-main) {
    height: 100vh !important;
    height: 100dvh !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
    display: block; /* 不安定なGrid設定を完全に打ち消し通常配置へ */

    /* ★【追加】スマホでの画面全体の引っ張り・バウンド（オーバースクロール）を物理的に禁止 */
    overscroll-behavior: none !important; 
    touch-action: none !important; /* 指でのスクロール・拡大縮小操作自体を無効化 */
}

/* 2. トップページ専用のメインエリア（デベロッパーツール上のピンクの枠を100%に固定） */
.top-page-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    z-index: 1;
}

/* トップページ専用のメインエリアに、触らせないための透明な壁（シールド）を重ねる */
.top-page-main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 完全に透明な壁を最前面に敷く */
    background: transparent; 
    
    /* ヘッダー(z-index: 100)やフッター(z-index: 100)よりは下、
       キャラクター(z-index: 2)よりは上に配置することで、
       メニューやSNSリンクのクリックを邪魔せず、キャラだけをガードします */
    z-index: 10; 
}

/* トップページ表示時、最外枠のhtmlタグ自体のオーバースクロールも完全にロック */
html:has(.top-page-main) {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
}

/* 3. トップページのバナーコンテナ */
.home-banner {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

/* 4. キャラクターを包む枠（黄色の枠を画像サイズに潰させず、横幅100%に強制拡張！） */
.banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;   /* これにより、画面の端（左外）がアニメーションの基準線になります */
    height: 100% !important;  /* 高さを画面全体いっぱいに確保 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. キャラクターイラスト（PCモニターのサイズを問わず、フッターの真上に完璧接地） */
.banner-char {
    position: absolute;
    /* PCのフッターの高さ（約82px）の分だけボトムから浮かせ、1ミリの隙間もなく接地させます */
    bottom: 82px !important; 
    left: 80% !important;
    transform: translateX(-30%);
    
    /* ヘッダー(20px) + フッター(82px) = 102px を画面全体から引いた領域をキャラクターの「最大高さ」にする */
    height: calc(100vh - 102px) !important;
    height: calc(100dvh - 102px) !important;
    width: auto !important;
    
    object-fit: contain; 
    object-position: bottom center; /* 画像の足元を必ず基準点にする */
    z-index: 2;

    animation: slideInRight 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;

    pointer-events: none;         /* マウスやタッチの反応を完全に無視 */
    user-select: none;            /* テキストや画像の選択を禁止 */
    -webkit-user-drag: none;      /* iOS/Safari等でのドラッグを禁止 */
}

/* 6. トップページ専用：ヘッダーとフッターを完全固定（非同期によるズレを強制排除） */
body:has(.top-page-main) #common-header,
body:has(.top-page-main) header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

body:has(.top-page-main) #common-footer,
body:has(.top-page-main) footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100;
}


/* --- スマホ用の調整 --- */
@media (max-width: 768px) {
    /* ---（他の既存のスマホ用設定はすべてそのままで大丈夫です）--- */

    /* スマホ表示の時だけ、キャラの高さ計算をスマホ用フッターの高さ(74px)に自動スイッチ */
    body:has(.top-page-main) .banner-char {
        bottom: 74px !important; /* スマホのフッター高さに合わせる */
        height: calc(100vh - 134px) !important; /* ヘッダー60px + スマホフッター74px = 134px */
        height: calc(100dvh - 134px) !important;
        
        /* 既存のスマホ用位置制御：真ん中ではなく、左に少し寄せる指示を安全に継承 */
        left: 50% !important;
        transform: translateX(-40%) !important; /* ご希望の携帯表示の制御位置 */
    }

    .top-page-main::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        }

}

.section-title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    color: #191970;
    text-shadow: 1px 1px 2px pink;
}

/* --- VIDEOSスライド --- */
.video-slide-section {
    width: 100%;
    margin: 50px 0 80px;
    overflow: hidden;
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* スクリプト制御のため snap は使用しない */
    scroll-snap-type: none;
}

/* スクロールバーを隠す (Chrome/Safari) */
.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-item {
    flex: 0 0 450px;
    /* サイズ固定 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.2;
    /* 左右はかなり薄く */
}

/* 中央の強調 */
.video-item.is-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
}

.video-item img {
    width: 450px !important;
    height: 250px !important;
    object-fit: cover;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px !important;
    color: #fff;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   4. News ページ & 共通リスト設定
   ========================================================================== */

/* 記事内のニュースタイトル */
.news-item-title {
    font-size: 1.1rem;
    color: #191970;
    margin: 10px 0;
    border-bottom: 1px dotted rgba(25, 25, 112, 0.2);
    padding-bottom: 5px;
}

.news_glitch {
    font-size: 130px;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transform: translate(0%, 0%);
    margin: 0;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    /* 自身の幅と高さを維持 */
    position: relative;
    animation: news-glitch-anim 4s linear infinite;
    /* アニメーションを適用 */
    z-index: 10;
    margin-bottom: 40px;

    /* 下のコンテンツ枠との距離を確保 */
    &:before,
    &:after {
        display: block;
        content: 'NEWS';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        opacity: .8;
    }

    &:after {
        color: #f0f;
        z-index: -2;
    }

    &:before {
        color: #0ff;
        z-index: -1;
    }

        &:before {
            animation: glitch-left .4s cubic-bezier(.25, .46, .45, .94) both infinite
        }

        &:after {
            animation: glitch-left-2 .4s cubic-bezier(.25, .46, .45, .94) reverse both infinite
        }
    }

@keyframes glitch-left {
    0% {
        transform: translate(0)
    }

    33% {
        transform: translate(-5px, 3px)
    }

    66% {
        transform: translate(5px, -3px)
    }

    to {
        transform: translate(0)
    }
}

@keyframes glitch-left-2 {
    0% {
        transform: translate(0)
    }

    33% {
        transform: translate(-5px, -3px)
    }

    66% {
        transform: translate(5px, 2px)
    }

    to {
        transform: translate(0)
    }
}

/* 日付とカテゴリ */
.news-meta {
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    color: #666;
}

.news-category {
    color: #ff69b4;
    /* ラヴィさんのピンク */
    font-weight: bold;
}

.news-item-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* HOMEの最新ニュース枠 */
.home-news {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.home-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-news-list li {
    border-bottom: 1px solid #eee;
}

.home-news-list li a,
.home-news-list li .no-link-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    box-sizing: border-box;
}

.home-news-list .date {
    width: 100px;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #888;
}

/* ニュース一覧ページ(news.html)側のリンクなし項目も調整 */
.news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ニュースカード全体の枠組み */
.news-content-box {
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background: rgba(253, 255, 255, 0.7);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    border-radius: 15px;

    /* ぼかしエフェクトを追加 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari対応 */

    /* 縁を白く光らせてガラス感を出す */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 記事内の画像がはみ出さないようにする設定 */
.news-content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

/* リンク要素とリンクなし要素の余白と位置を完全に統一 */
.news-link,
.no-link-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    /* ニュース詳細(news.html)の基本余白 */
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    cursor: default;
    /* 基本は矢印 */
}

/* リンクがある場合のみ指マークとホバー効果を適用 */
.news-link {
    cursor: pointer;
}

.news-item:has(.news-link):hover {
    background: rgba(255, 255, 255, 1.0);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 画像とテキストのレイアウト (news.html用) */
.news-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-text {
    flex: 1;
}

.news-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.news-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.news-text .date {
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   5. About ページ
   ========================================================================== */
.about-wrapper {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 0;
    /* margin-bottom: 40px; */
    box-shadow: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

.about-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-page-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    display: inline-block;

    /* 1. 本体の文字設定（グラデーション） */
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(to right,
            #191970 0%,
            #6eccee 25%,
            #ff69b4 50%,
            #6eccee 75%,
            #191970 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;

    /* アニメーション */
    animation:
        flow-gradient 5s linear infinite,
        kode-text 4s linear infinite;

    text-shadow: none !important;
}

/* --- アニメーション定義 --- */

/* 形と明るさを変えて「バグ」を作る */
@keyframes kode-text {
    from {
        --angle: 45deg;
        transform: translateY(0vh);
    }

    49.5% {
        --angle: 360deg;
        transform: translateY(-1vh);
        filter: brightness(100%);
    }

    50% {
        --angle: 360deg;
        transform: translateY(-1vh) scaleY(0.1) skewX(253deg);
        filter: brightness(190%);
    }

    51% {
        --angle: 360deg;
        transform: translateY(-1vh) scaleY(0.5) skewY(37deg);
        filter: brightness(190%);
    }

    52% {
        --angle: 360deg;
        filter: brightness(190%);
        transform: translateY(0vh);
    }

    to {
        --angle: 45deg;
        transform: translateY(0vh);
    }
}

.about-content-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    /* ピンクとブルーの2色の光を重ねることで、サイバーな奥行きを出します */
    box-shadow:
        0 0 10px rgba(255, 105, 180, 0.6),
        /* 内側の淡いピンク */
        0 0 25px rgba(0, 242, 255, 0.5);
    /* 外側の淡いシアン */

    border: 1px solid rgba(255, 255, 255, 0.7);
    /* 右上と左下を少しだけ斜めにカット */
    /* clip-path: polygon(0% 0%,
            95% 0%,
            100% 5%,
            100% 100%,
            5% 100%,
            0% 95%); */
}

.about-history h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 40px;
}

.about-history ul {
    list-style: none;
    padding: 0;
}

.about-history li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
}

.about-history li span {
    font-weight: bold;
    margin-right: 20px;
    color: #666;
    min-width: 80px;
}

/* --- 対談セクション --- */
.interview-section {
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
}

.qa-item {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

/* 質問部分（常に表示） */
.qa-question {
    padding: 15px 20px;
    font-weight: bold;
    color: #191970;
    cursor: pointer;
    list-style: none;
    /* デフォルトの矢印を消す（Chrome/Safari） */
    position: relative;
    display: block;
    font-size: 0.9rem;
}

/* 矢印を自作する場合 */
.qa-question::after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.qa-item[open] .qa-question::after {
    transform: rotate(180deg);
    /* 開いたときに矢印を上に向ける */
}

/* 回答部分（クリックで表示） */
.qa-answer {
    padding: 0 25px 25px;
    background: rgba(255, 192, 203, 0.1);
    /* ほんのりピンク */
    display: block;
    gap: 15px;
    align-items: flex-start;
    border-top: 1px solid rgba(25, 25, 112, 0.1);
    animation: fadeIn 0.4s ease;
}

/* --- キャラクターアイコンの設定 --- */
.char-icon {
    float: left;
    margin: 5px;
    /* 左に浮かせる */
    margin-right: 15px;
    /* 文字との間に隙間を作る */
    margin-bottom: 5px;
    /* 下に回り込む文字との隙間 */
}

.char-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    display: block;
    /* 余計な隙間を防止 */
}

/* --- 回答テキストの設定 --- */
.answer-content {
    line-height: 1.6;
    /* margin-leftなどは不要になります */
}

.q-icon {
    color: #ff69b4;
    margin-right: 5px;
}

.a-icon {
    font-weight: bold;
    color: #191970;
    font-size: 1rem;
    margin-right: 5px;
    float: left;
}

.answer-text {
    margin: 5px;
    line-height: 1.6;
    color: #444;
    font-size: 0.85rem;
    display: block;
}

/* 回答が終わった後にレイアウトが崩れないように（おまじない） */
.qa-answer::after {
    content: "";
    display: block;
    clear: both;
}

/* --- ディスコグラフィーセクション --- */
.music-section {
    display: grid;
    /* 一覧時：PCでは4〜5列、スマホでも2列くらいに小さく並べる */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 95%;
    max-width: 1100px;
    margin: 40px auto;
}

/* 各アイテム */
.discography-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    list-style: none;
    transition: all 0.3s ease;
}

/* 通常時（閉じている時） */
.status-btn::before {
    content: "VIEW DETAIL";
}

/* 楽曲（details）が開いている時のボタン表示 */
.discography-item[open] .status-btn::before {
    content: "CLOSE";
}

/* ボタン自体のスタイル調整（前回までの view-detail を継承） */
.status-btn {
    color: white;
    font-weight: bold;
    border: 1px solid white;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    /* 少し背景を付けて視認性を上げる */
    transition: all 0.3s;
}

/* 詳細が開いている時は、ボタンを中央上部などに固定して押しやすくするのもアリです */
.discography-item[open] .jacket-overlay {
    opacity: 1;
    /* 詳細表示中はずっとボタンを見せておく */
    height: auto;
    padding: 20px 0;
    background: none;
    /* オーバーレイの背景を消す */
    pointer-events: none;
    /* 背後の詳細コンテンツを触れるように */
}

.discography-item[open] .status-btn {
    pointer-events: auto;
    /* ボタンだけは触れるように */
    position: fixed;
    top: 20px;
    right: 20px;
    background: #191970;
    z-index: 2001;
}

/* ★詳細が開いた時の設定（1画面に抑える） */
.discography-item[open] {
    position: fixed;
    /* 画面に対して固定 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 画面中央に配置 */
    width: 90vw;
    max-width: 600px;
    height: auto;
    max-height: 85vh;
    /* 画面高の85%以内に収める */
    z-index: 2000;
    /* メニューより上にくるように */
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    /* 内容が多い場合は中でスクロール */
}

/* 詳細が開いている時の背景を暗く見せる（擬似要素） */
.discography-item[open]::before {
    content: "";
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

/* 一覧時の画像サイズ調整 */
.jacket-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* 閉じボタンのデザイン */
.close-btn-text {
    display: none;
    /* 通常時は非表示 */
}

.discography-item[open] .close-btn-text {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #191970;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* スマホ用の微調整 */
@media (max-width: 768px) {
    .music-section {
        grid-template-columns: repeat(2, 1fr);
        /* スマホは2列 */
        gap: 10px;
    }

    .music-title {
        font-size: 0.9rem;
    }
}

.discography-summary {
    cursor: pointer;
    list-style: none;
    text-align: center;
    padding: 20px;
}

.discography-summary::-webkit-details-marker {
    display: none;
}

/* ジャケット画像の設定 */
.jacket-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 正方形を維持 */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.jacket-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* マウスホバー時の演出 */
.jacket-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 112, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.jacket-wrapper:hover .jacket-overlay {
    opacity: 1;
}

.view-detail {
    color: white;
    font-weight: bold;
    border: 1px solid white;
    padding: 5px 15px;
}

/* 1. 【一覧画面（閉じている時）】のタイトル文字色 */
.music-title {
    font-size: 1.2rem;
    color: #191970; /* 白背景で見やすい濃い紺色 */
    margin: 10px 0 5px;
}

/* 2. 【詳細画面（開いた時）】のポップアップ全体の背景と文字色 */
.discography-item[open] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 600px;
    height: auto;
    max-height: 85vh;
    z-index: 2000;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.7);
    overflow-y: auto;

    /* ★ここを変更：詳細が開いたら、背景をすりガラス風の暗い黒にします */
    background: rgba(17, 17, 17, 0.7) !important; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important; /* ベースの文字色を白に */
}

/* 3. 【詳細画面（開いた時）】のタイトル文字色 */
.discography-item[open] .music-title {
    color: #ff69b4 !important; 
    font-size: 1.5rem;         /* 詳細画面なので少し大きく目立たせる */
    font-weight: bold;
    /* 文字をほんのりネオン風に光らせる */
    text-shadow: 0 0 10px rgba(110, 204, 238, 0.6); 
    margin: 15px 0 5px;
}

/* 4. 【詳細画面（開いた時）】のリリース日の文字色調整 */
.discography-item[open] .release-date {
    color: #ccc !important; /* 黒背景で見えなくなるのを防ぐため、明るいグレーに */
}

.release-date {
    font-size: 0.8rem;
    color: #666;
}

/* 詳細部分のデザイン */
.music-detail-content {
    padding: 0 30px 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* 楽曲詳細を包むボックス（HTML側のクラス名に合わせて調整してください） */
.music-detail-box,
.music-container {
    background: rgba(17, 17, 17, 0.65) !important; /* 背景をすりガラス風の少し暗い黒にする */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    color: #ffffff !important; /* 基本の文字色を完全な白にする */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.stream-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    transition: opacity 0.3s;
}

.spotify {
    background: #1DB954;
}

.apple {
    background: #000000;
}

.youtube {
    background: #FF0000;
}

.stream-btn:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Game ページ
   ========================================================================== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ==========================================================================
   Contact ページ
   ========================================================================== */

/* --- CONTACT FORM STYLE --- */
.contact-box {
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
    color: #191970;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.submit-btn {
    background-color: #191970;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: pink;
    color: #191970;
    transform: translateY(-2px);
}

/* ==========================================================================
   フッター & SNS
   ========================================================================== */
footer {
    width: 100%;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; 
    color: #fff;
    margin-top: auto;
    
    background-color: #171717; 
}

.page-title {
    font-size: 4.0rem;
    color: #191970;
    text-shadow: 1px 1px 2px pink;
}

.sns-links a {
    font-size: 36px;
    color: #f7f7f7;
    margin: 0 10px;
    text-decoration: none;
    /* text-shadow: 1px 1px 2px #fffafa; */
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #f7f7f7;
    /* text-shadow: 1px 1px 2px #fffafa; */
}

/* ==========================================================================
   レスポンシブ (スマホ対応)
   ========================================================================== */
/* 画面幅 1024px 以下のタブレット環境 */
@media (max-width: 1024px) {
    .about-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .about-image-container {
        width: 100%;
        max-width: 500px;
    }
}

/* 画面幅 768px 以下のスマートフォン環境 */
@media (max-width: 768px) {
    /* スマホ時はメニューバーを画面いっぱいの幅に変更 */
    #navMenu {
        width: 100%;
        right: -100%;
    }

    #navMenu.open {
        right: 0;
    }

    #navMenu a {
        font-size: 1.8rem;
        padding: 15px 0;
    }

    .page-title,
    .about-page-title {
        font-size: 2.8rem;
    }

    .content-box,
    .about-content-box {
        padding: 25px;
    }

    footer {
        padding: 5px 0;
        text-align: center;
        width: 100%;
    }

    .content-box,
    .home-banner,
    .news-container,
    .about-wrapper {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   12. トップページ専用：右からのスライドインアニメーション定義
   ========================================================================== */
@keyframes slideInRight {
    0% {
        /* 画面の右側（見えない場所）からスタート */
        transform: translateX(150%);
        opacity: 0;
    }
    100% {
        /* 現在の美しい定位置（中央）にぴったり止まる */
        transform: translateX(-50%);
        opacity: 1;
    }
}
