#opening-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    
    /* 背景設定（変更なし） */
    background: linear-gradient(125deg, #135f9e, #2c9cce, #20948b, #2c9cce);
    background-size: 400% 400%;
    animation: waveGradient 15s ease infinite;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;

    /* ▼▼▼ 変更点：フェードアウトを0.5秒にして「スッと」消す ▼▼▼ */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* ▲▲▲ ここまで ▲▲▲ */
}

@keyframes waveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loader-content {
    width: 100vw !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* ロゴの設定（変更なし） */
.loader-logo {
    display: block !important;
    margin: 0 auto !important;
    height: auto !important;
    object-fit: contain !important;
    
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s; 

    /* サイズ設定（変更なし） */
    width: 80vw !important; 
    max-width: none !important; 
}
/* 2. スマホ用の調整（こちらを下に配置） */
@media screen and (max-width: 768px) {
    .loader-logo {
        /* !importantが付いている元のmarginを上書きするために!importantを推奨 */
        margin-top: 5vh !important; 
        margin-bottom: auto !important;
    }
}
@media screen and (min-width: 768px) {
    .loader-logo {
        width: auto !important; 
        max-width: 100% !important; 
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fadeout {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}