/* ========================================
   ローディングアニメーション
   ======================================== */

.loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading.is-removed {
    display: none;
}

.loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* デュアルリングスピナー */
.loading__spinner {
    position: relative;
    width: 64px;
    height: 64px;
}

.loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loading__ring--outer {
    border-top-color: #D63A00;
    border-right-color: #D63A00;
    animation: loading-spin 0.9s cubic-bezier(0.5, 0.2, 0.3, 1) infinite;
}

.loading__ring--inner {
    inset: 8px;
    border-bottom-color: rgba(214, 58, 0, 0.9);
    border-left-color: rgba(214, 58, 0, 0.9);
    animation: loading-spin 0.7s cubic-bezier(0.5, 0.2, 0.3, 1) infinite reverse;
}

.loading__ring--center {
    inset: 16px;
    border-top-color: rgba(255, 255, 255, 0.25);
    border-right-color: transparent;
    animation: loading-spin 1.1s cubic-bezier(0.5, 0.2, 0.3, 1) infinite;
}

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

/* ドットパルス */
.loading__text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.loading__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D63A00;
    animation: loading-dot 1.2s ease-in-out infinite both;
}

.loading__dot:nth-child(1) { animation-delay: 0s; }
.loading__dot:nth-child(2) { animation-delay: 0.15s; }
.loading__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loading-dot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}
