@charset "UTF-8";

/* menu */
.menu{
  height: 80px;
    position: fixed;
    right: 10px;
    top: 10px;
    width: 88px;
    z-index: 99;
    background: rgba(0,0,0,0.7);
}
.menu.active{
  background: rgba(255,255,255,0.7);
}
.menu__line{
  background: #fff;
  display: block;
  height: 2px;
  position: absolute;
  transition:transform .3s;
  width: 40px;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
}
.menu__line--top{
    top: -28px;
}
.menu__line--bottom{
    bottom: -28px;
}
.active .menu__line{
  background: #000;
}
.active .menu__line--top{
  transform: rotate(45deg);
  top: 0;
}
.active .menu__line--center{
  transform:scaleX(0);
}
.active .menu__line--bottom{
  transform: rotate(135deg);
  bottom: 0;
}

/*gnav*/
.gnav{
    background: rgba(0,0,0,0.8);
    display: none;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 98;
}
.gnav__wrap{
    align-items:center;
    display: flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    width: 100%;
}
.gnav__menu{
  width: 100%;
  padding-right: 30%;
}
.gnav__menu__item{
  position: relative;
  padding: 3% 0 3% 15%;
  border-bottom: 3px solid #fff;
}
.gnav__menu__item:after {
    content: "";
    display: block;
    position: absolute;
    width: 6rem;
    height: 2rem;
    top: 88%;
    left: 103%;
    background: url(../images/chapter-menu-arrow.svg) center bottom no-repeat;
    background-size: contain;
}
.gnav__menu__item a{
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: .5s;
}
.gnav__menu__item a:hover{
    color: #666;
}
@media screen and (max-width:767px) {
  .menu{
    width: 66px;
    height: 58px;
  }
  .menu__line--top{
    top: -24px;
  }
  .menu__line--bottom{
    bottom: -24px;
  }
  .gnav__menu__item {
    height: 4.5rem;
    padding: 1% 0 1% 6%;
  }
  .gnav__menu li:first-child img {
    width: 35%;
  }
  .gnav__menu li:nth-child(2) img {
    width: 55%;
  }
  .gnav__menu li:nth-child(4) img {
    width: 55%;
  }
  .gnav__menu__item:after {
    width: 5rem;
    height: 1.5rem;
    top: 85%;
  }
}
