@charset "utf-8";

/* カテゴリー・コンディション・出品店舗ボタンの矢印アイコン */
.filter-category-button::after,
.filter-condition-button::after,
.filter-shop-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #bbb;
  border-right: 2px solid #bbb;
  position: absolute;
  right: 25px;
  top: 50%;
  transition: transform .3s ease-out;
}

.filter-category-button::after,
.filter-shop-button::after {
  transform: translateY(-50%) rotate(45deg);
}

.filter-condition-button::after {
  transform: translateY(-50%) rotate(135deg);
}

.filter-condition-button.open::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* 絞り込みドロワー */
.filter-search {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  padding: 0;
  box-sizing: border-box;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.filter-search-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.filter-search.open {
  right: 0;
}

.filter-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.filter-search-overlay.open {
  display: block;
}

.filter-search-close {
  position: fixed;
  top: 0;
  right: 400px;
  height: 75px;
  margin: 0;
  display: flex;
  align-items: center;
  transform: translateX(450px);
  transition: transform 0.3s ease, opacity 0.2s ease;
  z-index: 1002;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  line-height: 1;
}

.filter-search.open ~ .filter-search-close {
  transform: translateX(0);
}

.filter-search-close.hidden {
  opacity: 0;
  pointer-events: none;
}

.filter-search h1,
.filter-category-search h1,
.filter-shop-search h1 {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f2f2f2;
  margin: 0;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.filter-shop-search .shop-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-search-inner {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 15px;
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
}

button.filter-search-inner {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

button.filter-search-inner span {
  font-size: 15px;
  font-weight: bold;
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: 0;
}

.filter-search-inner p {
  font-size: 15px;
  font-weight: bold;
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: 0;
}

.filter-search-inner .filter-category-button,
.filter-search-inner .filter-condition-button,
.filter-search-inner .filter-shop-button {
  flex: 1;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.filter-category-button .filter-category-button-selected,
.filter-condition-button .filter-condition-button-selected,
.filter-shop-button .filter-shop-button-selected {
  font-weight: normal;
  flex: 1;
  min-width: 0;
  white-space: normal;
  padding-right: 30px;
}

/* キーワード */
.filter-search-keywords {
	margin: 0 !important;
}

.searchbox-searchword {
  flex: 1;
  width: auto;
  height: 40px;
  border: none;
  border-radius: 5px;
  background: #f2f2f2;
  font-size: 15px;
  padding: 0 10px;
  margin: 0;
  outline: none;
  box-sizing: border-box;
}

/* カテゴリー検索・出品店舗検索ドロワー */
.filter-category-search,
.filter-shop-search {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  padding: 0;
  box-sizing: border-box;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.filter-category-search-scroll,
.filter-shop-search-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.filter-category-search.open,
.filter-shop-search.open {
  transform: translateX(0);
}

.filter-category-search-overlay,
.filter-shop-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
}

.filter-category-search-close,
.filter-shop-search-close {
  position: fixed;
  top: 0;
  right: 400px;
  width: 10px;
  height: 75px;
  display: block;
  background: url(../../../image/icon/icon_arrow_left_active.png) center / contain no-repeat;
  transform: translateX(450px);
  transition: transform 0.3s ease;
  z-index: 1002;
  cursor: pointer;
}

.filter-category-search.open ~ .filter-category-search-close,
.filter-shop-search.open ~ .filter-shop-search-close {
  transform: translateX(0);
}

/* カテゴリー選択・出品店舗選択のリストアイテム */
.filter-category-search .small-category,
.filter-shop-search .shop-list li {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #e5e5e5;
}

.filter-category-search .small-category-checkbox,
.filter-category-search .all-small-category-checkbox,
.filter-category-search .all-middle-category-checkbox,
.filter-shop-search .shop-checkbox {
  display: none;
}

.filter-category-search .small-category label {
  flex: 1;
  font-size: 15px;
  cursor: pointer;
}

.filter-category-search .small-category-label,
.filter-shop-search .shop-label {
  position: relative;
  font-size: 15px;
  padding-left: 30px;
  flex: 1;
  cursor: pointer;
}

.filter-shop-search .filter-shop-none {
  position: relative;
  font-size: 15px;
  flex: 1;
  cursor: pointer;
}

.filter-category-search .small-category-label::before,
.filter-shop-search .shop-label::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid #DDD;
  border-radius: 2px;
}

.filter-category-search .small-category-checkbox:checked ~ .small-category-label::before,
.filter-category-search .all-small-category-checkbox:checked ~ .small-category-label::before,
.filter-shop-search .shop-checkbox:checked ~ .shop-label::before {
  background-color: #DB0A17;
  border-color: #DB0A17;
}

.filter-category-search .small-category-checkbox:checked ~ .small-category-label::after,
.filter-category-search .all-small-category-checkbox:checked ~ .small-category-label::after,
.filter-shop-search .shop-checkbox:checked ~ .shop-label::after {
  content: '';
  display: block;
  position: absolute;
  top: 48%;
  left: 5px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(-45deg);
}

/* 中カテゴリー：大カテゴリー同様のプルダウン（アコーディオン） */
.filter-category-search .middle-category {
  width: 100%;
  position: relative;
  font-size: 15px;
}

.filter-category-search .middle-category-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  cursor: pointer;
}

.filter-category-search .all-middle-category-row {
  background-color: #f2f2f2;
}

.filter-category-search .all-middle-category-label {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 1;
  font-size: 15px;
  cursor: pointer;
}

.filter-category-search .middle-category-inner::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(135deg);
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -6px;
  transition: transform .3s ease-out;
}

.filter-category-search .middle-category.open .middle-category-inner::after {
  transform: rotate(-45deg);
}

/* 第3カテゴリーを持たない中カテゴリー：プルダウン矢印なし（クリックで直接選択） */
.filter-category-search .middle-category-link .middle-category-inner::after {
  display: none;
}

/* コンディションリスト */
.filter-condition-list {
  display: none;
}

.filter-condition-list li {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  background-color: #f2f2f2;
}

.filter-condition-list .filter-condition-label {
  position: relative;
  font-size: 15px;
  padding-left: 30px;
  flex: 1;
  cursor: pointer;
}

.filter-condition-list .filter-condition-none {
  position: relative;
  font-size: 15px;
  flex: 1;
  cursor: pointer;
}

.filter-condition-list .filter-condition-label::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid #DDD;
  border-radius: 2px;
}

.filter-condition-list .filter-condition-checkbox:checked ~ .filter-condition-label::before {
  background-color: #DB0A17;
  border-color: #DB0A17;
}

.filter-condition-list .filter-condition-checkbox:checked ~ .filter-condition-label::after {
  content: '';
  display: block;
  position: absolute;
  top: 48%;
  left: 5px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(-45deg);
}

/* 価格帯 */
.filter-price {
  flex-wrap: wrap;
}

.filter-price-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-search-inner #search-side-fromPrice {
  font-size: 15px;
  margin-right: 5px;
  border: 2px solid #f2f2f2;
  width: 40%;
}

.filter-price input::placeholder {
  color: #a9a9a9;
  text-align: right;
}

.filter-search-inner #search-side-toPrice {
  margin: 0 5px;
  border: 2px solid #f2f2f2;
  width: 40%;
}

.filter-price .search-side-fromPrice-error,
.filter-price .search-side-toPrice-error,
.filter-price .search-side-priceRange-error {
  flex-basis: 100%;
  text-align: left;
  margin-top: 4px;
}

.filter-price-row input {
  height: 35px;
}

/* 価格タイプ */
.filter-search-inner .price-type {
  display: none;
}

.filter-search-inner .price-type-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-search-inner .price-type-label:not(:last-of-type) {
  margin-right: 8px;
}

.filter-search-inner .price-type:checked + span + .price-type-label {
  border-color: #c0c0c0;
  background-color: #c0c0c0;
  color: #000;
}

/* 在庫 */
.filter-search-inner .step {
  display: none;
}

.filter-search-inner .step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 20px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-search-inner .step-label:not(:last-of-type) {
  margin-right: 15px;
}

.filter-search-inner .step:checked + span + .step-label {
  border-color: #c0c0c0;
  background-color: #c0c0c0;
  color: #000;
}

/* クリア・絞り込みボタンエリア */
.filter-search .search-menu-section-button,
.filter-category-search .search-menu-category-section-button,
.filter-shop-search .search-menu-shop-section-button {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  z-index: 1;
  margin: 0;
  box-sizing: border-box;
  border-bottom: none;
  flex-shrink: 0;
}

.filter-search .search-menu-section-button #filter-search-clearbutton,
.filter-category-search .search-menu-category-section-button #filter-search-category-clearbutton,
.filter-shop-search .search-menu-shop-section-button #filter-search-shop-clearbutton {
  flex: 1;
  margin: 0;
  background-color: #fff;
  border: 1px solid #DB0A17;
  color: #DB0A17;
  padding: 16px;
}

.filter-search .search-menu-section-button #search-menu-searchbutton,
.filter-category-search .search-menu-category-section-button #search-menu-category-searchbutton,
.filter-shop-search .search-menu-shop-section-button #search-menu-shop-searchbutton {
  flex: 2;
  margin: 0;
  width: auto;
  padding: 0;
}

/* ----------------------------------------

カテゴリー選択ドロワー内 カテゴリーリスト

---------------------------------------- */
/* search.css の .large_category（トップページの大カテゴリー装飾）を打ち消す */
#category_box.large_category {
  margin: 0;
  padding-bottom: 0;
  background-color: #fff;
  background-image: none;
  text-align: left;
}

.top-index-title {
  margin: 16px;
}

.category_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category_list .large-category:first-child .large-category-inner {
  border-top: 1px solid #e5e5e5;
}

.large-category {
  width: 100%;
  position: relative;
  font-size: 15px;
}

.large-category-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  cursor: pointer;
}

.large-category-inner::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(135deg);
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -6px;
  transition: transform .3s ease-out;
}

.large-category.open .large-category-inner::after {
  transform: rotate(-45deg);
}

.large-category-link .large-category-inner::after,
.middle-category-link .large-category-inner::after {
  display: none;
}

.large-category-link a,
.middle-category-link a  {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category_list .middle-category-list,
.category_list .small-category-list {
  display: none;
}

.category_list .middle-category-list .middle-category,
.category_list .small-category-list .small-category {
  background-color: #F2F2F2;
}

.category-image {
  width: 43px;
  height: 43px;
  border-radius: 60%;
  background-color: #F2F2F2;
  aspect-ratio: 1 / 1;
  padding: 6px;
  margin-right: 24px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-text {
  flex: 1;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* PCドロワー(450px)用: search.css の .top-index-category-main は
   トップページ970px横並びグリッド用のため、縦1列に上書きする */
.filter-category-search .top-index-category-main {
  display: block;
  width: auto;
  padding-top: 0;
  margin: 0;
  text-align: left;
}
