@charset "UTF-8";
/* -------------------------------------
header
------------------------------------- */
header {
  display: flex;
  flex-direction: column;
  width: 18.75vw;
  max-width: 300px;
  min-width: 200px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  z-index: 999;
}
.header__wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 84%;
  max-width: 250px;
  margin: 0 auto;
  /* padding-top: 80px; */
  padding-top: 27%;
}
.header__logo {
  width: 68%;
  max-width: 170px;
  min-width: 120px;
  margin-bottom: 17%;
  margin-left: 14%;
  position: relative;
  z-index: 90;
}
.ham {
  display: none;
}
.header__nav {
  flex: 1;
  min-height: 0;
  display: flex;
}
.header__nav #gnav {
  /* 980px */
  font-size: clamp(17px, 1.73vw, 20px);
  line-height: 1.2;
  position: relative;
  height: 100%;
  padding: 2em 1.25vw;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.header__nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  max-height: 23em;
  min-height: 0;
  margin-bottom: 2em;
  overflow-y: auto;
}
.header__nav-item {
  width: 100%;
  max-width: 110px;
  padding-left: 5px;
}
.header__nav-item span {
  display: block;
  padding-bottom: 0.3em;
  position: relative;
}
.header__nav-item span:after {
  content: "";
  width: 0;
  height: 1px;
  background-color: #43342c;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 0.2s;
}
.header__nav-item.np a span:after,
.header__nav-item a:hover span:after {
  width: 1.5em;
}
.header__nav-aside {
  width: 100%;
  max-width: 170px;
  margin: 0 0 0 auto;
  flex-shrink: 0;
}
.header__nav-aside .h_shopbtn {
  font-size: 90%;
  color: #fff;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  width: 100%;
  height: 2.22em;
  background-color: rgb(147, 180, 39);
  border-radius: 20px;
  margin-bottom: 2.8em;
  transition: 0.2s;
}
.header__nav-aside .h_shopbtn::after {
  content: "";
  width: 1em;
  height: 19px;
  background: url(../imgs/common/cart_wh.svg) no-repeat center / contain;
  transition: 0.2s;
}
.header__nav-aside .h_shopbtn:hover {
  color: #94b428;
  background-color: rgba(147, 180, 39, 0.5);
}
.header__nav-aside .h_shopbtn:hover::after {
  background: url(../imgs/common/cart_gr.svg) no-repeat center / contain;
}
.header__nav-aside .h_Ig {
  max-width: 2em;
  margin-left: 5%;
  transition: 0.2s;
}
.header__nav-aside .h_Ig:hover {
  opacity: 0.7;
}
/* =============================
   ハンバーガー（SP）
============================= */
@media screen and (max-width: 768px) {
  header {
    width: 100%;
    max-width: initial;
    height: 76px;
    position: fixed;
  }
  .header__wrapper {
    width: 100%;
    max-width: initial;
    padding-top: 0;
  }
  .header__logo {
    /* width: 120px; */
    width: 70px;
    min-width: initial;
    margin: 10px 0 0 4vw;
  }
  /* ハンバーガー表示 */
  .ham {
    display: block;
    position: fixed;
    top: 24px;
    right: 4vw;
    width: 32px;
    height: 24px;
    z-index: 1001;
    cursor: pointer;
  }
  .ham span {
    display: block;
    width: 100%;
    height: 2px;
    background: #43342c;
    position: absolute;
    left: 0;
    transition: 0.3s;
  }
  .ham span:nth-child(1) {
    top: 0;
  }
  .ham span:nth-child(2) {
    top: 11px;
  }
  .ham span:nth-child(3) {
    bottom: 0;
  }

  /* メニュー全体 */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    transition: 0.4s;
    padding-top: 100px;
    z-index: 10;
  }
  .header__nav #gnav {
    height: calc(100svh - 120px);
    padding: 1em 1.25vw 2em;
  }

  /* 開いた状態 */
  body.open .header__nav {
    right: 0;
  }

  /* ×ボタン */
  body.open .ham span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
  }
  body.open .ham span:nth-child(2) {
    opacity: 0;
  }
  body.open .ham span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
  }

  /* メニュー中央寄せ */
  .header__nav-list {
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
  }
  .header__nav-aside .h_shopbtn {
    margin-bottom: 2em;
  }
  .header__nav-aside,
  .header__nav-aside .h_Ig {
    margin: 0 auto;
  }
}
