nav {
  max-width: 100%;
}

.pc-nav {
  display: inline-block;
}

nav ul {
  display: flex;
  justify-content: flex-end;
}

nav ul li {
  display: flex;
  align-items: center;
  padding: 30px;
}

nav ul li a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* header nav */
header nav {
  position: fixed;
  z-index: 999;
}

header nav ul li a {
  font-size: 1.2rem;
  color: #8F6059;
  transition: all ease 0.1s;
}

header nav ul li a:hover {
  opacity: 0.8;

}

header nav ul li a span {
  position: relative;
  font-size: 1rem;
  font-weight: normal;
}

header nav ul li a span::after,
 header nav ul li a span::before {
  content: "";
  display: inline-block;
  position: absolute;
  height: 1.6px;
  width: 10px;
  background-color: #8F6059;
  border-radius: 15px;
}

header nav ul li a span::before {
  top: 50%;
  left: -10%;
  -webkit-transform: translateY(-50%);
  -webkit-transform: translateX(-100%);
  transform: translateY(-50%);
  transform: translateX(-100%);
}

header nav ul li a span::after {
  top: 50%;
  right: -10%;
  -webkit-transform: translateY(50%);
  -webkit-transform: translateX(100%);
  transform: translateY(50%);
  transform: translateX(100%);
}

header nav ul li:last-child {
  background-color: #8F6059;
  border-radius: 0 0 0 15px;
  margin-bottom: 10px;
  padding: 0px;
  transition: all ease 0.1s;
}

header nav ul li:last-child:hover {
  opacity: 0.9;
}

header nav ul li:last-child a{
  color: #ffffff;
  display: inline-block;
  padding: 30px;
  transition: all ease 0.1s;
}

header nav ul li:last-child a:hover{
  opacity: 1;
}

/* sp */
/*アクティブになったエリア*/
#g-nav.panelactive {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

/*丸の拡大*/
.circle-bg {
  position: fixed;
  z-index: 888;
  /*丸の形*/
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #8F6059;
  /*丸のスタート位置と形状*/
  transform: scale(3.5);
  /*scaleをはじめは0に*/
  right: -50px;
  top: -50px;
  transition: all .6s;
  /*0.6秒かけてアニメーション*/
  display: none;
}

.circle-bg.circleactive {
  transform: scale(50);
  /*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list {
  display: none;
  /*はじめは表示なし*/
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list {
  display: block;
  /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
  opacity: 0;
  /*はじめは透過0*/
  /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity: 1;
}

/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li {
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: .2s;
  /*0.2 秒遅らせて出現*/
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes gnaviAnime {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/*リストのレイアウト設定*/
#g-nav li {
  width: 15%;
  text-align: center;
  list-style: none;
  margin-right: 10px;
  padding: 0px;
}

#g-nav ul {
  width: 90%;
}

#g-nav li a {
  width: 100%;
  color: #8F6059;
  background-color: #fff;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: normal;
  padding: 30% 0;
  transition: all ease 0.1s;
}

#g-nav li a:hover {
  color: #fff;
  background-color: #000;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  /*ボタンを最前面に*/
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: none;
}

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

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

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

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

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  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: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.midle-logo {
  display: none;
}

@media screen and (max-width: 460px) {
  .pc-nav {
    display: none;
  }

  header nav ul {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  #g-nav li {
    width: 45%;
    margin-top: 10px;
    margin-right: 0px;
  }

  #g-nav li a {
    padding: 20% 0;
  }

  .circle-bg {
    display: inline-block;
  }

  .openbtn {
    display: inline-block;
  }
}