@charset "utf-8";

/* ==================================
 ヘッダー 全体（PC・スマホ）
================================== */
@media only screen and (min-width: 751px) and (max-width: 1024px) {
  .pc { display: none !important; }
  .sp { display: block !important; }
}

.fs-l-header {
  padding: 0;
}

.header {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 910;
  background: white;
}

.header .headerInner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 24% 3% 3% 3% 3%;
  column-gap: 2%;
  padding: 0 15%;
  align-items: center;
  height: 50px;
  background: #ffffff;
}

@media screen and (max-width:1024px) {
  .header {
    height: 50px;
  }

  .header .headerInner {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4% 4% 1fr 4% 4%;
    column-gap: 5%;
    padding: 0 15px;
    align-items: center;
    height: 50px;
    background: #fff;
  }
}

@media screen and (max-width:768px) {
  .header .headerInner {
    grid-template-columns: 8% 8% 1fr 8% 8%;
  }
}

/* ヘッダー ロゴ（PC・スマホ）
 ----------------------------------------------------*/
.header .logo {
  max-width: 100px;
    width: 80px;
  display: block;
  margin: 15px auto 15px;
  padding: 0;
  line-height: 0;
}

.header .logo a {
  width: 100%;
  display: inline-block;
}

.header .logo object {
  margin: 0;
  padding: 0;
  vertical-align: middle;
  pointer-events: none;
}

.header .logo object,
.header .logo sgv {
  width: 100% !important;
  height: auto;
  margin: 0;
  display: block;
  object-fit: contain;
}

@media screen and (max-width:1024px){
  .header .logo {
    width: 100%;
    margin: 0 auto;
  }

  .header .logo a {
    width: 84%;
    margin: 0 auto;
    display: block;
  }
}

/* ヘッダー 検索ボタン（PC・スマホ）
-------------------------------------*/
.header .searchIcon {
  max-width: 22px;
}

.header .searchIcon button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* ヘッダー お気に入りボタン（PC・スマホ）
-------------------------------------*/
.header .wishIcon {
  max-width: 22px;
}

/* ヘッダー カートボタン（PC・スマホ）
-------------------------------------*/
.header .cartIcon {
  max-width: 24px;
  position: relative;
}

.header .cartIcon span.fs-client-cart-count {
  position: absolute;
  background: #3c3c3c;
  color: #fff;
  text-align: center;
  font-size: 12px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  top: -7px;
  right: -10px;
}

/* 検索フォーム開閉（PC・スマホ）
-------------------------------------*/

/* .search_panel {
  position: fixed;
  top: 134px;
  width: 100%;
  background: #fbfbfb;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  z-index: 900;
  transform: translateX(0);
  overflow-y: scroll;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
} */

.search_panel {
  position: fixed;
  top: 134px;
  left: 0;
  right: 0;
  width: 55%;
  margin: 0 auto;
  background: #fbfbfb;
  overflow-y: auto;
  max-height: 0; /* 初期状態：閉じてる */
  transition: max-height 0.2s ease;
  z-index: 900;
}



.search_panel.active {
  max-height: 70vh;
}

.search-form {
  height: 80vh; /* ← 親と同じ高さにする */
  min-height: 80vh;
  box-sizing: border-box;
}

/* 背景の暗いオーバーレイ */
.search_overlay {
  position: fixed;
  top: 0; /* 検索フォームの下から */
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 800;
}

.search_overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width:1024px){
 .search_panel {
  top: 80px;
  width: auto;
 }
 .search_overlay {
  top: calc(80px + 70vh); /* 検索フォームの下から */
  height: calc(100vh - (80px + 70vh));
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
 }
}

/* 検索フォーム FSデフォルトのCSSを無効に（PC・スマホ）
 -------------------------------------*/
.search_panel .fs-p-productSearch {
  top: auto !important;
  padding: 0;
  background: none;
}
.search_panel .fs-p-productSearch__search {
  max-height: 100%;
  padding: 0;
}
.search_panel .fs-p-productSearch__form {
  transform: none; 
  padding: 0;
  box-shadow: none;
  /*background: none;*/
}
.search_panel .fs-p-productSearch__field {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 20px 0;
}

@media screen and (max-width:1024px){
 .search_panel .fs-p-productSearch {
  width: 100% !important;
 }
 .search_panel .fs-p-productSearch__field {
  width: 90%;
 }
}

/* ヘッダー 検索窓（PC）
 -------------------------------------*/
 .header .fs-p-searchForm {
  width: 100%;
}

.header .fs-p-inputGroup {
  border: none;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 50px;
  border: solid 1px #aaaaaa;
}

.header .fs-p-inputGroup input {
  background: none;
  padding: 0;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border: none;
}

.header .fs-p-inputGroup__button {
  background: none;
}

.header .fs-p-searchForm__button::before {
  content: "";
  background: url(https://isook.itembox.design/item/sarch.png)no-repeat;
  width: 17px;
  height: 17px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

/* ヘッダー hoverメニュー（PC）
-------------------------------------*/
.header .itemMenu {
  height: 100%;
}

.header .itemMenu a {
  color: inherit;
  display: block;
  width: 100%;
}

.header .itemMenu a:hover {
  opacity: .6;
}

.header .itemMenu a.redText {
  color: #cf2929;
}

.header .itemMenu ul.itemMenuMain {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  height: 100%;
  width: 90%;
}

.header .itemMenu ul.itemMenuMain li {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header .itemMenu ul.itemMenuMain li ul.itemMenuSub {
  position: absolute;
  left: -25px;
  z-index: 10;
  width: 200px;
  height: auto;
  display: none;
  background-color: rgb(255 255 255 / 95%);
  top: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header .itemMenu ul.itemMenuMain li:hover ul.itemMenuSub {
  display: block;
  padding: 25px;
}

.header .itemMenu ul.itemMenuMain li ul.itemMenuSub li {
  padding-top: 20px;
}

.header .itemMenu ul.itemMenuMain li ul.itemMenuSub li:first-child {
  color: #666;
  font-size: 1.2rem;
  border-bottom: 1px solid #9b9b9a;
  padding-bottom: 10px;
}

/* ヘッダー マイページボタン（PC）
-------------------------------------*/
.header .mypageIcon {
  max-width: 18px;
}


/* ハンバーガーメニュー内検索窓（スマホ）
 -------------------------------------*/
#spMenu .fs-p-searchForm {
  width: 100%;
  margin: 20px auto 0;
  padding: 0 20px;
}

#spMenu .fs-p-inputGroup {
  border: none;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  background: none;
  border-radius: 0;
}

#spMenu .fs-p-inputGroup input {
  background: none;
  padding: 0;
  font-size: 16px;
  letter-spacing: 0.1em;
}

#spMenu .fs-p-inputGroup__button {
  background: none;
}

#spMenu .fs-p-searchForm__button::before {
  content: "";
  background: url(https://isook.itembox.design/item/sarch.png)no-repeat;
  width: 20px;
  height: 20px;
      background-size: cover;
}

/* ハンバーガーメニューボタン（スマホ）
 -------------------------------------*/
 #spIcon {
  z-index: 3000;
 }

.menuBtn {
  width: 27px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menuBtn span {
  display: block;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
}

.menuBtn.active {
  position: absolute;
  top: -5px;
}

/* バツ印アニメーション */
.menuBtn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menuBtn.active span:nth-child(2) {
  opacity: 0;
}
.menuBtn.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* オーバーレイ */
.menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 背景の暗さ */
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 2000;
  display: flex;
  justify-content: flex-start; /* ← 左からスライド */
}

/* メニュー本体（左からスライド） */
.sp_menu {
  width: 90%;
  /* max-width: 300px; */
  height: 100%;
  background: #fff;
  padding: 0;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  transition: 0.3s ease;
  overflow-y: scroll;
  color: #3c3c3c;
}

.sp_menu ul {
  list-style: none;
  padding: 0;
  justify-content: center;
  background: #ccc;
}
.sp_menu li {
  margin: 0;
}
.sp_menu a {
  text-decoration: none;
  font-size: 20px;
  color: #000000;
}

.sp_menu button {
  color: #000000;
}

/* 開いた状態 */
.menu_overlay.active {
  visibility: visible;
  opacity: 1;
}
.menu_overlay.active .sp_menu {
  transform: translateX(0);
}

/* ハンバーガーメニューを開いたらページ本体（背景）のbodyを固定
-------------------------------------*/
body.fixed {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ハンバーガーメニュー内ロゴ
-------------------------------------*/
#spMenu .logo_fix {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 20px 0 20px;
}

/* ハンバーガーメニュー内ログインログアウト（スマホ）
 -------------------------------------*/
#spMenu .fs-clientInfo {
  width: 100%;
  margin: 0 auto 10px;
  padding: 20px 20px 0;
}

#spMenu .fs-clientInfo .fs-p-welcomeMsg {
  font-size: 12px;
}

#spMenu .fs-clientInfo .fs-p-memberInfo {
  font-size: 12px;
}

#spMenu .fs-clientInfo .fs-p-memberInfo span {
  font-size: 12px;
}

.fs-p-drawer__loginLogout__logout,
.fs-p-drawer__loginLogout__login {
  display: flex;
}

#spMenu .fs-p-drawer__loginLogout__logout,
#spMenu .fs-p-drawer__loginLogout__login {
  border: 1px solid #999;
  border-radius: 0;
  padding: 0;
  font-size: 16px;
  color: #000;
  height: 44px !important;
  background: none;
}

#spMenu .fs-p-drawer__loginLogout__logout::before,
#spMenu .fs-p-drawer__loginLogout__login::before {
  content: "";
  background: url(https://isook.itembox.design/item/member.png) no-repeat;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-size: cover;
}

#spMenu .fs-p-drawer__loginLogout__logout:hover,
#spMenu .fs-p-drawer__loginLogout__login:hover {
  background: none;
}

/* ハンバーガーメニュー内閲覧履歴（スマホ）
 -------------------------------------*/
.sp_menu_history > div:first-child {
  margin: 0 !important; /* 自動的に付くmarginを外す */
}

.sp_menu_history #_rcmdjp_display_1 {
  padding: 10px 0;
}

.sp_menu_history .fr2-carousel .rcmd-slick-prev {
  left: 0 !important;
}

.sp_menu_history .fr2-carousel .rcmd-slick-next {
  right: 0 !important;
}

/* ハンバーガーメニュー内 お気に入りボタン（スマホ）
 -------------------------------------*/
#spMenu .wishlist {
  padding: 0 20px;
  margin-bottom: 20px;
}

#spMenu .wishlist a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 44px;
  text-decoration: none;
  border: 1px solid #999;
  border-radius: 0;
  padding: 0;
  font-size: 16px;
  color: #000;
}

#spMenu .wishlist a::before {
  content: "";
  background: url(https://isook.itembox.design/item/heart.png) no-repeat;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-size: cover;
}

/* ハンバーガーメニュー内 カテゴリーから探す（スマホ）
 -------------------------------------*/
#spMenu .searchItem p.menuTitle,
.sp_menu_history .menuTitle {
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-align: center;
  background: #000;
  padding: 8px;
  margin: 0;
}

#spMenu .searchItem .acdBlock .acd-button,
#spMenu .searchItem .direct-content a {
  display: block;
  padding: 10px;
  position: relative;
  padding: 12px 15px;
  border: none;
  background: none;
  border-bottom: 1px solid #d9d9d9;
  font-size: 16px;
  width: 100%;
  text-align: left;
}

#spMenu .searchItem .direct-content a p {
  margin: 0;
  color: #000000;
}

#spMenu .searchItem .direct-content a.redText p {
    color: #dc143c;
}

/* 矢印↓↓ */
#spMenu .searchItem .direct-content a::after,
#spMenu .searchItem .direct-content a::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 18px;
  width: 6px;
  height: 1px;
  border-radius: 9999px;
  background-color: #000000;
  transform-origin: calc(100% - 0.5px) 50%;
}

#spMenu .searchItem .direct-content a::after {
  transform: rotate(-45deg);
}

#spMenu .searchItem .direct-content a::before {
  transform: rotate(45deg);
}
/* 矢印↑↑ */

#spMenu .searchItem .acdBlock .acd-button:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 0.5px;
  top: 50%;
  right: 15px;
  background: #000;
  transform: translateY(-50%);
}

#spMenu .searchItem .acdBlock .acd-button:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 10px;
  height: 0.5px;
  background: #000;
  transition: .2s;
  transform: translateY(-50%) rotate(90deg);
}

#spMenu .searchItem .acdBlock>input:checked+label::after {
  transform: translateY(-50%) rotate(180deg);
}

#spMenu .searchItem .acdBlock .acd-check:checked+.acd-button+.acd-content {
  max-height: 500px;
  /* 予測される最大高さ */
  opacity: 1;
}

#spMenu .searchItem .acdBlock .acd-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#spMenu .searchItem .acdBlock .acd-content ul {
  margin: 0;
  padding: 10px 10%;
}

#spMenu .searchItem .acdBlock .acd-content li a {
  display: flex;
  align-items: center;
  font-size: 15px;
  position: relative;
  color: #000000;
}

#spMenu .searchItem .acdBlock .acd-content li a::after {
  width: 13px;
  height: 13px;
  margin: auto;
  padding: 0;
  display: block;
  position: absolute;
  top: 0;
  right: 30px;
  z-index: 1;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background: url() no-repeat;
  background-size: contain;
}

#spMenu .searchItem .acdBlock .acd-content li a img {
  width: 10%;
  max-width: 30px;
  margin-right: 15px;
}

/* ハンバーガーメニュー内インフォメーション（スマホ）
 -------------------------------------*/
#spMenu .infomation {
  background: #000;
  padding: 20px;
}

#spMenu .infomation ul {
  display: block;
  padding: 0;
  background: #000;
}

#spMenu .infomation li {
  text-align: center;
  margin-bottom: 10px;
}

#spMenu .infomation li a {
  color: #fff;
  font-size: 12px;
}

/* ハンバーガーメニュー内SNSリンク（スマホ）
 -------------------------------------*/
#spMenu ul.sns-link {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
  background: #000;
}
