

@charset "utf-8";

body {
    background:  #f3f3f3;
}
/*========= ナビゲーションのためのCSS ===============*/

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

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

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

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

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

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

#g-nav li a {
	color: #333;
	text-decoration: none;
	padding: 10px;
	display: block;
	text-transform: uppercase;
    
	letter-spacing: 0.1em;
	font-weight: bold;
    white-space: nowrap;
}
/*先生の記述*/
/* .openbtn1 { */
    /* position: fixed; */
    /* z-index: 9999;/*ボタンを最前面に*/
    /* top: 10px; */
    /*right: 10px; */
    /* cursor: pointer; */
    /* width: 50px; */
    /* height: 50px; */
/* } */

/*==================================================
　5-2-4 MENUがCLOSEに
===================================*/

/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn1 {
	/*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
   display: block;
	position: fixed;
    z-index: 9999;/*ボタンを最前面に*/
    top: 10px;
    right: 10px;
	cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: #fff;
	border-radius: 50%;
}

/*ボタン内側*/
.openbtn1 span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: #666;
  	width: 45%;
  }


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

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

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

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

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

.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:4px;
	left:2px;
}

/*レイアウトのためのCSS*/
h1 {
    font-size: 1.2rem;
}
h1 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0 0 30px 0;
}
p {
    margin-top: 20px;
}
small {
    color: #fff;
    display: block;
    text-align: center;
}





@media screen and (max-width: 500px) {
    /*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn1 {
	/*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
    display: block;
	position: fixed;
    z-index: 9999;/*ボタンを最前面に*/
    top: 10px;
    right: 10px;
	cursor: pointer;
    width: 25px;
    height: 25px;
	border-radius: 50%;
}

/*ボタン内側*/
.openbtn1 span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 7px;
    height: 3px;
    border-radius: 1px;
  	width: 45%;
  }


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

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

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

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

/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/

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

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

.openbtn1.active span:nth-of-type(3) {
    top: 16px;
    left: 9px;
    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:3px;
	left:1px;
   
}

}
@media screen and (min-width: 768px) {
    .openbtn1 {
        display: none;
    }
    .openbtn1 span {
        display: none;
    }
    #g-nav {
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        transition: none;
    }
    #g-nav ul {
        position: static;
        transform: none;
        display: flex;
        justify-content: right;
    }
    #header li a {
        background: #fff;
    }
    #g-nav.panelactive #g-nav-list {
        height: auto;
    }
    #g-nav ul {
        padding-right: 30px;
    }
}
/*ページトップ*/
.scroll-top {
    /*表示位置*/
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 2;
    /*初めは非表示*/
    opacity: 0;
    visibility: hidden;
    transition: opasity .5s, visibility .5s;
    /*それぞれに0.5秒の変化アニメーション*/
    /*縦書き*/
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    /*改行禁止*/
    white-space: nowrap;
    /*矢印の動き*/
    animation: arrowmove 1s ease-in-out infinite;
}
@keyframes arrowmove {
    0%{bottom: 20px;}
    50%{bottom: 25px;}
    100%{bottom: 20px;}
}
/*.scroll-viewクラスがついたら出現*/
.scroll-top.scroll-view {
    opacity: 1;
    visibility: visible;
}

/*リンク全体のaタグの形状*/
.scroll-top a {
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
}

/*スクロールリンクの形状*/
.js-scroll a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 50px;
    background: #666;
}

.js-scroll a::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #666;
    transform: skewX(-31deg);
}

/*Edge IE11 hank*/
_:-ms-lang(x), .js-scroll a::before {
    right: -11px;
}

/*ページトップリンクの形状*/
.js-pagetop a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 60px;
    background: #666;
}


.js-pagetop a::before {
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #666;
    transform: skewX(31deg);
}

/*Edge IE11 hank*/
_:-ms-lang(x), .js-pagetop a::before {
    right: 0;
}