body{
    width: 95%;
    max-width: 1000px;
    margin: 9vh auto 0;
    color: #4f3719;
    font-family: 'メイリオ', Meiryo,'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;}
a{  color: #4f3719;}
a:hover{font-weight: bold;}

.titlebox{
    display: inline-block;
    font-size: 13px;
    padding: 20px 0;}
.subtitle{
    font-size: 12px;
    margin-bottom: 10px;}
.title{
    font-size: 25px;
    font-weight: bold;}
.snsbox{
    margin-right: 15px;
    float: right;}
.sns{
    height: 5vh;
    margin: 1.5vh 1vh;
    float: left;}

#topimgbox{
    display: flex;
    margin: 15px 0;}
#topimgcolorleft{
    box-sizing: border-box;
    border-left: double 10px #4f3719;
    background-color: whitesmoke;
    width: 30%;}
#topimgcolorright{
    box-sizing: border-box;
    border-right: double 10px #4f3719;
    background-color: whitesmoke;
    width: 30%;}
#topimg{
    width: 50%;
    pointer-events: none;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    touch-callout:none;
    user-select:none;}


.officialparent{
    position: relative;
    width: 5vh;
    color: white;
    border: solid 1px white;}
.official{
    line-height: 1.3vh;
    font-size: 1.3vh;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);}

.new{
    text-decoration: none;
    padding: 50px 0 0;
    float: right;}
.newtitle{font-size: 20px;}

#nav-drawer {position: relative; text-align: left;}
.nav-unshown {display:none;}
#nav-close {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: .3s ease-in-out;}
#nav-content {
    overflow: auto;
    position: fixed;
    top: 0;left: 0;
    z-index: 9999;
    width: 40%;
    max-width: 250px;
    height: 100%;
    background-color: white;
    transition: .3s ease-in-out;
    -webkit-transform: translateX(-105%);transform: translateX(-105%);
    text-align: center;}
#nav-input:checked ~ #nav-close {
    display: block;
    opacity: .5;}
#nav-input:checked ~ #nav-content {
    -webkit-transform: translateX(0%);transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0,0,0,.15);}

#bar{position: fixed;
    top:0;left:0;
    background-color: #4f3719;
    width: 100%;
    height: 8vh;
    z-index: 999;}
#menuikon{
    height: 7vh;
    margin: 0.5vh 2vh;}
#menu1{
    background-color: #4f3719;
    color: white;
    font-size: 20px;
    height: 8vh;
    line-height: 8vh;
    margin-bottom: 5px;}
.menu2{
    display: block;
    padding: 10px 10px;
    text-decoration: none;}
.menu2:hover{background-color: #e3d5c3;}





.flexbox{
    display: flex;
    justify-content: center;}
.flexitem{
    text-align: center;
    border-top: solid 1px #4f3719;
    border-bottom: solid 1px #4f3719;
    text-decoration: none;
    display: block;
    line-height: 60px;
    width: 20%;}
.on{background-color: #e3d5c3;
    border-top: solid 1.5px #4f3719;
    border-bottom: solid 1.5px #4f3719;}
.flexitem:hover{background-color: #e3d5c3;}

.gridbox{
    margin: 15px 0;}
.griditem{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;}
.A{ grid-area: 1/1/3/2;
    border: solid 1px #4f3719;}
.B{ grid-area: 1/2;
    font-size: 14px;
    background-color: #e3d5c3;}
.C{ grid-area: 2/2;
    text-align: center;
    font-size: 12px;
    color: white;
    background-color: #4f3719;
    opacity: 0.8;
    text-decoration: none;}
#Atitle{
    padding: 5px 0;
    text-align: center;
    font-size: 20px;}
#Ctitle{font-size: 20px;}



#online{
    display: block;
    text-align: center;
    margin: 8vw auto;
    max-width: 850px;
}


#online img{
    max-width: 100%;
}

#new{
    display: inline-block;
    min-width:100%;
    text-align: left;
    font-size: 30px;
    color: #dd7708;
}



#correction{
    margin-top: 15px;
    text-align:left;
    font-size: 13px;
}

.youtube{text-align: center;}
.youtube iframe{max-width: 90%;}
.setumei{text-align: center;}



#endbar{
    margin: 50px 0 30px;
    text-align: center;}



.heading{
    box-sizing: border-box;
    display: none;
    width: 100%;
    padding-left: 15px;
    margin: 20px 0 0;
    height: 50px;
    line-height: 50px;
    border-top: 1px solid #4f3719;
    border-bottom: 1px solid #4f3719;}
.heading2{
    margin: 40px 0 20px;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #4f3719;}
.photo{
    width: 280px;
    max-width: 40%;
    margin-left: 10px;
    float: right;}
.kanbu{padding-left: 15px;}
    

/*メディアクエリ*/
@media screen and (max-width:950px){
    .flexbox{display: none;}
    .new{display: none;}
    .A{grid-area: 1/1/2/3}
    .B{grid-area: 2/1}
    .C{grid-area: 2/2}
    .heading{display: inline-block;}}

@media screen and (max-width:750px){
    body{font-size: 3.4vw;}
    .titlebox{
        line-height: 3.8vw;
        padding: 5px 0;
        font-size: 2.6vw;}
    .subtitle{font-size: 2.4vw;}
    .title,#menu1{font-size: 4.5vw;}
    .gridbox{
        margin: 0;
        display: inline-block;}
    .griditem{margin: 0 0 10px;}
    .B{font-size: 3vw;}
    .C{display: none;}
    #Atitle,#Ctitle{font-size: 4vw;}
    .flexbox{display: none;}
    .heading{
        height: 50px;
        line-height: 50px;
        margin: 5px 0 0;
        display: inline-block;}
    .heading2{
        height: 30px;
        line-height: 30px;
        margin: 40px 0 0;}
    #topimgbox{
        width: 100%;
        margin: 0 auto;
        text-align: center;
        display: block;}
    
    #topimgbox img {
        max-width: 100%;
        height: auto;
    }
    #topimg{
        box-sizing: border-box;
        border: solid 10px #664f33; 
        width: auto;
        height: 48vw;}
    #topimgcolorleft,#topimgcolorright{display: none;}
    #new{font-size: 4vw}
    #correction{font-size: 3vw;}

    .YouTube iframe{
        width:100%;
    }

}


    
    
    
    
    
    