legend {
  font-size: 0.8rem; /*0.9rem*/
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.2;
}
#filterForm label {
  margin-right: 1rem
}
.btn-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.2rem;
}
/*絞り込み検索 INPUT ボタン系*/
#filterForm label {
  margin-right: 0
}
.w-s-btn-group { /*display: flex !important;*/
  flex-wrap: wrap !important;
  /*align-items: center;*/
}
.w-s-btn-group > .btn:not(.dropdown-toggle), .w-s-btn-group > .btn-group > .btn, .w-s-btn {
  border-radius: 5px;
  text-align: center;
  border: solid 1px #999;
  padding: 0.1em 1em 0 1em;
  line-height: 2;
  margin-bottom: 5px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-color: #DDD; /*rgba(146, 0, 13, 1.0);*/
  color: #000; /*rgba(146, 0, 13, 1.0);*/
  transition: all 0.2s ease-in-out !important;
  font-size: 0.75rem;
}
.w-s-btn {
  background-color: #fff;
}
.w-s-btn-group > .btn:hover:not(.dropdown-toggle), .w-s-btn-group > .btn-group > .btn:hover, .w-s-btn:hover {
  background-color: #FFFFFF !important;
  border-color: rgba(80, 80, 80, 1.0);
  color: rgba(1, 0, 13, 1.0);
}
.w-s-btn:hove {
  background-color: #F9F9F9;
  border-color: rgba(80, 80, 80, 1.0);
}
.w-s-btn-color-iGray, a.w-s-btn-color-iGray {
  background-color: rgba(75, 75, 75, 1.00) !important;
  color: rgba(255, 255, 255, 1.00) !important;
}
.w-s-btn-color-iGray:hover, a.w-s-btn-color-iGray:hover {
  background-color: rgba(45, 45, 80, 1.00) !important;
}
.w-s-btn-outline-primary:not(.disabled):hover, .w-s-btn-outline-primary:not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).hover, .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle {
  color: #fff !important;
  background-color: rgba(196, 3, 23, 1.00) !important; /*#007bff*/
  border-color: rgba(146, 0, 13, 1.0) !important; /*#007bff*/
}
.w-s-btn-group > .btn:focus, .w-s-btn-group > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn:focus, .w-s-btn-group-vertical > .btn:active, .btn-group-vertical > .btn.active {
  z-index: 1;
}
.btn-group-toggle > .btn, .btn-group-toggle > .w-s-btn-group > .btn {
  margin-bottom: 0;
}
.w-s-btn-group > .btn, .btn-group-vertical > .btn {
  position: relative;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}
.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}
.btn-group, .btn-group-vertical {
  position: relative;
  display: -ms-inline-flexbox;
  display: inline-flex;
  vertical-align: middle;
}
.btn-group-toggle > .btn input[type="radio"], .btn-group-toggle > .btn input[type="checkbox"], .w-s-btn-group-toggle > .btn-group > .btn input[type="radio"], .btn-group-toggle > .btn-group > .btn input[type="checkbox"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.w-btn-style02 {
	justify-content: flex-start;
}
.w-btn-style02 > .btn input[type="radio"], .w-btn-style02 > .btn input[type="checkbox"] {
  position: static !important;
  accent-color: rgba(50, 50, 50, 1.00);
}
.w-btn-style02 > .btn input[type="radio"]:focus {
  outline: none;
}
.w-btn-style02 .btn-outline-primary {
  padding: 0 0.5em;
}
.w-btn-style02 > .btn {
  background-color: #FFFFFF !important;
  border: none !important;
  color: rgba(1, 0, 13, 1.0);
	  flex: 0 1 auto;
}
.w-checkbox .w-btn-style02 > label.btn:hover:not(.active) {
  background-color: rgba(245, 245, 245, 1.0) !important;
  color: rgba(1, 0, 13, 1.0) !important;
}
.w-checkbox .w-btn-style02 > label.btn:checked {
  background-color: rgba(196, 3, 23, 1) !important;
}
.w-btn-style02 > .btn-outline-primary:not(:disabled):not(.disabled).active {
  background-color: rgba(230, 230, 230, 1.0) !important; /* 好きな色に変更 */
  color: rgba(0, 0, 0, 1) !important;
}

/* ==================================================
   ボタンスタイル03
================================================== */

.w-btn-style03 {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-start;
}

/* input非表示 */
.w-btn-style03 input[type="radio"],
.w-btn-style03 input[type="checkbox"] {
	display: none;
}

#filterForm .w-checkbox .w-btn-style03 label {padding-left:1rem;padding-right:0.8rem }

/* 通常状態 */
.w-btn-style03 > .btn {
	background-color: #e5e5e5 !important;
	border: none !important;
	color: #333 !important;
	border-radius: 9999px !important;
	padding: 0.45em 1.2em;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	box-shadow: none !important;
	flex: 0 1 auto;
}

/* hover */
.w-btn-style03 > .btn:hover:not(.active) {
	background-color: #d5d5d5 !important;
	color: #111 !important;
}

/* 選択時 */
.w-btn-style03 > .btn.active,
.w-btn-style03 > .btn-outline-primary:not(:disabled):not(.disabled).active {
	background-color: #c40317 !important;
	color: #fff !important;
	border-color: #c40317 !important;
}

/* 選択中 hover */
.w-btn-style03 > .btn.active:hover,
.w-btn-style03 > .btn-outline-primary.active:hover {
	background-color: #c40317 !important;
	border-color: #c40317 !important;
	color: #fff !important;
}

/* focus消す */
.w-btn-style03 > .btn:focus,
.w-btn-style03 > .btn input:focus {
	outline: none !important;
	box-shadow: none !important;
}


/* ==================================================
================================================== */

.btn-group-toggle label {
  white-space: nowrap;
  flex-shrink: 0;
}
#filterForm .w-checkbox label {
  display: flex;
  align-items: center;
  padding: 0.1rem 0.5rem; /* 0.2rem 0.6rem*/
  transition: background-color 0.2s ease;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.75rem; /*  font-size: clamp(0.7rem, 0.627rem + 0.36vw, 0.9rem);*/
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 1px;
}
#filterForm .w-checkbox label:hover {
  background-color: #e9e9e9;
}
#filterForm input[type="checkbox"] {
  transform: scale(1); /**/
  accent-color: #c40317;
  margin-right: 0.4rem; /*0.8rem*/
  transition: background-color 0.2s ease, transform 0.2s ease;
}
/* OS種別など li の中身が折り返されるように */
ul.w-checkbox {
  flex-wrap: wrap;
}
ul.w-checkbox > li {
  margin: 0.25rem;
  min-width: 120px; /* 最低幅を確保（好みにより調整） */
  flex: 1 1 auto;
}
/**/
.w-catList-title_header {
  background-color: rgba(255, 255, 255, 1.00) !important;
  color: rgba(0, 0, 0, 1.00) !important;
  ;
  border-top: solid 1px rgba(0, 0, 0, 1.00);
  border-bottom: solid 1px rgba(0, 0, 0, 1.00);
  padding: 0.5rem 0;
  margin: 0.5rem 0 1.0rem 0;
}
.w-cat-list-spec li {
  letter-spacing: -0.05em;
  color: #000;
  border-radius: 2px;
}
.product-card .w-cat-list-spec > li {
  background-color: rgba(240, 240, 240, 1.00) !important;

}
/*絞り込みのアコーディオン*/
.filter-accordion button {
  width: 140px;
  font-weight: normal;
}
.filter-accordion .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease; /* アニメーション時間と動き */
}
.filter-accordion .toggle-icon.rotated {
  transform: rotate(180deg); /* 180度回転で上下が逆になる */
}
/* 絞り込みで非表示になったカードを完全に隠す */
.product-card[style*="display: none"] {
  display: none !important;
}
/* ===========================================
   チェックボックスデザイン＆拡大
=========================================== */
.product-card {
  position: relative;
}
/* チェックボックスの配置 */
.product-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}
/* チェックエリアの見た目を拡大 */
.product-checkbox label {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 28px; /* 押しやすさUP */
  height: 28px; /* 押しやすさUP */
}
/* デフォルトのcheckboxは非表示 */
.product-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* カスタム見た目 */
.product-checkbox .checkbox-custom {
  position: absolute;
  top: 0;
  right: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #999;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease-in-out;
}
/* ホバー時 */
.product-checkbox label:hover .checkbox-custom {
  border-color: #007bff;
  background: #eef6ff;
}
/* チェックON時 */
.product-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background-color: rgb(196, 3, 23);
  border-color: rgb(196, 3, 23);
}
/* チェックマーク */
.product-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  color: #fff;
  font-size: 18px;
  left: 1px;/*5px*/
  top: 0px;/*1px*/
  font-weight: bold;
}
/* スマホでも押しやすい（指サイズ40px基準） */
@media (max-width: 768px) {
  .product-checkbox label {
    width: 36px;
    height: 36px;
  }
  .product-checkbox .checkbox-custom {
  top: 0;
  right: 10px;	  
    width: 20px;
    height: 20px;
  }
  .product-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    right: 0px;/*8px*/
    top: 1px;/*3px*/
    font-size: 18px;
  }
}