@charset "utf-8";

:root {
  --text-base-black: #333;
  --text-light: #999;
  --text-pale: #888;
  --font-size-l: 15px;
  --sale: #ED143D;
}

/* catalogList */
.catalogList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
}
.catalogList_item {
  position: relative;
  width: calc(calc(100% - 2px) / 3);
  box-sizing: content-box;
}
.catalogList:before,
.catalogList:after {
  display: inline-block;
  content: "";
  width: calc(calc(100% - 2px) / 3);
  order: 100;
}
.catalogList_item a {
  display: block;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.catalogList .product-text .brandName {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.view-history .catalog_contents .product-text{
  margin-top: -17px;
}
.catalogList .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  background-color: #fefefe;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}
.catalogList .product-image>img {
  display: block;
  width: 100%;
  max-width: initial;
  height: auto;
}
.catalogList .product-image:before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  background-color: rgba(0, 0, 0, .02);
  position: absolute;
  top: 0;
  left: 0;
}
.product-text .special_price .-proper{
  display:none;
}
/* === 検索履歴 === */
#viewHistory_searchHistoryList {
  margin-bottom: 40px;
  border-top: 1px solid #eee;
  opacity: 1;
  transition: 300ms;
}
#viewHistory_searchHistoryList .indexItem {
  line-height: 1.5;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
#viewHistory_searchHistoryList .indexItem a {
  display: block;
  text-decoration: none;
}
#viewHistory_searchHistoryList .indexItemContent {
  padding: 13px 12px 13px 18px;
}
#viewHistory_searchHistoryList .indexItemHeading {
  font-size: 14px;
  color: #333;
  word-break: break-all;
}
#searchHistory .indexItemHeading .displayAll {
  font-size: 11px;
  margin-left: .5em;
}

/* 検索履歴タブ */
.catalog.view-history .tabList {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e6e6e6;
}
.catalog.view-history .tab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 48px;
  background-color: #f6f6f6;
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  box-sizing: border-box;
}
.catalog.view-history .tab:last-child {
  border-right: none;
}
.catalog.view-history .tab.is-active {
  background-color: #fff;
  border-bottom: none;
}
.catalog.view-history .tab span {
  display: inline-block;
  font-size: 15px;
  color: #333;
  opacity: .6;
}
.catalog.view-history .tab.is-active span {
  opacity: 1;
}

/* tabContent */
.catalog.view-history .tabContentList {
  position: relative;
}
.catalog.view-history .tabContent {
  opacity: 0;
  visibility: hidden;
  transition-duration: .2s;
  position: absolute;
  top: 0;
}
.catalog.view-history .tabContent.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
#viewHistory .wrap_editBtn,
#searchHistory .wrap_editBtn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  margin: .5em 0;
}
#viewHistory.is-edit .wrap_editBtn,
#searchHistory.is-edit .wrap_editBtn {
  justify-content: space-between;
}
#viewHistory .editBtn,
#viewHistory .clearBtn,
#searchHistory .editBtn,
#searchHistory .clearBtn {
  display: inline-block;
  padding: .5em .8em;
  font-size: 13px;
  color: #fa7046;
  background-color: #f2f2f2;
  border-radius: 2px;
}
#viewHistory.is-edit .editBtn,
#searchHistory.is-edit .editBtn {
  color: #fff;
  background-color: #333;
}
#viewHistory.is-edit .clearBtn,
#searchHistory.is-edit .clearBtn {
  color: #666;
  background-color: #f2f2f2;
}
#viewHistory .clearBtn,
#searchHistory .clearBtn {
  display: none;
}
.catalog.view-history #viewHistory {
  margin-top: 0;
}

/* コンテンツが無い時 */
.catalog.view-history .text-noContent {
  display: none;
  margin: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

/* 編集時 */
#viewHistory .indexItemContent,
#searchHistory .indexItemContent {
  transition-duration: .2s;
}
#viewHistory.is-edit .indexItemContent,
#searchHistory.is-edit .indexItemContent {
  transform: translateX(40px);
}
#viewHistory.is-edit .catalogList_item
#searchHistory.is-edit .indexItem {
  position: relative;
  overflow: hidden;
}
#viewHistory .deleteBtn,
#searchHistory .deleteBtn {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease-out;
}
#viewHistory.is-edit .deleteBtn,
#searchHistory.is-edit .deleteBtn {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background-color: #777;
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translate(0%, -50%);
  opacity: 1;
  visibility: visible;
}
#viewHistory.is-edit .deleteBtn {
  top: 18px;
  right: 4px;
  left: auto;
  z-index: 10;
}
#viewHistory .deleteBtn:before,
#viewHistory .deleteBtn:after,
#searchHistory .deleteBtn:before,
#searchHistory .deleteBtn:after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
}
#viewHistory .deleteBtn:before,
#searchHistory .deleteBtn:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#viewHistory .deleteBtn:after,
#searchHistory .deleteBtn:after {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* 履歴を消去 */
#viewHistory.is-edit .clearBtn,
#searchHistory.is-edit .clearBtn {
  display: block;
}
.viewHistoryList.is-clear,
#viewHistory_searchHistoryList.is-clear {
  opacity: .1;
}

/* リンクエリア */
#searchHistory.is-edit .indexItem a {
  pointer-events: none;
}
#searchHistory.is-edit .indexItemContent {
  opacity: .6;
}
.view-history .catalogList .product-image {
  margin-bottom: 0px;
}
/* 在庫なし */
.catalogList_item.-outOfStock .product-text::after {
  content: "在庫なし";
  width: 100%;
}
.catalog.view-history .tabContent {
  display: none;
}
.catalog.view-history .tabContent.is-active {
  display: block;
}
/* スマートアップバナー非表示 */
#anime_sab {
  display: none !important;
}

@media (min-width: 768px) {
  .view-history .tabList li,
  .view-history .editBtn,
  .view-history .clearBtn,
  .view-history .deleteBtn {
    cursor: pointer;
  }
  /* レコメンド catalogList */
  .view-history .catalogList{
    display:flex;
    flex-wrap:wrap;
    justify-content: flex-start;
  }
  .view-history .catalogList > li{
    width: calc((100% - 100px) / 6 );
  }
  .view-history .catalogList .catalogList_item:nth-child(5n) {
    margin-right: 20px;
  }
  .view-history .catalogList .catalogList_item:nth-child(6n) {
    margin-right: 0;
  }
}