/*=========================================
  提携店検索フォーム全体
=========================================*/
.swell-custom-search-form {
    background-color: #f7f7f7; /* 背景色があれば適宜変更してください */
    padding: 20px;
    border-radius: 8px;
}

/* 3カラム部分（エリア・ジャンル・特典） */
.search_3col {
	display: flex;
	align-items: flex-end;
	gap: 20px;
}
.search_3col > div {
	flex: 1 1 0%;
	display: flex;
	flex-wrap: wrap;
}
.swell-custom-search-form label {
	width: 100%;
	font-size: 1rem;
	font-weight: bold;
    margin-bottom: 5px;
}
.swell-custom-search-form label i {
	padding: 0 .5rem 0 0;
	color: #f7730c;
}
.swell-custom-search-form select {
	width: 100%;
	padding: .8rem 1rem;
	border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/*=========================================
  こだわり条件トグル
=========================================*/
.advanced-search-toggle {
    text-align: center;
    padding: 5px 0;
    margin: 20px 0 0 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
		font-size: .9rem;
		font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
}
.advanced-search-toggle i {
    color: #f7730c;
    transition: transform 0.3s ease;
}
/* 開いた時の矢印の向き */
.advanced-search-toggle.is-open i {
    transform: rotate(180deg);
}

/*=========================================
  こだわり条件パネル内
=========================================*/
.advanced-search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.advanced-item {
    padding-top: 10px;
}
.advanced-item label {
    display: block;
    margin-bottom: 5px;
}

/*=========================================
  ピル型チェックボックス（店舗の特徴）
=========================================*/
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px; /* ボタン同士の隙間を少し狭くしました */
}

/* ★追加：フォーム全体の label の width:100% 設定を解除して横並びにする */
.swell-custom-search-form .custom-checkbox {
    width: auto;
    margin-bottom: 0;
}

.custom-checkbox input[type="checkbox"] {
    display: none; /* 元のチェックボックスを隠す */
}

/* ボタンのデザイン（小さめ） */
.custom-checkbox .checkmark {
    display: inline-flex; /* テキストの縦位置を綺麗に中央に揃えるため変更 */
    align-items: center;
    padding: 4px 12px; /* 上下4pxに設定（お好みで増減してください） */
    line-height: 1.2; /* ★追加：SWELL標準の広い行間を上書きして高さを抑える */
    border: 1px solid #aaa;
    border-radius: 30px;
    background-color: #fff;
    color: #333;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* チェックされた時の状態 */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #f7730c;
    color: #fff;
    border-color: #f7730c;
}

/*=========================================
  検索ボタン・件数
=========================================*/
.search-submit-wrapper {
    margin-top: 25px;
    text-align: center;
}
.search-button {
    width: 100%;
    max-width: 320px; /* PCなどでの最大幅 */
	height: 54px;
	padding: 0 2rem;
	background-color: #f7730c;
	color: #fff;
	border-radius: 5px;
	cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
}
.search-button:hover {
    opacity: 0.9;
}
#search-count {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

/*=========================================
  スマホ表示用調整
=========================================*/
@media screen and (max-width: 959px) {
	.search_3col {
		flex-wrap: wrap;
		gap: 15px;
	}
	.search_3col > div {
		flex: 0 0 100%;
	}
    .search-button {
        max-width: 100%;
    }
}