html,
body {
    height: 100%;
    margin: 0;
}
.wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}
#map {
    height: 100%;
    width: 100%;
}

/* UI要素の配置 */
.form1 {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    pointer-events: none;
}
.form2 {
    position: absolute;
    bottom: 30px;
    right: 55px;
    z-index: 1000;
    font-size: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.form1 select,
.form2 input {
    pointer-events: auto;
}

/* オフキャンバスの調整 */
.offcanvas-body {
    font-size: 14px;
    background-color: #fdfdfd;
}
@media (max-width: 768px) {
    .offcanvas-body {
        font-size: 12px;
    }
    .offcanvas.offcanvas-bottom {
        height: 40vh;
    }
}

/* パフォーマンス向上のための設定 */
.leaflet-container {
    font-family: sans-serif;
}

/* スケールの位置調整 */
.leaflet-control-scale {
    left: 6px;
}

/* 凡例の外枠 */
.legend-container {
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    line-height: 1.6;
    font-size: 11px;
    color: #333;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 凡例内の色の丸（ドット） */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.dot.both {
    background-color: red;
    border-color: darkred;
}
.dot.tokutei {
    background-color: lime;
    border-color: green;
}
.dot.bousai {
    background-color: blueviolet;
    border-color: purple;
}
.dot.other {
    background-color: blue;
    border-color: navy;
}
