body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0f172a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#map {
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.overlay-ui {
    z-index: 1000;
}

/* --- マーカーとアニメーションの定義 --- */
.eruption-icon {
    /* Leafletのカスタムアイコンコンテナ */
}

.eruption-circle {
    position: absolute;
    border-radius: 50%;
    /* 4秒かけて赤からグレーへ、そして消える */
    animation: eruptionAnim 4s forwards;
    mix-blend-mode: screen;
    pointer-events: none;
}

.eruption-label {
    position: absolute;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    /* ラベルも4秒でフェードアウト */
    animation: labelAnim 4s forwards;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eruption-scale-text {
    font-size: 10px;
    color: #adb5bd;
    /* Bootstrapのtext-secondaryに近い色 */
    font-weight: normal;
}

@keyframes eruptionAnim {
    0% {
        background-color: rgba(255, 40, 40, 0.9);
        transform: translate(-50%, -50%) scale(0.1);
        box-shadow: 0 0 10px rgba(255, 40, 40, 0.8);
    }

    15% {
        background-color: rgba(255, 70, 40, 0.8);
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(255, 40, 40, 0.6);
    }

    30% {
        background-color: rgba(255, 40, 40, 0.6);
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(255, 40, 40, 0.4);
    }

    70% {
        background-color: rgba(100, 100, 100, 0.6);
        transform: translate(-50%, -50%) scale(1);
        box-shadow: none;
    }

    100% {
        background-color: rgba(100, 100, 100, 0);
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes labelAnim {
    0% {
        opacity: 0;
        margin-left: -10px;
    }

    10% {
        opacity: 1;
        margin-left: 0;
    }

    70% {
        opacity: 1;
        margin-left: 0;
    }

    100% {
        opacity: 0;
        margin-left: 10px;
    }
}

/* ぼかし背景のユーティリティ (Bootstrap単体には無いため追加) */
.glass-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ボタンのホバー拡大アニメーション */
.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* カスタムスライダー */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ef4444;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}