:root {
    --main-color: #00d4ff; /* 爽やかなサイバーシアンに変更 */
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%); /* シアンから深い青へのグラデーション */
    --bg-color: #f8f9fa; /* クリーンな白背景 */
    --card-bg: rgba(255, 255, 255, 0.7); /* 後ろの光が透ける白いすりガラス */
    --text-color: #333333; 
    --light-text: #777777; 
}

html{ scroll-behavior: smooth; overflow-x: hidden; background-color: var(--bg-color); }
body {
    margin: 0; padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* =========================================
   オープニング（ローディング）画面
========================================= */
#loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color); 
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease; overflow: hidden; 
}
#loading-screen.loaded { opacity: 0; visibility: hidden; }

/* 1. 光る床（サイバーブルー） */
#loading-screen::before {
    content: ''; position: absolute;
    /* ▼ 修正：どんな画面サイズでも絶対に見切れない「画面ピッタリ＋巨大化」配置に変更 ▼ */
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.4) 2px, transparent 2px);
    background-size: 50px 50px; 
    /* 画面中央（50vh）まで下げてから、90度倒して4倍に巨大化させる（本編と同じ確実な手法） */
    transform: perspective(500px) translateY(20vh) rotateX(90deg) scale(4); 
    animation: loadingGridMove 1.5s linear infinite; z-index: -1;
    /* 画面中央（奥の消失点）に向かって自然に溶け込むフォグ効果 */
    -webkit-mask-image: radial-gradient(circle at center, transparent 0%, black 50%);
    mask-image: radial-gradient(circle at center, transparent 0%, black 50%);
}
/* 2. 空間を走るスキャンライン */
#loading-screen::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at center, transparent 30%, var(--bg-color) 100%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.3) 50%, transparent 51%);
    background-size: 100% 100%, 100% 15px; animation: scanlineMove 3s linear infinite; z-index: 0; pointer-events: none;
}
@keyframes loadingGridMove { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }
@keyframes scanlineMove { 0% { background-position: center, 0 -100vh; } 100% { background-position: center, 0 100vh; } }

/* ロード中の文字デザイン */
.loading-content { position: relative; z-index: 1; text-align: center; animation: neonPulse 2s alternate infinite ease-in-out; }
.loading-text {
    font-size: clamp(3rem, 8vw, 5rem); color: var(--main-color); margin: 0; letter-spacing: 15px; font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}
.loading-subtext { color: #0077ff; letter-spacing: 8px; margin-top: 15px; font-weight: bold; }
@keyframes neonPulse { 0% { transform: scale(0.95); opacity: 0.8; filter: brightness(0.9); } 100% { transform: scale(1.05); opacity: 1; filter: brightness(1.1); } }

/* =========================================
   サブページ用の控えめなローディング画面
========================================= */
#sub-loading {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color); /* サイトの背景色と同じ */
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease; /* サッと消える速度 */
}
#sub-loading.loaded {
    opacity: 0; visibility: hidden;
}

/* 小さく、ゆっくり明滅する文字 */
.sub-loading-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    color: var(--main-color); /* 爽やかなシアン */
    letter-spacing: 4px;
    animation: modestPulse 1s infinite alternate ease-in-out;
}
@keyframes modestPulse {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
}


/* スクロール禁止用 */
html:has(body.no-scroll),
body.no-scroll { 
    overflow: hidden !important; 
    height: 100vh !important; /* 高さを画面ピッタリに制限して物理的にスクロール領域を消す */
    touch-action: none;       /* スマホ画面を指でなぞる操作自体を無効化する */
}

/* =========================================
   3Dサイバールーム（底面のみ ＋ メンバーカラーの光）
========================================= */
/* 以前の天井と左右の壁を完全に消去してスッキリさせる */
html::before, html::after {
    display: none;
}

/* 底面（床）と光のビームの共通設定 */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    /* ▼ 修正1：フォグ（霧）が晴れる範囲を広げて、奥（上側）まで線が見えるようにする ▼ */
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, black 30%, transparent 90%);
    mask-image: radial-gradient(ellipse at center, transparent 0%, black 30%, transparent 90%);
    /* ▼ 修正2：床の始まる位置（地平線）を画面の中央(50vh)から、上の方(30vh)へ持ち上げる ▼ */
    transform: perspective(500px) translateY(30vh) rotateX(90deg) scale(4);
}

/* 1. 静止したベースのグリッド線（一番奥に配置） */
body::before {
    z-index: -3;
    background-image: 
        /* ▼ 修正：0.15 だった透明度を 0.5 に上げて、線を濃くハッキリさせる ▼ */
        linear-gradient(rgba(0, 212, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px; 
}

/* 2. メンバー全員のカラーが飛び交う、ランダム＆立体的なサイバーレーザー */
body::after {
    z-index: -2;
    /* ▼ メンバー7人分のカラーレーザーを別々の層（レイヤー）として定義する ▼ */
    background-image: 
        /* けんぴぃも: オレンジ */
        radial-gradient(ellipse 3px 200px at center 100%, #ffffff 0%, #FF751F 40%, transparent 100%),
        /* 729。: ピンク */
        radial-gradient(ellipse 3px 250px at center 100%, #ffffff 0%, #FF008A 40%, transparent 100%),
        /* セイラ: 紫 */
        radial-gradient(ellipse 4px 300px at center 100%, #ffffff 0%, #6a3cdb 40%, transparent 100%),
        /* れいな: 赤 */
        radial-gradient(ellipse 4px 350px at center 100%, #ffffff 0%, #E60000 40%, transparent 100%),
        /* つむぎ: シアン */
        radial-gradient(ellipse 3px 400px at center 100%, #ffffff 0%, #07c4a8 40%, transparent 100%),
        /* こごみ: 黄色 */
        radial-gradient(ellipse 5px 450px at center 100%, #ffffff 0%, #e6b400 40%, transparent 100%),
        /* 詩苑: マゼンタ */
        radial-gradient(ellipse 4px 500px at center 100%, #ffffff 0%, #A537BC 40%, transparent 100%);
        
    /* ▼ レーザーの出現頻度（横幅・縦の長さ）を全員バラバラにする ▼ */
    background-size: 
        180px 700px,  /* けんぴぃも */
        240px 900px,  /* 729。 */
        300px 1100px, /* セイラ */
        420px 1300px, /* れいな */
        480px 1500px, /* つむぎ */
        660px 1700px, /* こごみ */
        780px 1900px; /* 詩苑 */
        
    background-repeat: repeat;
    animation: cyberLasers 5s linear infinite;
}

/* 奥から手前へ、7色がそれぞれ別々の速度で駆け抜けるアニメーション */
@keyframes cyberLasers {
    0% {
        /* 全てがピッタリ「グリッドの縦線上」を走るようにする数学的な初期位置 */
        background-position: 
            30px 0px, 
            0px -100px, 
            30px -300px, 
            30px -500px, 
            0px -200px, 
            30px -600px, 
            30px -400px;
    }
    100% {
        /* ▼ ここが魔法！ Y軸の移動量（＝スピード）を全員バラバラにする ▼ */
        background-position: 
            30px 2000px, /* けんぴぃも: スピード遅め */
            0px 2400px,  /* 729。: スピード速め */
            30px 1800px, /* セイラ: スピード遅め */
            30px 2500px, /* れいな: スピード超高速 */
            0px 2100px,  /* つむぎ: スピード普通 */
            30px 2600px, /* こごみ: スピード超高速 */
            30px 2200px; /* 詩苑: スピード普通 */
    }
}

   /* ▼ ニュースなどのサブページで、ヘッダーに文字が隠れないようにするための余白 ▼ */
    body.sub-page {
        /* 背景の3D空間がズレないように、bodyでの余白設定はオフにする */
        padding: 0;
    }
    body.member-page {
        padding: 100px 0 0 0;
        background-color: #fafafa;
        background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
        background-size: 40px 40px;
        z-index: 1;
    }
a {
    color: var(--main-color);
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        color: #2539ce;
    }

/* サブページのタイトル周り */
main {
    position: relative; 
    max-width: 1000px;
    margin: 0 auto;
    /* ▼ 修正：ヘッダーの裏に隠れないよう、一番上の余白を 180px にたっぷり増やす ▼ */
    padding: 180px 20px 100px 20px;
    min-height: 60vh;
}

/* ▼ サブページの見出しも超サイバー化 ▼ */
.page-title {
    font-size: clamp(3.5rem, 8vw, 6rem); /* トップページと同じ巨大サイズに */
    margin: 0 auto 70px auto; /* 画面の中央に配置しつつ下の余白をとる */
    width: fit-content; /* 下線や装飾を文字の長さにピッタリ合わせる魔法 */
    position: relative;
    font-weight: 900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    
    color: var(--bg-color); /* 中身をくり抜く（背景色と同じにする） */
    -webkit-text-stroke: 2px var(--main-color); /* シアンのフチドリ */
    letter-spacing: 6px;
    transform: skewX(-12deg); /* 斜体 */
    
    text-shadow: 
        6px 6px 0px rgba(0, 212, 255, 0.15),
        0 0 25px rgba(0, 212, 255, 0.5) !important;
}

    /* レーザービームの下線 */
    .page-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: -10%; 
        width: 120%;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, var(--main-color) 50%, transparent 100%);
        border-radius: 0;
        transform: none;
        box-shadow: 0 0 10px var(--main-color);
    }

    /* ターゲットマーク風のサイバー装飾 */
    .page-title::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -20px;
        width: 25px;
        height: 25px;
        border-top: 4px solid var(--main-color);
        border-left: 4px solid var(--main-color);
        box-shadow: -2px -2px 10px rgba(0, 212, 255, 0.5);
    }

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    header h1 {
        margin: 0;
        font-size: clamp(1.2rem, 2vw, 1.5rem);
        letter-spacing: 2px;
    }

    .header-nav {
    background-color: transparent !important; 
}

/* スマホメニュー開閉用の隠しチェックボックス */
.menu-btn {
    display: none;
}

.menu-icon {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

    nav ul li a {
        color: var(--text-color);
        font-family: 'Impact', 'Arial Black', sans-serif;
        font-weight: 800;
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
        letter-spacing: 1px;
    }

/* ヒーローセクション（トップ画像） */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #1a1a24;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* 動画の上の文字は絶対白 */
}

.hero-icon {
    width: clamp(100px, 15vw, 150px);
    height: clamp(100px, 15vw, 150px);
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--main-color);
    background-image: url('images/icon.png');
    background-size: cover;
    background-position: center;
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 0;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-top: 10px;
    opacity: 0.9;
}

/* セクション共通 */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

    /* ▼ 超サイバー風の巨大見出しに変更 ▼ */
    section h3 {
        font-size: clamp(3.5rem, 8vw, 6rem); /* 圧倒的な大きさに巨大化！ */
        margin-bottom: 70px;
        position: relative;
        display: inline-block;
        font-weight: 900;
        font-family: 'Impact', 'Arial Black', sans-serif; /* 太くてメカニカルなフォント */
        
        color: var(--bg-color); /* 中身の色を背景と同じにして「くり抜き（中空）」風に */
        -webkit-text-stroke: 2px var(--main-color); /* シアンブルーの太いフチドリ */
        letter-spacing: 6px; /* 文字間隔を広げてスタイリッシュに */
        transform: skewX(-12deg); /* 斜めに倒して近未来のスピード感を出す */
        
        /* 立体的な影（グリッチ風） ＋ 淡いネオンの光 */
        text-shadow: 
            6px 6px 0px rgba(0, 212, 255, 0.15),
            0 0 25px rgba(0, 212, 255, 0.5) !important;
    }

        /* 見出しの下線を「両端が消えるレーザービーム」に */
        section h3::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: -10%; 
            width: 120%; /* 文字より少し長くして貫くようにする */
            height: 3px;
            /* 真ん中が明るく、両端が透明になる光線グラデーション */
            background: linear-gradient(90deg, transparent 0%, var(--main-color) 50%, transparent 100%);
            border-radius: 0;
            transform: none; /* 古い設定をリセット */
            box-shadow: 0 0 10px var(--main-color); /* ビーム自体も光らせる */
        }

        /* 文字の左上を飾るサイバー装飾（ターゲットマーク風） */
        section h3::before {
            content: '';
            position: absolute;
            top: -5px;
            left: -20px;
            width: 25px;
            height: 25px;
            border-top: 4px solid var(--main-color);
            border-left: 4px solid var(--main-color);
            box-shadow: -2px -2px 10px rgba(0, 212, 255, 0.5);
        }

/* ABOUT */
.about-text {
    text-align: left;
    background: var(--card-bg); /* 少しだけ明るく */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
}

/* =========================================
   ABOUT ページ専用スタイル
========================================= */

/* 汎用フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 活動内容カード（2×2グリッド） */
.activity-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.activity-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease;
}
.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--main-color);
}
.activity-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.activity-card h4 {
    font-size: 1.4rem;
    color: var(--main-color);
    margin: 0 0 15px 0;
    font-weight: 900;
}
.activity-card p {
    font-size: 0.95rem;
    text-align: left;
    color: var(--light-text);
}

/* 年表（タイムライン） */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    text-align: left;
}
/* 左側の縦線 */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
/* 線の上の丸い点 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -23.5px; /* 縦線のド真ん中に合わせる */
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--main-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-date {
    display: inline-block;
    font-weight: 900;
    color: var(--main-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.timeline-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
}
.timeline-content p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT ページ：メンバー募集スイッチ設定
========================================= */
.recruit-box {
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.recruit-box p {
    font-size: 1.1rem;
    font-weight: bold;
}

.recruit-title {
    margin-bottom: 20px;
}

/* 共通：中身は一旦両方とも非表示にしておく */
.recruit-content-open,
.recruit-content-closed {
    display: none;
}


/* ★ スイッチON（is-open）の時のデザイン ★ */
.recruit-box.is-open {
    background: var(--accent-gradient); /* 派手な紫グラデーション */
    color: #fff;
    box-shadow: 0 15px 40px rgba(140, 125, 255, 0.4);
}
.recruit-box.is-open .recruit-title {
    color: #fff;
}
/* open用の文章を表示する */
.recruit-box.is-open .recruit-content-open {
    display: block;
}


/* ★ スイッチOFF（is-closed）の時のデザイン ★ */
.recruit-box.is-closed {
    background: #eeeeee; /* 落ち着いたグレー */
    color: #555;
    box-shadow: none; /* 影をなくして目立たせない */
}
.recruit-box.is-closed .recruit-title {
    color: #888; /* タイトルもグレーに */
}
/* closed用の文章を表示する */
.recruit-box.is-closed .recruit-content-closed {
    display: block;
}



/* NEWS */
/* =========================================
   NEWS セクション（トップページ用：シンプル版）
========================================= */
.top-news-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

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

    .top-news-list li {
        padding: 20px 0;
        border-bottom: 2px dashed #eeeeee;
        display: flex;
        align-items: center;
        gap: 20px;
    }

        .top-news-list li:last-child {
            border-bottom: none;
        }

.top-news-date {
    font-weight: bold;
    color: var(--main-color);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    white-space: nowrap;
}

.top-news-title {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: bold;
    line-height: 1.6;
}

    .top-news-title a {
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.3s;
    }

        .top-news-title a:hover {
            color: var(--main-color);
            text-decoration: underline;
        }

/* =========================================
   NEWS ページ（news.html専用：サムネ付き）
========================================= */
.page-news-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: transparent;
    padding: 0;
}

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

    .page-news-list li {
        background: var(--card-bg);
        margin-bottom: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.03);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }

        .page-news-list li:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        }

.page-news-link {
    display: flex;
    gap: 30px;
    align-items: stretch;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.page-news-thumb {
    width: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .page-news-thumb img {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.page-news-list li:hover .page-news-thumb img {
    transform: scale(1.05);
}

.page-news-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.page-news-date {
    display: inline-block;
    background-color: var(--main-color);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.page-news-title {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: var(--main-color);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s;
}

.page-news-list li:hover .page-news-title {
    color: #ff77c0;
}

.page-news-desc {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================
   NEWS ページ（詳細記事全容）
========================================= */
.article-container {
    max-width: 100%; /* 1000pxの制限を解除して画面幅いっぱいにする！ */
    background: var(--card-bg);
    border-radius: 20px;
    padding-left: 2vw; /* 画面端に完全にくっつかないよう、2%だけ隙間を空ける */
    padding-right: 2vw;
    overflow-x: hidden; /* 念のため横スクロールバーが出るのを防ぐ */
}


/* =========================================
   MEMBER セクション（トップページ用：簡易版2列）
========================================= */
.top-member-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 奇数の場合、最後の一人が真ん中に来るようにする */
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.top-member-item {
    width: calc(50% - 15px); /* 隙間を引いてピッタリ2列にする計算式 */
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px 15px;
    box-sizing: border-box;
    border: 3px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* アニメーション用：最初は透明で少し下に下げておく */
    opacity: 0;
    transform: translateY(40px);
}

    .top-member-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        border-color: var(--main-color); /* ホバー時に枠線が紫に */
    }

    /* アニメーション発火時に浮かび上がる */
    .top-member-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.top-member-img {
    width: 100%;
    height: 240px; /* 立ち絵の高さ制限 */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

    .top-member-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ★ここを contain から cover に変更 */
        
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); /* 画像自体にもうっすら影をつける */
    }

.top-member-name {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    letter-spacing: 1px;
}

/* メンバーごとの名前の色指定 */

/* 1. けんぴぃも */
.top-member-item:nth-child(1) .top-member-name {
    color: #FF751F;
}
.top-member-item:nth-child(1) .top-member-img img {
    object-position: 50% 0%;
}


/* 2. 729。 */
.top-member-item:nth-child(2) .top-member-name {
    color: #FF008A;
}
.top-member-item:nth-child(2) .top-member-img img {
    object-position: 50% 5%;
}


/*セイラ*/
.top-member-item:nth-child(3) .top-member-name {
    color: #6a3cdb;
}
.top-member-item:nth-child(3) .top-member-img img {
    object-position: 50% 0%;
}

/* 4. れいな */
.top-member-item:nth-child(4) .top-member-name {
    color: #E60000;
}
.top-member-item:nth-child(4) .top-member-img img {
    object-position: 50% 30%;
}


/* 5. つむぎ */
.top-member-item:nth-child(5) .top-member-name {
    color: #07c4a8;
}
.top-member-item:nth-child(5) .top-member-img img {
    object-position: 50% 0%;
}


/* 6. こごみ */
.top-member-item:nth-child(6) .top-member-name {
    color: #e6b400;
}
.top-member-item:nth-child(6) .top-member-img img {
    object-position: 50% 0%;
}


/* 7. シオン */
.top-member-item:nth-child(7) .top-member-name {
    color: #A537BC;
}
.top-member-item:nth-child(7) .top-member-img img {
    object-position: 50% 10%;
}



/* MEMBER セクション */
section#member {
    max-width: 1500px;
}

.member-container {
    display: flex;
    flex-direction: column;
    gap: clamp(80px, 10vw, 150px);
    margin-top: 40px;
}

.member-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: var(--card-bg); /* 白箱 */
    padding: 40px clamp(40px, 8vw, 100px);
    border-radius: 30px; /* さらに丸みを強く */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); /* 立体感のある影 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    min-height: clamp(00px, 60vw, 100px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px); /* 最初は60px下にずらしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* 0.8秒かけて滑らかに変化させる */
}

    .member-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .member-card.is-visible {
        opacity: 1; /* 透明度を100%（表示）にする */
        transform: translateY(0); /* 元の位置（0）に戻る（＝上に浮かび上がる） */
    }

    /* 背景の巨大なローマ字テキスト */
    .member-card::before {
        content: attr(data-romaji);
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        font-family: 'Impact', 'Anton', sans-serif;
        font-size: clamp(10rem, 30vw, 20rem);
        font-weight: bold;
        color: transparent;
        /* ▼ 白背景に溶け込むように、枠線を「極薄のグレー（黒）」に変更▼ */
        -webkit-text-stroke: 3px rgba(0, 0, 0, 0.1);
        text-stroke: 3px rgba(0, 0, 0, 0.04);
        white-space: nowrap;
        z-index: 0;
        letter-spacing: 0rem;
        pointer-events: none;
        line-height: 0.8;
        /* アニメーションの初期設定（最初は透明にして少し右にずらしておく） */
        opacity: 0;
        transform: translateX(100px);
        transition: opacity 0.8s ease-out, transform 2s ease-out;
    }

    .member-card.is-visible::before {
        opacity: 1; /* 透明度を100%（表示）にする */
        transform: translateX(0); /* 横のズレを元に戻して定位置へ */
    }


/* メンバーカラーバー（奇数カード：画像が右） */
.member-color-bar {
    position: absolute;
    top: 50%;
    /* ▼ 100%だった幅を約半分にして、文字と被らないようにする ▼ */
    width: 55%;
    height: clamp(60px, 10vw, 120px);
    z-index: 1;
    opacity: 1;
    /* ▼ 画像がある右側に配置し、左側だけ角を丸くする ▼ */
    right: 0;
    left: auto;
    border-radius: 50px 0 0 50px;
    /* 右の画面外からスライドイン */
    transform: translateY(-50%) translateX(100%);
    transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ▼ 偶数カード（画像が左）のカラーバー設定（追加） ▼ */
.member-card:nth-child(even) .member-color-bar {
    left: 0;
    right: auto;
    border-radius: 0 50px 50px 0; /* 右側を丸くする */
    /* 左の画面外からスライドイン */
    transform: translateY(-50%) translateX(-100%);
}

/* アニメーション発火時（定位置の0に戻る） */
.member-card.is-visible .member-color-bar {
    transform: translateY(-50%) translateX(0);
}
/* 全身画像プレースホルダー */
.member-img {
    flex: 1.5;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    align-self: flex-end;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

.member-img-box {
    width: clamp(250px, 40vw, 550px);
    aspect-ratio: 9 / 16;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    background-color: transparent;
    object-fit: contain;
    object-position: bottom;
    display: block;
}

/* テキストブロック */
.member-text {
    flex: 1.2;
    text-align: left;
    position: relative;
    z-index: 3;
    padding-right: clamp(20px, 5vw, 60px);
    align-self: flex-end;
    margin-top: 50px;
}

.member-card:nth-child(even) .member-text {
    padding-right: 0px;
    padding-left: clamp(20px, 5vw, 60px);
}

.member-text h4 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0 0 10px 0;
    display: inline-block;
    line-height: 1.3;
}

.member-text .role {
    font-weight: bold;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #dddddd; /* パートの文字色をかなり明るいグレーに変更 */
    margin-bottom: clamp(20px, 4vw, 40px);
    display: inline-flex;
    align-items: center;
}

    .member-text .role::before {
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
        color: #fff;
        padding: 4px 10px;
        border-radius: 20px; /* 丸みをつける */
        margin-right: 12px;
        font-weight: bold;
    }

.member-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 2.0;
}

/* メンバーごとの個別設定（視認性アップ版） */
/* 背景バーは元の色、テキストは同系統の明るい色を指定しています */

/* 1. けんぴぃも */
.member-card:nth-child(1) .member-color-bar {
    background-color: #FF751F;
}

.member-card:nth-child(1) .member-text h4 {
    color: #ffaa77;
}

.member-card:nth-child(1) .member-text .role::before {
    background-color: #FF751F;
    content: "KENPI IMO";
}

/* 2. 729 */
.member-card:nth-child(2) .member-color-bar {
    background-color: #FF008A;
}

.member-card:nth-child(2) .member-text h4 {
    color: #ff77c0;
}

/* 3. セイラ */
.member-card:nth-child(3) .member-color-bar {
    background-color: #3F1BCE;
}

.member-card:nth-child(3) .member-text h4 {
    color: #9d80ff;
}

/* 4. れいな */
.member-card:nth-child(4) .member-color-bar {
    background-color: #3A0000;
}

.member-card:nth-child(4) .member-text h4 {
    color: #3A0000;
}
/* 暗い赤は黒と同化するので鮮やかな赤へ */


/* 5. つむぎ */
.member-card:nth-child(5) .member-color-bar {
    background-color: #09DEBE;
}

.member-card:nth-child(5) .member-text h4 {
    color: #66e6d1;
}

/* 6. こごみ */
.member-card:nth-child(6) .member-color-bar {
    background-color: #FFC700;
}

.member-card:nth-child(6) .member-text h4 {
    color: #ffe066;
}

/* 7. シオン */
.member-card:nth-child(7) .member-color-bar {
    background-color: #A537BC;
}

.member-card:nth-child(7) .member-text h4 {
    color: #d882ee;
}

/* =========================================
   メンバー一覧ページを画面ギリギリまで広げる設定
========================================= */
main.member-full-main {
    max-width: 100%; /* 1000pxの制限を解除して画面幅いっぱいにする！ */
    padding-left: 5vw; /* 画面端に完全にくっつかないよう、2%だけ隙間を空ける */
    padding-right: 5vw;
    overflow-x: hidden; /* 念のため横スクロールバーが出るのを防ぐ */
}

    /* カードが広がりすぎて間延びするのを防ぐための調整 */
    main.member-full-main .member-container {
        max-width: 1600px; /* 巨大モニターで見た時の限界幅（お好みで変更可） */
        margin: 40px auto 0 auto;
    }


a.member-card {
    text-decoration: none; /* リンクの下線を消す */
    color: inherit; /* 文字の色を変えない（親要素の色を引き継ぐ） */
    cursor: pointer; /* マウスを乗せた時に「指のマーク」にする */
}

    /* ついでに、マウスを乗せた時に少しフワッと浮くような演出を入れるとリンクっぽくなります！ */
    a.member-card:hover {
        transform: translateY(-5px); /* 少し上に浮く */
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15); /* 影を濃くする */
    }

/* =========================================
   メンバー詳細ページ専用レイアウト
========================================= */
/* =========================================
   メンバー詳細ページ専用レイアウト
========================================= */
.profile-section {
    max-width: 100%;
    min-height: 100vh;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: clip;
    overflow-y: visible;
    /* ▼ 白ベースのクリーンな方眼紙（グリッド）背景 ▼ */
}

    /* 斜めの巨大な背景アクセント（グラデーションでサイバー感を演出） */
    .profile-section::after {
        content: '';
        position: absolute;
        top: -10%;
        right: -10%;
        width: 60%;
        height: 120%;
        /* メンバーカラーを使った淡いグラデーション */
        background: linear-gradient(135deg, var(--member-color) 0%, transparent 80%);
        opacity: 0.15;
        transform: skewX(-20deg);
        z-index: -1;
    }

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

    /* 背景の巨大ローマ字（無限スクロールアニメーション！） */
    .profile-container::before {
        /* 文字が途切れないように複数回繰り返す */
        content: attr(data-romaji) " - " attr(data-romaji) " - " attr(data-romaji) " - " attr(data-romaji) " - " attr(data-romaji);
        position: absolute;
        top: 15%;
        left: 0;
        font-family: 'Impact', 'Anton', sans-serif;
        font-size: clamp(9rem, 15vw, 20rem);
        font-weight: 900;
        color: transparent;
        /* 枠線を細く、メンバーカラーにしてネオンっぽくする */
        -webkit-text-stroke: 2px var(--member-color);
        opacity: 0.15;
        z-index: -1;
        line-height: 1;
        pointer-events: none;
        white-space: nowrap;
        /* ▼ スクロールアニメーションの適用 ▼ */
        animation: scrollText 40s linear infinite;
        transform-origin: left center;
    }

/* 無限スクロールのアニメーションの動き */
@keyframes scrollText {
    0% {
        transform: rotate(-5deg) translateX(0);
    }

    100% {
        transform: rotate(-5deg) translateX(-20%);
    }
}

/* 左側：プロフィール情報（白箱・黒太枠・ソリッドシャドウ） */
.profile-info {
    flex: 1.2;
    text-align: left;
    background: #ffffff;
    border: 4px solid #111111; /* 黒い太枠でポップに */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 12px 12px 0px var(--member-color); /* 影をぼかさずベタ塗り */
    margin-left: 5vw;
    z-index: 3;
}

/* 名前のデザイン */
.profile-name {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: #111;
    border-bottom: 5px solid var(--member-color); /* 下線を引く */
    padding-bottom: 15px;
    display: inline-block;
}

    .profile-name span {
        display: block;
        font-size: clamp(1.2rem, 2vw, 1.8rem);
        font-weight: 900;
        letter-spacing: 5px;
        color: var(--member-color);
        margin-top: 5px;
    }

/* 説明文 */
.profile-desc {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 2;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 誕生日などのデータ */
.profile-data {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f7f7f7; /* 薄いグレーの背景 */
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

.profile-data-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .profile-data-item dt {
        font-size: 0.9rem;
        color: #fff;
        background: #111; /* 黒いタグ風 */
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: 900;
        min-width: 100px;
        text-align: center;
    }

    .profile-data-item dd {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--member-color);
        /* 文字に黒いフチをつけてよりポップに */
        text-shadow: 1px 1px 0px #111, -1px -1px 0px #111, 1px -1px 0px #111, -1px 1px 0px #111;
    }



/* 2つ目：フワフワ浮遊するトライアングル（三角形） */
.profile-img::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 20%;
    aspect-ratio: 1;
    background-color: var(--member-color);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%); /* 四角形を三角形に切り抜く魔法 */
    opacity: 0.15;
    z-index: -1;
    animation: floatShape 8s ease-in-out infinite alternate;
}

/* 図形を動かすためのアニメーション設定 */
@keyframes spinRing {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }
    /* 回転しながら少しだけ膨らむ */
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(15deg);
    }

    100% {
        transform: translateY(-40px) rotate(45deg);
    }
    /* 上に浮きながら少し傾く */
}

/* 右側：全身立ち絵（テキストに大胆に被せる） */
.profile-img {
    flex: 1.2; /* 画像側のエリアを少し広げる */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    z-index: 4; /* テキストの箱より手前に出す */
}

    .profile-img img {
        width: 200%; /* 160%から200%へ！枠を完全に無視して巨大化 */
        max-width: 1200px; /* 900pxのストッパーを1200pxまで引き上げ */
        height: auto;
        max-height: 110vh; /* 90vhから110vhへ！画面の上下を突き抜ける高さ */
        object-fit: contain;
        object-position: bottom;
        filter: drop-shadow(15px 15px 0px rgba(0,0,0,0.1));
        margin-left: -60%; /* 左のテキストボックスの半分くらいまで大胆に被せる */
        margin-bottom: -100px; /* 床（下）にさらに深くめり込ませる */
    }


/* ▼ MOVIEとLINKSの背景を画面いっぱいの単色にする ▼ */
section#movie {
    max-width: 100%; 
    background-color: var(--bg-color); 
    box-sizing: border-box; 
    position: relative; /* シルエットを配置するための基準にする */
    z-index: 1;
    overflow: hidden; /* はみ出したシルエットを隠す */
}

section#links {
max-width: 100%; 
    background-color: #0364ff; 
    box-sizing: border-box; 
    position: relative; /* シルエットを配置するための基準にする */
    z-index: 1;
    overflow: hidden; /* はみ出したシルエットを隠す */
}


/* ▼ LINKSセクションの背景におしゃれなメンバーシルエット（影）を追加 ▼ */
section#links::before {
    content: '';
    position: absolute;
    bottom: -20px; /* 足元が少し隠れるくらいがカッコいい */
    left: 0;
    width: 100%;
    height: 80%; /* セクションの下80%の高さに配置 */
    z-index: -1; /* ボタン等の奥（背景）に配置 */
    
    /* メンバー7人の立ち絵を横に並べる */
    background-image: 
        url('../images/kenpi1.png'),
        url('../images/7291.png'),
        url('../images/seira1.png'),
        url('../images/reina1.png'),
        url('../images/tumugi1.png'),
        url('../images/kogomi1.png'),
        url('../images/shion1.png');
        
    background-repeat: no-repeat;
    /* 全ての画像を縦幅100%（横幅は自動）で揃える */
    background-size: auto 100%, auto 100%, auto 100%, auto 100%, auto 100%, auto 100%, auto 100%;
    
    /* 左から右へ均等に配置（5% 〜 95% の間） */
    background-position: 
        5% bottom, 
        20% bottom, 
        35% bottom, 
        50% bottom, 
        65% bottom, 
        80% bottom, 
        95% bottom;
        
    /* ▼ ここが魔法！ 画像を「真っ黒（brightness 0）」にして「極薄（opacity 0.04）」にする ▼ */
    filter: brightness(0) opacity(0.04);
}


/* =========================================
   MOVIE (横スクロールカルーセル)
========================================= */
.movie-container {
    display: flex; /* 横に並べる */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px; /* スクロールバー用の余白を下にとる */
    /* 横スクロールの魔法 */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* スクロール時にピタッと止まるようにする */
    -webkit-overflow-scrolling: touch; /* スマホでの滑らかなスクロール */
}

    /* スクロールバーのデザイン（Webkit系ブラウザ用） */
/* ▼ 変更：スクロールバーを非表示にする ▼ */
.movie-container {
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
    padding: 20px; /* 下の余白（スクロールバー用）をなくしてスッキリさせる */
}

    .movie-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

/* =========================================
       MOVIE (スライダー用 左右ボタンのデザイン)
    ========================================= */
.movie-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 40px auto; /* 箱ごとの下の余白 */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .slider-btn:hover {
        background: #ff77c0;
        transform: translateY(-50%) scale(1.1); /* 少し大きくする */
    }

    /* 左ボタンの位置 */
    .slider-btn.prev {
        left: -20px; /* 少し外側にはみ出させる */
    }

    /* 右ボタンの位置 */
    .slider-btn.next {
        right: -20px;
    }

/* スマホ画面の時はボタンを少し小さくして内側に入れる */
@media screen and (max-width: 900px) {
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        opacity: 0.9;
    }

        .slider-btn.prev {
            left: 5px;
        }

        .slider-btn.next {
            right: 5px;
        }
}

.movie-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    /* アイテムの幅設定 */
    flex: 0 0 85%; /* スマホでは画面の85%の幅にして、次の動画がチラ見えするようにする */
    max-width: 450px; /* PCでは最大450pxまで */
    scroll-snap-align: center; /* スクロール時に画面の中央でピタッと止まる */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .movie-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

    .movie-item p {
        font-weight: 900;
        color: var(--text-color);
        margin: 15px 0 5px 0;
        font-size: clamp(0.9rem, 1.5vw, 1.05rem);
        text-align: left;
        /* 文字が長い場合は2行で「...」と省略する */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .movie-item iframe {
        width: 100%;
        aspect-ratio: 16/9; /* YouTubeの黄金比を維持 */
        border: none;
        border-radius: 10px;
        background: #eeeeee; /* 動画読み込み前のダミー色 */
        display: block;
    }

/* =========================================
   MOVIE (Shorts用の縦長設定)
========================================= */
.shorts-container .movie-item {
    flex: 0 0 50%; /* スマホで縦長動画が2つ並ぶサイズ感 */
    max-width: 280px;
}

    .shorts-container .movie-item iframe {
        aspect-ratio: 9 / 16; /* 縦長比率に固定 */
    }

/* LINKS */
.link-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #fff;
    background-color: var(--main-color);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

    .btn:hover {
        background-color: #2539ce;
        color: #fff;
        transform: translateY(-2px);
    }

    .btn.twitter {
        background-color: #000000;
        border: 1px solid #333;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }

        .btn.twitter:hover {
            background-color: #222;
        }

    .btn.youtube {
        background-color: #ff0000;
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    }

        .btn.youtube:hover {
            background-color: #cc0000;
        }



/* フッター */
footer {
    background-color: #0b0b10; /* 背景を少し暗くしてメリハリをつける */
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(0, 212, 255, 0.2); /* 上部にシアンの薄いライン */
    padding: 60px 20px 20px 20px; /* 余白を広げてリッチに */
    font-size: 0.9rem;
}

/* フッター上部を走るサイバーな光のライン */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--main-color) 50%, transparent 100%);
    box-shadow: 0 0 15px var(--main-color);
}

/* 内部レイアウト（PC時は横並び） */
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dashed rgba(255,255,255,0.1); /* 区切り線 */
}

/* 左：ロゴ */
.footer-logo h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #fff;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: 900;
    line-height: 1.2;
}
.footer-logo p {
    color: var(--main-color);
    margin: 5px 0 0 0;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 中央：ナビゲーション */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}
.footer-nav ul li a:hover {
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); /* ホバーで光る */
}

/* 右：SNSボタン */
.footer-sns {
    display: flex;
    gap: 15px;
}
.footer-sns-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.footer-sns-btn.youtube {
    background-color: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}
.footer-sns-btn.youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
}
.footer-sns-btn.twitter {
    background-color: #000;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}
.footer-sns-btn.twitter:hover {
    background-color: #222;
    transform: translateY(-3px);
}

/* 一番下：コピーライト */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.floating-btn-container {
    position: fixed; /* 画面に固定する魔法 */
    bottom: 40px; /* 画面の一番下から40px浮かせる */
    left: 50%; /* 左から50%の位置に配置 */
    transform: translateX(-50%); /* 自身の横幅の半分だけ左に戻して、完璧なド真ん中へ！ */
    z-index: 90; /* フッターや記事の文字より手前に表示する */
}


    /* ▼フッターが見えた時に追加されるクラス ▼ */
    .floating-btn-container.is-stopped {
        position: absolute; /* fixed(画面への固定)をやめて、mainの中に配置する */
        bottom: 40px; /* mainの一番下から40pxの位置にピタッと置く */
    }

    /* 浮いているボタンをさらに押しやすくするための強い影 */
    .floating-btn-container .btn {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        /* パソコン版では文字が1行に収まるように折り返しを禁止 */
        white-space: nowrap;
    }


    /* =========================================
   YouTube サムネイルリンク用のデザイン
========================================= */
.youtube-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.youtube-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* マウスを乗せたらサムネイルを少しズームする */
.movie-item:hover .youtube-facade img {
    transform: scale(1.05);
}



/* =========================================
   MOVIE (Shorts用の縦長設定の書き換え)
========================================= */
/* ▼ 既存の「.shorts-container .movie-item iframe」の設定を以下に上書きしてください ▼ */
.shorts-container .movie-item .youtube-facade,
.shorts-container .movie-item iframe {
    aspect-ratio: 9 / 16; /* サムネイル画像も縦長比率に固定する */
}


/*=========================================
   サイバーガラス化（白背景・ライトブルー版）
========================================= */
/* 1. 白いすりガラス風の箱 */
.about-text, .activity-card, .timeline-content, .top-news-container, .page-news-list li, .top-member-item, .member-card, .movie-item, .profile-info, .profile-data {
    background-color: var(--card-bg) !important; /* 半透明の白 */
    backdrop-filter: blur(12px); /* 後ろのビームをぼかす */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9) !important; /* ガラスのフチの反射 */
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15) !important; /* 淡いブルーの影 */
}

/* 2. ヘッダーを半透明の白に変更 */
header {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* ▼ 修正：リスト部分の真っ白な塗りつぶしを解除して透明にする ▼ */
.header-nav {
    background-color: transparent !important; 
}

/* 3. 見出しの淡い光 */
section h3 {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* 4. MEMBERの背景文字とプロフィールの装飾 */
.member-card::before {
    -webkit-text-stroke: 2px rgba(0, 212, 255, 0.15) !important;
    text-stroke: 2px rgba(0, 212, 255, 0.15) !important;
}
.profile-container::before {
    opacity: 0.1 !important;
}
.profile-name {
    border-bottom: 5px solid var(--member-color) !important;
    text-shadow: none !important;
}

/* =========================================
   404エラーページ（白背景・歌い手マイルドデザイン）
========================================= */
/* サイト全体と同じクリーンな白ベースに変更 */
body.error-page {
    background-color: var(--bg-color); 
    color: var(--text-color);
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ▼ 歌い手アピール①：背景にメンバー全員のシルエット（影）を配置 ▼ */
body.error-page::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 足元 */
    left: 0;
    width: 100%;
    height: 40vh; /* 画面の下の方に配置 */
    /* ▼ 修正1：マイナスをやめて 0 にし、白背景の「手前」に出す ▼ */
    z-index: 0;
    
    /* メンバー7人の立ち絵を読み込む */
    background-image: 
        url('../images/kenpi1.png'),
        url('../images/7291.png'),
        url('../images/seira1.png'),
        url('../images/reina1.png'),
        url('../images/tumugi1.png'),
        url('../images/kogomi1.png'),
        url('../images/shion1.png');
        
    background-repeat: no-repeat;
    background-size: auto 100%, auto 100%, auto 100%, auto 100%, auto 100%, auto 100%, auto 100%;
    
    /* 横に均等に並べる */
    background-position: 
        5% bottom, 
        20% bottom, 
        35% bottom, 
        50% bottom, 
        65% bottom, 
        80% bottom, 
        95% bottom;
        
    /* ▼ 修正2：0.04 だと薄すぎるため、0.08 にして少し見えやすくする ▼ */
    filter: brightness(0) opacity(0.08);
}

/* スマホ版のシルエット巨大化（バケモン化）防止 */
@media screen and (max-width: 900px) {
    body.error-page::after {
        height: 25vw;
        background-position: 
            2% bottom, 
            18% bottom, 
            34% bottom, 
            50% bottom, 
            66% bottom, 
            82% bottom, 
            98% bottom;
    }
}

/* ▼ 歌い手アピール②：背景に巨大な音符を飛ばす ▼ */
.error-page-note1, .error-page-note2 {
    position: absolute;
    color: var(--main-color);
    /* ▼ 修正3：こちらも -1 を 0 に変更し、透明度を 0.15 にアップ ▼ */
    opacity: 0.15; 
    z-index: 0; 
    font-family: serif;
    pointer-events: none;
}
.error-page-note1 {
    top: 20%;
    left: 10%;
    font-size: clamp(10rem, 25vw, 20rem);
    transform: rotate(-15deg);
}
.error-page-note2 {
    top: 50%;
    right: 5%;
    font-size: clamp(8rem, 20vw, 15rem);
    transform: rotate(20deg);
}

/* メインコンテンツの配置 */
.error-container {
    text-align: center;
    /* ▼ 修正4：文字が影や音符よりも確実に手前に来るように relative を追加 ▼ */
    position: relative;
    z-index: 2;
    padding: 150px 20px 100px 20px; 
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 404の文字（グリッチをやめて爽やかなシアンブルーに） */
.error-404 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 900;
    line-height: 1;
    color: var(--main-color);
    text-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    margin-bottom: 5px;
}

.error-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 5px;
    margin-bottom: 40px;
}

/* メッセージボックス（いつもの白すりガラス） */
.error-message {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.error-message p {
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.8;
    color: #555;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.error-message p:last-child {
    margin-bottom: 0;
}

/* ちょっとした遊び心のテキスト */
.error-sub-message {
    margin-top: 25px !important;
    font-size: 0.9rem !important;
    color: var(--main-color) !important;
}

/* スマホ対応（メディアクエリ） */
@media screen and (max-width: 900px) {
    header {
        padding: 15px 20px;
    }

    .menu-icon {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        z-index: 101;
    }

    .navicon {
        background: var(--text-color);
        display: block;
        height: 3px;
        border-radius: 3px;
        position: relative;
        width: 28px;
        transition: background .2s ease-out;
    }

        .navicon:before, .navicon:after {
            background: var(--text-color);
            content: '';
            display: block;
            height: 100%;
            border-radius: 3px;
            position: absolute;
            transition: all .2s ease-out;
            width: 100%;
        }

        .navicon:before {
            top: 9px;
        }

        .navicon:after {
            top: -9px;
        }

    .menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }

        .menu-btn:checked ~ .menu-icon .navicon:before {
            transform: rotate(-45deg);
            top: 0;
        }

        .menu-btn:checked ~ .menu-icon .navicon:after {
            transform: rotate(45deg);
            top: 0;
        }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        /* ▼ 修正：スマホの展開メニューにも「すりガラス効果」をつける ▼ */
        background-color: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 10px 20px rgba(0, 212, 255, 0.1); /* 影も少しサイバーブルーに */
    }

    .menu-btn:checked ~ .header-nav {
        max-height: 350px;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0 50px 0;
        gap: 20px;
    }

        .header-nav ul li a {
            font-size: 1.3rem;
            display: block;
            padding: 10px;
        }

    /* スマホ対応：トップページニュース */
    .top-news-container {
        padding: 15px 20px;
    }

    .top-news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* スマホ対応：ニュースページ（サムネ付き） */
    .page-news-link {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .page-news-thumb {
        width: 100%;
    }

    .page-news-body {
        gap: 8px;
    }


    /* スマホ対応：トップページの簡易メンバーリスト */
    .top-member-container {
        gap: 15px; /* スマホでは隙間を少し狭くする */
    }

    .top-member-item {
        width: calc(50% - 7.5px); /* スマホでも2列を維持！ */
        padding: 15px 10px;
    }

    .top-member-img {
        height: 130px; /* スマホでは画像の高さを抑える */
    }

    .member-card, .member-card:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
        padding: 40px 20px;
    }

        .member-card::before {
            content: none;
        }

    .member-color-bar {
        height: 30px;
        opacity: 1;
        position: relative;
        width: 90%;
        margin: -40px auto 20px auto;
        /* ▼ PC版の設定をスマホ用にリセットする▼ */
        transform: none !important;
        border-radius: 15px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .member-img {
        margin-top: -20px;
    }

    .member-img-box {
        width: clamp(220px, 70vw, 450px);
    }

    .member-text {
        padding: 20px;
        text-align: center;
    }

    .member-card:nth-child(even) .member-text {
        padding: 20px;
    }

    .member-text .role {
        justify-content: center;
    }


    .profile-section {
        padding: 80px 0 0 0;
        min-height: auto;

        background-size: 20px 20px;
    }

.profile-section::after {
    width: 120%;
    height: 50%;
    top: auto;
    bottom: -10%;
    right: -10%;
    transform: skewY(-15deg); /* スマホ用に角度を調整 */
}

.profile-container {
    display: block !important;
    position: relative;
    width: 100%;
    padding-top: 20px;
}

    /* スマホ用：背景の透かしローマ字スクロール */
    .profile-container::before {
        top: 5%;
        left: 0;
        font-size: clamp(3rem, 15vw, 5rem);
        -webkit-text-stroke: 1.5px var(--member-color);
        opacity: 0.2;
        /* スマホ用のアニメーション */
        animation: scrollTextMobile 80s linear infinite;
    }

@keyframes scrollTextMobile {
    0% {
        transform: rotate(-5deg) translateX(0);
    }

    100% {
        transform: rotate(-5deg) translateX(-30%);
    }
}

/* スマホ：画像（右側に大きく配置して、全体の高さを確保） */
.profile-img {
    width: 75%; /* 画面の右75%を占有 */
    margin-left: auto; /* 右に寄せる */
    display: block;
}

    .profile-img img {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        filter: drop-shadow(5px 5px 0px rgba(0,0,0,0.1)); /* スマホ用に影を少し控えめに */
    }

/* スマホ：テキスト情報（左側に浮かせて画像に被せる魔法） */
.profile-info {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 65%;
    /* ▼ ガラス化を強制的にキャンセルして完全に透明にする ▼ */
    background: transparent !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    
    padding: 0;
    margin: 0;
    text-align: left;
    z-index: 10;
}

.profile-name {
    font-size: clamp(1.5rem, 10vw, 2rem) !important;
    border-bottom: none; /* 下線を消す */
    padding-bottom: 0;
    margin-bottom: 15px !important;
    /* 白いフチをつけて文字を画像の上でもくっきり読ませる */
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
}

    .profile-name span {
        font-size: 0.8rem !important;
        margin-top: 0;
    }

.profile-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    /* 文字が画像と同化しないように薄い白モヤをかける */
    text-shadow: 1px 1px 2px rgba(255,255,255,0.9), 0px 0px 5px rgba(255,255,255,0.9);
    text-align: left;
    width: 85%;
}

/* 誕生日などのデータ */
.profile-data {
    /* ▼ こちらのガラス化も強制キャンセルして透明にする ▼ */
    background: transparent !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    
    padding: 0;
    gap: 15px;
}

.profile-data-item {
    flex-direction: column; /* お手本のように項目名と内容を縦に並べる */
    align-items: flex-start;
    gap: 2px;
}

    .profile-data-item dt {
        background: transparent; /* 黒いタグを消す */
        color: var(--light-text);
        padding: 0;
        font-size: 0.75rem !important;
        min-width: auto;
    }

    .profile-data-item dd {
        font-size: 1.2rem !important;
        /* 数字にも白いフチをつける */
        text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
    }

    /* スマホ版：フローティングボタン */
    .floating-btn-container {
        bottom: 20px; /* スマホでは少し下げる */
        width: 90%; /* 画面幅の90%の巨大な箱にする */
        text-align: center;
    }

        .floating-btn-container.is-stopped {
            bottom: 20px;
        }

        .floating-btn-container .btn {
            width: 100%; /* ボタンの横幅を箱いっぱいに広げる */
            box-sizing: border-box; /* paddingを含めてはみ出さないようにする */
            padding: 15px 0; /* 高さを少しスリムに */
        }

    /* ▼ スマホ版：LINKS背景のシルエットが巨大化してバケモンになるのを防ぐ ▼ */
    section#links::before {
        height: 35vw; /* 高さを「スマホの画面幅の35%」に制限して巨大化をストップ */
        bottom: 15px; /* 足元の位置を少し調整 */
        /* PC版より少しだけ感覚を広げて、綺麗に並べる */
        background-position: 
            2% bottom, 
            18% bottom, 
            34% bottom, 
            50% bottom, 
            66% bottom, 
            82% bottom, 
            98% bottom;
    }


    /* スマホ版：フッターのレイアウト調整 */
    .footer-inner {
        flex-direction: column; /* 縦並びに変更 */
        text-align: center;
        gap: 30px;
    }
    .footer-nav ul {
        flex-wrap: wrap; /* 画面に収まらない時は折り返す */
        justify-content: center;
        gap: 15px 25px;
    }

}