body {
    overflow: hidden; /* スクロールを無効化 */
}

.loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1); /* 半透明の背景 */
    top: 0;
    left: 0;
    z-index: 9999; /* 他のコンテンツの上に表示 */
    display: flex; /* 中央揃え */
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 30px; /* 円のサイズ */
    height: 30px; /* 円のサイズ */
    border: 6px solid rgba(52, 152, 219, 0.5); /* 外枠の色 */
    border-top: 6px solid #3498db; /* アニメーション部分の色 */
    border-radius: 50%; /* 円形にする */
    animation: spin 3s linear infinite; /* 回転アニメーション */
    margin-right: 20px;
}

.bouncing-dots {
    display: flex;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 0.6s infinite alternate;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg); /* 初期位置 */
    }
    100% {
        transform: rotate(360deg); /* 360度回転 */
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.loading-text {
    font-size: 1.5rem;
    color: #3498db;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: none;
    z-index: 100000;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(52, 152, 219, 0.7);
    border-radius: 50%;
    opacity: 0;
    animation: rise 2s forwards;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1; /* 開始時は不透明 */
    }
    100% {
        transform: translateY(-100vh); /* 画面の上まで移動 */
        opacity: 0; /* 最後は透明に */
    }
}