/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Courier Prime', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    cursor: none;
}

/* マトリックス背景 */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* マウストレイル */
#mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* パーティクル */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* メインコンテナ */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 100;
}

/* ヘッダー */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.glitch-container {
    position: relative;
}

.glitch-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    color: #00ff00;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00,
        0 0 40px #00ff00;
    animation: glitchPulse 2s infinite ease-in-out;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitchBefore 1.5s infinite linear alternate-reverse;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitchAfter 1.5s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

/* グリッチアニメーション */
@keyframes glitchPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px #00ff00,
            0 0 20px #00ff00,
            0 0 30px #00ff00,
            0 0 40px #00ff00;
    }
    50% {
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00,
            0 0 20px #00ff00,
            0 0 35px #00ff00,
            0 0 40px #00ff00;
    }
}

@keyframes glitchBefore {
    0% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    25% {
        transform: translate(-2px, 2px);
        opacity: 0.6;
    }
    50% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
    }
    75% {
        transform: translate(2px, 2px);
        opacity: 0.6;
    }
    100% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
}

@keyframes glitchAfter {
    0% {
        transform: translate(-2px, 2px);
        opacity: 0.7;
    }
    25% {
        transform: translate(2px, -2px);
        opacity: 0.5;
    }
    50% {
        transform: translate(2px, 2px);
        opacity: 0.7;
    }
    75% {
        transform: translate(-2px, -2px);
        opacity: 0.5;
    }
    100% {
        transform: translate(-2px, 2px);
        opacity: 0.7;
    }
}

/* メインコンテンツ */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    width: 100%;
}

/* ローディングバー */
.loading-bar-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.5),
        inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ffff, #00ff00);
    background-size: 200% 100%;
    animation: loadingAnimation 3s ease-in-out infinite,
               shimmer 2s linear infinite;
    box-shadow: 0 0 15px #00ff00;
}

.loading-text {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: textBlink 1s infinite;
}

@keyframes loadingAnimation {
    0% { width: 0%; }
    70% { width: 100%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes textBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* ターミナル */
.terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier Prime', monospace;
    width: 100%;
    max-width: 600px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca42; }

.terminal-line {
    margin: 8px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.terminal-line.delay-1 { animation-delay: 1s; }
.terminal-line.delay-2 { animation-delay: 2s; }

.prompt {
    color: #00ff00;
    margin-right: 8px;
    text-shadow: 0 0 5px #00ff00;
}

.command {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.output {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA セクション */
.cta-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ネオンボタン */
.neon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.neon-button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.6),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.neon-button .fab {
    font-size: 1.3rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover .btn-glow {
    left: 100%;
}

/* ネオンテキスト */
.neon-text {
    color: #00ff00;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00;
    font-size: 1rem;
    font-weight: 400;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    to {
        text-shadow: 
            0 0 10px #00ff00,
            0 0 20px #00ff00,
            0 0 30px #00ff00,
            0 0 40px #00ff00;
    }
}

/* フッター */
.main-footer {
    margin-top: 60px;
    text-align: center;
}

.countdown-container {
    font-family: 'Courier Prime', monospace;
}

.countdown-label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 0.1em;
}

/* パーティクルアニメーション */
@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* リップルエフェクト */
@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .terminal {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .neon-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .main-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .terminal {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .neon-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .loading-bar-container {
        font-size: 0.8rem;
    }
}