/* ========================================
   Vision Splash Screen
   ビジョン表示スプラッシュスクリーン
   ======================================== */

/* Splash Screen Container */
.vision-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #000000 0%, #001428 50%, #000a14 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    overflow: hidden;
}

.vision-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vision-splash.hidden {
    display: none;
}

/* Vision Content */
.vision-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Logo */
.vision-logo {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: visionFadeIn 1s ease-out 0.3s forwards;
}

/* Vision Label */
.vision-label {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
    color: #00a8ff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: visionFadeIn 1s ease-out 0.6s forwards;
}

/* Vision Text */
.vision-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.05em;
}

.vision-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.vision-line:nth-child(1) {
    animation: visionFadeIn 1s ease-out 1s forwards;
}

.vision-line:nth-child(2) {
    animation: visionFadeIn 1s ease-out 1.4s forwards;
}

/* Particles Background */
.vision-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vision-particles::before,
.vision-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.vision-particles::before {
    background-image: 
        radial-gradient(2px 2px at 10% 20%, rgba(0, 168, 255, 0.4) 50%, transparent 50%),
        radial-gradient(3px 3px at 30% 70%, rgba(0, 168, 255, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 30%, rgba(0, 168, 255, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 80%, rgba(0, 168, 255, 0.3) 50%, transparent 50%),
        radial-gradient(3px 3px at 90% 40%, rgba(0, 168, 255, 0.4) 50%, transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
}

.vision-particles::after {
    background-image: 
        radial-gradient(2px 2px at 20% 60%, rgba(0, 168, 255, 0.3) 50%, transparent 50%),
        radial-gradient(3px 3px at 40% 10%, rgba(0, 168, 255, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 60% 90%, rgba(0, 168, 255, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 50%, rgba(0, 168, 255, 0.5) 50%, transparent 50%);
    animation: particleFloat 10s ease-in-out infinite reverse;
}

/* Glow Effect */
.vision-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

/* Animations */
@keyframes visionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) translateX(-10px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) translateX(5px);
        opacity: 0.9;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Page content hidden initially */
body.splash-active .header,
body.splash-active .skip-link,
body.splash-active main,
body.splash-active footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Page content revealed after splash */
body.splash-complete .header,
body.splash-complete .skip-link,
body.splash-complete main,
body.splash-complete footer {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vision-logo,
    .vision-label,
    .vision-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .vision-particles::before,
    .vision-particles::after,
    .vision-content::before {
        animation: none;
    }
    
    .vision-splash {
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .vision-content {
        padding: 1.5rem;
    }
    
    .vision-logo {
        margin-bottom: 1.5rem;
    }
    
    .vision-label {
        margin-bottom: 1rem;
    }
    
    .vision-text {
        line-height: 1.8;
    }
}
