
/* ローディング全体を覆う要素 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 一番前面に表示 */
}

/* 背景を薄く覆うスタイル */
.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 薄い白色 */
    z-index: 1; /* 背景部分がスピナーの後ろに */
}

/* スピナーやテキストを表示するコンテナ */
.loading-content {
    position: relative;
    z-index: 2; /* 背景より前面に表示 */
    text-align: center;
    color: #333;
}

/* スピナーのスタイル */
.spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* スピナーのアニメーション */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
