body{
   font-family: 'M PLUS 1p', sans-serif;
}
#contents{
   max-width: 100%;
   width: 800px;
   padding: 15px;
   box-sizing: border-box;
   font-size: 16px;
   margin: auto;
}
img{
   max-width: 100%;
}
.text-center{
   text-align: center;
}
.btnarea{
   margin: 20px 0px;
   text-align: center;
}
.btn{
   min-width: 200px;
   background-color: #a0a4a4;
   color: #fff;
   padding: 10px 25px;
   border: 0px;
   cursor: pointer;
   transition: 0.4s;
   font-size: 18px;
}
.btn:hover{
   opacity: 0.7;
}
.mainimg_area{
   display: block;
   position: relative;
   width: 600px;
   max-width: 100%;
   margin: 30px auto;
   padding: 20px;
   box-sizing: border-box;
   border: 1px solid #777;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
   text-align: center;
}
.mainimg_area img{
   margin-bottom: 15px;
}
.mainimg{
   width: 400px;
   max-width: 100%;
   margin: auto;
}

/* insert */
#header{
   font-size: 28px;
   font-weight: bold;
   position: relative;
   align-items: end;
   display: flex;
}
#header img{
   width: 250px;
   position: absolute;
   right: 0;
}
#header div,#header img{
   display: inline-block;
   vertical-align: middle;
}
.titlebar{
   background-color: #3c3434;
   color: #fff;
   font-size: 20px;
   margin: 15px 0px;
   padding: 3px 10px;
   box-sizing: border-box;
}
table.type01{
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 15px;
}
table.type01 tr th,
table.type01 tr td{
   border: 1px solid #fff;
   padding: 10px 15px;
   box-sizing: border-box;
}
table.type01 tr th{
   background-color: #a0a4a4;
   color: #fff;
   font-size: 17px;
   font-weight: normal;
   text-align: left;
   width: 30%;
}
table.type01 tr td{
   background-color: #ececec;
}
table.type01 tr td span{
   text-align: center;
   font-size: 14px;
   color: #777;
   width: 35px;
   display: inline-block;
}
table.type01 tr td input[type="text"],
table.type01 tr td select{
   padding: 5px;
   border: 1px solid #777;
   border-radius: 5px;
   width: 160px;
}
table.type01 tr td input[type="text"].long{
   width: 100%;
   box-sizing: border-box;
}
.radio{
   display: inline-block;
   vertical-align: top;
}
table.type01 tr td label{
   display: inline-block;
   vertical-align: top;
}
@media screen and (max-width: 480px){
   #contents{
      padding: 5px;
   }
   #header{
      text-align: center;
   }
   #header, #header div, #header img{
      display: block;
      position: unset;
   }
   #header img{
      text-align: right;
      display: initial;
      width: 180px;
   }
   table.type01 tr th,
   table.type01 tr td{
      display: block;
      width: 100%;
   }
   table.type01 tr td input[type="text"], table.type01 tr td select{
      width: 120px;
   }
}