/* =========================
   検索条件ブロック
   ========================= */
.search-filter {
    max-width: 80%;
    margin: 0 auto;
    padding: 24px 20px 20px;
    background: #f7f7f7;
    border-radius: 12px;
}

.search-filter__title {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
}

/* フォーム全体 */
.search-filter__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* グループ（業種・エリア・キーワード） */
.search-filter__group {
    border: none;
    margin-top: 0px;       /* 上のエリアと少し間を空ける */
    padding-top: 0px;
}

.search-filter__group-title {
    display: block;
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 0px;
}

/* 見出し（h3）とチェックボックスの左右位置をずらす */
.search-filter__group .search-filter__options {
    padding-left: 12px; /* ← ちょい右に寄せる（8〜20pxくらいで調整可） */
}

/* チェックボックス群 */
/* 都道府県ブロック全体に、上の項目から少し余白 */
#pref-block {
    margin-top: 1px;
}

/* 見出しは初期非表示（JSで必要なときだけ表示） */
#pref-block .search-filter__group-title {
    display: none;
}

/* 都道府県グループは初期非表示（JSで出す） */
.pref-group {
    display: none;
    margin-top: 0px;       /* 上のエリアと少し間を空ける */
    padding-top: 0px;
}

/* グループタイトル（「四国」など）とチェックボックスに段差をつける */
.pref-group__title {
    font-weight: 600;
    margin: 0px 0 0px;
}

.pref-group .search-filter__options {
    padding-left: 12px;     /* チェックボックスを少し右にずらす */
}

#tokyo-23ku-block .search-filter__options,
#tokyo-tama-block .search-filter__options {
    padding-left: 20px;
}

/* 複数の項目を並べるコンテナ */
.search-filter__options,
.search-filter__options_options {
    display: grid;
    position: relative;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3px 16px;
}

@media (max-width: 768px) {
    .search-filter__options {
        /* 最低幅120pxを確保したうえで、
           入るだけ列を増やす（3列 or 2列 or 1列） */
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px 8px;
    }

    /* オプション種別の設定 */
    .search-filter__options_options {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 8px 8px;
    }
}

/* 1つの業種（[□][ラベル＋i]） */
.search-filter__option {
    display: grid;
    grid-template-columns: auto 1fr; /* 左:チェック / 右:テキスト＋i */
    align-items: center;
    column-gap: 6px;
    font-size: 15px;
}

/* チェックボックスの位置を揃える */
.search-filter__option input[type="checkbox"] {
    margin: 0;
    margin-top: 0px; /* 微調整したければここで */
}

/* 「テキスト＋i」をひとまとまりに */
.search-filter__label {
    display: inline-block; /* インラインの塊として扱う */
}

/* テキスト自体は普通のインライン要素 */
.search-filter__label-text {
    /* 必要ならフォント調整ここで */
    width: 100%;
}

/* キーワード入力 */
.search-filter__keyword {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 9999px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* ボタン群 */
.search-filter__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.search-filter__btn {
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
}

/* クリアボタン（グレー） */
.search-filter__btn--clear {
    background: #f7f6f6;
    border: 1px solid #626262;
    color: #000;
}

/* 絞り込みボタン（メインカラー想定） */
.search-filter__btn--submit {
    background: #772a2e;
    color: #ffffff;
    border-color: #772a2e;
}

/* チェックボックスと i を横並びに */
.search-filter__option-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .search-filter {
        padding: 20px 12px 16px;
        margin: 0 auto;
    }

    .search-filter__options {
        gap: 6px 12px;
    }

    .search-filter__actions {
        flex-direction: row;
        justify-content: space-between;
    }

    .search-filter__btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 8px;
    }
}

/* PC用 */
@media print, screen and (min-width:897px) {
    .search-filter {
        max-width: 90%;
    }
}

/* スマホ横用 */
@media screen and (min-width: 481px) and (max-width: 896px) {
}