/*============================
	header
============================*/

header {
    z-index: 999;
    position: relative;
    top: 0;
    left: 50%;
    width: 100%;
    padding: 15px 0 0;
    background: #fff;
    -webkit-transform: translate(-50%);
    -ms-transform: translate(-50%);
    transform: translate(-50%);
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12); */
}

.hd__flex {
    height: 85px;
}

.hd__left {
    width: 50%;
    padding: 0 0 0 1%;
    flex: 0 1 auto;
}

.hd__right {
    width: 50%;
    padding: 0 1% 0 0;
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
}

.hd__right.sp{
    display: none;
}

.hd__logo {
    width: 429px;
    max-width: 100%;
    height: auto;
}



.hd__contact img {
    width: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.hd__contact a {
    display: block;
    width: 280px;
    height: 50px;
    background: #fbd85d;
    font-size: 1.6rem;
    letter-spacing: .26em;
    line-height: 50px;
    color: #0e5ca7;
    text-align: center;
    white-space: nowrap;
    padding: 0 1%;
    margin: 0 0 0 auto;
}

.hd__youtube img {
    width: 146px;
    vertical-align: middle;
}

.hd__youtube a {
    display: block;
    width: 146px;
    height: 50px;
    padding: 0 1%;
    margin: 4px 15px 0 0;
}


/***** g-nav PC ▼*****/

.g-nav__pc {
    height: 70px;
    background: #0e5ca7;
    text-align: center;
}

.g-nav__pc--ul {
    max-width: 1290px;
    margin: 0 auto;
}

.g-nav__li {
    line-height: 70px;
    position: relative;
    z-index: 9;
    flex: 1 1 auto;
}

.g-nav__li a {
    white-space: nowrap;
    font-size: min(2rem, 1.8vw);
    letter-spacing: .32em;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transition: .5s;
    font-weight: 500;
    color: #fff;
    border-left: solid 1px #fff;
    padding-left: .32em;
}

.g-nav__li a:last-child {
    border-right: solid 1px #fff;
}

.g-nav__li a:hover {
    opacity: .8;
}


/* g-nav 伸びるボーダー */

.g-nav__pc--ul li a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 5px;
    background: #fbd85d;
    left: 50%;
    bottom: -3px;
    border-radius: 1px;
    transition: .5s;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.g-nav__pc--ul li a:hover:before {
    width: 100%;
    opacity: 1;
}

.g-nav__pc--ul .sub-nav__li a:hover::before {
    display: none;
}

.g-nav__li.active a::before {
    width: 100%;
    opacity: 1;
}

/***** g-nav ▲*****/



/***** ハンバーガー ▼*****/

.hd__menu {
    font-weight: bold;
    font-size: 1rem;
    z-index: 999;
    width: 75px;
    height: 75px;
    /* background: #00528d; */
    transition: .5s;
    margin: 0 0 0 auto;
    padding: 20px;
    background: #0e5ca7;
    z-index: 9999;
    position: relative;
}

/* .hd__menu.active {
    background: #00528d;
} */

.hd__hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin: 0 auto;
}

.hd__hamburger span {
    display: block;
    background: #fff;
    height: 3px;
    width: 3px;
    border-radius: 50%;
    transition: .5s;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.hd__hamburger.active span {
    background: #fff;
}

.hd__menu .hd__menu--txt {
    font-size: 1rem;
    text-align: center;
    color: #0e5ca7;
    font-weight: bold;
    transition: .5s;
    margin-top: 5px;
}

/* .hd__gnav--sp.active .hd__menu--txt {
    
} */


.hd__hamburger--top01 {
    top: 0;
    left: 0;
}

.hd__hamburger--top02 {
    top: 0;
    left: 50%;
}

.hd__hamburger--top03 {
    top: 0;
    left: 100%;
}

.hd__hamburger--mid01 {
    top: 50%;
    left: 0;
}

.hd__hamburger--mid02 {
    top: 50%;
    left: 50%;
}

.hd__hamburger--mid03 {
    top: 50%;
    left: 100%;
}

.hd__hamburger--btm01 {
    bottom: -2px;
    left: 0;
}

.hd__hamburger--btm02 {
    bottom: -2px;
    left: 50%;
}

.hd__hamburger--btm03 {
    bottom: -2px;
    left: 100%;
}


.hd__hamburger.active .hd__hamburger--top01 {
    width: 100%;
    height: 2px;
    transform: translateY(15px) rotate(45deg);
    border-radius: 0;
}

.hd__hamburger.active .hd__hamburger--btm01 {
    width: 100%;
    height: 2px;
    transform: translateY(-15px) rotate(-45deg);
    border-radius: 0;
}

.hd__hamburger.active .hd__hamburger--top02,
.hd__hamburger.active .hd__hamburger--top03,
.hd__hamburger.active .hd__hamburger--mid01,
.hd__hamburger.active .hd__hamburger--mid02,
.hd__hamburger.active .hd__hamburger--mid03,
.hd__hamburger.active .hd__hamburger--btm02,
.hd__hamburger.active .hd__hamburger--btm03 {
    display: none;
}



/***** sp nav *****/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(000, 000, 000, .5);
    opacity: 0;
    display: none;
    transition: .5s;

}

html.active body:before {
    opacity: 0;
    z-index: 999;
    display: block;
    animation-name: BgAppear;
    animation-duration: .5s;
    animation-fill-mode: forwards;
}

@keyframes BgAppear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

}

@keyframes BgHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

.g-nav__bg {
    position: fixed;
    top: 0;
    right: -120%;
    height: 100vh;
    width: 70vw;
    transition: all .5s;
    background: #0e5ca7;
    overflow: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 100px 10% 100px;
    z-index: 999;
}

.g-nav__bg.active {
    right: 0;
}

.g-nav__h1 {
    display: block;
    margin: 0 0 30px;
    line-height: 1.6;
    font-size: 1.2rem;
}

/* .g-nav__sp{
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
} */
.g-nav__sp-ul {
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 30px;
    text-align: center;
}

.g-nav__bg .g-nav__li a {
    font-size: 1.6rem;
    height: 100%;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    border: none;

}

.g-nav__bg .g-nav__li.active a {
    color: #fbd85d;
    border-bottom: solid 3px #fbd85d;
}

.g-nav__sp-ul .sub-triger {
    margin-bottom: 15px;
}

.g-nav__bg .sub-nav__li a {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.g-nav__sp ul span {
    font-size: 2.4rem;
    margin-right: 10px;
}

.g-nav__tel {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.g-nav__tel--txt {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.g-nav__tel img {
    width: 30px;
    margin-right: 10px;
    vertical-align: middle;
}


.g-nav__tel--time {
    margin-bottom: 30px;
    font-size: 1.4rem;
    text-align: center;
}


.g-nav__contact {
    width: 100%;
    margin-bottom: 10px;
}

.g-nav__contact img {
    width: 10px;
    margin-right: 10px;
    vertical-align: middle;
}

.g-nav__contact a {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0;
    text-align: center;
    background: #fbd85d;
    color: #0e5ca7;
}






@media screen and (max-width:1024px) {
    .g-nav__pc {
        display: none;
    }

    header .pc {
        display: none;
    }

    header .sp {
        display: block;
    }

    .hd__left {
        padding: 0;
    }

    .hd__flex--sp.sp {
        display: block;
    }

    .hd__gnav--sp {
        display: block;
    }

    .hd__right.sp{
        display: block;
    }
    



    header {
        height: 75px;
        position: fixed;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
        padding: 0 0 0 15px;
    }

    .hd__top {
        height: auto;
    }

    header .inner__large {
        padding: 0;
    }

    .hd__logo {
        width: 300px;
        max-width: none;
        height: auto;
        position: relative;
        z-index: 999;
        margin: 0;
        flex: 0 0 auto;
    }

    .hd__flex {
        display: flex;
    }

    .hd__tel--ico {
        display: block;
        margin: 5px 5% 0 auto;
        width: 35px;
    }

    .hd__bnr {
        margin-top: 62px;
        padding: 20px 0;
    }

    .hd__youtube {
        width: 146px;
        text-align: right;
    }

    .hd__youtube img {
        width: 146px;
        vertical-align: middle;
    }
    
    .hd__youtube a {
        display: block;
        width: 146px;
        height: 50px;
        padding: 0 1%;
        margin: 2px 15px 0 0;
    }

    .hd__right.sp {
        width: 50px;
        text-align: right;
        padding: 0;
        flex: auto;
        display: block;
        position: absolute;
        top:10px;
        right:90px;
    }

    .hd__right.sp .hd__youtube img {
        width: 100%;
        vertical-align: middle;
    }
    
    .hd__right.sp .hd__youtube a {
        display: block;
        width: 50px;
        height: auto;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-width:767px) {
    header {
        height: 75px;
        padding: 0 0 0 10px;
        background-size: 300%;
    }

    .hd__left {
        width: auto;
    }

    .hd__right {
        width: auto;
    }


    .g-nav__bg {
        width: 100vw;
        padding: 100px 10% 100px;
    }

    .g-nav__bg .g-nav__li a {
        font-size: 1.4rem;
        margin-bottom: 30px;
        border: none;
        color: #fff;
    }

    .g-nav__tel {
        font-size: 2.6rem;
        margin-bottom: 15px;
    }

    .g-nav__tel img {
        width: 25px;
    }

    .hd__logo {
        max-width: 90%;
        width: 230px;
    }


    .g-nav__sp-ul {
        padding: 0 5%;
    }


    .g-nav__contact a {
        font-size: 1.4rem;
        line-height: 40px;
        max-width: 80%;
    }

    .g-nav__access a {
        font-size: 1.4rem;
        line-height: 40px;
    }

    header .hd__tel--ico {
        display: none;
        margin: 5px 5% 0 auto;
        width: 30px;

    }

    .hd__tel--ico img {
        vertical-align: middle;
    }

    .hd__bnr {
        margin-top: 52px;
    }

    .hd__bnr .inner {
        padding: 0 1%;
    }

    .hd__bnr--flex {
        display: flex;
    }

    /* 下層header */
    .page__hd {
        border-bottom: solid 4px #0e5ca7;
    }
}