/* ローディングオーバーレイ（全ページ共通・背景フェード） */
#loadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(14, 18, 28, 0.92) 0%,
            rgba(0, 0, 0, 0.86) 100%
        );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loadingOverlay::before {
    content: none;
}

#loadingOverlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loadingContent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loadingImage {
    width: min(200px, 42vw);
    height: auto;
    margin-bottom: 18px;
    filter:
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.22))
        drop-shadow(0 10px 28px rgba(0, 0, 0, 0.38));
    animation: loadingImageFloat 2.6s ease-in-out infinite;
}

.loadingText {
    font-size: clamp(var(--recholl-type-display), 5vw, 40px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.18em;
    font-family: var(--recholl-font-sans, "Zen Kaku Gothic New", sans-serif);
    margin: 0;
    text-align: center;
    text-transform: lowercase;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
    animation: loadingTextPulse 2.2s ease-in-out infinite;
}

@keyframes loadingImageFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.015);
    }
}

@keyframes loadingTextPulse {
    0%,
    100% {
        opacity: 0.94;
        letter-spacing: 0.18em;
    }
    50% {
        opacity: 0.62;
        letter-spacing: 0.22em;
    }
}

@media (prefers-reduced-motion: reduce) {
    #loadingOverlay {
        transition: none;
    }

    .loadingImage,
    .loadingText {
        animation: none;
    }
}
