.modal_open {
    cursor: pointer;
/*
    display: inline-block;
    float: left;
*/
}

.modal_open:hover {
    opacity: 0.6;
    /*    filter: brightness(120%);*/
}

.modal_box {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 800px;
    max-width: 700px;
    margin: 0;
    text-align: center;
    /*box-sizing: border-box;
    background-color: #fffeee;*/
    border-radius: 10px;
    max-height: 85vh;
    margin-top: 10vh;
    margin-bottom: 5vh;
}

.modal_box2 {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 800px;
    max-width: 750px;
    margin: 0;
    text-align: center;
    /*box-sizing: border-box;
    background-color: #fffeee;*/
    border-radius: 10px;
}

.modal_box_quiz {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 100%;
    max-width: 650px;
    height: 100%;
    margin: auto auto;
    text-align: center;
    overflow-y: scroll
}
.modal_box_puzzle {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 400px;
    height:100%;
    max-width: 600px;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    background-color: #fffeee;
    border-radius: 10px;
    padding: 20px 0;
    overflow-y:scroll;
}
.modal_box_puzzle img{
    width:80%;
    height: auto;
}

.quiz_title{
    position: absolute;
    top:50px;
    left:65px;
    width:500px;
    height: auto;
}
.quiz_title img{
    width: 100%;
}

.a_btn{
    position: absolute;
    top:180px;
    left: 60px;
}

.b_btn{
    position: absolute;
    top:180px;
    left: 350px;
}

.c_btn{
    position: absolute;
    top:750px;
    left: 60px;
}

.d_btn{
    position: absolute;
    top:750px;
    left: 350px;
}

.modal_box_quiz img{
    width: 100%;
    height: auto;
}
.q-bt{
    cursor: pointer;
}
.q-bt img{
    width:80%;/*パズル80%  クイズ37%*/
    height: auto;
    margin-bottom: 10px;/*クイズの時はコメントアウト*/
}


.modal_close {
    position: absolute;
    top: 0%;
    right: 2%;
    display: block;
    width: 7%;
    height: 10%;
    font-size: 46px;
    color: #000;
    line-height: 62px;
    text-align: center;
    z-index: 9999;
    cursor: pointer;
}

.modal_close i {
    line-height: 62px;
    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);
}

/*モーダル1*/
.link_area1 {
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    width: 29%;
    height: 7%;
    bottom: 4%;
    left: 1%;

}

.link_area1 .modal_link {
    display: inline;
}

.link_area1 .modal_link a {
    display: inline-block;
    color: #000;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

/*モーダル1-2*/
.link_area1-2 {
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    bottom: 4%;
    left: 2%;
}

.link_area1-2 .modal_link {
    display: inline;
}

.link_area1-2 .modal_link a {
    display: inline-block;
    color: #000;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

/*モーダル4*/
.link_area4 {
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    width: 34%;
    height: 7%;
    bottom: 3%;
    left: 1%;
}

.link_area4 .modal_link {
    display: inline;
}

.link_area4 .modal_link a {
    display: inline-block;
    color: #000;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

/*オプション*/
.modal_boxop {
    position: fixed;
    z-index: 7777;
    display: none;
    width: 80%;
    max-width: 480px;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
}

.opimg {
    position: relative;
}

#op01 {
    position: absolute;
    top: 75.3%;
    left: 0;
    width: 13.5%;
    height: 3.5%;
    margin: 0;
}

#op02 {
    position: absolute;
    top: 1.8%;
    left: 8.5%;
    width: 15.2%;
    height: 3.5%;
    margin: 0;
}

#op03 {
    position: absolute;
    top: 38.5%;
    left: 41.7%;
    width: 17.2%;
    height: 3.5%;
    margin: 0;
}

#op04 {
    position: absolute;
    top: 10%;
    left: 43.7%;
    width: 13.4%;
    height: 3.5%;
    margin: 0;
}

#op05 {
    position: absolute;
    top: 88.6%;
    left: 67.2%;
    width: 15.4%;
    height: 3.5%;
    margin: 0;
}

#op06 {
    position: absolute;
    top: 26.2%;
    left: 64%;
    width: 16%;
    height: 3.5%;
    margin: 0;
}

#op01 img {
    display: block;
}

#op02 img {
    display: block;
}

#op03 img {
    display: block;
}

#op04 img {
    display: block;
}

#op05 img {
    display: block;
}

#op06 img {
    display: block;
}




#op01 a,
#op02 a,
#op03 a,
#op04 a,
#op05 a,
#op06 a {
    display: inline-block;
    width: 100%;
    height: 100%;
    /*    background: #000;*/
}

.ophover:hover {
    transform: scale(1.2, 1.2);
    transition: 1s all;
}

.modal_closeop {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 15%;
    height: 12%;
    font-size: 46px;
    color: #000;
    line-height: 62px;
    text-align: center;
    z-index: 9999;
    cursor: pointer;

}
.modal_box img{
    width: 100%;
}

.modal_box2 img{
    width: 100%;
}


.hint{
    position: absolute;
    bottom:13%;
    left:12.5%;
    cursor: pointer;
}
.hint img{
    display: block;
    width: 30%;
}

.modalmainP{
    position: relative;
}
.answer_base{
    position: relative;
}
.answer_text{
    position: absolute;
    top: 0;
    left:0;
}

@media screen and (max-width: 769px) {

    /*  ウィンドウサイズ769px以下の時のスタイル  */

    .modal_box {
        width: 90%;
    }
    
    .modal_box2{
        width: 95%;
        height: auto;
    }

    .modal_close {
        width: 40px;
        line-height: 40px;
        font-size: 30px;
    }

    .modal_close i {
        line-height: 44px;
    }

    /*モーダル1*/
    .link_area1 {
        left: 1%;
        bottom: 4%;
    }

    .link_area1 .modal_link a {
        font-size: 4vw;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }

    /*モーダル1-2*/
    .link_area1-2 {
        text-align: left;
        left: 0;
        bottom: 3%;
    }

    .link_area1-2 .modal_link a {
        font-size: 4vw;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }

    /*モーダル4*/
    .link_area4 {
        left: 1%;
        bottom: 3%;
    }

    .link_area4 .modal_link a {
        font-size: 4vw;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }

    .modal_boxop {
        width: 100%;
    }

    #op01 {}
        .hint{
            bottom:12%;
    }
    .modal_box_quiz img{
        width:95%;
        height: auto;
    }
    .q-bt img{
        width:80%;/*パズル80%  クイズ37%*/
        height:auto;
    }
    .a_btn{
        top:27vw;
        left:10vw;
    }
    .b_btn{
        top:27vw;
        left:55vw;
    }
    .c_btn{
        top:113vw;
        left:10vw
    }
    .d_btn{
        top:113vw;
        left:55vw;
    }
    .quiz_title{
        width:80%;
        left: 50%;
        top:8vw;
        margin-left: -40vw;
    }
}
