/* ===========================
common
==============================*/
.second__header {
    background-image: url(../images/04_zenkoku/fukushima.jpeg);
    background-position: 20% 40%;
    background-size: cover;
}

.map {
    font-size: 1.4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background-image: url(../images/00_common/haikei_dot.jpeg);
    background-size: contain;
    position: relative;
    border-bottom: 1px solid #3C3B3B;
    padding-top: 100px;

}

.map p {
    padding: 0 20px;
}

.map::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* 50%の黒のオーバーレイ */
    z-index: 1;
}

.map>* {
    position: relative;
    z-index: 2;
    /* テキストをオーバーレイの上に表示 */
}

.iconSet {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.top__ttl {
    margin-top: 10px;
    margin-bottom: 20px;
}

p {
    text-align: left;
}

.map-container:last-of-type {
    margin-bottom: 0px;
}

.footer__logoSet p {
    text-align: center;
}

/* ===========================
map-gaiyou
==============================*/
#map-gaiyou .photo {
    margin-top: 20px;
}

#map-gaiyou {
    margin-bottom: 150px;
}

/* ===========================
全国制覇
==============================*/
/* CSSで大阪を訪問済みの色に指定 */
.visited {
    fill: #ffcc00;
}

/* ポップアップのスタイル */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #333;
    border-radius: 20PX;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    text-align: center;
}

#popup h2 {
    margin: 0;
    font-size: 1.5em;
}

#popup button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--accent);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

#popup button:hover {
    opacity: 0.7;
    transition: all 1s;
}

#map-container {
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 20px;
}
#map-container svg {
    margin-top: 100px;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100vh;
    overflow: hidden;
    background-color: white;
}

#map-container svg {
    transform: scale(2);
    /* 1.5倍に拡大 */
    transform-origin: center;
    /* 地図の中央を基準に拡大 */
}

#OSAKA,
#TOKYO,
#HOKKAIDO,
#AOMORI,
#IWATE,
#MIYAGI,
#IBARAKI,
#TOCHIGI,
#ISHIKAWA,
#AICHI,
#SHIGA,
#HYOGO,
#KYOTO,
#TOTTORI,
#OKAYAMA,
#TOKUSHIMA,
#WAKAYAMA,
#NARA,
#FUKUSHIMA {
    cursor: pointer;
    transition: fill 0.3s;
}

#OSAKA:hover,
#TOKYO:hover,
#HOKKAIDO:hover,
#AOMORI:hover,
#IWATE:hover,
#MIYAGI:hover,
#IBARAKI:hover,
#TOCHIGI:hover,
#ISHIKAWA:hover,
#AICHI:hover,
#SHIGA:hover,
#HYOGO:hover,
#KYOTO:hover,
#TOTTORI:hover,
#OKAYAMA:hover,
#WAKAYAMA:hover,
#NARA:hover,
#FUKUSHIMA:hover {
    opacity: 0.5;
}

/* ===========================
制覇マップ内の画像
==============================*/

#popup {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 1.4rem;
    line-height: 150%;
}

#popup img {
    margin-top: 10px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}


#map-omoide {
    z-index: 100; /* popup よりも低く設定 */
}

#popup {
    position: fixed;
    z-index: 9999; /* 必ず最前面に表示 */
}

/* ===========================
common
==============================*/
.map-container {
    padding:30px 0 20px 0;
}
.iconSet {
    padding-top: 2px;
}
/* ===========================
common
==============================*/

/* ===========================
common
==============================*/

/* ===========================
common
==============================*/

/* ===========================
common
==============================*/
