@charset "UTF-8";

※スマホ（幅768px以下）の場合は2列表示になるように調整してあります。
/* マップエリアの基本設定 */
#custom-map-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* 必要に応じて変更 */
    margin: 0 auto 30px auto;
}

.main-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 点滅するマーカー */
.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* 中心を座標に合わせる */
    opacity: 0; /* 最初は隠す */
    pointer-events: none; /* マーカー自体はクリックの邪魔をしない */
    transition: opacity 0.3s;
    z-index: 10;
}

/* 点滅アニメーション */
.map-marker.active {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* 名所写真グリッド */
#spot-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCは4列 */
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.spot-item {
    cursor: pointer;
    transition: opacity 0.2s;
}
.spot-item:hover {
    opacity: 0.8;
}
.spot-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
    #spot-list-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    }
}

/* ホバーウィンドウ（モーダル） */
#spot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 背景を暗く */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#spot-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.spot-modal-window {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-img-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 200px; /* 拡大画像の高さ制限 */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-text-area h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}
.modal-text-area p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

#btn-show-map {
    background-color: #d93025; /* ボタンの色 */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}
#btn-show-map:hover {
    background-color: #b02015;
}
