
html{
    height: 100%;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #cfe5e5;
  }
.wrapper{
    display: block;
    width: 100vw;
    min-width: 360px;
    height: 100vh; 
    margin: 0 auto;
}
a {text-decoration: none;}
#footer{
    margin: 0 auto;
    text-align: center;
}
.footer_copy{
    display: block;
    width: 90%;
    text-align: center;
    font-size: 12px;
    color: #5b78ba;
    margin: 0 auto;
    margin-top: 8px;
}

/*ヘッダ*/
.header{
    display: block;
    width: 100%;
    height: 86px;
    background: #324b5a;
    color: #ffffff;
    padding-top:20px;
}
.header_inner{
    display: block;
    width: 90vw;
    height: auto;
    margin: 0 auto;
    position: relative;
    
}
.title{
    display: inline-block;
    font-size: 21px;
}
.logoutbox{
    display: block;
    width: 140px;
   height: 40px;
   background-image: url(../img/logout.svg);
   background-repeat: no-repeat;
   background-position: right;
   line-height: 45px;
   text-decoration: none;
   padding-right: 10px;
   position: absolute;
   top: 0px;
   right: 5px;
}
/*ページ*/
#page1,#page2,#page3,#page4{
    display: none;
}
.qdisplay,.qdisplay2{
    display: block;
    width: 84vw;
    height: auto;
    border:4px solid #5b78ba;
    border-radius: 20px;
    background-color: #efeded;
    margin: 0 auto;
    margin-top: 28px;
    padding: 10px;
    position: relative;
}
.qdisplay2{
    text-align: center;
}
.home_title{
    text-align: center;
    font-size: 32px; 
    margin: 0 auto;
    margin-top: 45px;
}
.score{
    font-size: 40px;
    font-weight: bold;
}
.home_text{
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    margin: 0 auto;
    margin-top: 20px;
}
.yoyaku_time{
    display: block;
    width: 360px;
    height: 33px;
    background: #ffffff;
    border: 2px solid #5fd3f9;
    text-align: center;
    line-height: 33px;
    margin: 0 auto;
}
.yoyaku_comment{
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
    margin-top: 20px;
}
.home_alert{
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ed0f89;
    margin: 0 auto;
}
.btnbox,.btnbox2{
    width: 100%;
    text-align: center;
}
.btn_start,.btn_next_on,.btn_next_off,.test_finish_confirm,.test_keepon,.btn_goon,.btn_write{
    display: block;
    width: 360px;
    height: 62px;
    background: #999999;
    border: none;
    border-radius: 10px;
    text-align: center;
    line-height: 62px;
    font-size: 24px;    color: #ffffff;
    font-display: swap;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    cursor: default;
}
.btn_next_on{
    display: none;
    background: #5b78ba;
    cursor: pointer;
}
.btn_goon,.btn_write{
    background: #5bb2ba;
    cursor: pointer;
    text-decoration: none;
}

/*退出ボタン*/
.test_finish{
    display: none;
    background: #888888;
    width: 180px;   height: 40px;
    position: absolute;
    top: 40px;   right: 5px;
    border: none;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 40px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #5b78ba;
    z-index: 3;
}
.test_finish:hover,.test_finish_confirm:hover{
   background: #5b78ba;
}
.test_finish_confirm{
     cursor: pointer;
}
.test_keepon{
     cursor: pointer;
    margin-top: 0px;
}
.test_keepon:hover{
    background: #99cc00;
}

.timeclock{
    display: block;
    width: 240px;
   height: 40px;
   position: absolute;
   top: 0px;
   right: 5px;
   font-size: 20px;
   text-align: right;
}
.timenum{
    font-size: 30px;
    font-weight: bold;
}


/*設問の大枠*/
/*設問のカウンター*/
.qcounter{
    display: block;
    width: 90%;
    height: auto;
    margin: 0 auto;

}
.qdisp{
    display: inline-block;
    width: 40px;    height: 40px;
    border-radius: 40px;
    background: #cccccc;
    font-size: 24px;
    color: #999999;
    text-align: center;
    line-height: 40px;
    margin: 2px;
    cursor: default;
    outline: none;
    border: none;
    -webkit-appearance: none;
    cursor: pointer;
}


/*設問の大枠*/

.question_num{
    font-size: 24px;
    margin-left: 30px;
}
.question_main{
    width: 99%;
    height: auto;
    min-height: 20px;
    font-size: 18px;
    font-family: kozuka-mincho-pr6m, serif;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    margin: 0 auto;
}

.question_sub{
    font-size: 16px;
    font-display: swap;
    padding-bottom: 2px;
}

/*記述*/
.writingbox{
    display: block;
    width: 99%;
    font-size: 18px;
}
.writingbox textarea{
    width: 100%;
    min-height: 240px;
    font-size: 20px;
    line-height: 30px;
}
.autosave{
    display: inline-block;
    width:50%; height: 20px;
    text-align: left;

}
#autosavedisp{
    display: none;
}
#textnum{
    display: inline-block;
    width:49%; height: 20px;
    text-align: right;

}


/*途中退出ダイアログ*/
#modal{
    display: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0px; left: 0px;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    text-align: center;
}
.test_finish_dialog{
    display: block;
    width: 75vw;
    height: 350px;
    background: #d3d3d3;
    position: unset;
    margin: 0 auto;
    margin-top: 140px;
    border-radius: 8px;
    padding-top: 8px;
    font-size: 20px;
}

