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

.button {position:absolute; display: flex; align-items:center; right: 10px; color: #fff;}
.button a{margin-right:20px;font-family: 'Bebas Neue', cursive;font-size: 1.2rem; color:#fff;letter-spacing: 0.1rem;}
.button a:hover{text-decoration: none;color:#666;}


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

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


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

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

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

.openbtn p {
	content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
	position: absolute;
	top:31px;
	left:12px;
	color: #000;
	font-size: 0.6rem;
	text-transform: uppercase;
}

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

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

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

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









/*----------------------------
* メニュー本体
*----------------------------*/
.menu{
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #212529;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
}
.menu-column{max-width:700px; width:80%; display: flex; flex-wrap: wrap;
  align-items: center;
  justify-content: center;}

.menu__item{
	display: flex;
  width: 200px;
  height: auto;
  padding: 0.2em 2em;	
  justify-content: center;
  color: #fff;
  box-sizing: border-box;
}
.menu__item a{color: #FFF;}
.menu__item a:hover{color: #999; text-decoration: none;}

.SNS{display: flex;flex-wrap: wrap; justify-content: center; width:80%; margin-top: 0.5em;}
.SNS img{width:50px;margin: 0.2em;}

/*----------------------------
* アニメーション部分
*----------------------------*/

/* アニメーション前のメニューの状態 */
.menu{
  transform: translateX(100vw);
  transition: all .3s linear;
}
/* アニメーション後のメニューの状態 */
.menu.is-active{
  transform: translateX(0);
}





