.modal_open {
    display: inline-block;
    margin-bottom: 10%;
}

.modal_box {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 80%;
    max-width: 840px;
    margin: 0;
    padding: 60px 2vw 40px;
    border: 2px solid #aaa;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
}

.modal_close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 50px;
    font-size: 46px;
    color: #000;
    line-height: 62px;
    text-align: center;
    background: #e6e6e6;
}

.modal_close i {
    line-height: 37px;
    vertical-align: bottom;
}

.modal_bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6666;
    display: none;
    width: 100%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0.7);
}

.link_area {
    overflow: hidden;
    max-width: 410px;
    margin: 60px auto 0;
    text-align: center;
}

.link_area .modal_link {
    display: inline;
}

.link_area .modal_link a {
    display: inline-block;
    width: 180px;
    color: #000;
    line-height: 2.5;
    text-decoration: none;
    margin: 0 10px;
    background: #e6e6e6;
}

.link-area ul li.modal_link:first-child a {
    float: left;
}

.link-area ul li.modal_link:last-child a {
    float: right;
}

.modal_register_button {
    color: #ffc95f;
    padding-right: 50px;
    margin-top: 35px;
}

.modal_pc_size {
    max-height: 80vh;
    overflow-y: auto;
}

.modal_contents_size {
    max-height: 80vh;
    overflow-y: auto;
}

.modal_over_contents {
    overflow: hidden;
    height: 98vh;
}

@media screen and (max-width: 769px) {
    /*  ウィンドウサイズ769px以下の時のスタイル  */

    .modal_box {
        padding: 20px 2vw 20px;
        max-height: 98vh;
    }

    .modal_close {
        line-height: 40px;
        font-size: 30px;
    }

    .modal_close i {
        line-height: 36px;
    }

    .link_area {
        margin: 25px auto 0;
    }

    .link_area .modal_link a {
        margin: 15px auto 0;
    }

    .link_area ul li.modal_link:first-child a {
        float: none;
        margin-top: 0;
    }

    .link_area ul li.modal_link:last-child a {
        float: none;
    }

    .modal_register_button {
        color: #ffc95f;
        padding-right: 50px;
        margin-top: 35px;
        width: 80%;
    }
}
