/* 
  Theme Colors:
  Kagechiyo = Cyber Blue (#00f3ff, #0a192f) & Orange (#ff7a00)
  Chui = Tomato Red (#ff3b30)
*/
:root {
    --bg-color: #050a14;
    --cyber-blue: #00f3ff;
    --dark-blue: #0a192f;
    --orange: #ff7a00;
    --red: #ff3b30;
    --text-color: #f0f8ff;
    --glass-bg: rgba(10, 25, 47, 0.4);
    --glass-border: rgba(0, 243, 255, 0.3);
}

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

body {
    background: radial-gradient(circle at top right, #11203b 0%, #030610 80%);
    color: var(--text-color);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: -50vw;
    width: 200vw; height: 200vh;
    background-image: 
        url('../assets/kagechiyo.png'), 
        url('../assets/chui.png');
    background-repeat: repeat, repeat;
    background-size: 80px auto, 60px auto;
    background-position: 0 0, 100px 100px;
    opacity: 0.12; 
    z-index: -2;
    pointer-events: none;
    animation: floatDots 40s linear infinite;
}

@keyframes floatDots {
    from { transform: translate(0, 0); }
    to { transform: translate(-200px, -200px); }
}

.hidden { display: none !important; }

.cyber-blue { color: var(--cyber-blue); }
.orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }

.highlight-blue { color: var(--cyber-blue); }
.highlight-orange { color: var(--orange); }
.highlight-red { color: var(--red); }

/* --- Portal --- */
.portal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-color); display: flex; justify-content: center;
    align-items: center; z-index: 1000; transition: opacity 1s ease, visibility 1s ease;
}

.portal::before {
    content: ''; position: absolute; width: 200vw; height: 200vh;
    background: conic-gradient(from 180deg at 50% 50%, var(--cyber-blue) 0deg, var(--orange) 120deg, var(--red) 240deg, var(--cyber-blue) 360deg);
    animation: rotate 15s linear infinite; opacity: 0.15; z-index: -1;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

.portal-content {
    text-align: center; background: rgba(10, 25, 47, 0.7);
    padding: 50px 70px; border-radius: 24px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
}

.glow-text {
    font-family: 'Orbitron', sans-serif; font-size: 3.5rem; line-height: 1.1;
    margin-bottom: 5px; text-shadow: 0 0 15px currentColor; letter-spacing: 2px;
}

.subtitle { font-family: 'Orbitron', sans-serif; color: #aaa; letter-spacing: 3px; margin-bottom: 25px; }

.glass-btn {
    margin-top: 20px; padding: 16px 45px; font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif; font-weight: 700; color: white;
    background: linear-gradient(45deg, var(--orange), var(--red));
    border: 2px solid transparent; border-radius: 40px; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 0 20px rgba(255, 122, 0, 0.6);
}

.glass-btn:hover { transform: scale(1.08); box-shadow: 0 0 30px var(--red); border: 2px solid #fff; }

.pulse { animation: pulse-glow 2.5s infinite; }

@keyframes pulse-glow { 0% { box-shadow: 0 0 10px var(--orange); } 50% { box-shadow: 0 0 30px var(--red); } 100% { box-shadow: 0 0 10px var(--orange); } }

/* --- Main --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
}

.title-area { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.litlink-btn {
    background: linear-gradient(45deg, #FF7A00, #FF3B30);
    color: white; padding: 6px 14px; border-radius: 20px;
    text-decoration: none; font-weight: bold; font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem; transition: 0.3s; box-shadow: 0 0 10px rgba(255,122,0,0.4);
}
.litlink-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255,59,48,0.8); color: white;}

.cyber-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.8rem; letter-spacing: 1px; }

/* --- BGM Player --- */
.glass-panel-small {
    background: rgba(10, 25, 47, 0.6); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 10px 20px; backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.bgm-selector {
    background: rgba(0, 0, 0, 0.5); color: white; border: 1px solid var(--cyber-blue);
    padding: 8px 12px; border-radius: 10px; font-family: 'M PLUS Rounded 1c', sans-serif;
    outline: none; cursor: pointer; max-width: 250px; text-overflow: ellipsis;
}
.bgm-selector option { background: var(--bg-color); color: white; }

.bgm-play { cursor: pointer; padding: 5px 10px; font-weight: bold; transition: all 0.3s; color: var(--cyber-blue); }
.bgm-play:hover { text-shadow: 0 0 10px var(--cyber-blue); }

main { padding: 40px 5%; max-width: 1100px; margin: 0 auto; display: grid; gap: 50px; }

.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 35px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); backdrop-filter: blur(12px); }

.section-title { font-family: 'Orbitron', sans-serif; margin-bottom: 25px; font-size: 1.8rem; text-shadow: 0 0 8px currentColor; display: inline-block; border-bottom: 2px solid currentColor; padding-bottom: 8px; }

/* --- Slideshow --- */
.slideshow-container { width: 100%; height: 600px; position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--red); box-shadow: 0 0 20px rgba(255, 59, 48, 0.2); }

.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: contain; background-position: center; background-repeat: no-repeat; }

.slide.active { opacity: 1; }

.slide-indicator { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 1rem; font-family: 'Orbitron', sans-serif; border: 1px solid var(--red); z-index: 10;}

/* 手動スライドボタン */
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.6); color: white; font-size: 1.8rem; padding: 15px 20px; border: 1px solid var(--red); border-radius: 5px; cursor: pointer; transition: 0.3s; z-index: 10; font-family: sans-serif; }
.slide-btn.prev { left: 15px; }
.slide-btn.next { right: 15px; }
.slide-btn:hover { background: var(--red); box-shadow: 0 0 15px var(--red); }

/* --- Video Gallery --- */
.video-player-container { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 25px; position: relative; border: 1px solid var(--orange); box-shadow: 0 0 25px rgba(255, 122, 0, 0.25); }

.main-video { width: 100%; height: 100%; outline: none; border: none; }

.video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: #aaa; font-size: 1.3rem; }

.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.video-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); padding: 15px; border-radius: 12px; cursor: pointer; text-align: center; transition: all 0.3s; word-break: break-all; font-weight: bold; display: flex; align-items: center; justify-content: center; min-height: 80px; }

.video-item:hover { background: rgba(255, 122, 0, 0.15); border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 6px 15px rgba(255, 122, 0, 0.3); }

.video-item.active { background: linear-gradient(135deg, rgba(255,122,0,0.3) 0%, rgba(255,59,48,0.3) 100%); border-color: var(--orange); box-shadow: 0 0 15px var(--orange); color: white; }

/* --- Cluster Worlds --- */
.world-link-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding-top: 10px; }
.world-btn { background: rgba(0, 243, 255, 0.1); border: 1px solid var(--cyber-blue); color: white; text-decoration: none; padding: 15px 25px; border-radius: 12px; font-weight: bold; font-family: 'M PLUS Rounded 1c', sans-serif; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 10px rgba(0, 243, 255, 0.1); }
.world-btn:hover { background: rgba(0, 243, 255, 0.25); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0, 243, 255, 0.6); color: var(--cyber-blue); }
.world-icon { font-size: 1.5rem; }

footer { text-align: center; padding: 30px; margin-top: 50px; border-top: 1px solid var(--glass-border); color: #666; font-family: 'Orbitron', sans-serif; }

@media (max-width: 768px) { .glow-text { font-size: 2.2rem; } .slideshow-container { height: 350px; } header { flex-direction: column; gap: 15px; text-align: center; } .glass-panel { padding: 20px; } }
