@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top:0;
    right: -120%;
    width:100%;
    height: 100vh;/*ナビの高さ*/
    background:#111;
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*リストのレイアウト設定*/

#g-nav li{
    list-style: none;
    text-align: center;
}

#g-nav li a{
    position: relative;
    color: #FFF;
    text-decoration: none;
    padding:10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.kasen::after {
    position: absolute;
    bottom: 1px;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: #FFF;
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -ms-transform-origin: top right;
    transform-origin: top right;
    transition: transform 0.2s;
}
.kasen:hover::after {
    transform: scale(1, 1);
}

/*========= ボタンのためのCSS ===============*/
.openbtn1{
    position:fixed;
    background: #111;
    z-index: 9999;/*ボタンを最前面に*/
    top:15px;
    right: 15px;
    cursor: pointer;
    width: 60px;
    height:60px;
    border-radius: 5px;
}

/*×に変化*/
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 17px;
    height: 2px;
    border-radius: 5px;
    background-color: #FFF;
    width: 45%;
}

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

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

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

.openbtn1 span:nth-of-type(3)::after {
    content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
    position: absolute;
    top:7px;
    left:-2px;
    color: #FFF;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.openbtn1.active span:nth-of-type(1) {
    top: 14px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

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

.openbtn1.active span:nth-of-type(3){
    top: 26px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(3)::after {
    content:"Close";/*3つ目の要素のafterにClose表示を指定*/
    transform: translateY(0) rotate(-45deg);
    top:7px;
    left:4px;
}



/*========= レイアウトのためのCSS ===============*/

small{
    color:#fff;
    display: block;
    padding-top: 20px;
}

#footer{
    background:#111;
    padding:20px;
    height: auto;
}

.up{
}

