/*
Theme Name: Romansquall Theme
Theme URI: https://romansquall.com/
Author: Antigravity & Kichom
Description: Romansquall Official Website custom theme, updated with royal blue (#4169e1) alternating background, full-width section coloring, simplified footer, title icons, vertical news and live list (direct details popup modal), absolute topmost boundary banners (z-index: 999 / topmost stacking fix), scrollable news, and giant geometric SVG watermarks.
Version: 3.2.0
Text Domain: romansquall-theme
*/

/* =========================================================================
   1. VARIABLES & RESET (Dark Mode: White, Black, Royal Blue Theme)
   ========================================================================= */
:root {
    --bg-black: #000000;
    --bg-black-alt: #0a0a0a;
    --bg-navy: #4169e1; /* ロイヤルブルー (#4169e1) */
    --bg-navy-alt: #4f74e6;
    
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.15);
    
    --accent-color: #33ccff; /* 水色 (Cyan/Light Blue) をアクティブ・アクセントに使用 */
    --accent-light: rgba(51, 204, 255, 0.15);
    
    --font-heading: 'Syncopate', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --side-nav-width: 70px;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.75;
    font-size: 15px;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   2. BASIC STRUCTURE & LAYOUT (Full-width backgrounds)
   ========================================================================= */
.rs-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* iOS Safari等のスマホでの横揺れ・はみ出し表示崩れを完全に防ぐ */
}

.rs-content-wrapper {
    margin-left: var(--side-nav-width);
    transition: margin-left 0.3s ease;
}

.rs-main-content-flow {
    width: 100%;
}

@media (max-width: 992px) {
    .rs-absolute-boundary-banners {
        left: var(--side-nav-width) !important; /* スマホでもサイドバーの内側にバナーを表示 */
        width: calc(100vw - var(--side-nav-width) - 44px) !important;
        overflow: hidden !important;
    }
}

/* 各セクションの全幅背景とコンテンツ中央寄せインナー */
.rs-section {
    padding: 8rem 0;
    width: 100%;
}

.rs-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    position: relative;
    z-index: 2; /* 巨大背景線画より前面に表示してカードや文字の視認性を確保 */
}

/* 背景色別ルール */
.bg-black {
    background-color: var(--bg-black-alt) !important;
}

.bg-navy {
    background-color: var(--bg-navy) !important;
}

/* =========================================================================
   2.5 BACKGROUND WATERMARK LINE-ART (巨大抽象・幾何学線画透かしデザイン - 大大胆＆高視認)
   ========================================================================= */
.rs-has-bg-watermark {
    position: relative;
    overflow: hidden;
}

.rs-watermark-bg {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 60vw; /* 60vwへ拡大し、より大胆でダイナミックなはみ出しレイアウトに */
    height: 60vw;
    color: rgba(255, 255, 255, 0.08); /* 黒背景上：透過度を上げてはっきりと見やすく修正 (8%) */
    pointer-events: none;
    z-index: 2; /* 砂嵐(z-index:1)より前面 */
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================================
   BACKGROUND SANDSTORM STATIC GLITCH (背景全体の常時砂嵐・アナログノイズエフェクト)
   ========================================================================= */
.rs-section {
    position: relative;
    z-index: 1;
}

.rs-section-inner {
    position: relative;
    z-index: 10;
}

/* セクションの背景全体に、常時かかる「砂嵐ノイズ」を重ねる疑似要素 */
.rs-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 背景色の前面、線画やコンテンツの背面 */
    pointer-events: none;
    opacity: 0.25; /* 常時砂嵐が確実に見える「中間くらい」の濃度(25%) */
    mix-blend-mode: screen;
    /* アナログ砂嵐・走査ノイズテクスチャを表現 */
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.22) 0px, rgba(255,255,255,0.22) 1.5px, transparent 1.5px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 1.5px, transparent 1.5px, transparent 4px),
        radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 5px 5px, 5px 5px, 9px 9px;
    animation: rs-always-sandstorm 0.12s infinite; /* 高速に震え続け、常時砂嵐が動いている質感を表現 */
}

/* 常時ノイズが震える（Static Shiver）アニメーション */
@keyframes rs-always-sandstorm {
    0% {
        transform: translate(0, 0);
        background-position: 0 0, 0 0, 0 0;
    }
    20% {
        transform: translate(-1px, 1px);
        background-position: 2px 3px, -1px 2px, 3px -2px;
    }
    40% {
        transform: translate(1px, -1px);
        background-position: -3px 1px, 2px -3px, -2px 4px;
    }
    60% {
        transform: translate(-2px, -1px);
        background-position: 1px -2px, -3px 1px, 4px 2px;
    }
    80% {
        transform: translate(2px, 1px);
        background-position: -2px 4px, 3px -1px, -4px -3px;
    }
    100% {
        transform: translate(0, 0);
        background-position: 0 0, 0 0, 0 0;
    }
}

.rs-svg-watermark {
    width: 100%;
    height: 100%;
    display: block;
}

/* ロイヤルブルー背景上の巨大線画は白の透過度を12%まで引き上げて視認性を大きく向上 */
.bg-navy .rs-watermark-bg {
    color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 992px) {
    .rs-watermark-bg {
        width: 75vw;
        height: 75vw;
        bottom: -80px;
        right: -60px;
    }
}

@media (max-width: 768px) {
    .rs-watermark-bg {
        width: 90vw;
        height: 90vw;
        bottom: -50px;
        right: -40px;
    }
}

/* =========================================================================
   3. SIDE NAVIGATION (PC: Logo-less, scrollable, vertical text)
   ========================================================================= */
.rs-side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--side-nav-width);
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3) !important; /* 不透明度30%の黒 */
    backdrop-filter: blur(8px); /* ガラス調の透過エフェクト */
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rs-side-nav::-webkit-scrollbar {
    display: none;
}

.rs-side-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem; /* メニュー増加に対応してgapを少し縮小 */
    align-items: center;
    padding: 1rem 0;
}

.rs-menu-link {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.4rem 0;
    position: relative;
    display: inline-block;
}

.rs-menu-link:hover,
.rs-menu-link.active {
    color: var(--accent-color); /* 白から水色(#33ccff)に変更 */
    text-shadow: 0 0 10px rgba(51, 204, 255, 0.5);
}

.rs-menu-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color); /* ドットマークも水色に変更 */
    opacity: 0;
    transition: opacity 0.3s;
}

.rs-menu-link.active::before {
    opacity: 1;
}



/* =========================================================================
   4. MOBILE HEADER & DRAWER (Tablet/Mobile)
   ========================================================================= */
.rs-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 999;
}

.rs-mobile-brand a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.rs-mobile-menu-btn {
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.rs-mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    position: absolute;
    transition: all 0.3s ease;
}

.rs-mobile-menu-btn span:first-child { top: 3px; }
.rs-mobile-menu-btn span:last-child { bottom: 3px; }

.rs-mobile-menu-btn.active span:first-child {
    transform: translateY(6px) rotate(45deg);
}
.rs-mobile-menu-btn.active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.rs-mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    background-color: var(--bg-black);
    z-index: 998;
    padding: 2rem 10% 4rem; /* 下部に余裕を持たせて見切れを防ぐ */
    overflow-y: auto; /* ドロワーメニュー自体をスクロール可能にして全項目を表示できるようにする */
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-mobile-nav.active {
    transform: translateY(0);
}

.rs-mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.rs-mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.rs-mobile-menu a:hover {
    color: var(--accent-color);
}



/* =========================================================================
   5. HERO SECTION (Video Background - Full Screen)
   ========================================================================= */
.rs-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rs-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.rs-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.rs-scroll-indicator {
    position: absolute;
    bottom: 125px; /* バナーに被らないよう、インジケーターを十分上の位置に配置 */
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #ffffff;
    animation: rs-bounce 2s infinite;
    z-index: 10;
    opacity: 0.85;
}

@keyframes rs-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 992px) {
    .rs-hero {
        padding-top: 60px;
    }
}

/* =========================================================================
   6. CAROUSEL SLIDER (スライダー共通 ※1)
   ========================================================================= */
.rs-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.rs-carousel-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.rs-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1.5rem 0;
}

.rs-carousel-track::-webkit-scrollbar {
    display: none;
}

.rs-carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.rs-carousel-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.rs-carousel-btn:hover {
    border-color: #ffffff;
    background-color: var(--accent-light);
}

.rs-carousel-btn.prev { left: -22px; }
.rs-carousel-btn.next { right: -22px; }

@media (max-width: 992px) {
    .rs-carousel-btn {
        display: none;
    }
    .rs-carousel-track {
        gap: 20px;
    }
}

/* =========================================================================
   7. SECTIONS & TITLES (With Line Art Icons)
   ========================================================================= */
.rs-section-header {
    margin-bottom: 4.5rem;
}

.rs-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* 線画アイコンのスタイル - 文字化け(非表示)防止のためfont-weight制限を削除 */
.rs-title-icon {
    font-size: 1.6rem;
    margin-right: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    vertical-align: middle;
}

.rs-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
}

/* =========================================================================
   8. FEATURED BANNERS (完全修正：z-index最前面処理を施した境界重ね乗せバナー)
   ========================================================================= */
.rs-absolute-boundary-banners {
    position: absolute;
    top: calc(100vh - 100px); /* HERO動画の最下部から、バナー画像の高さのちょうど半分(約100px)だけ上にずらして配置 */
    left: calc(-1 * var(--side-nav-width)); /* 左サイドバーの幅を相殺して画面の本当の左端から開始させる */
    width: calc(100% + var(--side-nav-width)); /* 相殺した幅の分だけ横幅を広げて画面の右端まで一杯にする */
    z-index: 90; /* 左右の固定サイドバーやヘッダー(z-index:1000〜)の裏を通るように下げる */
    background: transparent !important; /* 黒い帯は一切作らず透明のまま */
    pointer-events: none; /* コンテナ自体はクリックを通過させて下のコンテンツのスクロールを邪魔しない */
    overflow: hidden; /* マーキートラックが右端にはみ出して横揺れバグになるのを防ぐ */
}

.rs-absolute-boundary-banners .rs-banners-carousel-container {
    max-width: 100%; /* 1200px制限を取り払いフルスクリーン端から端まで流す */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    pointer-events: auto; /* バナー内部のクリックは有効化 */
}

.rs-absolute-boundary-banners .rs-carousel-track-wrapper {
    overflow: hidden; /* はみ出し部分をカット */
    width: 100%;
}

.rs-absolute-boundary-banners .rs-banners-track {
    display: flex;
    gap: 30px;
    padding: 0;
    width: max-content; /* バナーの合計幅に自動伸縮 */
    justify-content: flex-start; /* 左寄せにしてループ位置を保証 */
    animation: rs-banner-marquee 25s linear infinite; /* 等速でゆっくりループ */
}

/* ホバー時はスクロールを一時停止してクリックしやすくする */
.rs-banners-track:hover {
    animation-play-state: paused;
}

@keyframes rs-banner-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* ちょうど1セット分（50%）移動した瞬間に0に戻る */
    }
}

.rs-banners-track .rs-banner-slide {
    width: 320px; /* バナー画像の幅 */
    height: 160px; /* バナー画像の高さ (2:1のアスペクト比) */
    display: block;
    flex-shrink: 0;
}

.rs-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.rs-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* どのような画像サイズでも2:1の枠内に綺麗にトリミング・縮尺される */
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9); /* 強いシャドウで動画とPICK UPの境界線から美しく浮き上がらせる */
    transition: transform 0.3s ease, border-color 0.3s;
}

.rs-banner-slide a:hover img {
    transform: scale(1.015);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(51, 204, 255, 0.5);
}

@media (max-width: 768px) {
    .rs-absolute-boundary-banners {
        top: calc(100vh - 60px); /* スマホ画面のサイズに合わせたはみ出し位置の調整 */
    }
    .rs-absolute-boundary-banners .rs-banners-track {
        gap: 15px;
    }
    .rs-banners-track .rs-banner-slide {
        width: 160px; /* モバイルで複数並びやすいようにコンパクトに調整 */
        height: 80px; /* 高さも2:1 (160x80) に固定 */
    }
    .rs-scroll-indicator {
        bottom: 80px;
    }
}

/* =========================================================================
   9. PICK UP SECTION (※バナーがはみ出て重なるため、最初の要素に少し上部余白を追加)
   ========================================================================= */
.rs-pickup-section {
    padding-top: 12rem !important; /* バナーが上から100px覆いかぶさってくるため、パディングを少し広げて文字被りを防ぎます */
}

.rs-pickup-list {
    /* 1 行に最大 3 件表示し、超過分は横スクロール */
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; /* スクロール時の余白 */
}

/* 各アイテムは 3 分割幅で固定 */
.rs-pickup-item {
    flex: 0 0 calc((100% - 60px) / 3); /* 3列分の幅を確保 */
    scroll-snap-align: start;
}

.rs-pickup-item {
    border: 1px solid var(--border-color);
    padding: 3rem;
    background-color: var(--bg-navy-alt);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.rs-pickup-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.rs-pickup-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.rs-pickup-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.rs-pickup-meta span {
    margin-right: 1.5rem;
}

.rs-pickup-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.45;
    color: #ffffff;
}

.rs-pickup-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rs-pickup-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    align-self: flex-start;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 3px;
    color: #ffffff;
}

.rs-pickup-item:hover .rs-pickup-link {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

@media (max-width: 768px) {
    .rs-pickup-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   10. NEWS SECTION (※アコーディオン廃止・LIVEと同様に行クリックで直接小窓起動)
   ========================================================================= */
.rs-news-list {
    border-top: 1px solid var(--border-color) !important;
    max-height: 330px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    display: block !important;
    
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
}

.rs-news-list::-webkit-scrollbar {
    width: 6px !important;
}

.rs-news-list::-webkit-scrollbar-track {
    background: transparent !important;
}

.rs-news-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-radius: 3px !important;
}

.rs-news-item {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer; /* 行全体をクリック可能なためポインターに */
}

.rs-news-header {
    display: flex;
    align-items: center;
    padding: 2rem 1.2rem;
    transition: all 0.3s;
}

.rs-news-item:hover .rs-news-header {
    background-color: var(--bg-navy-alt);
}

.rs-news-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    width: 130px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.3s;
}

.rs-news-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    margin-right: 2rem;
    flex-shrink: 0;
    color: var(--text-muted);
    border-radius: 2px;
    transition: border-color 0.3s, color 0.3s;
}

.rs-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
    color: #ffffff;
    transition: color 0.3s;
}

/* 右端の「DETAIL ➔」インジケーターテキスト */
.rs-news-detail-link {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
}

/* ホバー時の洗練された水色発光インタラクション */
.rs-news-item:hover .rs-news-title,
.rs-news-item:hover .rs-news-date {
    color: #ffffff;
}

.rs-news-item:hover .rs-news-cat {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.rs-news-item:hover .rs-news-detail-link {
    color: var(--accent-color);
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .rs-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1.5rem 0.8rem;
    }
    .rs-news-date {
        width: auto;
    }
    .rs-news-cat {
        margin-right: 0;
    }
    .rs-news-title {
        white-space: normal;
        padding-right: 0;
    }
    .rs-news-detail-link {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}

/* =========================================================================
   11. LIVE SECTION
   ========================================================================= */
.rs-live-list {
    border-top: 1px solid var(--border-color);
    display: block;
}

.rs-live-item {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.rs-live-header {
    display: flex;
    align-items: center;
    padding: 2.2rem 1.2rem;
    transition: all 0.3s;
}

.rs-live-item:hover .rs-live-header {
    background-color: rgba(255, 255, 255, 0.05);
}

.rs-live-date {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    width: 160px;
    flex-shrink: 0;
    color: #ffffff;
    transition: color 0.3s;
}

.rs-live-venue {
    font-size: 0.88rem;
    font-weight: 700;
    width: 280px;
    flex-shrink: 0;
    color: var(--accent-color); /* 水色 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 2rem;
}

.rs-live-title {
    font-size: 1.1rem;
    font-weight: 700;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
    color: #ffffff;
    transition: color 0.3s;
}

/* 右端の「DETAIL ➔」インジケーターテキスト */
.rs-live-detail-link {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
}

/* ホバー時の洗練された水色発光インタラクション */
.rs-live-item:hover .rs-live-title,
.rs-live-item:hover .rs-live-date {
    color: var(--accent-color);
}

.rs-live-item:hover .rs-live-detail-link {
    color: var(--accent-color);
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .rs-live-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1.8rem 0.8rem;
    }
    .rs-live-date {
        width: auto;
    }
    .rs-live-venue {
        width: 100%;
        margin-right: 0;
    }
    .rs-live-title {
        white-space: normal;
        padding-right: 0;
        margin-top: 0.2rem;
    }
    .rs-live-detail-link {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}

/* =========================================================================
   12. MOVIE SECTION (シームレス自動スクロールスライダー)
   ========================================================================= */
.rs-movie-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: rs-movie-scroll 32s linear infinite;
    will-change: transform;
}

.rs-movie-carousel-container:hover .rs-movie-track {
    animation-play-state: paused; /* ホバー時は動画操作のため自動スクロールを一時停止 */
}

@keyframes rs-movie-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.rs-movie-carousel-container .rs-carousel-item {
    width: 340px; /* 横幅を縮小して3つ並びやすくする */
}

.rs-movie-slide {
    border: none !important;
    background-color: transparent !important;
    padding: 0 !important; /* 枠や背景を完全に排除しYouTubeの再生画面だけにする */
    box-shadow: none !important;
}

.rs-movie-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9アスペクト比 */
    margin-bottom: 0; /* マージンを不要に */
    background-color: transparent !important;
}

.rs-movie-aspect iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rs-movie-slide-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.rs-movie-slide.text-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rs-movie-cta-card {
    text-align: center;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rs-movie-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.rs-movie-cta-sub {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.rs-text-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 3px;
    color: #ffffff;
}

.rs-text-link:hover {
    opacity: 0.75;
}

@media (max-width: 768px) {
    .rs-movie-carousel-container .rs-carousel-item {
        width: 250px; /* スマホでは250px幅にし、横に見切れ動画が並んでいることが分かるようにする */
    }
}

/* =========================================================================
   13. DISCOGRAPHY SECTION
   ========================================================================= */
.rs-disco-carousel-container .rs-carousel-item {
    width: 300px;
}

.rs-disco-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-navy);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    cursor: pointer;
}

.rs-disco-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.rs-disco-card-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.rs-disco-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rs-disco-card-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.rs-disco-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #ffffff;
}

.rs-disco-card-comment {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-style: italic;
    line-height: 1.5;
}

.rs-disco-card-songs {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-height: 90px;
    overflow-y: auto;
}

.rs-disco-card-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rs-disco-card-link {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid #ffffff;
    padding: 8px 0;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.rs-disco-card-link.streaming {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.rs-disco-card-link.streaming:hover {
    background-color: transparent;
    color: #ffffff;
}

.rs-disco-card-link.store {
    background-color: transparent;
    color: #ffffff;
}

.rs-disco-card-link.store:hover {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 768px) {
    .rs-disco-carousel-container .rs-carousel-item {
        width: 260px;
    }
}

/* =========================================================================
   14. BIOGRAPHY SECTION
   ========================================================================= */
.rs-bio-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.rs-bio-img img {
    width: 100%;
    /* 常時カラー表示（グレースケールを削除） */
    filter: none;
    border: 1px solid var(--border-color);
}

.rs-bio-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rs-bio-text p {
    margin-bottom: 1.5rem;
}

.rs-bio-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .rs-bio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* =========================================================================
   15. MEMBERS SECTION
   ========================================================================= */
/* メンバー一覧グリッド */
.rs-members-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* PC・モバイルを問わず常に4列横並び */
    gap: 16px !important;
    width: 100% !important;
}

@media (max-width: 992px) {
    .rs-members-grid {
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .rs-members-grid {
        gap: 8px !important;
    }
    .rs-member-card-body {
        padding: 0.5rem 0.3rem !important;
    }
    .rs-member-card-title {
        font-size: 0.78rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }
    .rs-member-card-part {
        font-size: 0.58rem !important;
        margin-bottom: 0.2rem !important;
    }
    /* スマホ・タブレットでもSNSリンクを常に表示し、コンパクトに収める */
    .rs-member-card-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        margin-top: 0.3rem !important;
        justify-content: center !important;
    }
    .rs-member-card-link {
        font-size: 0.58rem !important;
        padding: 2px 4px !important;
        letter-spacing: 0 !important;
    }
}

/* メンバーカード：DISCOと同じ構造・デザイン・1:1正方形アスペクト比で完全に統一 */
.rs-member-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-navy);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    cursor: pointer; /* クリックでモーダルが開くためディスコ同様にポインター化 */
}

.rs-member-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* 写真エリア：正方形(1:1)にしてディスコカードと統一 */
.rs-member-card-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* ディスコ同様の正方形 */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rs-member-card:hover .rs-member-card-img {
    filter: brightness(1.08);
}

.rs-member-card-body {
    padding: 1.5rem; /* パディングを適度にしてディスコカードに近づける */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rs-member-card-part {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rs-member-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: #ffffff;
}

/* SNSリンクボタンはPC版では表示、スマホ版では非表示にしてハミ出し崩れを完璧に防ぐ */
.rs-member-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.rs-member-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.rs-member-card-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* =========================================================================
   16. CONTACT SECTION (Minimal Form)
   ========================================================================= */
.rs-contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.rs-contact-desc {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

.rs-form {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.rs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.rs-form input,
.rs-form textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s;
}

.rs-form input::placeholder,
.rs-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

.rs-form input:focus,
.rs-form textarea:focus {
    border-color: #ffffff;
}

.rs-form textarea {
    height: 120px;
    resize: none;
}

.rs-submit-btn {
    align-self: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 1px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 36px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.rs-submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =========================================================================
   15.5 POPUP DETAILS MODAL (詳細ポップアップ小窓用CSS)
   ========================================================================= */
.rs-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rs-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rs-modal-content-box {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: #0a0a0a;
    border: 1px solid var(--border-color);
    z-index: 10001;
    overflow-y: auto;
    padding: 3.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.rs-modal-content-box::-webkit-scrollbar {
    width: 5px;
}

.rs-modal-content-box::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
}

/* 開いた際の状態 */
.rs-modal.open {
    opacity: 1;
    display: flex !important;
    pointer-events: auto;
}

/* モーダル出現・消失のサイバーグリッチアニメーション */
.rs-modal-content-box.glitch-in {
    animation: rs-modal-glitch-in 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.rs-modal-content-box.glitch-out {
    animation: rs-modal-glitch-out 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes rs-modal-glitch-in {
    0% {
        opacity: 0;
        transform: scale(1.12) skew(-12deg) translate(-10px, 8px);
        filter: contrast(2) drop-shadow(6px 0 0 var(--accent-color)) drop-shadow(-6px 0 0 #ff3366);
    }
    30% {
        opacity: 0.85;
        transform: scale(0.95) skew(8deg) translate(8px, -5px);
        filter: hue-rotate(90deg) contrast(1.8);
    }
    60% {
        opacity: 0.6;
        transform: scale(1.04) skew(-4deg) translate(-4px, 3px);
        filter: drop-shadow(-4px 0 0 var(--accent-color)) drop-shadow(4px 0 0 #ff3366);
    }
    85% {
        opacity: 0.95;
        transform: scale(0.98) skew(2deg) translate(2px, -1px);
        filter: contrast(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1) skew(0deg) translate(0, 0);
        filter: none;
    }
}

@keyframes rs-modal-glitch-out {
    0% {
        opacity: 1;
        transform: scale(1) skew(0deg) translate(0, 0);
        filter: none;
    }
    20% {
        opacity: 0.9;
        transform: scale(1.06) skew(14deg) translate(-14px, 6px);
        filter: drop-shadow(8px 0 0 var(--accent-color)) drop-shadow(-8px 0 0 #ff3366) contrast(2);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.88) skew(-18deg) translate(16px, -8px);
        filter: hue-rotate(180deg) contrast(3) invert(0.15);
    }
    80% {
        opacity: 0.35;
        transform: scale(1.18) skew(22deg) translate(-20px, 12px);
        filter: drop-shadow(-10px 0 0 var(--accent-color)) drop-shadow(10px 0 0 #ff3366);
    }
    100% {
        opacity: 0;
        transform: scale(0.65) skew(-32deg) translate(28px, -18px);
        filter: opacity(0);
    }
}

/* 閉じるボタン */
.rs-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 10010;
    transition: all 0.25s ease;
    line-height: 1;
}

.rs-modal-close-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(51, 204, 255, 0.6);
}

/* モーダル内部レイアウト共通 */
.rs-modal-header-info {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.rs-modal-date-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 1.2rem;
}

.rs-modal-cat-tag, 
.rs-modal-venue-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 2px 10px;
    border-radius: 2px;
}

.rs-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 1rem;
    line-height: 1.35;
    color: #ffffff;
}

.rs-modal-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.rs-modal-text-col {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.rs-modal-text-col p {
    margin-bottom: 1.2rem;
}

.rs-modal-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.rs-modal-img-col img {
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    cursor: zoom-in;
    transition: transform 0.3s;
}

.rs-modal-img-col img:hover {
    transform: scale(1.015);
}

.rs-zoom-caption {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* アクションボタン (チケット・配信リンクなど) */
.rs-modal-action-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--accent-color);
    color: #000000;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 12px 28px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.rs-modal-action-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.rs-modal-action-btn.stream-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.rs-modal-action-btn.stream-btn:hover {
    background-color: transparent;
    color: #ffffff;
}

/* LIVE詳細モーダル用 */
.rs-modal-live-desc, 
.rs-modal-live-time, 
.rs-modal-live-price {
    margin-bottom: 1.5rem !important;
}

.rs-modal-live-desc strong, 
.rs-modal-live-time strong, 
.rs-modal-live-price strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.4rem;
}

/* DISCO詳細モーダル用 */
.rs-modal-songs-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-color);
}

.rs-modal-songs-list li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .rs-modal-content-box {
        padding: 2rem 1.5rem;
    }
    .rs-modal-main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .rs-modal-title {
        font-size: 1.3rem;
    }
}

/* =========================================================================
   16. FOOTER (Simplified)
   ========================================================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-black);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rs-side-sns {
    position: fixed;
    right: 8px; /* 右端から少し浮かせる */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px; /* ボタン同士の間隔 */
    z-index: 1002; /* バナー(90)やサイドバーよりも確実に最前面にする */
    padding: 0;
    background-color: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.rs-side-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.6) !important; /* アイコン単体への黒半透明背景 */
    border: 1px solid rgba(255, 255, 255, 0.15) !important; /* 細い白境界線 */
    border-radius: 50% !important; /* 丸型ボタン */
    transition: color 0.3s, background-color 0.3s, transform 0.2s;
}

.rs-side-sns-link:hover {
    color: var(--accent-color);
    background-color: rgba(51, 204, 255, 0.18) !important;
    transform: scale(1.08); /* ホバー時の微小浮き上がり */
}



/* =========================================================================
   18. MEMBER PROFILE TABLE
   ========================================================================= */
.rs-member-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rs-member-profile-table th,
.rs-member-profile-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.rs-member-profile-table th {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-color);
    white-space: nowrap;
    width: 180px;
}

.rs-member-profile-table td {
    color: var(--text-light);
}

.rs-member-profile-table tr:last-child th,
.rs-member-profile-table tr:last-child td {
    border-bottom: none;
}

/* =========================================================================
   19. MOBILE DISPLAY RESCALING & LAYOUT OPTIMIZATION (スマホ版縮尺・はみ出し表示崩れ徹底対策)
   ========================================================================= */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px !important; /* スマホ用固定ヘッダーでセクション上部が隠れるのを防ぐ */
    }

    /* セクション全体の余白を小さくしてスクロール量を低減 */
    .rs-section {
        padding: 4rem 0 !important;
    }

    /* 各セクションタイトルのフォントサイズを縮小して画面内に綺麗に収める */
    .rs-section-title {
        font-size: 1.6rem !important;
        letter-spacing: 0.1em !important;
    }

    /* 背景の巨大幾何学線画がはみ出して表示を邪魔しないように縮小 */
    .rs-watermark-bg {
        width: 80vw !important;
        height: 80vw !important;
        bottom: -30px !important;
        right: -30px !important;
        opacity: 0.5;
    }

    /* ライブセクションのテーブルを縦並びのカード風にして、横幅のハミ出し崩れを完全解消 */
    .rs-live-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .rs-live-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.2rem !important;
        border: 1px solid var(--border-color) !important;
        background-color: rgba(255, 255, 255, 0.02);
        gap: 8px !important;
    }

    .rs-live-date-box {
        width: auto !important;
        border-right: none !important;
        padding-right: 0 !important;
        margin-bottom: 0.2rem;
    }

    .rs-live-venue {
        width: auto !important;
        font-size: 0.85rem !important;
    }

    .rs-live-title {
        font-size: 1.1rem !important;
        margin: 0.2rem 0 !important;
    }

    .rs-live-ticket-btn {
        margin-top: 0.5rem;
        align-self: stretch;
        text-align: center;
    }

    /* ニュースセクションの文字サイズや余白調整 */
    .rs-news-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.2rem !important;
        gap: 8px !important;
    }

    .rs-news-meta {
        width: auto !important;
        border-right: none !important;
        padding-right: 0 !important;
    }

    .rs-news-title {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* モーダルポップアップ内のグリッド配置をスマホ用に最適化 */
    .rs-modal-content-box {
        width: 95% !important;
        max-height: 90vh !important;
        padding: 1.5rem !important;
    }

    .rs-modal-main-grid {
        grid-template-columns: 1fr !important; /* 縦一列並び */
        gap: 1.5rem !important;
    }

    .rs-modal-img-col {
        order: -1; /* 写真を上に */
    }

    .rs-modal-img-col img {
        max-height: 250px !important;
        object-fit: cover !important;
    }

    .rs-member-profile-table th {
        width: 120px !important;
        font-size: 0.72rem !important;
    }

    .rs-member-profile-table td {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    /* 480px以下の極小スマホ用追加縮尺調整 */
    body, html {
        font-size: 14px !important;
    }

    .rs-section-inner {
        padding: 0 16px !important; /* 横の余白を適切に確保 */
    }

    /* HEROタイトルのフォントサイズを縮小して画面幅にフィット */
    .rs-hero h1 {
        font-size: 2.2rem !important;
        letter-spacing: 0.05em !important;
    }

    .rs-hero .sub-title {
        font-size: 0.75rem !important;
        letter-spacing: 0.3em !important;
    }

    /* バナー（マーキー）のモバイル配置の精密化 */
    .rs-absolute-boundary-banners {
        top: calc(100vh - 40px) !important; /* 高さ80pxの半分の位置に正確に境界配置 */
    }
}

/* =========================================================================
   20. DISCOGRAPHY MOBILE COMPACT OPTIMIZATION (ディスコカードのスマホ最適化・縦占有率削減)
   ========================================================================= */
@media (max-width: 768px) {
    /* スマホではディスコグラフィーカード幅を150pxに縮小 */
    .rs-disco-carousel-container .rs-carousel-item {
        width: 150px !important;
    }

    .rs-disco-card-body {
        padding: 0.8rem !important; /* 内側余白を大幅に圧縮 */
    }

    .rs-disco-card-meta {
        font-size: 0.65rem !important;
        margin-bottom: 0.2rem !important;
    }

    .rs-disco-card-title {
        font-size: 0.85rem !important; /* スマホ用にタイトルフォントを縮小 */
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
    }

    /* スマホ版では縦長の余計なスペースを取る「コメント」と「収録曲」を非表示にして見やすさを最優先 */
    .rs-disco-card-comment,
    .rs-disco-card-songs {
        display: none !important;
    }

    .rs-disco-card-links {
        grid-template-columns: 1fr !important; /* スマホでは縦1列にボタンを並べる */
        gap: 6px !important;
        margin-top: auto !important;
    }

    .rs-disco-card-link {
        font-size: 0.58rem !important;
        padding: 5px 0 !important;
        gap: 0.2rem !important;
    }
}

/* =========================================================================
   22. INTRO GLITCH LOGO OVERLAY (オープニング演出)
   ========================================================================= */
.rs-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0c10;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.rs-intro-bg-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    mix-blend-mode: screen;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.4) 2px, transparent 2px, transparent 5px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0.3) 2px, transparent 2px, transparent 5px);
    background-size: 6px 6px;
    pointer-events: none;
}

.rs-intro-logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
}

.rs-intro-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 168, 204, 0.5));
}

.rs-intro-logo-text {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        3px 0 0 var(--accent-color),
        -3px 0 0 #ff3366;
}

.rs-intro-overlay.step-1 .rs-intro-bg-glitch {
    opacity: 0.8;
    animation: rs-intro-static 0.15s infinite;
}

.rs-intro-overlay.step-2 .rs-intro-logo-container {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rs-intro-overlay.step-2 .rs-intro-bg-glitch {
    opacity: 0.18;
    animation: rs-intro-static-light 0.2s infinite;
}

.rs-intro-overlay.step-3 .rs-intro-logo-container {
    opacity: 0;
    transform: scale(1.1) skew(-12deg);
    filter: hue-rotate(90deg) blur(2px);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.rs-intro-overlay.step-3 .rs-intro-bg-glitch {
    opacity: 0.95;
    animation: rs-intro-static-heavy 0.08s infinite;
}

.rs-intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes rs-intro-static {
    0% { background-position: 0 0; }
    50% { background-position: 4px -2px; }
    100% { background-position: -2px 3px; }
}
@keyframes rs-intro-static-light {
    0% { background-position: 0 0; opacity: 0.12; }
    50% { background-position: -2px 1px; opacity: 0.18; }
    100% { background-position: 1px -2px; opacity: 0.15; }
}
@keyframes rs-intro-static-heavy {
    0% { background-position: 0 0; opacity: 0.9; transform: translate(3px, -2px); }
    33% { background-position: -5px 4px; opacity: 0.95; transform: translate(-3px, 3px); }
    66% { background-position: 3px -5px; opacity: 0.85; transform: translate(2px, -3px); }
    100% { background-position: -2px 2px; opacity: 0.95; transform: translate(-2px, 1px); }
}

/* =========================================================================
   23. SCROLL REVEAL ANIMATIONS (スクロール時のフェードイン・アウト)
   ========================================================================= */
.rs-reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.rs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   24. RESPONSIVE SIDEBAR & CONTENT COMPACT OPTIMIZATION (全画面サイズ対応・見切れ完全防止)
   ========================================================================= */

/* --- A. 画面幅（992px以下・中画面タブレット）での微調整 --- */
@media (max-width: 992px) {
    :root {
        --side-nav-width: 60px !important; /* 左サイドバーを60pxに縮小 */
    }
    
    .rs-side-nav {
        padding: 1.2rem 0 !important;
    }
    
    .rs-side-menu {
        gap: 0.9rem !important;
    }
    
    .rs-menu-link {
        font-size: 0.6rem !important;
    }

    .rs-content-wrapper {
        margin-left: 60px !important;
        margin-right: 0 !important; /* 右側黒背景の隙間を消去 */
    }

    .rs-absolute-boundary-banners {
        left: 60px !important;
        width: calc(100vw - 60px) !important; /* 右端いっぱいに表示 */
    }

    /* モーダル小窓のタブレット用縮尺 */
    .rs-modal-content-box {
        width: 92% !important;
        max-height: 85vh !important;
        padding: 2.2rem 1.8rem !important;
    }
    .rs-modal-close-btn {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.4rem !important;
    }
    .rs-modal-main-grid {
        gap: 2rem !important;
    }
    .rs-modal-img-col img {
        max-height: 300px !important;
        object-fit: cover !important;
    }
}

/* --- B. 画面幅（768px以下・スマートフォン）での極小調整 ＆ メインコンテンツ縮尺 --- */
@media (max-width: 768px) {
    :root {
        --side-nav-width: 42px !important; /* 左サイドバーを42pxまで極限スリム化し画面幅を確保 */
    }
    
    .rs-side-nav {
        padding: 0.5rem 0 !important;
    }
    
    .rs-side-menu {
        gap: 0.38rem !important; /* メニュー文字の縦見切れを防止するため間隔を徹底圧縮 */
    }
    
    .rs-menu-link {
        font-size: 0.42rem !important; /* フォントを極小にスケールダウン */
        letter-spacing: 0.05em !important;
        padding: 0.08rem 0 !important;
    }
    
    .rs-menu-link::before {
        bottom: -3px !important;
        width: 1.5px !important;
        height: 1.5px !important;
    }
    
    /* 右側SNSサイドバーの配置維持 */
    .rs-side-sns {
        right: 6px !important; /* 端から少し浮かせる */
        left: auto !important;
        gap: 6px !important;
        padding: 0 !important;
        z-index: 1002 !important;
    }
    
    .rs-side-sns-link {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.72rem !important;
    }
    
    .rs-content-wrapper {
        margin-left: 42px !important;
        margin-right: 0 !important; /* 左右均等マージンによる右側黒背景の隙間を消去 */
    }
    
    .rs-absolute-boundary-banners {
        left: 42px !important;
        width: calc(100vw - 42px) !important; /* 右端いっぱいに表示 */
    }

    /* モーダル小窓のスマホ用極小縮尺 (メンバープロフィールの巨大化防止) */
    .rs-modal-content-box {
        width: 94% !important;
        max-height: 85vh !important;
        padding: 1.4rem 0.8rem 1.2rem 0.8rem !important; /* 余白を最小化して表示可能エリアを最大化 */
    }

    .rs-modal-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.3rem !important;
        background-color: rgba(0, 0, 0, 0.85) !important; /* スマホ画面でクッキリ見落とさないデザイン */
        border: 1px solid var(--accent-color) !important;
        color: var(--accent-color) !important;
        z-index: 10010 !important;
    }

    .rs-modal-header-info {
        margin-bottom: 0.8rem !important;
        padding-bottom: 0.6rem !important;
    }

    .rs-modal-title {
        font-size: 1.2rem !important;
        margin-top: 0.3rem !important;
    }

    .rs-modal-main-grid {
        grid-template-columns: 1fr !important; /* 上下1列表示 */
        gap: 0.8rem !important;
    }

    .rs-modal-img-col {
        order: -1 !important;
    }

    .rs-modal-img-col img {
        max-width: 130px !important; /* 巨大化していた写真画像を130pxにコンパクト化 */
        max-height: 170px !important;
        object-fit: cover !important;
        margin: 0 auto !important;
        border-radius: 4px !important;
    }

    .rs-member-profile-table {
        font-size: 0.76rem !important;
    }

    .rs-member-profile-table th,
    .rs-member-profile-table td {
        padding: 0.4rem 0.3rem !important; /* テーブル余白を極小化 */
    }

    .rs-member-profile-table th {
        width: 105px !important;
        font-size: 0.68rem !important;
    }

    .rs-member-profile-table td {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
        word-break: break-all !important;
    }

    .rs-modal-action-btn {
        font-size: 0.65rem !important;
        padding: 6px 14px !important;
        margin-top: 0.6rem !important;
    }

    /* ----------------------------------------------------
       メインコンテンツ（BIOGRAPHY / DISCO / LIVE / NEWSなど）の縮尺ルール
       ---------------------------------------------------- */
    .rs-section {
        padding: 3.5rem 0 !important; /* セクション上下余白を圧縮して高さをセーブ */
    }

    .rs-section-inner {
        padding: 0 1.2rem !important; /* コンテンツの左右マージンを狭くして表示幅を最大化 */
    }

    .rs-section-title {
        font-size: 1.2rem !important; /* 見出し文字を小さく縮尺 */
    }
    .rs-title-icon {
        font-size: 1rem !important;
    }

    /* --- BIOGRAPHYのスマホ縮尺 --- */
    .rs-bio-content {
        grid-template-columns: 1fr !important; /* 縦1列に並び替えて横幅を確保 */
        gap: 1.5rem !important;
    }
    .rs-bio-img-col {
        max-width: 180px !important;
        margin: 0 auto !important;
    }
    .rs-bio-text {
        font-size: 0.8rem !important; /* プロフィール本文文字サイズを縮小 */
        line-height: 1.6 !important;
        word-break: break-all !important;
    }

    /* --- DISCOGRAPHYのスマホ縮尺 --- */
    .rs-disco-card {
        width: 135px !important; /* カード幅をさらに縮小 */
        padding: 0.6rem !important;
    }
    .rs-disco-card-title {
        font-size: 0.72rem !important; /* ディスコタイトルを縮小 */
        word-break: break-all !important;
    }
    .rs-disco-card-info {
        font-size: 0.58rem !important;
    }

    /* --- LIVE / NEWSのスマホ縮尺 --- */
    .rs-news-item, .rs-live-item {
        padding: 0.8rem !important;
        gap: 0.8rem !important;
    }
    .rs-news-date, .rs-live-date-box {
        font-size: 0.75rem !important;
    }
    .rs-news-title, .rs-live-title {
        font-size: 0.8rem !important;
        word-break: break-all !important;
    }
    .rs-live-venue {
        font-size: 0.72rem !important;
    }
    .rs-more-btn {
        padding: 6px 16px !important;
        font-size: 0.68rem !important;
    }

    /* --- MEMBERSのスマホ縮尺 --- */
    .rs-member-card-body {
        padding: 0.4rem !important;
    }
    .rs-member-name {
        font-size: 0.72rem !important;
    }
    .rs-member-role {
        font-size: 0.58rem !important;
    }
}

/* --- C. 画面の「縦の高さ」（height）による自動縮尺スケール (見切れ完全防止) --- */
@media (max-height: 750px) {
    .rs-side-menu {
        gap: 0.8rem !important;
    }
    .rs-menu-link {
        font-size: 0.58rem !important;
    }
}

@media (max-height: 620px) {
    .rs-side-nav {
        padding: 0.3rem 0 !important;
    }
    .rs-side-menu {
        gap: 0.4rem !important;
    }
    .rs-menu-link {
        font-size: 0.45rem !important;
        padding: 0.08rem 0 !important;
    }
    .rs-menu-link::before {
        display: none !important; /* ドットを消して高さを詰める */
    }
}


