@charset "utf-8";
/*========================================================

モーダルウィンドウ

=========================================================*/

/*
閉じる用のカバー：背景全体にかける
---------------------------------------------------------*/
.modal-tgl-close {
    cursor: pointer;
    position: fixed;
    z-index:100000;
    top: 0;
    right: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: background 1s;
    background: rgba(0, 0, 0, .0);
}

#modal-tgl:checked~.modal-tgl-close {
    background: rgba(0, 0, 0, .6);
    pointer-events: auto;
    transition: background 1.2s;
}

/*
コンテント
---------------------------------------------------------*/
.modal_cont {
    align-self: center;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    width: 600px;
    border-radius: 10px;
    transition: opacity .5s ease-out, transform 1s ease-out;
    position: fixed;
    z-index:10000000000000;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%,-50%) scale(0);
}
@media screen and (max-width: 680px) {
    .modal_cont {
        width: 85%;
    }
}

#modal-tgl:checked~.modal_cont{
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/*
閉じるボタン
---------------------------------------------------------*/
.modal_close-btn {
    position: absolute;
    top: -41px;
    right: -7px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.3); 
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    transition: .3s ease-out;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    text-align: center;
    padding: .05em 0 0 0;
}
.modal_close-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/*
インナー
---------------------------------------------------------*/
.modal_inner {
    width: 100%;
    padding: 2rem 2rem 2rem 2rem;
}
/*中身の見出し部分*/
.modal_cont_head {
    font-weight: bold;
    padding: 0 0 1rem 0;
    border-bottom: solid .1rem #ddd;
    margin: 0 2rem 1.5rem 1.5rem;
}
.modal_cont_head img{
    height: 3rem
}
/*中身の内容部分*/
.modal_cont_body {
    padding: 0 15px;
    text-align: justify;
    max-height: 450px;
    min-height: 70px;
}
.modal_cont_body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}
/*スクロールバー*/
.modal_cont_body::-webkit-scrollbar {
    width: 6px;
}
.modal_cont_body::-webkit-scrollbar-track {
    background: #e3e4ed;
    border-radius: 5px;
}
.modal_cont_body::-webkit-scrollbar-thumb {
    background:#a5a6ac;
    border-radius: 5px;
}

/*
モーダルのステート
---------------------------------------------------------*/
#modal-window input{
    display: none;
}


/*
レスポンシブ
---------------------------------------------------------*/
@media screen and (max-width: 500px) {
    /*モーダルウィンドウ*/
    .modal_inner {
        padding: 20px 5px 20px 0;
    }
    .modal_cont_head {
        margin: 0 17px 15px 15px;
    }
    .modal_cont_body {
        padding: 0 10px 0px 15px;
    }
}
@media screen and (max-height: 630px) {
    .modal_cont_body {
        max-height: 400px;
    }
}
@media screen and (max-height: 580px) {
    .modal_cont_body {
        max-height: 350px;
    }
}
@media screen and (max-height: 530px) {
    .modal_cont_body {
        max-height: 300px;
    }
}
@media screen and (max-height: 480px) {
    .modal_cont_body {
        max-height: 250px;
    }
}
@media screen and (max-height: 430px) {
    .modal_cont_body {
        max-height: 200px;
    }
}
@media screen and (max-height: 380px) {
    .modal_cont_body {
        max-height: 150px;
    }
}
@media screen and (max-height: 330px) {
    .modal_cont_body {
        max-height: 100px;
    }
}
@media screen and (max-height: 280px) {
    .modal_cont_body {
        max-height: 70px;
    }
}
/* END：モーダルウィンドウ*/


