@charset "UTF-8";
/* ==========================================================================
   検索 202609（/f/search・/p/search 共通）
   クラスはすべて sbs- で始める
   ========================================================================== */

/* --------------------------------------------------------------------------
   共通：選択肢（SBS.optionsHtml が描く）
   -------------------------------------------------------------------------- */
.sbs-opts,
.sbs-tree__items {
  display: flex;
  flex-wrap: wrap;
}

.sbs-opt {
  position: relative;
  margin: 0 24px 0 0;
  line-height: 2.2;
  white-space: nowrap;
  cursor: pointer;
}

/* input は見えなくし、フォーカスは残す。見た目は label の ::before で描く */
.sbs-opt__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.sbs-opt__label::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  margin: 0 0.5em 0 0;
  border: 1px solid #404040;
  background: #fff;
  color: #fff;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
  vertical-align: -2px;
}

.sbs-opt__input:checked + .sbs-opt__label::before {
  content: "✓";
  background: #404040;
}

.sbs-opt__input:focus-visible + .sbs-opt__label::before {
  outline: 2px solid #404040;
  outline-offset: 2px;
}

/* アイテム：区分の見出しの下に字下げして並べる */
.sbs-tree__group {
  margin: 0;
  color: #404040;
  font-size: 0.95em;
  font-weight: 400;
  line-height: 2.2;
}

.sbs-tree__items {
  margin: 0 0 12px;
  padding: 0 0 0 1em;
}

.sbs-tree__items:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   検索入力ページ（/f/search）
   -------------------------------------------------------------------------- */
/* パンくず・見出しの位置を、現行の一覧ページ（.fs-l-main の幅と padding、.productList の padding-top）に揃える */
.fs-l-pageMain:has(.sbs-adv) {
  box-sizing: border-box;
  width: auto;
  max-width: 1216px;
  margin: 0 auto;
  padding: 8px;
}

/* 文字の大きさは参考サイトのフォームに合わせて 14px を基準にする（見出しの h1 はサイトの指定のまま） */
.sbs-adv {
  padding-top: 25px;
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .sbs-adv {
    padding-top: 50px;
  }
}

.sbs-adv__lead {
  margin: 0 0 24px;
  font-size: 0.9em;
}

.sbs-adv__box {
  padding: 16px 24px;
  background: rgba(230, 230, 230, 0.5);
}

.sbs-row {
  display: flex;
  padding: 24px 0;
  border-bottom: 1px solid rgba(184, 184, 184, 0.3);
}

.sbs-row__head {
  width: 20%;
  margin: 0;
  color: #404040;
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 2.2;
}

.sbs-row__body {
  width: 80%;
}

/* キーワード */
.sbs-keyword {
  width: 50%;
}

.sbs-adv .sbs-keyword__input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 8px 8px 36px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background: #fff url("https://sacsbar.itembox.cloud/item/img/icon/icon_search_gray.png") no-repeat 10px center / 16px auto;
  font-size: 1em;
}

/* 価格 */
.sbs-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sbs-adv .sbs-price__input {
  box-sizing: border-box;
  width: 10em;
  margin: 0;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background: #fff;
  font-size: 1em;
}

.sbs-price__unit {
  margin: 0 0 0 0.5em;
}

.sbs-price__sep {
  margin: 0 1em;
}

.sbs-note {
  margin: 8px 0 0;
  color: #737373;
  font-size: 0.85em;
}

/* アイテム：「もっと見る」を押すまでは、初期表示の項目だけを、区分の見出しなしで続けて並べる */
.sbs-adv .sbs-tree.is-collapsed {
  display: flex;
  flex-wrap: wrap;
}

.sbs-adv .sbs-tree.is-collapsed .sbs-tree__group,
.sbs-adv .sbs-tree.is-collapsed .sbs-opt--more {
  display: none;
}

.sbs-adv .sbs-tree.is-collapsed .sbs-tree__items {
  display: contents;
}

.sbs-more {
  margin: 16px 0 0;
  text-align: center;
}

.sbs-more[hidden] {
  display: none;
}

.sbs-adv .sbs-more__btn {
  min-width: 180px;
  margin: 0;
  padding: 1em;
  border: 2px solid #fff;
  border-radius: 50vh;
  background: #fff;
  color: #737373;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  cursor: pointer;
}

/* ボタン */
.sbs-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 2%;
  padding: 40px 0 24px;
}

.sbs-adv .sbs-btn {
  min-width: 180px;
  margin: 0;
  padding: 1em;
  border: none;
  border-radius: 50vh;
  background: #404040;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.sbs-adv .sbs-btn--reset {
  border: 2px solid #fff;
  background: #fff;
  color: #737373;
}

@media screen and (max-width: 768px) {
  .sbs-keyword {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .sbs-adv__box {
    padding: 16px;
  }

  /* 大見出しは、各欄の上に中央揃えで置き、中身はその下に幅いっぱいで並べる */
  .sbs-row {
    flex-direction: column;
  }

  .sbs-row__head {
    width: 100%;
    margin: 0 0 0.4em;
    font-size: 3vw;
    text-align: center;
  }

  .sbs-row__body {
    width: 100%;
  }

  /* 列が狭いので字下げしない */
  .sbs-adv .sbs-tree__items {
    padding-left: 0;
  }

  .sbs-adv .sbs-opt,
  .sbs-adv .sbs-tree__group,
  .sbs-adv .sbs-keyword__input,
  .sbs-adv .sbs-price__input {
    font-size: 3vw;
  }

  .sbs-price {
    flex-wrap: nowrap;
  }

  .sbs-adv .sbs-price__input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .sbs-price__sep {
    margin: 0 0.5em;
  }

  .sbs-actions {
    justify-content: space-between;
    width: 70%;
    margin: 0 auto;
  }

  .sbs-adv .sbs-actions .sbs-btn {
    width: 48%;
    min-width: 0;
    font-size: 3vw;
  }

  .sbs-adv .sbs-more__btn {
    width: 48%;
    min-width: 0;
    font-size: 3vw;
  }
}

/* --------------------------------------------------------------------------
   検索結果ページ（/p/search）
   -------------------------------------------------------------------------- */
/* 2カラム：左に絞り込み、右に一覧 */
.sbs-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sbs-side {
  box-sizing: border-box;
  width: 300px;
  padding-top: 60px;
  font-size: 14px;
}

.sbs-body {
  width: calc(100% - 300px - 2%);
  min-width: 0;
}

/* 見出し（サイトの .ctm_heading--page の指定を使い、左に揃える） */
.sbs-h1 {
  margin-top: 0;
  text-align: left;
}

/* 絞り込み：共通の欄 */
.sbs-kw {
  display: flex;
  margin: 0;
}

.sbs-main .sbs-kw__input,
.sbs-modal .sbs-kw__input,
.sbs-main .sbs-pf__input,
.sbs-modal .sbs-pf__input {
  box-sizing: border-box;
  height: 30px;
  min-width: 0;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background: #fff;
  color: #404040;
  font-size: 0.9em;
}

.sbs-main .sbs-kw__input,
.sbs-modal .sbs-kw__input {
  flex: 1;
  border-radius: 5px 0 0 5px;
}

.sbs-kw__btn {
  flex: 0 0 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-left: none;
  border-radius: 0 5px 5px 0;
  background: #fff url("https://sacsbar.itembox.cloud/item/img/icon/icon_search_gray.png") no-repeat center / 14px auto;
  cursor: pointer;
}

.sbs-pf {
  margin: 0;
}

.sbs-pf__row {
  display: flex;
  align-items: center;
}

.sbs-main .sbs-pf__input,
.sbs-modal .sbs-pf__input {
  flex: 1;
  width: 0;
}

.sbs-pf__unit {
  margin: 0 0 0 0.3em;
  font-size: 0.9em;
}

.sbs-pf__sep {
  margin: 0 0.5em;
  font-size: 0.9em;
}

.sbs-pf__note {
  margin: 6px 0 0;
  font-size: 0.8em;
  font-weight: 400;
}

.sbs-pf__btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid #737373;
  background: #fff;
  color: #737373;
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

/* サイドバー（参考サイトと同じく、選択肢は1行に1つ、チェックボックスはブラウザのもの） */
.sbs-side__sec {
  margin: 0 0 2em;
}

.sbs-side__head {
  margin: 0 0 1em;
  color: #404040;
  font-size: 0.9em;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.sbs-side .sbs-opts,
.sbs-side .sbs-tree__items {
  flex-direction: column;
  align-items: flex-start;
}

.sbs-side .sbs-opt {
  display: flex;
  align-items: center;
  margin: 0 0 0.2em;
  line-height: 1.6;
  white-space: normal;
}

.sbs-side .sbs-opt__input {
  position: static;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0 0.5em 0 0;
  opacity: 1;
  accent-color: #404040;
  cursor: pointer;
}

.sbs-side .sbs-opt__label {
  font-size: 0.9em;
}

.sbs-side .sbs-opt__input + .sbs-opt__label::before {
  display: none;
}

.sbs-side .sbs-tree__group {
  font-size: 0.9em;
  line-height: 1.6;
  margin: 0 0 0.3em;
}

/* キーワード欄・価格欄は、選択肢の並びに釣り合う長さにする */
.sbs-side .sbs-kw,
.sbs-side .sbs-pf {
  max-width: 240px;
}

/* サイドバーのキーワード欄は、ヘッダーのキーワード検索と同じ色と内側の余白にする（入力と虫めがねの間に線を引かない） */
.sbs-side .sbs-kw__input {
  height: 38px;
  padding: 0 5px 0 15px;
  border-color: #9fa0a0;
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: #333;
  font-size: 12px;
}

/* 価格の入力欄もキーワード欄と同じ見た目にする */
.sbs-side .sbs-pf__input {
  height: 38px;
  padding: 0 5px 0 15px;
  border-color: #9fa0a0;
  border-radius: 3px;
  color: #333;
  font-size: 12px;
}

.sbs-side .sbs-kw__btn {
  flex-basis: 44px;
  border-color: #9fa0a0;
  border-radius: 0 3px 3px 0;
  background-position: right 20px center;
  background-size: 15px auto;
}

.sbs-side .sbs-pf__note {
  color: #737373;
}

/* 絞り込みのタグ（押すとその条件を外す） */
.sbs-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 0;
}

.sbs-chips:empty {
  display: none;
}

.sbs-chip {
  position: relative;
  margin: 0 8px 8px 0;
  padding: 8px 36px 8px 8px;
  border: 1px solid #404040;
  border-radius: 3px;
  background: #fff;
  color: #404040;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

/* ×は2本の線で描き、文字の見た目の高さに揃える（字面が中央より少し下に来るので、中央から 1px 下げる） */
.sbs-chip::before,
.sbs-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 12px;
  height: 1.5px;
  background: #b8b8b8;
}

.sbs-chip::before {
  transform: translateY(calc(-50% + 1px)) rotate(45deg);
}

.sbs-chip::after {
  transform: translateY(calc(-50% + 1px)) rotate(-45deg);
}

/* 並び替え・件数・ページャー：上は件数と表示順、下はページャーだけ */
.fs-c-productList__controller.sbs-ctrl--top {
  flex-wrap: nowrap;
  align-items: center;
  margin: 32px 0 16px;
  font-size: 14px;
}

/* サイト共通の指定で隠れている並び替えと件数を、このページの上の並び替え・ページャーだけ出す */
.sbs-ctrl--top .fs-c-sortItems {
  display: block !important;
  order: 2;
  border: none;
}

.sbs-ctrl--top .fs-c-listControl {
  order: 1;
  flex-direction: row;
  justify-content: flex-start;
}

.sbs-ctrl--top .fs-c-listControl__status {
  display: flex !important;
  flex-direction: column;
  color: #e6e6e6;
  font-size: 0.8em;
}

.sbs-ctrl--top .fs-c-pagination,
.sbs-ctrl--top .fs-c-sortItems__label,
.sbs-ctrl--bottom .fs-c-sortItems,
.sbs-ctrl--bottom .fs-c-listControl__status {
  display: none;
}

.sbs-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sbs-sort::after {
  content: "";
  position: absolute;
  top: 45%;
  right: 1em;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid #b8b8b8;
  border-left: 1px solid #b8b8b8;
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
}

.sbs-sort__select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 150px;
  height: 4em;
  margin: 0;
  padding: 0.4em 2em;
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  background: #fff;
  color: #171717;
  font-size: 1em;
  cursor: pointer;
}

.fs-c-productList__controller.sbs-ctrl--bottom {
  justify-content: center;
}

.sbs-ctrl--bottom .fs-c-listControl {
  flex-direction: row;
  justify-content: center;
}

.sbs-ctrl--bottom .fs-c-pagination__item {
  color: #b8b8b8;
}

.sbs-ctrl--bottom .fs-c-pagination__item.is-active {
  background: none;
  color: #737373;
}

/* 商品一覧の列数 */
.sbs-body .fs-c-productList__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* SP の「さらに絞り込む」とパネル（サイトの SP と同じ 768px 以下だけ使う） */
.sbs-refine-open,
.sbs-modal,
.sbs-modal-overlay {
  display: none;
}

@media screen and (max-width: 768px) {
  .sbs-side {
    display: none;
  }

  .sbs-body {
    width: 100%;
  }

  .sbs-body .fs-c-productList__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sbs-refine-open {
    position: fixed;
    bottom: 16px;
    left: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 3em;
    border: none;
    border-radius: 50vh;
    background: #404040;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
    transform: translateX(-50%);
  }

  /* 絞り込みの形（3本の線） */
  .sbs-refine-open__icon {
    display: block;
    width: 15px;
    height: 12px;
    background:
      linear-gradient(#fff, #fff) left top / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) left center / 70% 2px no-repeat,
      linear-gradient(#fff, #fff) left bottom / 40% 2px no-repeat;
  }

  .sbs-refine-open__label {
    padding-left: 1em;
  }

  /* パネルの外を押したら閉じる（参考サイトと同じく、背景は暗くしない） */
  .sbs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    visibility: hidden;
  }

  .sbs-modal-overlay.is-open {
    visibility: visible;
  }

  .sbs-modal {
    position: fixed;
    bottom: 16px;
    left: 50%;
    z-index: 1002;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    max-height: 450px;
    overflow-y: auto;
    padding: 32px 24px;
    border: 1px solid #fff;
    border-radius: 24px;
    background: #404040;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(0);
    transition: opacity 0.3s, transform 0s 0.3s, visibility 0s 0.3s;
  }

  .sbs-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    transition: opacity 0.5s, transform 0.5s;
  }

  .sbs-modal__close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
  }

  .sbs-modal__title {
    margin: 0;
    padding: 0 8px 16px;
    font-size: 1em;
  }

  .sbs-modal__body {
    border-bottom: 1px solid #fff;
  }

  .sbs-acc__head {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
  }

  .sbs-acc__btn {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px 8px;
    border: none;
    border-top: 1px solid #fff;
    background: none;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
  }

  .sbs-acc__btn::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.4s;
  }

  .sbs-acc.is-open .sbs-acc__btn::before {
    transform: translateY(-50%) rotate(135deg);
  }

  .sbs-acc__panel {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s ease, visibility 0s 0.4s;
  }

  .sbs-acc.is-open .sbs-acc__panel {
    visibility: visible;
    transition: max-height 0.4s ease;
  }

  /* パネルの選択肢：1行に1つ。字下げしない */
  .sbs-modal .sbs-opts,
  .sbs-modal .sbs-tree__items {
    display: block;
    margin: 0;
    padding: 0;
  }

  /* 区分の見出しは、項目の見出しと同じ左右の余白にする */
  .sbs-modal .sbs-tree__group {
    margin: 0;
    padding: 8px;
    border-top: 1px solid #fff;
    color: #fff;
    font-size: 1em;
  }

  .sbs-opt-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    border: none;
    border-top: 1px solid #fff;
    background: none;
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
  }

  .sbs-modal .sbs-kw,
  .sbs-modal .sbs-pf {
    padding: 8px 0 16px;
  }

  .sbs-modal .sbs-pf__btn {
    border-color: #fff;
  }

  /* 開いている間は後ろをスクロールさせない */
  html.sbs-modal-open,
  html.sbs-modal-open body {
    overflow: hidden;
  }
}

@media screen and (max-width: 600px) {
  .sbs-body .fs-c-productList__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbs-chip {
    font-size: 3.2vw;
  }

  .sbs-refine-open__label,
  .sbs-modal .sbs-acc__btn,
  .sbs-modal .sbs-opt-btn,
  .sbs-modal .sbs-tree__group {
    font-size: 3vw;
  }
}
