/* ========================================
   ローディング画面
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 自転車のコンテナ */
.bicycle-container {
    position: relative;
    width: 200px;
    height: 120px;
    margin-bottom: 2rem;
}

/* 自転車のフレーム */
.bicycle-frame {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 自転車の本体（シンプルな線画風） */
.bike-body {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 70px;
}

/* フレームの線 */
.frame-line {
    position: absolute;
    background: #ff6b6b;
    border-radius: 2px;
}

.frame-diagonal {
    width: 80px;
    height: 4px;
    top: 10px;
    left: 30px;
    transform: rotate(-30deg);
    transform-origin: left center;
}

.frame-horizontal {
    width: 70px;
    height: 4px;
    top: 45px;
    left: 35px;
}

.frame-vertical {
    width: 4px;
    height: 45px;
    top: 15px;
    left: 65px;
}

/* 前輪 */
.wheel.front {
    position: absolute;
    bottom: 0;
    left: 15px;
}

/* 後輪 */
.wheel.rear {
    position: absolute;
    bottom: 0;
    right: 15px;
}

/* タイヤ（円） */
.wheel {
    width: 60px;
    height: 60px;
    border: 5px solid #ff6b6b;
    border-radius: 50%;
    position: relative;
    animation: wheelRotate 1.5s linear infinite;
}

/* タイヤのスポーク */
.wheel::before,
.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ff6b6b;
    transform: translate(-50%, -50%);
}

.wheel::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* スポークの追加線 */
.spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ff6b6b;
    transform-origin: center;
}

.spoke:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.spoke:nth-child(2) {
    transform: translate(-50%, -50%) rotate(135deg);
}

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

/* ローディングテキスト */
.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ローディングドット */
.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: dotBounce 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* サブテキスト */
.loading-subtext {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ee5a6f;
    font-weight: 500;
}
