@charset "UTF-8";
body {
    background-color: #dbc0a6; 
    margin: 0;
    padding: 0;
}

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 {
    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-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;
}

/* 閉じるボタンのスタイル */
.close-btn {
    color: #6495ed;
    float: right;
    font-size: 60px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item{
    margin:5px;
    padding:5px;
    background-repeat:no-repeat;
    background-size:contain ;
}
img{
    margin:0;
    padding:0;
    max-height: 100%;
    max-width: 100%;
    border-radius: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#poti1, #poti2, #poti3, #poti4, #poti5, #poti6 {
    position: relative; 
    background: transparent;
    border: none;
    padding: 0;
    width: 266px;
    height: 266px;
}

#hint1, #hint2, #hint3, #hint4, #hint5, #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;
}

.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_c {
    background-color: #dbc0a6;
    margin: 50% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    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_c p{
    font-size: 24px;
}

.close-text_c {
    color: #8a8484;
    float: right;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

.close-text_c:hover,
.close-text_c:focus {
    color: #000;
    text-decoration: none;
}