@charset "utf-8";

/* hamburger btn open時*/
.sp {
  display: none;
  margin-top: 20px;
  letter-spacing: 0.2rem;
}

.sp.toback {
  display: block;
}

/*========= ナビゲーションのためのCSS ===============*/

.f-content {
  display: flex;
}

#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 9;
  /*ナビのスタート位置と形状*/
  top: 0;
  left: -120%;
  width: 100%;
  height: 100vh;
  /*ナビの高さ*/
  background: #333333de;

  /*動き*/
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  left: 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%);
  text-align: left;
}

/*リストのレイアウト設定*/
#g-nav li {
  font-family: "Zen Kaku Gothic New", sans-serif;
  list-style: none;
  margin-bottom: 60px;
  display: inline-block;
  padding: 15px 15px 30px 15px;
}

#g-nav li a {
  position: relative;
  color: #fff;
  text-decoration: none;

  padding: 20px;
  width: 150px;

  display: inline-block;
  align-items: start;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 18px;
  transition: all 0.3s;
  /* background-color: #fff; */
}

#g-nav a::before {
  position: absolute;
  content: attr(ja-nav);
  bottom: -10px;

  opacity: 0.5;

  font-size: 14px;
  padding: 0 0 10px 0;
}

#g-nav li a:hover {
  color: #373737;
  transform: translateY(-10px);
  opacity: 0.6;
  background-color: #ffffffc9;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1 {
  position: fixed;
  z-index: 9999;
  /*ボタンを最前面に*/
  top: 10px;
  right: 20px;
  cursor: pointer;
  width: 60px;
  height: 60px;
  padding: 10px;
  text-align: center;
  margin: 0 auto;
}

.openbtn1.active {
  background-color: #ffffffa6;
  transition: all 0.3s;
}

.openbtn1.active:hover {
  border-radius: 50%;
}

/*3本から２本へ変化*/
.openbtn1 span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 0px;
  height: 3px;
  border-radius: 2px;
  background-color: #666;
  width: 100%;
}

.openbtn1 span:nth-of-type(1) {
  top: 20px;
}

.openbtn1 span:nth-of-type(2) {
  top: 40px;
}

.openbtn1.active span:nth-of-type(1) {
  top: 18px;
  left: 0px;
  transform: translateY(6px);
  width: 100%;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}

@media (max-width: 880px) {
  .f-content {
    /* display: flex; */
    flex-direction: column;
  }

  #g-nav ul {
    display: flex;
  }

  #g-nav ul li {
    margin-bottom: 5px;
  }
  #g-nav li {
    padding: 5px;
  }
}

@media (max-width: 450px) {
  #g-nav li a {
    font-size: 16px;
    padding: 10px;
  }
  #g-nav li a::before {
    font-size: 12px;
  }
}
