/* static/css/prefecture_picker.css
   都道府県を「地方別のリスト+日本地図(タイルマップ)」で選ぶ部品(bomb用)。
   本文幅(48rem)は変えない。画面幅48rem以上では、この部品だけ左にリスト・右に地図を並べ、
   狭い画面では地図を上・リストを下に縦積みにする。 */

.bp-pref-picker {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: stretch;
}
.bp-pref-picker__list,
.bp-pref-picker__map {
    min-width: 0;
}

@media (min-width: 48rem) {
    .bp-pref-picker {
        flex-direction: row;
        align-items: flex-start;
    }
    .bp-pref-picker__list {
        flex: 1 1 0;
    }
    .bp-pref-picker__map {
        flex: 0 0 22.5rem;
        position: sticky;
        top: 4.5rem;
    }
}

/* ===== リスト ===== */
.bp-pref-region {
    margin-bottom: 0.55rem;
}
.bp-pref-region__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}
.bp-pref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.bp-pref-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.2rem 0.7rem;
    box-sizing: border-box;
    border: 0.0625rem solid #d6deeb;
    border-radius: 999px;
    background: #fbfdff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bp-pref-chip:hover,
.bp-pref-chip:focus-visible,
.bp-pref-chip.is-hover {
    background: #eef4ff;
    border-color: #9eb8ef;
    color: #1d4ed8;
    outline: none;
}
.bp-pref-chip.is-selected {
    background: #2f6ae6;
    border-color: #2f6ae6;
    color: #ffffff;
}

/* ===== 地図 ===== */
.bp-pref-map {
    padding: 0.6rem 0.6rem 0.5rem;
    border: 0.0625rem solid #dbe4f0;
    border-radius: 1rem;
    background: #f8fbff;
}
.bp-pref-map__svg {
    display: block;
    width: 100%;
    max-width: 24rem;
    height: auto;
    margin: 0 auto;
}
.bp-pref-map__link {
    cursor: pointer;
    outline: none;
}
.bp-pref-map__tile {
    stroke: #ffffff;
    stroke-width: 2;
    transition: fill 0.15s ease;
}
/* 地方ごとの色(bombのツールの青系を基調に、地方の区別がつく淡い色) */
.bp-pref-map__tile--r1 { fill: #cfe0fb; }
.bp-pref-map__tile--r2 { fill: #d6efe0; }
.bp-pref-map__tile--r3 { fill: #fdf0c4; }
.bp-pref-map__tile--r4 { fill: #f9dcd6; }
.bp-pref-map__tile--r5 { fill: #e4dcf5; }
.bp-pref-map__tile--r6 { fill: #fde3c8; }
.bp-pref-map__tile--r7 { fill: #cdeceb; }

.bp-pref-map__text {
    fill: #1f2a44;
    font-size: 17px;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}
.bp-pref-map__text--big {
    font-size: 24px;
}
.bp-pref-map__link:hover .bp-pref-map__tile,
.bp-pref-map__link:focus-visible .bp-pref-map__tile,
.bp-pref-map__link.is-hover .bp-pref-map__tile {
    fill: #9eb8ef;
}
.bp-pref-map__link:focus-visible .bp-pref-map__tile {
    stroke: #1d4ed8;
    stroke-width: 3;
}
.bp-pref-map__link.is-selected .bp-pref-map__tile {
    fill: #2f6ae6;
}
.bp-pref-map__link.is-selected .bp-pref-map__text {
    fill: #ffffff;
}
.bp-pref-map__caption {
    min-height: 1.3rem;
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
}
