/* loading.css */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: none;
    /* 初期状態は非表示 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 2rem;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

#loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    animation: blink 1s infinite;
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* 小さい画面向けのスタイル（レスポンシブ対応） */
@media (max-width: 600px) {
    #loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 6px;
    }

    .loading-text {
        font-size: 1.5rem;
    }
}