@charset "UTF-8";
/*body{
    height:100vh;
}*/
h1{
    justify-content: center;
    display: flex;
}
h2{
    justify-content: center;
    display: flex;
}
.container{
    height:auto;
    display:grid;
    padding:0px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr ;
    row-gap:10px;
    column-gap:10px;
    grid-template-rows: 580px 580px 580px ;
    justify-content: center;
    text-align: center;
    
}
.title-top{
    display: grid;
    grid-template-rows: 370px;
    background-image:url(img/背景素材/背景上部.png);
    background-size: contain ;
    background-position:top center ;
    background-repeat: no-repeat;
}
.title-bottom{
    display: grid;
    grid-template-rows: 370px;
    background-image:url(img/背景素材/背景下部.png);
    background-size: contain ;
    background-position:bottom center ;
    background-repeat: no-repeat;
}

/* モーダル全体のスタイル（初期状態では非表示） */
.modal,.modal_map {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 100; /* 他の要素より手前に表示するため、高い値を設定 */
    left: 0;
    top: 0;
    width: 100%; /* 画面全体を覆う */
    height: 100%; /* 画面全体を覆う */
    overflow: auto; /* コンテンツが画面より大きい場合にスクロール可能にする */
    background-color: rgba(0,0,0,0.4); /* 半透明の黒い背景（オーバーレイ） */
}

.modal_map{
    padding-top:150px;
}

/* モーダルのコンテンツ部分のスタイル */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 画面中央付近に配置 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 幅を調整 */
    max-width: 600px; /* 最大幅を設定 */
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation: fadeIn 0.5s; /* フェードインアニメーション */
}
/*マップ用のモーダルの配置設定*/
.modal_map_content{
    /* background-color: #fefefe; */
    /* margin: auto; 画面中央付近に配置 */
    /* padding: 20px;  */
    border: 1px solid #888888;
    width:100%; /* 幅を調整 */
    /* max-width: 600px; 最大幅を設定 */
    border-radius: 8px;
    /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); */
    animation: fadeIn 0.5s; /* フェードインアニメーション */
}


/* 閉じるボタンのスタイル */
.close-btn,.close-btn-map {
    color: #7fe08f;
    float: right;
    font-size: 60px;
    font-weight: bold;
}

.close-btn:hover,.close-btn-map:hover
.close-btn:focus,.close-btn-map:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item,.map{
    
    margin:5px;
    padding:5px;
    /* background-image:url(img/pre_img.PNG); */
    background-repeat:no-repeat;
    background-size:contain ;
    
    

}
img{
    margin:0;
    padding:0;
    max-height: 100%;
    /* aspect-ratio: 1/1.5 ; */
    max-width: 100%;
    border-radius: 16px;
    display: block;

    margin-left: auto;/*アイテムの左右位置の指定*/
    margin-right: auto;
    
}

/*ヒント*/
#poti{
    background: transparent;
    /*border:none;*/
    position: relative;
}
.button {
    padding: 0;
    border: none;
    width:266px;
    height:266px;
    
    }
.overlay-text{
/* 親要素 #poti に対して絶対位置で配置 */
position: absolute; 
top: 50%; /* 上端を親要素の50%に設定 */
left: 50%; /* 左端を親要素の50%に設定 */
transform: translate(-50%, -50%); /* 自身のサイズを考慮して中心に移動 */

/* 画像よりも高いスタッキング順位にする */
z-index: 10; 

/* テキストのスタイル設定 */
color: white; /* テキストの色（任意） */
font-size: 24px; /* テキストのサイズ（任意） */
font-weight: bold; /* テキストを太字に（任意） */
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* 読みやすくするための影（任意） */
}



#poti1{
    position: relative; 
    background: transparent;
    border:none;
}
#poti2{
    position: relative; 
    background: transparent;
    border:none;
}
#poti3{
    position: relative; 
    background: transparent;
    border:none;
}
#poti4{
    position: relative; 
    background: transparent;
    border:none;
}
#poti5{
    position: relative; 
    background: transparent;
    border:none;
}
#poti6{
    position: relative; 
    background: transparent;
    border:none;
}
.button {
    padding: 0;
    border: none;
    width:266px;
    height:266px;
    
    }

    #hint1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 真ん中に配置 */
        z-index: 10;
    
        color: white;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        pointer-events: none; /* ヒントがクリックを邪魔しないように */
}
        #hint2 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 真ん中に配置 */
            z-index: 10;

            color: white;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            pointer-events: none; /* ヒントがクリックを邪魔しないように */
        }
        #hint3 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 真ん中に配置 */
            z-index: 10;

            color: white;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            pointer-events: none; /* ヒントがクリックを邪魔しないように */
        }
        #hint4 {
         
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 真ん中に配置 */
            z-index: 10;

            color: white;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            pointer-events: none; /* ヒントがクリックを邪魔しないように */
        }
        #hint5 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 真ん中に配置 */
            z-index: 10;

            color: white;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            pointer-events: none; /* ヒントがクリックを邪魔しないように */
        }
        #hint6 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 真ん中に配置 */
            z-index: 10;

            color: white;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            pointer-events: none; /* ヒントがクリックを邪魔しないように */
}
    #openModalBtn{
        font-size: 25px;
        border: double 6px #3cb371;
        border-radius: 10px;
        color:white;
        padding: 10px 30px;
        padding: 10px 30px;
        position:relative;
        left:350px;
        background: rgb(64, 160, 64);
      
      }

    .modal-t,.modal-t_c {
        display: none; /* 初期状態では非表示 */
        position: fixed; /* 画面に固定 */
        z-index: 100; /* 他の要素より手前に表示するため、高い値を設定 */
        left: 0;
        top: 0;
        width: 100%; /* 画面全体を覆う */
        height: 100%; /* 画面全体を覆う */
        overflow: auto; /* コンテンツが画面より大きい場合にスクロール可能にする */
        background-color: rgba(0,0,0,0.4); /* 半透明の黒い背景（オーバーレイ） */
}
    
/* モーダルのコンテンツ部分のスタイル */
.modal-t-content,.modal-t-content_c {
    background-color: #fefefe;
    margin: 50% auto; /* 画面中央付近に配置 */
    padding: 20px;
    /*border: 1px solid #888;*/
    width: 80%; /* 幅を調整 */
    max-width: 600px; /* 最大幅を設定 */
    /*border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);*/
    animation: fadeIn 0.5s; /* フェードインアニメーション */
    border-top: solid 6px #000;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.32);/*影*/
    color: #000000;
    background: #e4fcff;/*背景色*/
}
.modal-t-content p{
    font-size: 24px;
}

.modal-t-content_c p{
    font-size: 24px;
}

/* 閉じるボタンのスタイル */
.close-text {
    color: #8a8484;
    float: right;
    font-size: 60px;
    font-weight: bold;
}

.close-text:hover,
.close-text:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


    
/*.button:hover {*/
    /*opacity: 0.8; /* マウスオーバー時に透明度を変更 */
    /*}*/

    

