@charset "UTF-8";
/* ==========================================================
   category-filter.css — カテゴリページの分類による絞り込み
   モジュール「カテゴリ商品一覧」＋ js/category-filter.js 用

   並べ替えボタン（#sort-controls）
   └ 上段：カテゴリ（すべて／平机／片袖・両袖…）
   └ 下段：サイズなど（選んだカテゴリの中の分類）
   └ 見出し・商品一覧
   ボタンは左寄せ
   ========================================================== */

/* ---------- ボタン欄 ---------- */
.cat-filter {
  margin: 0 0 24px;
  padding: 0 10px;
}

.cat-filter ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-filter li {
  margin: 0;
  padding: 0;
}

.cat-filter a {
  display: block;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #eee;
  color: #000;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.cat-filter a:hover {
  background: #ddd;
}

/* 選択中（並べ替えボタンの選択色に合わせる） */
.cat-filter a.is-active,
.cat-filter a.is-active:hover {
  border-color: #ff7e00;
  background: #ffdb00;
  color: #000;
}

/* 下段：選んだカテゴリの分類だけを出す */
.cat-filter .cat-filter-subs {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
}
.cat-filter .cat-filter-subs.is-open {
  display: flex;
}
.cat-filter .cat-filter-subs a {
  padding: 5px 12px;
  background: #fff;
  font-size: 14px;
}
.cat-filter .cat-filter-subs a:hover {
  background: #f5f5f5;
}
.cat-filter .cat-filter-subs a.is-active,
.cat-filter .cat-filter-subs a.is-active:hover {
  background: #ffdb00;
}

/* ---------- 絞り込みで外れた分類 ---------- */
.cat-list .is-cat-hidden {
  display: none !important;
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 767px) {
  .cat-filter {
    padding: 0;
  }
  .cat-filter ul {
    gap: 6px;
  }
  .cat-filter a {
    padding: 6px 10px;
    font-size: 14px;
  }
  .cat-filter .cat-filter-subs a {
    padding: 5px 10px;
    font-size: 13px;
  }
}
