




/* ローディング全体 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: #fff; */
    /* 背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}


.load_title.fusuma_load {
    position: absolute;
    top: 20px;
    left: 20px;
    translate: 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;

    color: #0e3d27 !important;
    z-index: 999;
    text-align: left;
}

.load_title.fusuma_load .title {
    font-size: 24px;
}

.load_title.fusuma_load .title span {
    /* font-size: 20px; */
    margin-left: 10px;
}

.load_title.fusuma_load .text {
    font-size: 16px;
}

@media(max-width:767px) {
    .load_title.fusuma_load .title span {
        font-size: 24px;
        display: block;
        margin-left: 0;
        line-height: 1;
    }

    .load_title.fusuma_load .text {
        margin-top: 1em;
    }

    .load_title.fusuma_load .text span {
        display: block;
    }
}

/* ローディング消す用 */
#loading.hidden {
    opacity: 0;
    visibility: hidden;
}

/* スピナー */
.load_anime2 {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.load_anime2 .text {
    color: var(--main-text-color) !important;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5em;
    margin-left: 0px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #0e3d27;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

/* 回転アニメーション */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}



/* ローディング全体 */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    z-index: 9999;
    background-size: cover;
    background-position: center;
    animation: bgSlide 12s infinite;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

/* 背景切り替え */
@keyframes bgSlide {
    0% {
        background-color: #fff;
    }

    70% {
        background-color: #ffffffb7;
    }

    100% {
        background-color: #ffffff00;
    }
}

/* ローディングテキスト */
.loading-text {
    position: relative;
    z-index: 2;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* 扉アニメーション用のオーバーレイ */
.overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 3;
    transition: transform 1s ease-in-out;
}

/* 左右の配置 */
.overlay.left {
    left: 0;
    background-image: url("../image/bg_image2.jpg");
    border: 8px solid #718179;
    position: relative;

}

.overlay.left::before {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background-color: #d1e4d4;
    border-radius: 50px;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translate(0, -50%);
    border: 4px solid #718179;
}

.overlay.right {
    left: 0%;
    background-image: url("../image/bg_image2.jpg");
    border: 8px solid #718179;
    position: relative;
}

.overlay.right::before {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background-color: #d1e4d4;
    border-radius: 50px;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translate(0, -50%);
    border: 4px solid #718179;
}


/* 開いた後の状態 */
#loading.open .overlay.left {
    transform: translateX(0);
}

#loading.open .overlay.right {
    transform: translateX(-100%);
}

/* 非表示 */
#loading.hidden {
    opacity: 0;
    visibility: hidden;
}