﻿/* ローディング要素を、それ自体で画面中央に配置する */
.loading-container {
    position: absolute; /* 親(app)を基準に絶対配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央揃えの定石 */
    /* スピナーとテキストをまとめるコンテナとしてのスタイル */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
}

/* スピナーのスタイル */
.elegant-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid rgba(2, 188, 212, 0.2);
    border-top-color: #00BCD4;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* テキストのスタイル */
.loading-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #00BCD4;
}

    /* ドットの共通スタイル */
    .loading-text .dot {
        display: inline-block;
        animation: wave 1.4s infinite;
    }

        /* ドットのアニメーション遅延 */
        .loading-text .dot:nth-of-type(1) {
            animation-delay: -0.2s;
        }

        .loading-text .dot:nth-of-type(2) {
            animation-delay: -0.1s;
        }

        .loading-text .dot:nth-of-type(3) {
            animation-delay: 0s;
        }

/* ドットが波打つアニメーション */
@keyframes wave {
    0%, 60%, 100% {
        transform: initial;
    }

    30% {
        transform: translateY(-8px);
    }
}
