@charset "utf-8";


/*グローバルナビゲーション
==================================================================================================================*/
/*ヘッダー*/
header {
    width: 100%;
    background-color: #fff;
    padding: 1em 1em 4em;
}

.sub_page header {
    padding: 1em 1em;
}

#hdr_logo {
    width: 30%;
}

#hdr_logo h1 {
    width: 100%;
    max-width: 300px;
}

#g-nav {
    width: calc(100% - 30%);
    display: flex;
    justify-content: flex-end;
}


#g-nav-list>ul>li {
    display: inline-block;
    padding: 0 1em;
    position: relative;
}

#g-nav-list>ul>li a {
    text-align: center;
    overflow: hidden;
}


#g-nav-list>ul {
    position: relative;
}


@media (max-width:799px) {

    #hdr_logo h1 {
        width: 45vw;
    }

    header {
        width: 100%;
        height: 70px;
        padding: 5px 10px;
        margin: auto;
        position: fixed;
        margin-bottom: 0;
        top: 0;
        z-index: 99;
    }

    article {
        margin: 70px 0 0;
    }

    #g-nav-list>ul {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #g-nav-list>ul>li {
        width: 100%;
        padding: 0;
    }


    #g-nav-list>ul>li:not(:last-child) {
        border-bottom: 1px solid #666;
    }


    #g-nav-list>ul>li a {
        display: block;
        padding: 1em;
    }


    #g-nav.panelactive {
        position: fixed;
        z-index: 999;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    .circle-bg {
        position: fixed;
        z-index: 3;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: var(--c_gray);
        transform: scale(0);
        right: -50px;
        top: calc(50% - 50px);
        transition: all .5s;
    }

    .circle-bg.circleactive {
        transform: scale(50);
        width: 50%;
    }

    #g-nav-list {
        display: none;
        position: fixed;
        z-index: 99;
        width: 100%;
        height: 100vh;
        overflow: auto;
        margin: auto;
        -webkit-overflow-scrolling: touch;
    }

    #g-nav.panelactive #g-nav-list {
        display: block;
    }

    #g-nav-list>ul {
        opacity: 0;
        position: absolute;
        z-index: 99;
        top: 10%;
        left: 0;
        right: 0;
        width: 100%;
    }


    #g-nav.panelactive ul {
        opacity: 1;
    }

    #g-nav.panelactive ul li {
        animation-name: gnaviAnime;
        animation-duration: 1s;
        animation-delay: .2s;
        animation-fill-mode: forwards;
        opacity: 0;
    }

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

        100% {
            opacity: 1;
        }
    }



    .openbtn1 {
        background: var(--maincolor);
        position: absolute;
        top: 6px;
        right: 0;
        z-index: 998;
        cursor: pointer;
        width: 60px;
        height: 60px;
    }

    .openbtn1 span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 10px;
        height: 3px;
        border-radius: 2px;
        background-color: var(--c_brown);
        width: 40px;
    }

    .openbtn1 span:nth-of-type(1) {
        top: 14px;
    }

    .openbtn1 span:nth-of-type(2) {
        top: 27px;
    }

    .openbtn1 span:nth-of-type(3) {
        top: 40px;
    }

    .openbtn1.active {
        z-index: 9999;
    }

    .openbtn1.active span:nth-of-type(1) {
        top: 20px;
        left: 10px;
        transform: translateY(6px) rotate(-45deg);
        width: 40px;
    }

    .openbtn1.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn1.active span:nth-of-type(3) {
        top: 33px;
        left: 10px;
        transform: translateY(-6px) rotate(45deg);
        width: 40px;
    }



}





@media (max-width:399px) {


    header {
        height: 60px;
    }

    article {
        margin: 60px 0 0;
    }

    #hdr_logo h1 {
        width: 60vw;
    }


    .openbtn1 {
        width: 50px;
        height: 50px;
    }

    .openbtn1 span {
        width: 30px;
    }

    .openbtn1 span:nth-of-type(1) {
        top: 12px;
    }

    .openbtn1 span:nth-of-type(2) {
        top: 22px;
    }

    .openbtn1 span:nth-of-type(3) {
        top: 32px;
    }

    .openbtn1.active span:nth-of-type(1) {
        top: 18px;
        width: 30px;
    }

    .openbtn1.active span:nth-of-type(3) {
        top: 31px;
        width: 30px;
    }






}