/* スプラッシュスクリーン */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(184, 217, 224), rgb(152, 195, 198));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 2s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: #ffffff;
    animation: splashFadeIn 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.title-part {
    display: inline-block;
    transition: all 0.8s ease-in-out;
}

#qico-part {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    will-change: transform, opacity;
}

#dayo-part {
    opacity: 0;
    transform: translateX(65px);
}

.dayo-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    transition: all 0.3s ease-out;
}

/* Qicoスライドアニメーション */
.splash-title.qico-slide #qico-part {
    left: 0;
    transform: translateX(10px);
}

/* dayo落下アニメーション */
.splash-title.dayo-drop #dayo-part {
    opacity: 1;
    transform: translateX(65px);
}

.splash-title.dayo-drop .dayo-char {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.splash-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* メインコンテンツ */
.main-content-hidden {
    opacity: 0;
}

.main-content-visible {
    opacity: 1;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .splash-title {
        font-size: 2rem;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .splash-subtitle {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }


    /* Qicoスライドアニメーション */
    .splash-title.qico-slide #qico-part {
        left: 0;
        transform: translateX(30px);
    }

    #dayo-part {
        opacity: 0;
        transform: translateX(45px);
    }

    /* dayo落下アニメーション */
    .splash-title.dayo-drop #dayo-part {
        opacity: 1;
        transform: translateX(45px);
    }
}