/* モーダルの背景 */
.modal_n {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 60px;
}

/* モーダルコンテンツ */
.modal-content_n {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 900px;
    border-radius: 10px;
    position: relative;
}
.modal-content_n h1 {
position: absolute; 
margin: 0;
background: none;
line-height: 1;
padding: 5px 10px;
vertical-align: middle;
text-shadow: 3px 3px 4px #000;
-webkit-text-stroke-width: 0.15vw;
-webkit-text-stroke-color: #FFF;
font-size: 5vw;
font-weight: 400;
line-height: auto;
font-family: "Mochiy Pop P One", sans-serif;
font-style: normal;
}
.modal-content_n h2 {
margin: 0 auto;
background: none;
line-height: 1.3;
padding: 5px 10px;
vertical-align: middle;
font-size: 1.6vw;
border-bottom: dotted 0.4vw #f07878;
width: 100%;
font-family: "Murecho", sans-serif;
font-weight: normal;
font-style: normal;
}
.modal-content_n p {
width: 90%;
margin: 0 auto;
padding: 8px;
margin-top: 8px;
text-align: center;
border-radius: 50px;
font-weight: bold;
}
@media (max-width: 1199px) {
  .modal-content_n h1 {
    font-size: 4vw;
    -webkit-text-stroke-width: 0.1vw;
    -webkit-text-stroke-color: #FFF;
}
.modal-content_n h2 {
font-size: 2.4vw;
}
.modal-content_n p2 {
font-size: 1vw;
}
}
@media (max-width: 767px) {
  .modal-content_n h1 {
    font-size: 7vw;
    -webkit-text-stroke-width: 0.2vw;
    -webkit-text-stroke-color: #FFF;
}
.modal-content_n h2 {
font-size: 5vw;
}
.modal-content_n p2 {
font-size: 3.2vw;
}
}


/* 閉じるボタン */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* モーダル内の閉じるボタン */
.close-btn {
    background-color: #f08300;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.close-btn:hover {
    background-color: #ccc;
}

/* グリッド */
.grid-container_modal {
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        gap: 10px;
        margin: auto;
        margin-bottom: 50px;
    }
    .grid-item_modal {
        background-color: #ffffff;
        padding: 0;
        margin: 0;
    }
    @media (max-width: 767px) {
  .grid-container_modal {
      grid-template-columns: 1fr;
  }
    }