@charset "utf-8";

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

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

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

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

/*ナビゲーション*/
#g-nav ul {
  z-index: 999;
}

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

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

#g-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;  
  letter-spacing: 0.1em;  
}

.g-nav-inner {
  padding: 30px 10px 150px 10px;
}

.navigation-list li{
  text-align: start;
}

.navigation-list li a{
  width: 280px;
  padding: 20px 20px 20px 55px;  
}

.navigation-list li a:last-of-type{
  border-bottom: 2px dotted #B0B0B0;
}
.navigation-list .cat-item-2 a{
  border-top: 2px dotted #B0B0B0;
}

.navigation-link{
  width: 280px;
  margin: auto;
  margin-top: 30px;  
}


/* ハンバーガー　ここから */
.openbtn {
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: absolute;
  top: -98px;
  right: 6%;
  display: inline-block;
  z-index: 1000;
}


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

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

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

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

/*activeクラスが付与されると線が回転して×に*/

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

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
  /*真ん中の線は透過*/
}

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

/* ハンバーガー　ここまで */