#Menu {
    top: 268px;
    width: 100%;
    z-index: 1;
}

#top #Menu {
    top: 568px;
}

#Menu.scroll {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    min-width: 1024px;
    z-index: 2;
}

#top #Menu.scroll {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
}

.menu_body {
    overflow: hidden;
    /* height: 116px; */
    background: #ffffff;
    border-bottom: solid 1px #0071bc;
    /* width: 98%;
    margin: 0 auto; */
}

.menu_body_inner {
    max-width: 1024px;
    margin: 0 auto;
    overflow: hidden;
    /* padding: 10px 0; */
}

.menu_body ul {
    display: flex;
}

.menu_body li {
    text-align: center;
    flex: 1;
    transition: .2s;
}

.menu_body li:nth-child(1) {
    flex: 1.2;
    /* margin-right: 54px; */
}

.menu_body li:nth-child(n+2) a {
    padding: 5%;
}

.menu_body a {
    text-decoration: none;
    display: block;
    font-size: 90%;
    color: #0071bc;
    font-weight: bold;
    padding: 2% 0;
    line-height: 1.2;
}

.menu_body li:nth-child(7) a {
    font-size: 85%;
}

.menu_body a img {
    margin: 0 auto 5px;
    display: block;
}

.menu_body li:nth-child(n+2) img {
    max-width: 50px;
}

.menu_body li:nth-child(n+2):hover {
    background: #fcee21;
}

#outline .menu_body li:nth-child(2) {
    background: #fcee21;
}

#form .menu_body li:nth-child(3) {
    background: #fcee21;
}

#impression .menu_body li:nth-child(4) {
    background: #fcee21;
}

#shindan .menu_body li:nth-child(5) {
    background: #fcee21;
}

#search .menu_body li:nth-child(6) {
    background: #fcee21;
}

#hint .menu_body li:nth-child(7) {
    background: #fcee21;
}

#past .menu_body li:nth-child(8) {
    background: #fcee21;
}

.menu_btn {
    display: none;
}

.menu_br {
    display: block;
}

.end_rec_form {
    display: none;
}

/* 1024以下 */

@media screen and (max-width:1024px) { 

    .menu_br {
        display: none;
    }

    #Menu.scroll {
        position: initial;
        min-width: initial;
        transform: initial;
    }

    #top #Menu.scroll {
        transform: initial;
    }
    
    body.open {
        overflow: hidden;
    }

    .menu_body ul{
        flex-direction: column;
    }

    .menu_btn {
        width: 50px;
        height: 30px;
        display: block;
        border-top: solid 5px #0071bc;
        border-bottom: solid 5px #0071bc;
        position: fixed;
        top: 30px;
        right: 30px;
        transition: .2s ease-in-out;
        z-index: 3;
    }

    .menu_btn.open {
        border-top: solid 5px rgba(0,0,0,0);
        border-bottom: solid 5px rgba(0,0,0,0);
    }

    .menu_btn::before {
        content: "";
        display: block;
        width: 50px;
        border-top: solid 5px #0071bc;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: .2s ease-in-out;
    }

    .menu_btn::after {
        content: "";
        display: block;
        width: 50px;
        border-top: solid 5px #0071bc;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: .2s ease-in-out;
    }

    .menu_btn.open::before {
        transform: translateY(-50%) rotate(45deg);
    }

    .menu_btn.open::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    .menu_body {
        /* display: none; */
        transition: .2s;
        position: fixed;
        border-bottom: none;
        width: 100%;
        height: 0;
        top: 0;
        left: 0;
    }

    .menu_body.open {
        /* display: block; */
        overflow-y: scroll;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.95);
        z-index: 2;
    }

    .menu_body_inner {
        width: 100%;
        padding: 30px 0;
    }
    
    .menu_body li {
        float: initial;
        text-align: left;
    }
    
    .menu_body li:nth-child(1) {
        margin: 0 0 30px 0;
    }

    .menu_body li:nth-child(n+2) {
        width: 100%;
    }

    .menu_body li:nth-child(n+2) img {
        max-width: none;
    }    

    .menu_body li:nth-child(n+2) a:hover {
        background: initial;
    }
    
    .menu_body a {
        height: auto;
        font-size: 24px;
        position: relative;
        padding: 12px 30px;
    }

    .menu_body li:nth-child(7) a {
        font-size: 24px;
    }    

    .menu_body a span {
        position: absolute;
        top: 56%;
        left: 100px;
        transform: translateY(-50%);
    }

    .menu_body li:nth-child(1) a {
        width: 130px;
        padding: 0;
        margin-left: 30px;
    }

    .menu_body li:nth-child(1) a img {
        width: 100%;
    }

    .menu_body a img {
        margin: 0;
        width: 50px;
    }

    .menu_body a::after {
        content: "";
        display: block;
        width: 15px;
        height: 15px;
        border-top: solid 3px #0071bc;
        border-right: solid 3px #0071bc;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu_body li:nth-child(1) a::after {
        display: none;
    }
}

/* SP時 */

@media screen and (max-width:640px) { 

    #Menu.scroll {
        position: initial;
        min-width: initial;
        transform: initial;
    }
    
    body.open {
        overflow: hidden;
    }

    .menu_btn {
        width: 8vw;
        height: 6vw;
        display: block;
        border-top: solid 1vw #0071bc;
        border-bottom: solid 1vw #0071bc;
        position: fixed;
        top: 3vw;
        right: 3vw;
        transition: .2s ease-in-out;
    }

    .menu_btn::after {
        content: "";
        display: block;
        width: 8vw;
        border-top: solid 1vw #0071bc;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu_btn.open {
        border-top: solid 1vw rgba(0,0,0,0);
        border-bottom: solid 1vw rgba(0,0,0,0);
    }

    .menu_btn::before {
        content: "";
        display: block;
        width: 8vw;
        border-top: solid 1vw #0071bc;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: .2s ease-in-out;
    }

    .menu_btn::after {
        content: "";
        display: block;
        width: 8vw;
        border-top: solid 1vw #0071bc;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: .2s ease-in-out;
    }

    .menu_btn.open::before {
        transform: translateY(-50%) rotate(45deg);
    }

    .menu_btn.open::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    .menu_body {
        /* display: none; */
        transition: .2s;
        position: fixed;
        border-bottom: none;
        height: 0;
        top: 0;
        z-index: 2;
    }

    .menu_body.open {
        /* display: block; */
        overflow-y: scroll;
        width: auto;
        height: 100vh;
        background: rgba(255,255,255,0.95);
    }

    .menu_body_inner {
        width: 100vw;
        padding: 3vw 0;
    }
    
    .menu_body li {
        float: initial;
        text-align: left;
    }
    
    .menu_body li:nth-child(1) {
        margin: 0 0 3vw 0;
    }

    .menu_body li:nth-child(n+2) {
        width: 100%;
    }

    .menu_body li:nth-child(n+2) a:hover {
        background: initial;
    }
    
    .menu_body a {
        height: auto;
        font-size: 4vw;
        position: relative;
        padding: 3vw;
    }

    .menu_body li:nth-child(7) a {
        font-size: 4vw;
    }    

    .menu_body a span {
        position: absolute;
        top: 56%;
        left: 14vw;
        transform: translateY(-50%);
    }

    .menu_body li:nth-child(1) a {
        width: 20vw;
        padding: 0;
        margin-left: 3vw;
    }

    .menu_body li:nth-child(1) a img {
        width: 100%;
    }

    .menu_body a img {
        margin: 0;
        width: 8vw;
    }

    .menu_body a::after {
        content: "";
        display: block;
        width: 2.3vw;
        height: 2.3vw;
        border-top: solid 0.5vw #0071bc;
        border-right: solid 0.5vw #0071bc;
        position: absolute;
        top: 50%;
        right: 5vw;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu_body li:nth-child(1) a::after {
        display: none;
    }
}