/* ここからheader */

header {
    height: 100px;
    width: 100%;
    margin: auto;
    position: fixed;
    z-index: 99999;
    background: #fff;
}

#headerWrap {
    max-width: 1340px;
    position: relative;
    margin: auto;
    display: block;
    box-sizing: border-box;
}

#headerWrap div {
    box-sizing: border-box;
}

#headerWrap div a {
    display: block;
}

#headerWrap .header_logo {
    float: left;
    height: 74px;
    margin-top: 15px;
}

#headerWrap .header_logo a img {
    width: 85%;
}

#headerWrap nav {
    float: right;
    height: 74px;
}

#headerWrap nav ul {
    overflow: hidden;
    margin-top: 25px;
}

#headerWrap nav ul li {
    float: left;
    margin-right: 50px;
}

#headerWrap nav ul li:last-child {
    margin-right: 0px;
}

#headerWrap nav ul li div a div {
    text-align: center;
}

#headerWrap nav ul li div a .navTop_Text {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
}

#headerWrap nav ul li div a .navTop_Text:hover {
    color: #2d5b92;
}

#headerWrap nav ul li div a .navUnder_Text {
    font-size: 13px;
    color: #7f7f7f;
    font-weight: 400;
}

.menu_background {
    display: none;
}

@media screen and (max-width:1339px) {
    header {
        width: 100%;
    }
    #headerWrap {
        width: 98%;
        margin: auto;
    }
}

@media screen and (min-width:840px) and (max-width:979px) {
    header {
        height: 80px;
    }
    nav {
        position: absolute;
        right: 30px;
        top: 30px;
    }
    .menu,
    menu span {
        display: inline-block;
        transition: all 0.4s;
        box-sizing: border-box;
    }
    .menu {
        position: relative;
        width: 36px;
        height: 36px;
        right: -10px;
        top: -15px;
    }
    .menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #000;
        border-radius: 4px;
    }
    .menu span:nth-child(1) {
        top: 0;
    }
    .menu span:nth-child(2) {
        top: 16px;
    }
    .menu span:nth-child(3) {
        bottom: 0;
    }
    .menu.active span:nth-child(1) {
        -webkit-transform: translateY(20px) rotate(-45deg);
        transform: translateY(12px) rotate( -45deg);
    }
    .menu.active span:nth-child(2) {
        opacity: 0;
    }
    .menu.active span:nth-child(3) {
        -webkit-transform: translateY(-20px) rotate(45deg);
        transform: translateY(-20px) rotate(45deg);
    }
    #headerWrap nav {
        float: unset;
        height: 36px;
        margin-top: 0;
    }
    #headerWrap .header_logo {
        width: 300px;
        height: 64px;
        margin-top: 10px;
        float: unset;
    }
    #headerWrap nav ul {
        display: none;
        position: fixed;
        z-index: 50;
        right: 50%;
        top: 100px;
        margin-right: -70px;
        width: 140px;
    }
    #headerWrap nav ul li {
        float: none;
        text-align: center;
        margin: auto auto 40px;
    }
    .menu_background {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        right: 0;
        top: 80px;
        background: #fff;
        z-index: 10;
    }
}

@media screen and (min-width:360px) and (max-width:839px) {
    header {
        height: 55px;
    }
    nav {
        position: absolute;
        right: 30px;
        top: 30px;
    }
    .menu,
    menu span {
        display: inline-block;
        transition: all 0.4s;
        box-sizing: border-box;
    }
    .menu {
        position: relative;
        width: 30px;
        height: 30px;
        right: -20px;
        top: -23px;
    }
    .menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #000;
        border-radius: 3px;
    }
    .menu span:nth-child(1) {
        top: 0;
    }
    .menu span:nth-child(2) {
        top: 13px;
    }
    .menu span:nth-child(3) {
        bottom: 0;
    }
    .menu.active span:nth-child(1) {
        -webkit-transform: translateY(20px) rotate(-45deg);
        transform: translateY(8px) rotate(-45deg);
    }
    .menu.active span:nth-child(2) {
        opacity: 0;
    }
    .menu.active span:nth-child(3) {
        -webkit-transform: translateY(-20px) rotate(45deg);
        transform: translateY(-19px) rotate(45deg);
    }
    #headerWrap nav {
        float: unset;
        height: 30px;
        margin-top: 0;
    }
    #headerWrap .header_logo {
        width: 200px;
        height: 30px;
        margin-top: 10px;
        float: unset;
    }
    #headerWrap nav ul {
        display: none;
        position: fixed;
        z-index: 50;
        right: 50%;
        top: 100px;
        margin-right: -70px;
        width: 140px;
    }
    #headerWrap nav ul li {
        float: none;
        text-align: center;
        margin: auto auto 40px;
    }
    .menu_background {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        right: 0;
        top: 55px;
        background: #fff;
        z-index: 10;
    }
}