/*========================================
トグルナビゲーションのCSS
========================================*/

.header {
  position: relative;
  /*padding: 0px;*/
}


.hamburger {
  /*position: fixed;*/
  position: absolute;
  top: 5px;
  right: 0px;
  z-index: 100;
  width: 62px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ハンバーガーメニュー三本ライン 色dd6666 */
.hamburger__line{
  position: absolute;
  right: 20px;
  width: 26px;
  height: 3px;
  background-color: #cc9966;
  transition: all .4s;
}


/* ハンバーガーメニュー下の文字 色dd6666 */
.hamburger:after{
    display: block;
    content: "カテゴリー";
    font-size: 10px;
    font-weight: bold;
    /*text-align:justify;*/
    text-align:right;
    color: #cc9966;
    margin-top: 37px;
}


.hamburger__line:nth-of-type(1) {
  top: 14px;
}
.hamburger__line:nth-of-type(2) {
  top: 23px;
}
.hamburger__line:nth-of-type(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.5);; 
  backdrop-filter: blur(20px);
  box-shadow: 2px 0 4px rgba(0,0,0,.1);
  transform: translateX(-100%);
  transition: transform .4s;
  z-index: 90;
  overflow-y: scroll;
}

.nav.active {
  transform: translateX(0);
}

.nav__list {
  margin: 0;
  padding: 10px 0 0 0;
  list-style: none;
}

.nav__item {
  padding: 0 15px;
  font-size:18px;
}

.nav__link {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

.nav__item__sub {
  padding: 0 10px;
  font-size:14px;
}

.nav__link__sub {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}


