.map-select {
    width: 100%;
    aspect-ratio: 3 /2 ;
    height: auto;

    background-image: url(../VR/img/illustration_Sendai_Regional_Headquaters_JMA_overall_with_road.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;

    position: relative;
}
a.youtube-link {
    text-decoration: none;
    color: black;
}
.map-select-btn {
    width: 10rem;
    position: absolute;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: white;
    box-shadow: 0 0 0.5rem rgba(128, 128, 128, 0.5);
    
    z-index: 50;
}

#weather-forcast-operation-room {
    bottom: 5%;
    right: 5%;
}
#volcano-monitoring-room {
    top: 5%;
    right: 5%;
}
#observation-field {
    bottom: 30%;
    left: 5%;
}
#radar-tower {
    top: 5%;
    left: 5%;
}
.map-select-btn img {
    width: 100%;
    height: auto;
    border: 1px solid gray;
}
.lg-none {
    display: none;
}
/* 幅が狭い時はサムネイルは表示しない */
@media (max-width: 850px) {
    .map-select-btn img {
        display: none;
    }
    .sm-none {
        display: none;
    }
    .lg-none {
        display: block;
    }
    .map-select-btn {
        width: 7rem;
    }
    #observation-field {
        bottom: 5%;
        left: 5%;
    }
}

/* マーカーのSVG */
.map-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    z-index: 10;
}
.map-overlay line {
    stroke: gray;
    stroke-width: 0.5;
}
.map-overlay circle {
    stroke: gray;
    stroke-width: 0.5;
    fill: rgba(255, 255, 255, 0.75);
}
/* ホバー時 */
.map-select-btn:hover {
    box-shadow: 0 0 0.3rem 0.2rem orange;
    cursor: pointer;
}
.map-select:has(#weather-forcast-operation-room:hover) .weather-line line,
.map-select:has(#weather-forcast-operation-room:hover) .weather-line circle,
.map-select:has(#volcano-monitoring-room:hover) .volcano-line line,
.map-select:has(#volcano-monitoring-room:hover) .volcano-line circle,
.map-select:has(#observation-field:hover) .observation-field-line line,
.map-select:has(#observation-field:hover) .observation-field-line circle,
.map-select:has(#radar-tower:hover) .radar-tower-line line,
.map-select:has(#radar-tower:hover) .radar-tower-line circle {
    stroke: orange;
    fill: rgba(255, 166, 0, 0.5);
}

/* アニメーション */
.map-select-btn, .map-overlay line, .map-overlay circle {
    transition: all 0.2s ease-in-out;
}

/* 全体の枠 */
.map-select-wrapper-outer {
    border: solid 5px var(--main-color);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}
.guide-message {
    font-size: 1.25rem;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background-color: var(--main-color);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    /* border-radius: 0.25rem 0.25rem 0 0; */
}
.guide-message img {
    height: 1.25rem;
}
.select-way {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: var(--main-color);
    padding: 0.25rem 0.5rem;
    background-color: var(--main-color-light);
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}
.select-way img {
    height: 1.25rem;
}

.width-limited {
    print-color-adjust: exact;
}