/* 全体リセットとフォント設定 */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    overflow: hidden;
    /* スクロールバー非表示 */
    background-color: #121212;
}

/* 地図コンテナを画面全体に広げる */
#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
    /* 地図のz-indexを低く設定 */
}

/* UIコンテナ (地図の上に重なる透明なレイヤー) */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    /* Leafletのデフォルトz-index(400)より大きくする */
    pointer-events: none;
    /* UIの無い場所は地図の操作を許可 */
}

/* ポインターイベントを元に戻す(UI要素自体はクリック可能にする) */
.pe-auto {
    pointer-events: auto;
}

/* グラスモーフィズム調の情報パネル (右上) */
#info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* コントロールパネル (中央下) */
#control-panel {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

#start-btn {
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
    border: none;
}

#start-btn:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.5) !important;
}

#start-btn:active:not([disabled]) {
    transform: translateY(1px);
}

#start-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

/* --- Leaflet カスタムマーカーのスタイル --- */

/* 新しく発生した地震のマーカー (赤色・大きく・マグニチュード表示) */
.quake-marker-recent {
    background-color: rgba(255, 0, 0, 0.7);
    border: 3px solid #ff4d4d;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    /* パルスアニメーション */
    animation: pulse 1.5s infinite;
    transition: all 1s ease-in-out;
    /* 変化時のアニメーション */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* 1年経過した地震のマーカー (薄い黄色・小さく) */
.quake-marker-old {
    background-color: rgba(255, 255, 150, 0.4);
    border: 1px solid rgba(255, 255, 150, 0.6);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.6);
    /* テキスト（M7.x）を半透明の黒で表示 */
    font-size: 10px;
    /* 少し小さめに表示 */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    transition: all 1s ease-in-out;
    /* 変化時のアニメーション */
}