.leaflet-container {
    height: 850px;
    width: 1050px;
    max-width: 100%;
    max-height: 100%;
    background: #ffffff;
    border: 1px solid gray;
    z-index: 0;
}
.map-wrapper{
    min-width: 1050px;
    width:1050px;
    margin:0 auto;
    position:relative;
}
#map {
    width: 1050px;
    height: 850px;
}
.info {
    padding: 6px 8px;
    font: 0.9em/1.1em Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
#sidebar {
    width: auto;
    max-width: calc(100vw - 150px);
    max-height: calc(100vh - 150px);
    display: block;
    float: right;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 4px;
}
#sidebar table.sakutei_hanrei tr{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}
#sidebar table.sakutei_hanrei tr td:nth-child(2){
    min-width: 52px;
}
#mapping .active{
    display: block!important;
}
.map-modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(217, 217, 217, 0.7);
    align-items: center;
    justify-content: center;
}
.map-modal .close {
    position: absolute;
    top: 13px;
    right: 13px;
    cursor: pointer;
}
.map-modal .close:hover{
    opacity: 0.8;
}
#mapping table th, #mapping table td {
    border: none;
}


#pref-modal .modal-content {
    background: #BDD78C;
    border: 3px solid #000;
    padding: 60px 48px 55px;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    max-height: 622px;
    height: max-content;
    overflow-y: auto;
    position: relative;
}
#pref-modal .modal-content.city-content{
    padding: 68px 48px;
}
#pref-modal-back {
    background: none;
    border: none;
    position: absolute;
    bottom: -48px;
    left: 0;
    cursor: pointer;
    z-index: 20;
    padding: 0;
}
#pref-modal-back:hover {
    opacity: 0.8;
}
#pref-modal-header {
    margin-bottom: 34px;
}
.pref-title-style {
    background: #185444;
    color: #fff;
    text-align: center;
    font-size: 2.4em;
    font-weight: bold;
    border-radius: 32px;
    padding: 0 48px;
    line-height: 1.5;
    vertical-align: middle;
    display: table;
    margin: 0 auto;
    position: relative;
}
.pref-title-style::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -13px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 10px 0 10px;
    border-color: #185444 transparent transparent transparent;
}
#pref-modal-body{
    background: #fff;
    border-radius: 15px;
    border: 1px solid #000;
    padding: 43px 18px;
    position: relative;
}
#pref-modal-body p.city-name {
    color: #000;
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1.6;
    letter-spacing: 2.3px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px dashed #000;
    display: table;
    margin: 0 auto 34px;
}
#pref-modal-body ul {
    margin: 0;
    list-style: none;
    padding-left: 26px;
}
#pref-modal-body li:not(:last-child) {
    margin-bottom: 24px;
}
#pref-modal-body li{
    position: relative;
    padding-left: 22px;
}
#pref-modal-body li::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border: 1px solid #1F4559;
    border-radius: 50%;
    box-sizing: border-box;
}
#pref-modal-body a {
    font-size: 1.7em;
    line-height: 1;
    font-weight: bold;
    text-decoration: underline;
    color: #1F4559;
}
#pref-modal-body a:hover{
    color: rgba(142, 198, 218, 1);
}
#pref-modal-body ul.city-list li:not(:last-child){
    margin-bottom: 8px;
}
#pref-modal-body ul.city-list li{
    color: #1F4559;
    font-weight: 500;
    font-size: 1.2em;
    line-height: 1.4;
    letter-spacing: 0.96px;
    vertical-align: middle;
}

/* --- スマートフォン表示向け調整 (改訂版) --- */
@media screen and (max-width: 1050px) {
    #mapping .container{
        position: inherit;
    }
    .map-wrapper {
        width: 100%;
        min-width: unset;
        overflow-x: auto;
    }
    .leaflet-container {
        max-width: none;
    }
    #sidebar{
        max-width: 100vw;
    }
    .sakutei_hanrei{
        width: auto!important;
    }
    .map-modal{
        position: fixed;
        z-index: 9999;
    }
    .map-modal .modal-content {
        width: 90%;
        padding: 40px 20px;
    }
}
@media screen and (max-width: 599px) {
    #pref-modal .modal-content{
        max-width: 100vw;
        max-height: 80vh;
    }
}