/* =====================================================
   全体共通設定
   ブラウザごとの差異を吸収し、余白をリセット
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   body 全体の見た目設定
   ・複雑な星雲のようなグラデーション背景
   ・多層構造で奥行きを表現
===================================================== */
body {
    font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background: 
        /* 星雲のような複雑なグラデーション層 */
        radial-gradient(ellipse at 20% 30%, rgba(100, 50, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(50, 100, 200, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(150, 100, 180, 0.08) 0%, transparent 60%),
        
        /* 淡い光の帯（銀河の腕のような効果） */
        linear-gradient(135deg, transparent 0%, rgba(100, 150, 255, 0.05) 30%, transparent 50%, rgba(150, 100, 255, 0.06) 70%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(80, 120, 200, 0.04) 40%, transparent 60%),
        
        /* 遠くの星雲（紫とピンクのニュアンス） */
        radial-gradient(circle at 30% 80%, rgba(180, 100, 200, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 70% 20%, rgba(100, 150, 255, 0.08) 0%, transparent 40%),
        
        /* ベースとなる深い宇宙のグラデーション */
        linear-gradient(to bottom, 
            #0a0e1f 0%, 
            #151d35 20%, 
            #1a2848 40%, 
            #162642 60%, 
            #1d2f52 80%, 
            #0f1a2e 100%
        );
    
    color: #e0e6ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    
    /* 背景を固定して視差効果を強化 */
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 200% 200%, 150% 150%, 120% 120%, 130% 130%, 100% 100%;
    background-position: center, center, center, 0% 0%, 100% 100%, 20% 30%, 80% 70%, center;
}

/* =====================================================
   疑似要素で動きのある星雲効果を追加
===================================================== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(100, 80, 200, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(80, 150, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaDrift 60s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(150, 100, 200, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(100, 120, 255, 0.05) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaDrift 80s ease-in-out infinite alternate-reverse;
}

/* =====================================================
   星雲がゆっくりと動くアニメーション
===================================================== */
@keyframes nebulaDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(5%, 3%) rotate(2deg);
        opacity: 0.6;
    }
}

/* =====================================================
   背景の星を描画するためのコンテナ
   z-indexを調整して背景効果の上に配置
===================================================== */
#stars {
    position: fixed;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    z-index: 2;
}

/* =====================================================
   通常の白い星
===================================================== */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* =====================================================
   色付きの星（赤）
===================================================== */
.star.red {
    background: #ff6b6b;
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px rgba(255, 107, 107, 0.8);
}

/* =====================================================
   色付きの星（黄色）
===================================================== */
.star.yellow {
    background: #ffd93d;
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px rgba(255, 217, 61, 0.8);
}

/* =====================================================
   色付きの星（水色）
===================================================== */
.star.cyan {
    background: #6bcfff;
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px rgba(107, 207, 255, 0.8);
}

/* =====================================================
   星の瞬きアニメーション
===================================================== */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* =====================================================
   流れ星本体（通常の小さな流れ星）
   ※ JSで一定間隔で body に追加される
===================================================== */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shoot 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* =====================================================
   流れ星の軌跡（右上から左下に流れる）
===================================================== */
.shooting-star::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 2px;
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, 
        white,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.5) 60%,
        transparent
    );
    transform-origin: left center;
    transform: rotate(-45deg);
    pointer-events: none;
}

/* =====================================================
   流れ星の移動アニメーション（右上→左下）
===================================================== */
.shooting-star.blue::before {
    background: linear-gradient(to right, 
        rgba(100, 180, 255, 0.8),
        rgba(100, 180, 255, 0.5) 60%,
        transparent
    );
}

@keyframes shoot {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-1000px, 1000px);
        opacity: 0;
    }
}

/* =====================================================
   巨大流れ星（shooter.png使用）
===================================================== */
.giant-shooting-star {
    position: fixed;
    width: 80px;
    height: 80px;
    right: -100px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.giant-shooting-star img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
            brightness(1.3);
    animation: giantStarSpin 0.3s linear infinite;
}

/* 本体の回転アニメーション */
@keyframes giantStarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 巨大流れ星の軌跡（第1層）- 右側に伸びる */
.giant-shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    width: 400px;
    height: 8px;
    background: linear-gradient(to right, 
        white,
        rgba(255, 255, 255, 0.9) 20%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent
    );
    transform: translateY(-50%);
    filter: blur(3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* 巨大流れ星の軌跡（第2層・二重線）- 右側に伸びる */
.giant-shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    width: 350px;
    height: 4px;
    background: linear-gradient(to right, 
        white,
        rgba(220, 240, 255, 0.7) 40%,
        rgba(200, 230, 255, 0.4) 70%,
        transparent
    );
    transform: translateY(-50%);
    filter: blur(2px);
}

/* 巨大流れ星のアニメーション */
@keyframes giantShoot {
    0% {
        right: -100px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        right: calc(100% + 100px);
        opacity: 0;
    }
}

/* =====================================================
   動く銀河の配置（3つ）- 白い渦巻銀河
===================================================== */
.galaxy {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1.5px);
    opacity: 0.6;
    z-index: 1;
}

.galaxy-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 10%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 15%, rgba(220, 230, 255, 0.3) 30%, rgba(200, 220, 255, 0.2) 45%, transparent 70%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: galaxyFloat1 40s ease-in-out infinite;
}

.galaxy-2 {
    width: 250px;
    height: 250px;
    top: 60%;
    right: 15%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.45) 15%, rgba(230, 240, 255, 0.3) 30%, rgba(210, 225, 255, 0.18) 45%, transparent 70%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, transparent 40%);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.35), inset 0 0 25px rgba(255, 255, 255, 0.18);
    animation: galaxyFloat2 35s ease-in-out infinite;
}

.galaxy-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 50%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 15%, rgba(240, 245, 255, 0.28) 30%, rgba(220, 235, 255, 0.16) 45%, transparent 70%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.15);
    animation: galaxyFloat3 45s ease-in-out infinite;
}

/* =====================================================
   銀河内の回転する星々
===================================================== */
.galaxy::before,
.galaxy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

/* 第1層：内側の星 */
.galaxy::before {
    background-image: 
        radial-gradient(circle, white 0.5px, transparent 0.5px),
        radial-gradient(circle, white 0.5px, transparent 0.5px),
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px);
    background-size: 
        30px 30px,
        45px 45px,
        25px 25px,
        35px 35px,
        40px 40px;
    background-position: 
        5px 8px,
        12px 20px,
        8px 15px,
        20px 5px,
        15px 25px;
    animation: galaxyStarsRotate1 80s linear infinite;
    mask-image: radial-gradient(circle at center, black 0%, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, black 40%, transparent 70%);
}

/* 第2層：外側の星 */
.galaxy::after {
    background-image: 
        radial-gradient(circle, white 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0.5px, transparent 0.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle, white 0.5px, transparent 0.5px);
    background-size: 
        28px 28px,
        38px 38px,
        32px 32px,
        42px 42px,
        48px 48px,
        35px 35px;
    background-position: 
        2px 5px,
        18px 12px,
        10px 22px,
        25px 8px,
        15px 18px,
        8px 28px;
    animation: galaxyStarsRotate2 100s linear infinite reverse;
    mask-image: radial-gradient(circle at center, transparent 35%, black 45%, black 60%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 35%, black 45%, black 60%, transparent 75%);
}

/* 星の回転アニメーション */
@keyframes galaxyStarsRotate1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes galaxyStarsRotate2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* 銀河の浮遊アニメーション */
@keyframes galaxyFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

@keyframes galaxyFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(120deg); }
    66% { transform: translate(20px, -25px) rotate(240deg); }
}

@keyframes galaxyFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 35px) rotate(180deg); }
}

/* =====================================================
   ブラックホール（1つ）
===================================================== */
.black-hole {
    position: fixed;
    width: 180px;
    height: 180px;
    top: 40%;
    right: 30%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: blackHolePulse 8s ease-in-out infinite, blackHoleSway 20s ease-in-out infinite;
}

/* ブラックホールの中心（完全な暗黒） */
.black-hole::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px 5px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(0, 0, 0, 1);
}

/* 降着円盤（渦巻く光の輪） */
.black-hole::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, 
            transparent 20%, 
            rgba(255, 150, 50, 0.3) 35%, 
            rgba(255, 100, 100, 0.2) 50%, 
            rgba(150, 100, 255, 0.15) 65%, 
            transparent 80%
        );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: accretionDiskRotate 15s linear infinite;
    filter: blur(3px);
}

/* 降着円盤の回転 */
@keyframes accretionDiskRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ブラックホールの脈動 */
@keyframes blackHolePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ブラックホールのゆらぎ */
@keyframes blackHoleSway {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(0, -20px); }
    75% { transform: translate(-15px, -10px); }
}

/* =====================================================
   その他のz-index調整
===================================================== */
.container {
    position: relative;
    z-index: 3;
}

.header-links {
    z-index: 100;
}

/* =====================================================
   レイアウト全体
===================================================== */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* =====================================================
   以降：UI装飾（ヘッダー・サイドバー・カード等）
===================================================== */
.header-links {
    position: fixed;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(160, 200, 255, 0.3);
    border-radius: 25px;
    padding: 8px 15px;
}

.volume-icon {
    color: #a0c8ff;
    font-size: 18px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(160, 200, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #a0c8ff, #6b9fff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(160, 200, 255, 0.6);
    transition: all 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(160, 200, 255, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #a0c8ff, #6b9fff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(160, 200, 255, 0.6);
    transition: all 0.3s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(160, 200, 255, 0.8);
}

.header-link {
    padding: 10px 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 20px;
    text-decoration: none;
    color: #c8d8ff;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.header-link:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.link-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    animation: starFade 1.5s ease-in-out infinite;
}

.link-star.white {
    background: white;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.link-star.red {
    background: #ff6b6b;
    box-shadow: 0 0 4px rgba(255, 107, 107, 0.8);
}

.link-star.yellow {
    background: #ffd93d;
    box-shadow: 0 0 4px rgba(255, 217, 61, 0.8);
}

.link-star.cyan {
    background: #6bcfff;
    box-shadow: 0 0 4px rgba(107, 207, 255, 0.8);
}

@keyframes starFade {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sidebar {
    width: 250px;
    background: rgba(15, 20, 40, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar h3 {
    color: #a0c8ff;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 18px;
    border-bottom: 2px solid rgba(160, 200, 255, 0.3);
    padding-bottom: 10px;
}

.sidebar h3:first-of-type {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    color: #c8d8ff;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
    overflow: visible;
}

.sidebar a:hover {
    background: rgba(160, 200, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.sidebar a.external-link {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    backdrop-filter: blur(8px);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.sidebar a.external-link:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.link-url-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 40, 0.95);
    color: #8898b8;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 8px;
    border: 1px solid rgba(160, 200, 255, 0.2);
    z-index: 1000;
}

.sidebar a.external-link:hover .link-url-tooltip {
    opacity: 1;
}

.main-content {
    flex: 1;
    padding: 50px;
    padding-bottom: 60px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 48px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 20px rgba(160, 200, 255, 0.5);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.subtitle {
    font-size: 18px;
    color: #a8b8d8;
    line-height: 1.8;
    margin-bottom: 10px;
}

.author {
    margin-top: 30px;
    padding: 20px;
    background: rgba(20, 30, 60, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(160, 200, 255, 0.2);
}

.section {
    margin-bottom: 50px;
    background: rgba(20, 30, 60, 0.4);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(160, 200, 255, 0.15);
    backdrop-filter: blur(5px);
}

h2 {
    color: #a0c8ff;
    margin-bottom: 20px;
    font-size: 28px;
    border-left: 4px solid #a0c8ff;
    padding-left: 15px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #b8c8e8;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 999;
}

.news-modal.active {
    display: block;
}

.news-modal-content {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    background: rgba(15, 20, 40, 0.95);
    border-radius: 15px;
    padding: 30px;
    cursor: grab;
}

.news-modal-body {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.news-modal-footer {
    border-top: 1px solid rgba(160, 200, 255, 0.2);
    padding-top: 15px;
    text-align: right;
}

.news-modal-close {
    background: none;
    border: none;
    color: #a0c8ff;
    font-size: 20px;
    cursor: pointer;
    text-align: right;
}

.news-modal-title {
    background: none;
    border: none;
    color: #a0c8ff;
    font-size: 40px;
}

.news-modal-date {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    text-align: right;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.link-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.3), rgba(150, 100, 255, 0.3));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(160, 200, 255, 0.3);
    transition: all 0.3s;
}

.link-button:hover {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.5), rgba(150, 100, 255, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: rgba(30, 40, 70, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(160, 200, 255, 0.2);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 150, 255, 0.3);
    border-color: rgba(160, 200, 255, 0.5);
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border: none;
}

footer.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 40, 0.9);
    color: #c8d8ff;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(160, 200, 255, 0.2);
    z-index: 10;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.2s; }
.fade-delay-2 { transition-delay: 0.4s; }
.fade-delay-3 { transition-delay: 0.6s; }
.fade-delay-4 { transition-delay: 0.8s; }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    .main-content {
        padding: 30px 20px;
        padding-bottom: 60px;
    }
    h1 {
        font-size: 32px;
    }
    .header-links {
        top: 10px;
        right: 10px;
        gap: 10px;
    }
    .header-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .author {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* お知らせ操作UI */
.news-controls {
    text-align: center;
    margin-top: 1.5em;
}

.show-all-btn {
    padding: 0.6em 1.6em;
    font-size: 0.9rem;
    background: rgba(160, 200, 255, 0.15);
    color: #a0c8ff;
    border: 1px solid rgba(160, 200, 255, 0.4);
    border-radius: 20px;
    cursor: pointer;
}

.show-all-btn:hover {
    background: rgba(160, 200, 255, 0.3);
}

/* ページネーション */
.pagination {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5em;
}

.pagination button {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    border: 1px solid #888;
    background: transparent;
    color: #ddd;
    cursor: pointer;
}

.pagination button.active {
    background: #a0c8ff;
    color: #000;
}

/* 元のCSS内容は同じなので省略 */
/* 以下を既存のCSSファイルの最後に追加してください */

/* =====================================================
   最新楽曲セクション
===================================================== */
.latest-music-container {
    margin-top: 20px;
}

.latest-music-card {
    background: rgba(30, 40, 70, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(160, 200, 255, 0.3);
    transition: all 0.3s;
    max-width: 800px;
    margin: 0 auto;
}

.latest-music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 150, 255, 0.4);
    border-color: rgba(160, 200, 255, 0.6);
}

.latest-music-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    background: #000;
}

.latest-music-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.latest-music-info {
    padding: 20px;
}

.latest-music-title {
    color: #a0c8ff;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.latest-music-date {
    color: #8898b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.latest-music-description {
    color: #c8d8ff;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .latest-music-card {
        border-radius: 10px;
    }
    
    .latest-music-info {
        padding: 15px;
    }
    
    .latest-music-title {
        font-size: 18px;
    }
}

/* =====================================================
   過去作品セクション（更新）
===================================================== */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    background: #000;
}

.video-wrapper iframe,
.video-wrapper > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px;
}

.video-title {
    color: #a0c8ff;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.video-date {
    color: #8898b8;
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .latest-music-card {
        border-radius: 10px;
    }
    
    .latest-music-info {
        padding: 15px;
    }
    
    .latest-music-title {
        font-size: 18px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 14px;
    }
}