/* ローディング画面のスタイル */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5502FF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: screenFadeOut 0.8s ease-out forwards;
    animation-delay: 6s; /* ロゴ表示から2秒後 */
}

.loading-content {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-catchphrase {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2;
}

.catchphrase-text {
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    opacity: 0;
    animation: catchphraseSequence 3s ease-out forwards;
}

.loading-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    opacity: 0;
    max-width: 300px;
    width: 100%;
    height: auto;
    animation: logoFadeIn 1s ease-out forwards;
    animation-delay: 3s; /* キャッチフレーズ終了後 */
    transform: scale(0.98);
}

/* アニメーション */
@keyframes catchphraseSequence {
    0% {
        opacity: 0;
    }
    /* フェードイン: 0-1秒 */
    33.33% {
        opacity: 1;
    }
    /* 表示維持: 1-2秒 */
    66.66% {
        opacity: 1;
    }
    /* フェードアウト: 2-3秒 */
    100% {
        opacity: 0;
    }
}

/* ロゴのフェードイン */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 画面遷移 */
@keyframes screenFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* プログレスバーは不要なので非表示 */
.loading-progress {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .logo-image {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 200px;
    }
    
    .catchphrase-text {
        font-size: 1.2rem;
    }
}
