@charset "utf-8";




/* ポップアップウインドウ */


#popup {
    display: none;
    /* label でコントロールするので input は非表示に */
}

.popup-open {

    text-decoration: underline;
    color: #a4a56e;
    line-height: 1.3;
    margin-top: -20px;
    margin: 2px auto 0;
    text-align: center;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    cursor: pointer;
    /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
}


.popup-open2 {

    text-decoration: underline;
    color: #a5a5a5;
    line-height: 1.3;
    font-size: 15px;
    margin-top: -20px;
    margin: 2px auto 0;
    text-align: center;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    cursor: pointer;
    /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
}



.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #00000070;
    z-index: 9999;
}

#popup:checked~.popup-overlay {
    display: block;
}

.popup-window {
    width: 90vw;
    max-width: 560px;
    max-height: 80%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 6px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
}


.popup-text {
    text-align: left;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;


}

.popup-text:not(:last-of-type) {
    margin-bottom: 1em
}


.popup-close {
    cursor: pointer;
    top: 5vh;
    margin-left: 258px;
    z-index: 10000;
    width: 24px;
    height: 24px;
    /* background-color: #111; */
    position: absolute;
}



@media screen and (max-width:1024px) {

    .button {
        margin-top: 90px;
        margin-bottom: 0%;
        max-width: 100%;
        padding: 0px 0px;
    }

    .popup-open {

        text-decoration: underline;
        color: #a5a5a5;
        line-height: 1.3;
        margin: 2px auto 0;
        text-align: center;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        cursor: pointer;
        /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
    }

    .popup-open2 {

        text-decoration: underline;
        color: #a5a5a5;
        line-height: 1.3;
        margin: 2px auto 0;
        text-align: center;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        cursor: pointer;
        /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
    }



}


@media screen and (max-width:768px) {





    .button {

        padding: 0px 0px;
        margin-top: 30px;
        margin-bottom: -1%;
    }

    .popup-open {

        text-decoration: underline;
        color: #a5a5a5;
        font-size: 15px;
        line-height: 1;
        margin: 2px auto 0;
        text-align: center;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        cursor: pointer;
        /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
    }

    .popup-open2 {

        text-decoration: underline;
        color: #a5a5a5;
        font-size: 15px;
        line-height: 1;
        margin: 2px auto 0;
        text-align: center;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        cursor: pointer;
        /* マウスオーバーでカーソルの形状を変えることで、クリックできる要素だとわかりやすいように */
    }



    .popup-close {
        cursor: pointer;
        top: 4.5vh;
        right: 4.2VW;
        z-index: 10000;
        width: 24px;
        height: 24px;
        /* background-color: #111; */
        position: absolute;
    }



}