@charset "utf-8";

/*  ヘッダーレイアウト
====================================*/
.hid-header {
  display: block;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  transition: transform 0.2s;
  z-index: 100;
}
.hid-header ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hid-header a,
.hid-header a:hover,
.hid-header a:visited {
  color: #000;
  text-decoration: none;
}
.hid-header__contents {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 4em 1fr 4em;
  align-items: center;
}
.hid-header__contents > * {
  padding: 0 8px;
}
.hid-header__leftContainer {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}
.hid-header__logo {
  grid-row: 1;
  grid-column: 1;
  text-align: center;
  padding: 5px 0;
}

.hid-logo__image {
  max-width: 180px;
}
.fs-l-header--min {
  border-bottom: none;
}
.fs-l-header--min .hid-header__logo {
  padding: 30px 0;
}
.fs-l-header--min .hid-logo__image {
  max-width: 300px;
}

.hid-header__utility {
  display: none;
  grid-row: 1;
  grid-column: 3;
  align-self: stretch;
}
.hid-header__welcomeMsg, .hid-header__welcomeMsg.is-ready {
  display: none;
}
@media screen and (min-width: 768px) {
  .hid-header__welcomeMsg.is-ready {
    display: block;
  }
  .hid-header__contents {
    grid-template-rows: auto auto;
    grid-template-columns: 30% 35% 35%;
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
    padding: 16px 8px;
  }
  .hid-header__logo {
    grid-row: 1;
    grid-column: 1;
  }
  .hid-header__search {
    grid-column: 2 / 3;
    grid-row: 1;
  }
  .hid-header__utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .hid-header__utility *:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .hid-header__utility *:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
}

/*  ヘッダー utility
====================================*/
.hid-header__menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.hid-header__menu__item {
  position: relative;
  text-align: center;
}
.hid-header__link {
  display: block;
}
.hid-header__link__icon {
  height: 23px;
  margin-bottom: 2px;
}
.hid-header__link__title {
  font-size: 0.8em;
  margin: 0;
}
.hid-header__menu__item .fs-client-cart-count {
  position: absolute;
  top: -3px;
  right: 10px;
  background-color: #e44141;
  color: #fff;
  font-size: 0.74em;
  padding: 2px 3px;
  line-height: 1;
  border-radius: 50px;
  min-width: 1.4em;
  height: 1.4em;
  text-align: center;
}



/* メニュー開閉ボタンのスタイル */
.hid-header__utility .fs-pt-menu__heading--lv0 .fs-pt-menu__toggle {
  width: 100%;
}
.hid-header__utility .fs-pt-menu__heading--lv0 .fs-pt-menu__toggle::before {
  left: 95%;
}
.hid-header__utility .fs-pt-menu__heading {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}

.hid-header__utility .fs-pt-menu__link {
  display: block;
  padding: 7px 0;
  margin: 0;
}
.hid-header__utility .fs-pt-menu__link--lv0 {
  padding: 10px 10px;
}
.hid-header__utility .fs-pt-menu__link--lv1::after {
  display: none;
}


.hid-header__utility .fs-pt-menu__toggle {
  position: absolute;
  top: 50%;
  right: 0px;
  width: 30px;
  height: 100%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hid-header__utility .fs-pt-menu__toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translate(-50%, -75%) rotate(45deg);
  transition: transform 0.3s;
}

.hid-header__utility .fs-pt-menu__toggle.is-open::before {
  transform: translate(-50%, -25%) rotate(-135deg);
}

/* サブメニューの開閉アニメーション */
.hid-header__utility .fs-pt-menu--lv1,
.hid-header__utility .fs-pt-menu__submenu {
  display: none;
  overflow: hidden;
}

.hid-header__utility .fs-pt-menu--lv1.is-open,
.hid-header__utility .fs-pt-menu__submenu.is-open {
  display: block;
}

.hid-header__utility .mega-menu__content > .fs-pt-menu__item {
  margin: 0;
}
.hid-header__utility .mega-menu__content,
.hid-header__utility .fs-pt-menu__submenu {
  padding-left: 15px;
}


/*  ヘッダー search
====================================*/
.hid-header__search .fs-p-inputGroup {
  position: relative;
  display: flex;
  align-items: stretch;
  border: none;
  background: none;
}
.hid-header__search .fs-p-inputGroup__input {
  border: none;
  border-radius: 0;
  width: calc(100% - 3em);
  height: 40px;
  flex-grow: 1;
  background-color: #f3f3f3;
  padding: 10px 32px 10px 10px;
}
.hid-header__search .fs-p-searchForm__button {
  background: none;
  overflow: visible;
  position: relative;
  text-indent: 0;
  width: 2.2em;
  height: 40px;
  margin-left: -2.2em;
  display: flex;
  align-items: center;
}
.hid-header__search .fs-p-searchForm__button::before {
  content: "";
  display: none;
}

/*  future サジェストリンク
------------------------------*/
.hid-header__search .poplink {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
.hid-header__search div.poplink div.highlighted {
  color: #000000;
  background-color: #fff;
}


/*  ハンバーガーメニュー
====================================*/
.hid-drawer {
  margin-left: auto;
}
.hid-drawer__hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.hid-drawer__open {
  display: flex;
  width: 60px;
  height: 28px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
  /* 重なり順を一番上にする */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.hid-drawer__open span,
.hid-drawer__open span:before,
.hid-drawer__open span:after {
  content: "";
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.2s;
  position: absolute;
}
.hid-drawer__open span:before {
  bottom: 8px;
}
.hid-drawer__open span:after {
  top: 8px;
}
#hid-drawer_input:checked ~ .hid-drawer__open span {
  background: rgba(255, 255, 255, 0);
}
#hid-drawer_input:checked ~ .hid-drawer__open span::before {
  bottom: 0;
  transform: rotate(45deg);
}
#hid-drawer_input:checked ~ .hid-drawer__open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ハンバーガーメニューのバックドロップ */
.hid-drawer__backdrop {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background: hsl(45deg 0% 0% / 0.4);
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 98;
}

#hid-drawer_input:checked ~ .hid-drawer__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ハンバーガーメニューのコンテンツ */
.hid-drawer__content {
  width: 30vw;
  min-width: 260px;
  max-width: 300px;
  position: absolute;
  top: 120%;
  right: 0;
  left: auto;
  z-index: 99;
  background: #fff;
  border: solid 1px #000;
  transition: 0.2s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#hid-drawer_input:checked ~ .hid-drawer__content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hid-drawer__list__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 3px;
}
.hid-drawer__list__item.hid-drawer__list__item--accent {
  background-color: #000;
}
.hid-drawer__list__item + .hid-drawer__list__item {
  border-top: solid 1px #ccc;
}
.hid-drawer__list__item + .hid-drawer__list__item {
  border-top: solid 1px #ccc;
}
.hid-drawer__list__item > a,
.hid-drawer__list__item > span {
  display: flex;
  color: #000;
  padding: 10px 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  word-break: keep-all;
}
.hid-drawer__list__item.hid-drawer__list__item--accent a {
  color: #fff;
}
.hid-drawer__list__icon img {
  height: 2.5ch;
  vertical-align: bottom;
}


/*  ヘッダーナビゲーション
====================================*/
.hid-headerNavBar {
  position: relative;
}
.hid-headerNavigation {
  width: 100%;
  max-width: 1216px;
  padding: 0 8px;
  margin: 0 auto;
}
.hid-header .hid-headerNavigation__list {
  display: flex;
  gap: 0 6%;
  padding-left: 2vw;
}
.hid-headerNavigation__link {
  font-size: 1.3em;
  padding: 5px 0;
  display: block;
}
.mega-menu {
  display: flex;
  align-items: center;
  height: 100%;
}
.mega-menu__arrow {
  position: relative;
  width: 1em;
  margin: 0 0.3em;
  aspect-ratio: 1 / 1;
  display: inline-block;
  vertical-align: middle;
}
.mega-menu__arrow::after {
  --size: 50%;
  --borderWidth: 1px;
  --borderColor: currentColor;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: auto;
  transform: translateY(-100%) rotate(135deg);
  display: block;
  width: var(--size);
  height: var(--size);
  border-style: solid;
  border-width: var(--borderWidth) var(--borderWidth) 0 0;
  border-color: var(--borderColor) var(--borderColor) transparent transparent;
  transition: transform 0.1s;
}
.mega-menu:hover .mega-menu__arrow::after {
  transform: translateY(-40%) rotate(-45deg);
}

.hid-headerNavigation .fs-pt-menu__link {
  margin: 0;
  padding: 2px;
}

.mega-menu__child {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  overflow-y: auto;
  padding: 15px 10px;
  background-color: #fff;
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #000;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.05);
  z-index: 99;
}

.mega-menu:hover>.mega-menu__child {
  display: block;
}

.mega-menu__child>ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mega-menu__child .mega-menu__content {
  display: block;
  column-count: 3;
  width: 100%;
  max-width: 1140px;
  padding: 0 8px;
  margin: 0 auto;
}
.mega-menu__child .fs-pt-menu__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-menu__content > .fs-pt-menu__item {
  margin: 15px 0;
  break-inside: avoid;
}
.mega-menu__content > .fs-pt-menu__item:first-of-type {
  margin: 0;
}
.mega-menu__child .fs-pt-menu__submenu {
  padding-left: 1.2em;
}

.hid-headerNavBar__login.is-loggedIn--true {
  display: none;
}
.hid-headerNavBar__logout.is-loggedIn--false {
  display: none;
}


/*  ヘッダーメッセージ
====================================*/
.hid-headerMessage {
  background-color: #f3f3f3;
}
.hid-headerMessage__text {
  margin: 0;
  padding: 5px 0;
  text-align: center;
}
