/* ========================================
   リセット・ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   ページレイアウト
   ======================================== */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ========================================
   ローディングコンテナ
   ======================================== */
.loading-container {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* ========================================
   コンパスアニメーション
   ======================================== */
.compass-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.compass-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.compass-needle {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: compassRotate 0.8s ease-in-out infinite;
    transform-origin: 50% 50%;
    transition: opacity 0.5s ease-in-out;
}

/* ========================================
   ロゴ表示
   ======================================== */
.logo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
}

/* ========================================
   テキストスタイル
   ======================================== */
.loading-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.loading-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 10px;
}

.loading-description {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========================================
   プログレスバー
   ======================================== */
.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #e0e0e0);
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

/* ========================================
   アニメーション定義
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes compassRotate {
    0% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(45deg);
    }
    30% {
        transform: rotate(90deg);
    }
    45% {
        transform: rotate(135deg);
    }
    60% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(225deg);
    }
    90% {
        transform: rotate(270deg);
    }
    95% {
        transform: rotate(315deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .compass-container {
        width: 150px;
        height: 150px;
    }
    
    .loading-text {
        font-size: 20px;
    }
    
    .loading-subtitle {
        font-size: 14px;
    }
    
    .loading-description {
        font-size: 12px;
    }
    
    .progress-bar {
        width: 250px;
    }
} 