@charset "utf-8";

/*公共施設マップ*/
#citymap {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #f3f0e4;
}
@media (max-width: 767px) {
    #citymap {
        aspect-ratio: 1 / 1;
    }
}

/*マーカー*/
.citymap_marker {
    position: absolute; /* 各マーカーは通常のドキュメントフロー(相対配置)から外し、原点(0,0)からの絶対配置にする */
    top: 0;
    left: 0;
    width: 32px;
    height: 47px; /* 丸(32px) + 吹き出し三角形(15px) の合計に合わせる。三角形のサイズを変える場合はここも合わせて調整してください */
    cursor: pointer;
}
.citymap_marker_pin {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pin-color);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    font-weight: 700;
    font-size: 14px;
}
.citymap_marker_pin::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 15px solid var(--pin-color);
}

/*ポップアップ*/
.citymap_popup {
    min-width: 210px;
    line-height: 1.6;
}
.citymap_popup strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    padding-right: 20px;
}
.citymap_popup span {
    display: block;
}
.citymap_popup a {
    display: inline-block;
    margin-top: 8px;
    color: #0068b7;
    font-weight: 600;
    text-decoration: underline;
}
.maplibregl-popup-close-button {
    right: 8px;
    top: 8px;
    width: 25px;
    height: 25px;
    border: 1px solid #797979;
    border-radius: 50%;
}
@media (hover: hover) and (min-width: 992px) {
    .citymap_popup a:hover {
        text-decoration: none;
    }
}

/*リスト*/
.citymap_list h4 {
    font-size: 105%;/*18px*/
    background: #f0f0f0;
    text-align: center;
    padding: .3em .5em;
    margin: 30px 0 5px;
}
.citymap_list h4::before {
    content: "＜";
}
.citymap_list h4::after {
    content: "＞";
}
.citymap_list ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0 20px;
    list-style: none;
    counter-reset: number;
}
.citymap_list li {
    border-bottom: 1px solid #b3b3b3;
    padding: .7em 0 .6em 2.2em;
    position: relative;
}
.citymap_list li:has(a) {
    padding-right: 2.5em;
}
.citymap_list li::before {
    counter-increment: number;
    content: counter(number);
    position: absolute;
    top: .6em;
    left: 0;
    width: 1.7em;
    height: 1.7em;
    line-height: 1.5;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-weight: bold;
}
.citymap_list li.kyouiku::before {
    background: #f660b8;
    border: 3px solid #f660b8;
}
.citymap_list li.koukyou::before {
    background: #17b1ea;
    border: 3px solid #17b1ea;
}
.citymap_list li.kankou::before {
    background: #75dd2a;
    border: 3px solid #75dd2a;
}
.editor .citymap_list li a {
    text-decoration: none;
    color: inherit;
    border: 1px solid #666;
    font-size: 82%;/*14px*/
    line-height: 1.3;
    padding: 0 5px;
    position: absolute;
    right: 3px;
    top: 1.1em;
    transition: all .2s;
}
.editor .citymap_list li a::after {
    content: none !important;
}
@media (hover: hover) and (min-width: 992px){
	.editor .citymap_list li a:hover {
		background: #333;
		color: #fff;
		border-color: transparent;
	}
}