/*============================
	header
============================*/

header {
    z-index: 99;
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 140px;
    padding: 0 1%;
    -webkit-transform: translate(-50%);
    -ms-transform: translate(-50%);
    transform: translate(-50%);
    width: 100%;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12); */
}

.hd__inner {
    margin: 0 auto;
    max-width: 1000px;
}

.hd__flex {
    align-items: center;
}

.hd__left {
    flex: 0 1 150px;
}

.hd__center {
    flex: 1 1 auto;
}

.hd__right {
    flex: 0 1 168px;
}

.hd__logo {
    width: 134px;
    max-width: 100%;
    height: auto;
}

.hd__tel img {
    width: 15px;
    vertical-align: baseline;
    margin-right: 5px;
}

.hd__tel {
    font-size: min(2rem, 2vw);
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.hd__tel a{
    color: #fff;
}

.hd__contact a {
    display: block;
    width: 100%;
    max-width: 168px;
    min-width: 150px;
    line-height: 38px;
    background: #f57a1b;
    font-size: min(1.6rem, 1.6vw);
    font-weight: bold;
    letter-spacing: .01em;
    text-align: center;
    padding: 0 5px;
    color: #fff;
    margin: 0 auto;
}

.hd__contact img {
    width: 20px;
    vertical-align: baseline;
    margin-right: 5px;
}



/***** g-nav PC ▼*****/

.g-nav__pc {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    flex: 0 1 600px;
}


.g-nav__li {
    position: relative;
    z-index: 9;
    flex: 0 1 auto;
    line-height: 1;
    padding: 30px 3.5% 0;
}


/* .g-nav__li:last-child {
    padding: 30px 0 0 3.5%;
} */

.g-nav__li:last-child::before {
    display: none;
}

.g-nav__li a {
    white-space: nowrap;
    color: #fff;
    font-size: min(1.4rem, 1.4vw);
    letter-spacing: .01em;
    font-weight: 500;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transition: .5s;

}


.g-nav__li a:hover {
    opacity: .8;
}

.g-nav__li.sub-triger {
    position: relative;
}

.sub-triger:hover .sub-nav {
    display: block;
    opacity: 1;
}

.sub-nav {
    position: absolute;
    background: rgba(51, 0, 102, .85);
    padding: 20px 10%;
    min-width: 150px;
    left: 50%;
    top: 95px;
    -webkit-transform: translate(-50%);
    -ms-transform: translate(-50%);
    transform: translate(-50%);
    display: none;
    opacity: 0;
    transition: .5s;
    animation: sub-navAppear .5s forwards;
    color: #fff;
}

@keyframes sub-navAppear {
    0% {
        opacity: 0%;
    }

    100% {
        opacity: 1;
    }
}

.g-nav__pc--ul .sub-nav__li {
    margin: 0 0 10px;
}

.g-nav__pc--ul .sub-nav__li a {
    font-size: 1.5rem;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: solid 1px #fff;
    line-height: 1;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.g-nav__pc--ul .sub-nav__li a:hover {
    color: #fff;
}

/* g-nav 伸びるボーダー */

.g-nav__pc--ul li a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: #fff;
    left: 50%;
    bottom: -10px;
    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%
}

.g-nav__pc--ul li.active a::before {
    width: 100%;
}


.g-nav__pc--ul .sub-nav__li a:hover::before {
    display: none;
}



/***** g-nav ▲*****/



/***** ハンバーガー ▼*****/

.hd__menu {
    font-weight: bold;
    font-size: 1rem;
    z-index: 99;
    width: 52px;
    height: 52px;
    /* background: #00528d; */
    transition: .5s;
    margin: 0 0 0 auto;
    padding: 10px 0;
}

/* .hd__menu.active {
    background: #00528d;
} */

.hd__hamburger {
    width: 40px;
    height: 10px;
    cursor: pointer;
}

.hd__hamburger span {
    background: #fff;
    height: 2px;
    width: 100%;
    left: 0;
}

.hd__hamburger.active span {
    background: #fff;
}

.hd__menu .hd__menu--txt {
    font-size: 1rem;
    text-align: center;
    color: #fff;
    font-weight: bold;
    transition: .5s;
    margin-top: 5px;
}

/* .hd__gnav--sp.active .hd__menu--txt {
    
} */


.hd__hamburger--top {
    top: 0;
    transition: .5s;
}

.hd__hamburger--middle {
    top: 42.5%;
    transition: .5s;
}

.hd__hamburger--bottom {
    bottom: 0;
    transition: .5s;
}

.hd__hamburger.active .hd__hamburger--top {
    transform: translateY(0px) rotate(30deg);
}

.hd__hamburger.active .hd__hamburger--middle {
    display: none;
}

.hd__hamburger.active .hd__hamburger--bottom {
    transform: translateY(-8px) rotate(-30deg);
}

/***** 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: 99;
    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: #fff;
    overflow: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 60px 10% 100px;
    margin-top: 62px;
    z-index: 9999;
}

.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: 40px;
    text-align: center;

}

.g-nav__bg .g-nav__li {
    border: none;
    background: none;
    padding: 0;
}
.g-nav__bg .g-nav__li.li01.current{
    background: none;
    padding: 0;
}
.g-nav__bg .g-nav__li::before{
    display: none;
}
.g-nav__bg .g-nav__li a {
    font-size: 1.8rem;
    height: 100%;
    display: block;
    margin-bottom: 30px;
    font-weight: bold;
    color: #111;
}

.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: 2.6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1;
}

.g-nav__tel--txt {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.g-nav__tel img {
    width: 20px;
    margin-right: 10px;
    vertical-align: middle;
}


.g-nav__tel--time {
    margin-bottom: 30px;
    font-size: 1.4rem;
    text-align: center;
}



.g-nav__contact {
    width: 80%;
    margin: 0 auto;
}

.g-nav__contact img {
    width: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.g-nav__contact a {
    display: block;
    width: 90%;
    margin: 0 auto;
    max-width: 100%;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: .05em;
    text-align: center;
    background: #f57a1b;
    color: #fff;
}

@media screen and (max-width:1040px) {
    .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__h1.sp {
        display: block;
        color: #111;
        text-align: center;
        margin: 0 0 30px;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    header {
        height: 62px;
        position: fixed;
        background: #023da8;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
        padding: 0 3%;
    }

    header .inner {
        padding: 0 1%;
    }

    .hd__flex {
        align-items: center;
    }

    .hd__logo {
        width: 62px;
        max-width: none;
        height: auto;
        position: relative;
        z-index: 99;
        margin: 0;
        flex: 0 0 auto;
    }

    .hd__flex {
        display: flex;
    }

    .hd__tel--ico {
        display: block;
        margin: 10px 5% 0 auto;
        width: 30px;
    }
}

@media screen and (max-width:767px) {
    header {
        height: 52px;
        padding: 0 10px;
    }

    .hd__h1.sp {
        font-size: 1rem;
    }

    .hd__left {
        width: auto;
    }

    .hd__right {
        width: auto;
    }


    .hd__hamburger span {
        height: 1px;
    }

    .g-nav__bg {
        width: 100vw;
        padding: 40px 10% 100px;
        margin-top: 52px;
    }

    .g-nav__bg .g-nav__li a {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .g-nav__tel {
        font-size: 2.2rem;
    }

    .g-nav__tel img {
        width: 16px;
        margin-bottom: 5px;
}

    .hd__logo {
        max-width: none;
        width: 52px;
    }

    .g-nav__sp-ul {
        padding: 0 5%;
    }


    .g-nav__contact.sp a {
        margin: 0 15%;
        width: 70%;
    }

    header .hd__tel--ico {
        margin: 5px 5% 0 auto;
        width: 20px;

    }

    .hd__tel--ico img {
        vertical-align: middle;
    }

    .g-nav__contact a {
        line-height: 40px;
        width: 100%;
        font-size: 1.6rem;
    }
}