/* Bootstrap 4.2 の custom-switch 再現CSS */
.custom-control.custom-switch {
    padding-left: 2.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #007bff;
    background-color: #007bff;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #80bdff;
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
}

.custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(0.75rem);
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -2.25rem;
    display: block;
    width: 1.75rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #dee2e6;
    border: #adb5bd solid 1px;
    border-radius: 1rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -2.25rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-color: #fff;
    border-radius: 1rem;
    transition: transform 0.15s ease-in-out;
}

.custom-control-label {
    position: relative;
    margin-left: 0.5rem;
}


/* スクロール無効化用のCSS */
.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* より確実にスクロールを無効化する場合 */
body.no-scroll {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}


#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 9999;
    display: none;
}

.loadingBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.placeholder {
    display: inline-block;
    background-color: #e0e0e0;
    height: 1em;
    border-radius: 0.2rem;
    transition: background-color 0.3s ease;
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 1.6s ease-in-out infinite;
}

@keyframes placeholder-glow {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f2f2f2;
    }
    100% {
        background-color: #e0e0e0;
    }
}