/* ===================================
   Loading Screen
   =================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: loadingLogo 1.5s ease forwards;
}

.loading-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: loadingText 1.5s ease 0.3s forwards;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(78, 205, 196, 0.3);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    opacity: 0;
    animation: loadingSpinner 1.5s ease 0.6s forwards, spin 1s linear 2.1s infinite;
}

@keyframes loadingLogo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingSpinner {
    to {
        opacity: 1;
    }
}

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

/* モバイル対応 */
@media (max-width: 768px) {
    .loading-logo {
        font-size: 2rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}
