/* styles.css */

/* 全体のリセット */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #fffdd0; /* 背景色をクリーム色に設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

/* ヘッダーのスタイル */
header {
    text-align: center;
    background-color: #a89110;
    padding: 10px 0;
    width: 100%;
}

#pageTitle {
    font-size: 2em;
    margin: 0;
    color: #fff;
}

/* 地図全体のコンテナ */
#mapContainer {
    position: relative;
    width: 80%; /* 地図の幅を画面幅に応じて調整 */
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    text-align: center;
}

#introImage {
    width: 100%; /* 地図画像を親要素にフィットさせる */
    height: auto;
    display: block;
    margin: 0 auto;
    z-index: 1;
}

/* スポット画像のコンテナ */
#spotContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* スポット画像のスタイル */
.spot-image {
    position: absolute;
    transform: translate(-50%, -50%); /* 中心基準で配置 */
    cursor: pointer;
    transition: filter 0.3s ease;
    filter: brightness(0.8) saturate(0); /* デフォルトで薄い灰色 */
}

.spot-image:hover {
    filter: brightness(1.2) hue-rotate(90deg); /* カーソルが乗ると黄緑 */
}

.spot-image.active {
    filter: brightness(1) hue-rotate(120deg) saturate(2); /* クリックでしっかり緑 */
}