@charset "utf-8";
/* CSS Document */
#map {
    height: 100dvh;
    height: 100svh;
    width: 100%;
    background: #f4f6f8;
}
.popup-img {
    width: 100px;
    cursor: pointer;
    border: 1px solid #ccc;
    margin-top: 5px;
}
.popup-link {
    display: inline-block;
    margin-top: 6px;
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}
#getBtn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    display: none;
    z-index: 10010;
}
#info {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10010;
}
#stampPanel {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10010;
}
#resetBtn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
#legend {
    position: fixed;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 6px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    z-index: 10010;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.legend-target {
    background: #2E7D32;
}
.legend-me {
    background: #2962FF;
}
.me-emoji {
    font-size: 40px;
    text-shadow: 0 0 2px #fff, 0 0 6px #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
/* コンプリート演出 */
#completeOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 10020;
}
#completeBox {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    text-align: center;
    font-size: 20px;
}
#completeBox h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
#completeClose {
    margin-top: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    cursor: pointer;
}
/* ポップアップの見た目を調整 */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    border-radius: 10px; /* 角を丸くする */
}
.leaflet-popup-content-wrapper {
    box-shadow: 0 3px 14px rgba(0,0,0,0.4); /* 影を濃くする */
}
.leaflet-popup-content {
    padding-top: 15px !important; /* 上の余白 */
    padding-bottom: 15px !important; /* 下の余白 */
    padding-left: 15px !important; /* 左の余白 */
    padding-right: 15px !important; /* 右の余白 */
    font-size: 14px;
}
.leaflet-popup-content strong {
    font-size: 16px;
    display: block; /* タイトルの下の余白を確保 */
    margin-bottom: 5px;
}
.popup-link {
    display: block !important;
    margin-top: 5px !important;
}