/* --- グローバル設定 & 変数 --- */
:root {
    --color-bg: #0A0A0A;
    --color-primary: #00FFFF; /* エレクトリックブルー */
    --color-secondary: #FF00FF; /* サイバーピンク */
    --color-text: #C0C0C0;
    --color-white: #FFFFFF;
    --font-main: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-mono);
    cursor: none; /* カスタムカーソル用にデフォルトを非表示 */
    overflow-x: hidden;
}

/* --- ローディング画面 --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-primary);
    animation: typing 2s steps(22), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--color-primary);
}
@keyframes typing { from { width: 0 } }
@keyframes blink { 50% { border-color: transparent } }


/* --- 背景エフェクト --- */
#background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
body::before { /* スキャンライン */
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 50%, rgba(0,0,0,0.4) 50%);
    background-size: 100% 4px;
    animation: scanline 10s linear infinite;
    z-index: -1;
    opacity: 0.2;
}
@keyframes scanline { to { background-position-y: -100vh; } }

/* --- HUDカスタムカーソル --- */
.hud-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out, border-color 0.2s, width 0.2s, height 0.2s;
}
.hud-cursor.active {
    border-color: var(--color-secondary);
    width: 40px;
    height: 40px;
}

/* --- ヘッダー --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 100%);
}
.logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 0 5px var(--color-primary);
}
.nav-link {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary);
}

/* --- セクション共通スタイル --- */
.full-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 5%;
    text-align: center;
}
.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 30px;
    text-transform: uppercase;
}
.neon-divider {
    height: 2px;
    width: 100px;
    background: var(--color-primary);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--color-primary);
}

/* --- ヒーローセクション --- */
.hero-content h1 {
    font-family: var(--font-main);
    font-size: clamp(2.5rem, 8vw, 6rem); /* レスポンシブフォント */
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
}
.neon-heading {
    font-family: var(--font-main);
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    margin: 10px 0 20px 0;
    animation: neon-flicker 3s infinite alternate;
}
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
        opacity: 1;
    }
    20%, 24%, 55% { text-shadow: none; opacity: 0.8; }
}
.sub-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
}
.scroll-down-indicator .line {
    width: 2px;
    height: 40px;
    background: var(--color-primary);
    margin: 10px auto 0;
    animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
    0% { height: 0; opacity: 0; transform: translateY(0); }
    50% { height: 40px; opacity: 1; }
    100% { height: 0; opacity: 0; transform: translateY(40px); }
}

/* --- コンセプトセクション --- */
.wireframe-box {
    border: 1px solid var(--color-primary);
    padding: 30px;
    margin-top: 40px;
    position: relative;
    text-align: left;
    line-height: 1.8;
}
.wireframe-box p { color: var(--color-white); }
.blinking-text {
    color: var(--color-secondary);
    animation: blink 1s step-end infinite;
}

/* --- トラックリスト --- */
.track-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
.track-item {
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 20px;
    text-align: left;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}
.track-item:hover {
    background-color: rgba(0, 255, 255, 0.05);
    border-color: var(--color-primary);
}
.track-item h4 {
    font-family: var(--font-main);
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.play-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.track-item:hover .play-icon {
    opacity: 1;
}

/* --- CTAセクション --- */
.countdown {
    margin: 30px 0;
}
#timer {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--color-secondary);
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--color-secondary);
}

/* --- フッター --- */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}
.social-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s, text-shadow 0.3s;
}
.social-links a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px var(--color-secondary);
}
footer p {
    margin-top: 20px;
    font-size: 0.8rem;
}

/* --- 共通コンポーネント: CTAボタン & グリッチエフェクト --- */
.cta-button {
    font-family: var(--font-main);
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cta-button.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: left 0.3s ease-in-out;
    z-index: -1;
}
.cta-button:hover {
    color: var(--color-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}
.cta-button:hover::before {
    left: 0;
}

.glitch-effect {
    position: relative;
}
.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    overflow: hidden;
}
.glitch-effect::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-secondary);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}
.glitch-effect::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-primary), 2px 2px var(--color-secondary);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
    0% { clip-path: inset(10% 0 80% 0); } 10% { clip-path: inset(50% 0 10% 0); } 20% { clip-path: inset(90% 0 2% 0); } 30% { clip-path: inset(25% 0 55% 0); } 40% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(60% 0 30% 0); } 60% { clip-path: inset(80% 0 5% 0); } 70% { clip-path: inset(15% 0 75% 0); } 80% { clip-path: inset(40% 0 45% 0); } 90% { clip-path: inset(70% 0 20% 0); } 100% { clip-path: inset(30% 0 60% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(75% 0 5% 0); } 10% { clip-path: inset(10% 0 85% 0); } 20% { clip-path: inset(65% 0 20% 0); } 30% { clip-path: inset(0 0 100% 0); } 40% { clip-path: inset(85% 0 10% 0); } 50% { clip-path: inset(45% 0 50% 0); } 60% { clip-path: inset(20% 0 70% 0); } 70% { clip-path: inset(95% 0 2% 0); } 80% { clip-path: inset(55% 0 35% 0); } 90% { clip-path: inset(10% 0 90% 0); } 100% { clip-path: inset(70% 0 15% 0); }
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 15px;
    }
    .logo { margin-bottom: 10px; }
    .nav-link { margin: 0 10px; font-size: 0.8rem; }
    .content-section { padding: 80px 5%; }
    .track-list { grid-template-columns: 1fr; }
}