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

#g-nav {
  position: fixed;
  z-index: -1;
  opacity: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gray-900);
  transition: all 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  visibility: hidden;
}

#g-nav.panelactive {
  opacity: 1;
  z-index: 9000;
  display: flex;
  margin-left: 20vw;
  pointer-events: auto;
  visibility: visible;
  padding: 20px;
  width: 80vw;
  align-items: center;
}

#g-nav.panelactive #g-nav-list {
  z-index: 999;
  width: 90vw;
  overflow: auto;
  display: flex;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
}

#g-nav ul {
  display: none;
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#g-nav.panelactive ul {
  display: block;
}

#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;
}

.menu_hum_wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.menu_hum_wrap p {
  position: absolute;
  font-size: 11px;
  bottom: 3px;
  left: 9px;
  color: var(--applecomnero);
}

.openbtn {
  position: relative;
  z-index: 9999;
  cursor: pointer;
  width: 70px;
  height: 50px;
}

.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background-color: #9f212d;
  width: 55%;
}

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

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

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

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

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

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