header{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index:10;
    transition: .5s;
}

header.scrolled{
    background-color: #fff;
    transition:.5s;
}

header h1{
    padding: 10px 0 10px 0;
    margin-left: 50px;
}
#gNav-btn{
    position: relative;
    background-color: #8CC9D9;
    font-size: 16px;
    color: #fff;
    border-radius: 30px;
    padding: 0.7em 6.5em 0.7em 2.5em;
    height: 50px;
    z-index:6;
    margin-right: 80px;
    transition:.5s;
}
#gNav-btn:hover{
    background-color: #59a1b4;
    transition:.5s;
}

header .bar {
    display: block;
    position: absolute;
    width: 26px;
    height: 2px;
    border-radius: 4px;
    background-color: #fff;
    transition:.5s;
}

.gNav-opened{
   overflow-y: hidden;
}

.gNav-opened #gNav-btn{
    background-color:#fff;
    color: #779BA5;
    transition:.5s;
}

.gNav-opened #gNav-btn:hover{
    background-color: #317081;
    color:#fff;
    transition:.5s;
}


.gNav-opened .bar{
background-color:#fff;
color: #779BA5;
transition:.5s;
}

header .bar:nth-of-type(2) {
top: 30%;
transform: translateY(-50%);
right:29px;
}
header .bar:nth-of-type(3) {
top: 50%;
transform: translateY(-50%);
right:34px;
}
header .bar:nth-of-type(4) {
top: 70%;
transform: translateY(-50%);
right:39px;
}

.gNav-opened .bar:nth-child(2) {
transform: translate(0 , 9px) rotate(-45deg);
background-color:#779BA5;
}
.gNav-opened .bar:nth-child(3) {
opacity: 0;
}
.gNav-opened .bar:nth-child(4) {
transform: translate(10px, -11px) rotate(45deg);
background-color:#779BA5;
}

.gNav-opened button:hover .bar:nth-child(2),
.gNav-opened button:hover .bar:nth-child(4){
    background-color:#fff;
}

#gNav{
    position: fixed;
    top: -100vh;
    width: 100vw;
    height: 100vh;
    transition: all .5s;
    visibility:hidden;
    background-color: #779BA5;
}

.gNav-opened #gNav{
    top: 0;
    visibility: visible;
    transition: all .5s;
    z-index:5;
}

.gNav-inner{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.gNav-inner>div{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 934px;
    margin-top:-20px;
}


#gNav ul{
    color: #fff;
    width:400px;
}
#gNav p{
    margin-top:80px;
    color: #fff;
}
.gNav-SNS{
    margin: 80px 270px 0 0;
    height:51px;
}

#gNav li{
    position: relative;
    line-height: 2.8em;
    border-bottom: 1px solid #fff;
    font-size: 30px;
}

#gNav a{
    text-decoration: none;
    color: #fff;
}
#gNav li a::after{
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    border-top: 10px solid transparent;
    border-right: 10px solid #fff;
}
#gNav a:hover{
    color: #102b33;
}
#gNav a:hover::after{
    border-right: 10px solid #102b33;
}


/* -----------------------------------------------------------------
ブレイクポイント
------------------------------------------------------------------*/
@media screen and (max-width: 960px) {
    header {
        height: 80px;
    }

    header img{
        width: 200px;
    }
    .gNav-opened header img{
        margin-bottom: 50px;
    }
    #gNav-btn {
        padding: 0.7em 5.0em 0.7em 1.5em;
        height: 40px;
        margin-right: 15px;
    }
    header .bar:nth-of-type(2) {
        top: 33%;
        right: 25px;
    }
    header .bar:nth-of-type(3) {
        right:29px;
        }
    header .bar:nth-of-type(4) {
        top: 67%;
        right:34px;
    }
    .gNav-opened .bar:nth-child(2) {
        transform: translate(0 , 6px) rotate(-45deg);
    }
    .gNav-opened .bar:nth-child(4) {
        transform: translate(9px, -8px) rotate(45deg);
    }
    header h1{
        margin-left: 15px;
    }

    #gNav li{
        line-height: 2.8em;
        font-size: 21px;
    }
    #gNav ul {
        color: #fff;
        width: 300px;
    }
    .gNav-inner>div {
        flex-direction: column;
        width: 290px;
         margin-top: -20px;
    }
    #gNav p{
        margin-top: 50px;
    }
    .gNav-SNS {
        margin: 30px 0 0 0;
    }
}