@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800&display=swap');
/*font-family: 'Noto Sans JP', sans-serif;*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&display=swap');
/*font-family: 'Noto Serif JP', serif;*/

html{
    padding: 0;
    margin: 0;
}
body{
    padding: 0;
    margin: 0;
    color: #3a3a3a;
}

/* 分数表記 */
/* 全体の構成 */
.frac{
    display: inline-block;
    vertical-align: -0.6em;
    text-align: center;
    font-size: 1em;
    line-height: 1.2em;
    border: none!important;
    width: auto!important;
    font-family: 'Noto Serif JP', serif!important
}
    
/* 分子と分母の共通様式 */
.si,.bo{
    display: block!important;
    padding: 0 0.3em;
    margin: 0px 0.2em 0px 0.05em;
    width: inherit!important;
    font-family: 'Noto Serif JP', serif!important;
    font-weight: 300!important;
}
    
/* 分子 */
.si{line-height:1.0em;border: none!important;}

/* 分母 */
.bo{
    line-height:1.2em;
    border:none!important;
    border-top: solid 0.075em!important;}/* 色を指定しないと親の色と同じになる */
/* 分数表記　終 */


/* ヘッダー */
header{
    position: fixed;
    top: 0;
    width: 100%;
    height: 114px;
    z-index: 5;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff;
}
.header_title{
    position: relative;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 1px 0px #00000028;
}
.header_title a{
    text-decoration: none;
    color: inherit;
}
.logo{
    height: 30px;
}
.header_testFunc{
    display: flex;
    width: auto; 
    height: 64px;
    background-color: #e8f4fe;
    padding-left: 20px;
    align-items: center;
    justify-content: space-between;padding-left: 20px;
    padding: 0 30px;
    box-shadow: 0px 1px 0px #00000029;
}
.func_left{
    position: relative;
    left: 0;
}
.func_left > .active{
    background-color: #0068B7;
    color: #fff;
    border: 1px solid #0068B7;
}
.quiz_tab{
    width: 120px;
    height: 40px;
    background-color: #fff;
    color: #1C78BF;
    padding-right: 10px;
    border: 1px solid #1C78BF;
    border-radius: 30px;
    margin-right: 8px;
    font-weight: 500;
}
.quiz_tab:hover{
    opacity: 0.7;
}

.func_right{
    position: relative;
    right: 0;
    display: flex;
    color: #3a3a3a;
    font-size: 24px;
    align-items: center;
}
.total_score{
    font-size: 32px;
    padding-right: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.clock{
    width: 25px;
    margin-right: 14px;
    padding-top: 4px;
}
.timer_wrap{
    display: flex;
    align-items: center;
}
.timer{
    padding-right: 97px;
}
.end_btn{
    width: 183px;
    cursor: pointer;
}
.end_btn img{
    width: 100%;
}
.end_btn img:hover{
    opacity: 0.6;
    transition-duration:0.3s ;
}
/* メイン */
.container-fluid{
    margin: 0;
    padding: 0;
    padding-top: 128px;
    width: 100%;
    height: 100vh;
    overflow-y: visible;
}
.row_wrap{

}
.row{
    /* width: inherit;
    height: inherit; */
    margin: 0;
    position: relative;
}
.wrapper{
    position: relative;
    width: 100%;
    height: 100%;
}
/* 問題エリア */
.test_area{
    /* background-color: rgb(202, 202, 202); */
    position: relative;
    line-height: 26px;
    padding: 25px;
    padding-top: 32px;
}
.test_wrap{
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    /* display: none; */
    font-family: 'Noto Serif JP', serif;
}
.test_area > .active{
    display: block;
}
.part{
    height: 28px;
    padding-left: 14px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    margin-bottom: 22px;
}
.part::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 4px;
    background-color: #0068B7;
    height: inherit;
    z-index: 3;
    opacity: 1;
    /* border-top-left-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    border-bottom-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-top-right-radius: 0px;
    -webkit-border-top-right-radius: 0px;
    -moz-border-radius-topright: 0px;
    border-bottom-right-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
    -moz-border-radius-bottomright: 0px; */
}

.test_area span{
    border: 2px solid #000000;
    display: inline-block;
    width: 55px;
    text-align: center;
    height: 24px;
    line-height: 20px;
    margin: 0 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

.figure{
    padding: 15px 0;
    text-align: center;
    width: 100%;
}
.figure > img{
    width: 180px;
}
.fig_content > img{
    width: 180px;
}
.caption{
    padding-top: 15px;
}

/* 表　斜線 */
.diagonal{
    border:1px solid;
    border-collapse: collapse;
}
.diagonal th,.diagonal td{
    border:1px black solid;
}
.diagonal tr:first-child th:first-child {
    background-image: linear-gradient(
        to right top, transparent calc(50% - 0.5px), #000000 50%, #000000 calc(50% + 0.5px), transparent calc(50% + 1px)
    );
    display: grid;
    width: max-content;
    justify-content: space-between;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    border: 1px;
}
.col-header {
    grid-column-start: 2;
    text-align: right!important;
    border: none!important;
    margin: 0!important;
}
.row-header {
    grid-column-start: 1;
    border: none!important;
    margin: 0!important;
}
/* 大問2　表の画像 */
.p2-q1-4{
    padding: 3px 10px;
}
.gothic{
    font-family: 'Noto Sans JP', sans-serif;
}
.gothic2{
    font-family: 'Noto Sans JP', sans-serif!important;
    width: auto!important;
    border: none!important;
    margin: 0!important;
}
.gothic-bold{
    font-weight: 700!important;
}
.min{
    font-family: 'Noto Serif JP', serif!important;
    border-width: 1px!important;
    line-height: 24px!important;
}
.indent-3{
    padding-left: 3em;
    width: auto!important;
    border: none!important;
    text-align: left!important;
    height: auto!important;
    font-family: 'Noto Serif JP', serif!important;
    font-weight: 400!important;
}
/* 大問3　表の画像 */
.p3-q1-1{
    margin:0 auto;
    table-layout: fixed;
    width: 245px;
}
.p3-q1-1 .col-header{
    transform: translate(-1px , -5px);
    margin: 0;
}
.p3-q1-1 .row-header{
    transform: translateY(-17px);
    margin: 0;
}

.b-g{
    background-color: #a3a3a3;
    position: relative;
}
.b-g2{
    background-color: #e0e0e0;
}

.arrow{
    position: absolute;
    /* z-index: 20; */
    top: -11px;
    left: 45%;
    width: 25px;
}

/* 表　均等 */
.chart{
    border: 1px solid;
    border-collapse: collapse;
    width: 20%;
    table-layout: fixed;
    margin: 0 auto;
    width: 300px;
}
.chart  th , .chart  td{
    border: solid 1px;
}
.chart .border_b{
    border-width: 2px;
}
.hatching{
    background:repeating-linear-gradient(
    -45deg,
    #ccc,
    #a3a3a3 2px,
    #fff 0,
    #fff 4px
    );
}

.option{
    position: relative;
    border: 1px solid #B4B4B4;
    padding: 10px;
    box-sizing: border-box;
    margin: 25px 0 20px;
}
.option_idx{
    position: absolute;
    top: -12px;
    background-color: #fff;
    left: 45px;
    padding: 0 10px;
}
.img_option{
    width: 100%;
    text-align: center;
}
.img_option td{
    display: inline-flex;
    width: 50%;
    justify-content: center;
    padding: 10px 0;
}

.choice{
    padding-top: 7px;
}
.choice_chart_tr {
    display: flex;
    width: 100%;
}
.choice_chart_td{
    display: flex;
    width: 100px;
    margin-right: 20px;
}
.choice_chart_td table{
    width: 70px;
    text-align: center;
    border: 1px solid;
}
.choice_chart_td table td{
    border: solid 1px;
}
/* 選択エリア */
.select_area{
    background-color: #f0f0f0;
    position: -webkit-sticky;
    position: sticky;
    top: 128px;
    height:calc(100vh - 128px);
    padding: 30px;
    padding-top: 32px;
}
.selectList{
    width: 100%;
    height: 100%;
    margin: 0 auto;  
    display: none;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: scroll;
    padding-bottom: 90px;
}
.select_area > .active{
    display: block;
}
.selectList table{
    width: 100%;
}
.select_title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    width: 100%;
    height: 28px;
    position: relative;
    margin-bottom: 20px;
}
.select_title::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 4px;
    background-color: #0068B7;
    height: inherit;
    z-index: 3;
    opacity: 1;
}
.selectList .title{
    padding: 0;    
    font-size: 16px;
    font-weight: bold;
    padding-left: 14px;
}
.point{
    font-size: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}
.q_score{
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.selectList th{
    vertical-align: top;
    text-align: left;
    padding: 5px;
}
ul.select_content{
    display: flex;
    flex-wrap: wrap;
    padding: 5px 10px 0;
    list-style: none;
    padding: 0;
    padding-left: 9px;
}
.selectList ul li {
    width: 33.33%;;
    padding: 5px;
    position: relative;
    /* text-align: center; */
}
.selectList select{
    background: #F6F6F6;
    border: 1px solid #999;
    border-radius: 5px;
    width: 72px;
    text-indent: 2px;
    text-align: left;
    height: 36px;
    line-height: 24px;
    font-size: 16px;
    margin-left: 5px;
    padding-left: 15px;
}

.popup{
    position: absolute;
    left: 5px;
    top: 3px;
    right: 20px;
    bottom: 0;
    background: no-repeat center center/contain;
    transform: scale(0);
    transition: .3s cubic-bezier(0.175, 0.885, 0.320, 1.275);
    pointer-events: none;
}
.popup.batu{
    background-image: url("./img/batu.png");
    z-index: 1;
    transform: scale(2);
    width: 16px;
    opacity: 0.6;
}
.popup.maru{
    background-image: url("./img/maru.png");
    z-index: 1;
    transform: scale(2);
    width: 16px;
    opacity: 0.6;
}

/* 下線 */
.u_line{
    width: auto!important;
    display: inline!important;
    border: none!important;
    border-bottom: solid 2px #000000!important;
    font-family: 'Noto Serif JP', serif!important;
    font-weight: 400!important;
}
/* イタリック体 */
.italic{
    display: inline!important;
    border: none!important;
    margin: 0!important;
    font-style: italic;
    font-family: 'Noto Serif JP', serif!important;
}

/* footer btn */
.footer_btn{
    position: sticky;
    width: 100%;
    /* bottom: 27px; */
    bottom: 0;
    left: 0;
    padding: 0 30px;
    background-color: #f0f0f0;
    z-index: 10;
    height: 67px;
}

.btn_wrap{
    width: 100%;
    display: flex;
    /* justify-content: space-evenly; */
    align-items: center;
}

.footer_btn .back, .footer_btn .next{    
    width: 50%;
    height: 40px;
    border: none;
    background-color: #f0f0f0;
}
.back{
    /* margin-right: 82px; */
}
.footer_btn img{
    width: 160px;
}
.footer_btn img:hover{
    opacity: 0.6;
    transition-duration: 0.3s;
}


/* 解答・解説 */
.exp_wrap{
    margin: 34px 0 34px 0;
    padding: 25px 15px 25px 28px;
    background-color: #F9FFF8;
    border-top: 1px solid #009944;
    border-bottom: 1px solid #009944;
    display: none;
}
.answer{
    padding-bottom: 30px;
    font-family: 'Noto Sans JP', sans-serif;
}

.exp img{
    width: 200px!important;
}

.step , .figure_txt{
    width: 90%;
    margin: 10px auto 20px;
    border: 1px solid;
    border-radius: 20px;
    padding: 15px;
    position: relative;
    text-align: left;
}
.step_supple{
    padding-left: 7%;
}
.step_idx{
    position: absolute;
    top: -12px;
    background-color: #fff;
    left: 45px;
    padding: 0 10px;
    font-weight: 500;
}

/* 縦書き */
.v-txt{
    -ms-writing-mode: tb-rl;
     writing-mode: vertical-rl;
     display: inline;
}

/* 波線 */
.table_wave{
    position: absolute;
    bottom: 105px;
    width: 410px;
    /* margin: 0 auto; */
    left: 50%;
    transform: translateX(-50%);
}
.table_wave2{
    position: absolute;
    bottom: 0px;
    width: 410px;
    /* margin: 0 auto; */
    left: 50%;
    transform: translateX(-50%);
}
.table_r{
    text-align: right;
    padding-right: 10px;
}

/* 終了ポップアップ */
.end_popup_contents{
    display: none;
}
.start_popup_contents{
    display: block;
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.7;
    z-index: 10;
}
.end_popup_wrap,.start_popup_wrap{
    width: 500px;;
    height: 300px;
    border: 1px solid #000000;
    border-radius: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    z-index: 15;
}
.start_popup_wrap{
    width: 443px;
    height: 292px;
    border-radius: 6px;
}
.end_popup,.start_popup{
    text-align: center;
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50% ,-50%);
    padding: 20px;
}
/* .end_popup_txt{
    padding-bottom: 35px;
    font-size: 30px;    
} */
.start_popup_txt,.end_popup_txt{
    font-size: 22px;
    line-height: 32px;
    padding-bottom: 14px;
    font-weight: 700;
}
.end_popup_txt{
    padding-bottom: 35px;
}
/* .pop_btn{
    display: flex;
    justify-content: center;
} */
.start_pop_btn,.pop_btn{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.pop_btn button{
    width: 170px;
    height: 45px;
    background-color: #fff;
    border: none;
    border-radius: 6px;
    color: #0068B7;
    font-weight: 500;
}
#pop_yes{
    width: 230px;
    height: auto;
    border: none;
    margin-bottom: 25px;
}
#pop_no{
    border:1px solid #0068B7;
}
#pop_no:hover{
    background-color: #f0f0f0;
}
#start{
    width: 280px;
    height: 48px;
    border: none;
    margin-bottom: 25px;
    background-color: white;
}
#start img ,#pop_back img ,#pop_yes img{
    width: 100%;
}
#pop_back{
    width: 140px;
    height: 40px;
    border: none;
    background-color: white;
}

.test-name{
    position: relative;
    width:100%;
    text-align: right;
    font-size:11px;
    letter-spacing: 1px;
}


/* ipad横 */
@media screen and (max-width:1280px){
    .footer_btn{
        padding: 0;
    }
    .footer_btn img{
        width: 140px;
    }
    .select_area{
        padding: 30px 10px;
    }
} 
/* ipad　縦 */
@media screen and (min-width:480px) and (max-width:920px){
    .header_title, .header_testFunc{
        padding: 0 10px;
    }
    .quiz_tab{
        width: 90px;
    }
    .timer{
        padding-right: 15px;
    }
    .select_area{
        padding: 30px 10px;
    }
    .selectList{
        padding-bottom: 120px;
    }
    .selectList select{
        padding: 0;
        margin-left: 2px;
        width: 50px;
    }
    .selectList ul li{
        padding: 5px 0;
    }
    .popup{
        left: 0px;
        top: 2px;
    }
    .footer_btn{
        padding: 0;
        height: auto;
    }

    .footer_btn .back, .footer_btn .next {
        width: 75%;
        padding-bottom: 10px;
        height: auto;
        border: none;
    }
    .footer_btn img{
        width: 100%;
    }
    /* test1 大問2　図 */
    .fig-flex{
        flex-direction: column;
    }
    table{
        margin: 0 auto;
    }
    .table_choice{
        width: 75%!important;
    }
}
@media screen and (min-width:480px) and (max-width:920px) and (orientation: portrait) {
    .btn_wrap{
        flex-direction: column;
    }
}

/* スマホ */
@media screen and (max-width:480px){
    .header_title, .header_testFunc{
        padding: 0 5px;
    }
    .header_title{
        font-size: 18px;
    }

    .logo{
        height: 25px;
        padding-right: 15px;
    }
    .header_testFunc{
        height: 85px;
        /* flex-direction: column; */
        justify-content: space-evenly;
    }
    .quiz_tab{
        /* width: 70px; */
        width: 40%;
        height: 30px;
        font-size: 14px;
        margin: 5px;
    }
    .func_left{
        display: flex;
        flex-wrap: wrap;
        width: 65%;
        text-align: center;
    }
    .func_right{
        width: 35%;
        display: flex;
        flex-direction: column;
    }
    .clock{
        width: 18px;
        margin-right: 10px;
        padding-top: 2px;
    }
    .timer_wrap{
        display: flex;
        align-items: center;
        order: 2;
    }
    .timer {
        padding-right: 0px;
        font-size: 20px;
    }
    .end_btn{
        width: 130px;
        padding-bottom: 5px;
        order: 1;
        top: -5px;
        position: relative;
    }
    .container-fluid{
        padding-top: 149px;
    }
    .test_area{
        font-size: 13px;
    }
    .test_wrap{
        padding-bottom: 100%!important;
    }
    .choice span{
        text-align: left!important;
    }
    .nowrap{
        overflow-x: scroll;
        white-space: nowrap;
        width: 100%;
    }
    .choice table{
        margin: 0!important;
    }
    .select_area{
        position: fixed;
        top:auto;
        bottom: 0;
        /* height: calc(100vh - 80%); */
        height: 30%;
        font-size: 13px;
        padding: 20px 10px;
        overflow: scroll;
    }
    .selectList{
        height: auto;
        padding-bottom: 25px;
    }
    .select_title{
        height: 20px;
    }
    .selectList .title {
        font-size: 14px;
    }
    .selectList select{
        margin-left: 2px;
        height: 30px;
        line-height: 30px;
    }
    .footer_btn{
        bottom:5px;
        padding: 0;
        position: relative;
    }
    .footer_btn img{
        width: 130px ;
    }

    .ques_point{
        font-size: 16px;
    }
    .q_score{
        font-size: 20px;
    }

    /* test1 大問2　図 */
    .fig-flex{
        flex-direction: column;
    }
    table{
        margin: 0 auto;
    }
    .table_choice{
        width: 75%!important;
    }
    .choice_chart_tr{
        flex-wrap: wrap;
    }
    .choice_chart_td{
        margin-right: 8px;
    }

    /* 大問４ 図*/
    .p4_table{
        width: 80%!important;
    }
    .img_option img{
        width: 75%;
    }

    .end_popup_wrap , .start_popup_wrap {
        width: 85%;
        height: 230px;
    }
    .end_popup_txt,.start_popup_txt{
        font-size: 20px;
    }
    .end_popup,.start_popup{
        padding: 10px;
    }
    .pop_btn{
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 14px;
    }
    #pop_yes,#start{
        margin-right: 0!important;
        margin-bottom: 15px;
    }
    .choice_pad{
        padding-top: 30px;
    }

    /* test2 大問２*/
    .w2-p2-q1{
        flex-direction: column;
    }
    .w2-p2-q1 .fig_left{
        width: 100%!important;
    }
    .w2-p2-q1 .fig_right{
        width: 100%!important;
        padding-top: 20px;
    }
    /* test2 大問３ */
    .w2-p3-q1{
        flex-direction: column!important;
    }
    .w2-p3-q1-2{
        flex-direction: column!important;
    }
    .w2-p3-q1-2 .fig_left{
        width: 100%!important;
    }
    .w2-p3-q1-2 .fig_right{
        width: 100%!important;
        padding-top: 20px;
    }

    /* test2 大問３　小問2 */
    .p3-q2{
        flex-direction: column!important;
    }
    .p3-q2 .fig_left{
        width: 100%!important;
    }
    .p3-q2 .fig_right{
        width: 100%!important;
        padding-top: 20px!important;
    }

    /* test2 大問３　小問3 */
    .p3-q3{
        width: 100%!important;
    }
    /* test2 大問４　小問１ */
    .w2-p4-q1{
        width: 100%!important;
    }
    .table_wave{
        width: 110%;
        bottom: 130px;
    }
    .w2-p4-q2{
        width: 100%!important;
    }
    .w2-p4-q3{
        width: 100%!important;
    }
}