/* 追加アニメーション効果 */

/* 雪のエフェクト */
.snow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.7;
    animation: snowfall linear infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0.7;
    }
    5% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(10px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-10px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(10px);
        opacity: 0.7;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* フラッシングアラート効果 */
.flashing-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.2);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: flash 2s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* 稲妻エフェクト */
.lightning-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 15;
    animation: lightning 7s ease-in-out infinite;
}

@keyframes lightning {
    0%, 100% {
        background: rgba(255, 255, 255, 0);
    }
    97% {
        background: rgba(255, 255, 255, 0);
    }
    97.5% {
        background: rgba(255, 255, 255, 0.75);
    }
    98% {
        background: rgba(255, 255, 255, 0);
    }
    98.5% {
        background: rgba(255, 255, 255, 0.75);
    }
    99% {
        background: rgba(255, 255, 255, 0);
    }
}

/* サーバーの点滅ライト */
.server-light {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    z-index: 10;
}

.blinking-light {
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { 
        opacity: 0.3; 
        box-shadow: 0 0 5px #00ff00;
    }
    100% { 
        opacity: 1; 
        box-shadow: 0 0 15px #00ff00, 0 0 20px #00ff00;
    }
}

/* データストリームエフェクト */
.floating-data-stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.8), rgba(0, 255, 255, 0));
    opacity: 0.7;
    z-index: 8;
}

.left-to-right {
    top: 30%;
    left: -100%;
    width: 80%;
    animation: moveLeftToRight 15s linear infinite;
}

.right-to-left {
    top: 65%;
    right: -100%;
    width: 60%;
    animation: moveRightToLeft 12s linear infinite;
}

@keyframes moveLeftToRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes moveRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-250%);
    }
}

/* スターエフェクト */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
}

/* スパークルエフェクト */
.sparkle-effect {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    filter: blur(1px);
    opacity: 0;
    z-index: 5;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: none;
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.8);
    }
}

/* ハイテクな回路エフェクト */
.tech-circuit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L10,30 L30,30 M70,10 L90,10 L90,30 M10,70 L10,90 L30,90 M90,70 L90,90 L70,90 M50,10 L50,90 M10,50 L90,50" stroke="%230ff" stroke-width="1" fill="none"/></svg>');
    background-size: 80px 80px;
    opacity: 0.15;
    z-index: 3;
    animation: circuit-glow 5s infinite alternate;
}

@keyframes circuit-glow {
    0% {
        opacity: 0.1;
        background-size: 80px 80px;
    }
    100% {
        opacity: 0.3;
        background-size: 85px 85px;
    }
}

/* データパルスエフェクト */
.data-pulse {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px 10px rgba(0, 255, 255, 0.2);
    z-index: 4;
}

.pulse-1 {
    top: 20%;
    left: 30%;
    animation: pulse 4s ease-in-out infinite;
}

.pulse-2 {
    top: 50%;
    left: 60%;
    animation: pulse 5s ease-in-out 1s infinite;
}

.pulse-3 {
    top: 70%;
    left: 40%;
    animation: pulse 6s ease-in-out 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
        box-shadow: 0 0 30px 15px rgba(0, 255, 255, 0.3);
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* データ上下ストリーム */
.top-to-bottom {
    position: absolute;
    width: 2px;
    height: 100%;
    left: 75%;
    top: -100%;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.8), rgba(0, 255, 255, 0));
    animation: moveTopToBottom 8s linear infinite;
    z-index: 8;
}

@keyframes moveTopToBottom {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(250%);
    }
}

/* ドラマチックテキスト */
.dramatic-text {
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    animation: dramatic-pulse 3s infinite alternate;
    letter-spacing: 2px;
}

@keyframes dramatic-pulse {
    0% {
        text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
        letter-spacing: 2px;
    }
    100% {
        text-shadow: 0 0 15px #0ff, 0 0 25px #0ff, 0 0 35px #0ff;
        letter-spacing: 3px;
    }
}
