#map-container {
    width: 100vw;
    height: 100vh;
    cursor: grab;
}

#map-container:active {
    cursor: grabbing;
}

.prefecture {
    fill: #ffffff;
    /*
            stroke: #444;
            stroke-width: 0.5;
            */
    stroke: none;
    transition: fill 0.3s;
    /* 色の変化を滑らかに */
}

/* ★選択された時の色 */
.prefecture.active {
    fill: #ff8a65;
    /* 桜のピンクに合う暖色系など */
}

.pref-label {
    fill: #333;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    /* ラベルがクリックを邪魔しないように */
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: #ffffff;
    /* 文字の縁取り */
    stroke-width: 3px;
    stroke-linejoin: round;
}

/*
        .prefecture:hover {
            fill: #ffccbc;
        }

        */
svg {
    background-color: #b2ebf2;
    width: 100%;
    height: 100%;
}

/* ズームボタンのスタイル */
.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.controls button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* オーバーレイ（共通） */
#overlay {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* PC：背景は透明、スマホ：背景は半透明の黒 */
@media (min-width: 769px) {
    #overlay {
        background: rgba(0, 0, 0, 0.3);
    }

    /* PCは透明（地図が見える） */
}

@media (max-width: 768px) {
    #overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    /* スマホは暗く */
}

/* 表示時 */
#overlay.show {
    visibility: visible;
    opacity: 1;
}

/* ポップアップ（共通） */
.popup {
    background: white;
    padding: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: default;
}
