* {
    padding: 0;
    margin: 0;
}

body {
    font-size: 62.5%;
}

p {
    font-size: 1rem;
    line-height: 170%;
}

#block_h1 {
    width: 100%;
    border-bottom: solid 3px #92D3FF;
}

h1 {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    background-image: url(../img/top_title.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    text-indent: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-size: 2rem;
    color: #333333;
}

#block_nabi {
    width: 100%;
    border-top: solid 2px #739DCD;
    padding: 5px 0 5px 0;
}

@media screen and (max-width:480px) {
    #block_nabi {
        display: none;
    }
}

#main_menu {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    font-size: 0;
}

ul#main_menu li {
    display: inline-block;
    font-size: 1rem;
    width: 16.6666%;
    /* 未対応ブラウザ用フォールバック */
    width: -webkit-calc(100% / 6);
    width: calc(100% / 6);
    text-align: center;
    vertical-align: middle;
}

ul#main_menu li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.4s;
}


ul#main_menu li.syoukai a:hover {
    color: #521EDA;
}

ul#main_menu li.tyuugakusei a:hover {
    color: #0431C9;
}

ul#main_menu li.zaikousei a:hover {
    color: #1DA331;
}

ul#main_menu li.sotugyousei a:hover {
    color: #ff6300;
}

ul#main_menu li.toiawase a:hover {
    color: #999;
}
ul#main_menu li.blog a:hover {
    color: #ff007f;
}

/*ハンバーガーメニュー用-------------*/
#drawer {
    position: relative;
}

.unshown {
    display: none;
}

#open {
    display: inline-block;
    width: 30px;
    height: 22px;
    vertical-align: middle;
}

#open span,
#open span::before,
#open span::after {
    position: absolute;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #555;
    display: block;
    content: "";
    cursor: pointer;
}

#open span::before {
    bottom: -8px;
}

#open span::after {
    bottom: -16px;
}

#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;
}

#menu-content {
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 90%;
    max-width: 200px;
    height: 100%;
    background: #4169e1;
    transition: .3s ease-in-out;
    transform: translateX(-105%);
}

.hamb_menu {
    background: #4169e1;
    font-size: 1rem;
    border-bottom: 1px dashed #FFF;
}

.hamb_menu a {
    color: #FFF;
    text-decoration: none;
}

#input:checked ~ #close {
    display: block;
    opacity: .5;
}

#input:checked ~ #menu-content {
    transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0, 0, 0, .15);
}

@media screen and (min-width:480px) {
    #open {
        display: none;
    }
}

/*サブページ用-------------*/
#main_menu_sub {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    font-size: 0;
}

ul#main_menu_sub li {
    display: inline-block;
    font-size: 1rem;
    width: calc(100% / 7);
    text-align: center;
    vertical-align: middle;
}

ul#main_menu_sub li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.4s;
}

ul#main_menu_sub li.top a:hover {
    color: #D10303;
}

ul#main_menu_sub li.syoukai a:hover {
    color: #521EDA;
}

ul#main_menu_sub li.tyuugakusei a:hover {
    color: #0431C9;
}

ul#main_menu_sub li.zaikousei a:hover {
    color: #1DA331;
}

ul#main_menu_sub li.sotugyousei a:hover {
    color: #FF6300;
}

ul#main_menu_sub li.toiawase a:hover {
    color: #999;
}
ul#main_menu_sub li.blog a:hover {
    color: #ff007f;
}

/*---------------------------------サブページメニュー-------*/
#block_nabi02 {
    width: 100%;
    background-color: #dcdcdc;
    padding: 5px 0 5px 0;
}

#main_menu_sub02 {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    font-size: 0;
}

ul#main_menu_sub02 li {
    display: inline-block;
    font-size: 0.8rem;
    width: 16%;
    text-align: center;
    vertical-align: middle;
}

ul#main_menu_sub02 li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

ul#main_menu_sub02 li a:hover {
    color: #999;
    font-weight: bold;
}

.sub_h3 {
    font-size: 1.5rem;
    padding: 3% 0;
}

.sub_h4 {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1% 0;
}

.sub_h5 {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1% 0;
}

.p_under_h5 {
    margin-left: 1rem;
}

.b {
    font-weight: bold;
}

.mar_l_2 {
    margin-left: 2%;
}

.mar_l_1re {
    display: block;
    margin-left: 1rem;
}

.img_left {
    float: left;
    padding: 2% 2% 1% 2%;
}

.p_left {
    float: left;
    padding: 2% 2% 1% 2%;
}

.img_shiro {
    padding: 3%;
    background-color: #FFF;
    border-style: solid;
    border-width: 1px;
    border-color: #999;
}

.clear {
    clear: both;
}


#page_top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    bottom: 0;
    background: #999999;
    opacity: 0.6;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
}

#page_top a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
}

#page_top a:before {
    color: #fff;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -5px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}


/*--------------------*/
footer {
    margin-top: 5vh;
    width: 100%;
}

#block_footer {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    font-size: 1rem;
    background-color: #FFF;
}

@media screen and (min-width:480px) {
    #block_footer {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
}

.footer_box {
    width: 100%;
}

@media screen and (min-width:480px) {
    .footer_box {
        width: calc(100%/3);
        padding: 0 2vh;
    }
}

.footer_box img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.img_center {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: auto;
}

.main_frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 20%;
}

.main_frame iframe {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    border: 1px #bcddff solid;
}

.main_frame_tubuyaki {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 30vh;
}

.main_frame_tubuyaki iframe {
    position: absolute;
    top: 0;
    left: 5%;
    width: 95%;
    height: 20vh;
    border: 1px #C0C0C0 solid;
}
