@charset "utf-8";

/******************************************************************************************** スマホ */
@media only screen and (max-width: 767px){
    /*アクティブになったエリア*/
    #g-nav.panelactive {
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position: fixed;
        z-index: 2147483647;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    /*丸の拡大*/
    .circle-bg {
        position: fixed;
        z-index: 3;
        /*丸の形*/
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #d6a856;
        /*丸のスタート位置と形状*/
        transform: scale(0);/*scaleをはじめは0に*/
        top: -50px;
        left: calc(50% - 50px);/*50%から円の半径を引いた値*/
        transition: all 1s;/*5秒かけてアニメーション*/
    }

    .circle-bg.circleactive {
        transform: scale(50);/*クラスが付与されたらscaleを拡大*/
    }

    /*ナビゲーションの縦スクロール*/
    #g-nav-list {
        display: none;/*はじめは表示なし*/
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
    }

    #g-nav.panelactive #g-nav-list {
        display: block; /*クラスが付与されたら出現*/
    }

    /*ナビゲーション*/
    #g-nav ul {
        opacity: 0;/*はじめは透過0*/
        /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        z-index: 999;
    }

    /*背景が出現後にナビゲーションを表示*/
    #g-nav.panelactive ul {
        opacity: 1;
    }

    /* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
    #g-nav.panelactive ul li {
        width: 100%;
        text-align: left;
        margin-left: 50px;
        animation-name: gnaviAnime;
        animation-duration: .5s;
        animation-delay: .5s;/*0.2 秒遅らせて出現*/
        animation-fill-mode: forwards;
        opacity: 0;
    }
    @keyframes gnaviAnime {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    /*リストのレイアウト設定*/
    #g-nav {
        margin-top: 20px;
    }
    #g-nav li {
        text-align: center;
        list-style: none;
    }
    #g-nav li a {
        color: #fff;
        text-decoration: none;
        padding: 0;/*15px*/
        display: block;

    }
    #layer #g-nav-list ul li a {
        color: #fff;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position:fixed;
        z-index: 9999;/*ボタンを最前面に*/
        top: 0;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        top: 0;
        right: 0;
        height: 2px;
        background-color: #fff;
        transition: 1s;
    }
    #layer .openbtn span {
        background-color: #696660;
    }
    .is-animation .openbtn span {
        background-color: #696660;
        transition: 1s;
    }
    .openbtn span:nth-of-type(1) {
        width: 80%;
        top: 18px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(1) {
        top: 15px;
    }
    .openbtn span:nth-of-type(2) {
        width: 70%;
        top: 28px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(2) {
        top: 25px;
    }
    .openbtn span:nth-of-type(3) {
        width: 60%;
        top: 38px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(3) {
        top: 35px;
    }
    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 80%;
    }
    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }
    .openbtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 80%;
    }

}


/******************************************************************************************** タブレット */
@media only screen and (min-width: 768px) and (max-width: 980px) {
    /*アクティブになったエリア*/
    #g-nav.panelactive {
        /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
        position: fixed;
        z-index: 2147483647;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    /*丸の拡大*/
    .circle-bg {
        position: fixed;
        z-index: 3;
        /*丸の形*/
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #d6a856;
        /*丸のスタート位置と形状*/
        transform: scale(0);/*scaleをはじめは0に*/
        top: -50px;
        left: calc(50% - 50px);/*50%から円の半径を引いた値*/
        transition: all 1s;/*5秒かけてアニメーション*/
    }

    .circle-bg.circleactive {
        transform: scale(50);/*クラスが付与されたらscaleを拡大*/
    }

    /*ナビゲーションの縦スクロール*/
    #g-nav-list {
        display: none;/*はじめは表示なし*/
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
    }

    #g-nav.panelactive #g-nav-list {
        display: block; /*クラスが付与されたら出現*/
    }

    /*ナビゲーション*/
    #g-nav ul {
        opacity: 0;/*はじめは透過0*/
        /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        z-index: 999;
    }

    /*背景が出現後にナビゲーションを表示*/
    #g-nav.panelactive ul {
        opacity: 1;
    }

    /* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
    #g-nav.panelactive ul li {
        width: 100%;
        text-align: left;
        margin-left: 50px;
        animation-name: gnaviAnime;
        animation-duration: .5s;
        animation-delay: .5s;/*0.2 秒遅らせて出現*/
        animation-fill-mode: forwards;
        opacity: 0;
    }
    @keyframes gnaviAnime {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    /*リストのレイアウト設定*/
    #g-nav {
        margin-top: 20px;
    }
    #g-nav li {
        text-align: center;
        list-style: none;
    }
    #g-nav li a {
        color: #fff;
        text-decoration: none;
        padding: 0;/*15px*/
        display: block;

    }
    #layer #g-nav-list ul li a {
        color: #fff;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position:fixed;
        z-index: 9999;/*ボタンを最前面に*/
        top: 0;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        top: 0;
        right: 0;
        height: 2px;
        background-color: #fff;
        transition: 1s;
    }
    .is-animation .openbtn span {
        background-color: #696660;
        transition: 1s;
    }
    #layer .openbtn span {
        background-color: #696660;
    }
    .openbtn span:nth-of-type(1) {
        width: 80%;
        top: 18px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(1) {
        top: 15px;
    }
    .openbtn span:nth-of-type(2) {
        width: 70%;
        top: 28px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(2) {
        top: 25px;
    }
    .openbtn span:nth-of-type(3) {
        width: 60%;
        top: 38px;
        transition: 1s;
    }
    .is-animation .openbtn span:nth-of-type(3) {
        top: 35px;
    }
    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 80%;
    }
    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }
    .openbtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 80%;
    }

}


/******************************************************************************************** PC */
@media print, screen and (min-width: 981px) {

}
