@charset "utf-8";
/*
 * 新しい絞込パネル（D案「SUUMO型」・2026-10-30 児島決定・?v=new のプレビューだけ）。resources/views/site/partials/search-panel-v2.blade.php
 * パネル（.c-filter）と、body の直下に移すモーダル（.c-filter-modal）。色は黒・白＋ブランドのグラデーション（#2af598→#009efd・文字は白）。
 * ⚠️ 入れ物の aside.search は旧テーマの search-panel.css（灰色の面・padding）。:has(.c-filter) のときだけここで白に戻す。
 * 単位は em（max/min/calc の中だけ px・vw・vh）。メディアクエリは max-width: 769px だけ。区切りは余白と薄い線（#eee）だけ。
 */
.c-filter, .c-filter-modal {
	--f-ink: #1a1a1a;
	--f-chip: #f3f3f3;
	--f-chip-hover: #e8e8e8;
	--f-field: #f5f5f5;
	--f-line: #eee;
	--f-brand-gradient: linear-gradient(135deg, #2af598 0%, #009efd 100%);
	--f-on-brand: #fff;
	font-family: 'Google Sans', 'Noto Sans JP', sans-serif;
	line-height: 1.6;
	color: var(--f-ink);
}
.c-filter *, .c-filter *::before, .c-filter *::after,
.c-filter-modal *, .c-filter-modal *::before, .c-filter-modal *::after { box-sizing: border-box; font-feature-settings: normal; }
.c-filter :where(h5, ul), .c-filter-modal :where(h5, ul) { margin: 0; padding: 0; list-style: none; }
.c-filter :where(button), .c-filter-modal :where(button) { font: inherit; color: inherit; cursor: pointer; }

/* 入れ物（旧テーマの aside.search）を白に。PC は左の固定パネル（幅は旧テーマのまま）・スマホは全画面 */
/* ⚠️ display は触らない（表示・非表示は旧テーマと header-mobile.js のまま） */
aside.search:has(> .c-filter) { padding: 0; font-size: 1em; background: #fff; }
aside.search:has(> .c-filter) header { background: #fff; }

.c-filter { display: flex; flex-direction: column; min-height: 100%; }
.c-filter__hidden { display: none !important; }
.c-filter__body { display: grid; gap: 0.75em; padding: 1em 1.125em 1.25em; }
.c-filter__sec { display: grid; gap: 0.4375em; }
.c-filter__sec { padding-bottom: 0.75em; border-bottom: 0.0625em solid var(--f-line); }
.c-filter__sec:last-child { padding-bottom: 0; border-bottom: 0; }
.c-filter__sec[hidden] { display: none; }
.c-filter__ttl { display: block; font-size: 0.9375em; font-weight: 700; line-height: 1.4; }
.c-filter__note { margin-left: 0.375em; font-size: 0.8125em; font-weight: 400; font-variant-numeric: tabular-nums; }
.c-filter__link { justify-self: start; padding: 0; border: 0; background: none; font-size: 0.8125em; text-decoration: underline; white-space: nowrap; }

/* チップ（チェック）。選んだものは黒の塗り */
.c-filter__chips { display: flex; flex-wrap: wrap; gap: 0.375em; }
.c-filter__chip { position: relative; border: 0; display: inline-flex; align-items: baseline; gap: 0.375em; padding: 0.625em 0.875em; border-radius: 999em; background: var(--f-chip); font-size: 0.75em; line-height: 1.4; white-space: nowrap; cursor: pointer; user-select: none; }
.c-filter__chip:hover { background: var(--f-chip-hover); }
.c-filter__chip input, .c-filter__check input { position: absolute; width: 0.0625em; height: 0.0625em; margin: 0; opacity: 0; pointer-events: none; }
.c-filter__chip > span { display: inline-flex; align-items: baseline; gap: 0.375em; }
.c-filter__chip.is-zero { opacity: 0.4; }
.c-filter__chip small { font-size: 0.846em; font-variant-numeric: tabular-nums; }
.c-filter__chip:has(input:checked), .c-filter__chip.is-on { background: var(--f-ink); color: #fff; }
.c-filter__chip:has(input:focus-visible), .c-filter__check:has(input:focus-visible) span::before { outline: 0.125em solid var(--f-ink); outline-offset: 0.125em; }
.c-filter__chip--remove::after { content: "×"; margin-left: 0.125em; }

/* 1つだけのチェック（予約可） */
.c-filter__check { position: relative; display: flex; align-items: center; gap: 0.625em; font-size: 0.875em; cursor: pointer; }
.c-filter__check span { display: inline-flex; align-items: center; gap: 0.625em; }
.c-filter__check span::before { content: ""; flex: none; width: 1.25em; height: 1.25em; border-radius: 0.25em; background: var(--f-chip); }
.c-filter__check input:checked + span::before { background: var(--f-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* エリア（今の選択の1行＋「エリアを変更」） */
.c-filter__area { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75em; }
.c-filter__area-name { min-width: 0; font-size: 0.875em; }

/* 料金の種類の切り替え */
.c-filter__seg { display: grid; grid-template-columns: 1fr 1fr; border-radius: 0.25em; overflow: hidden; background: var(--f-chip); }
.c-filter__seg button { padding: 0.4375em 0; border: 0; background: none; font-size: 0.8125em; white-space: nowrap; }
.c-filter__seg button.is-on { background: var(--f-ink); color: #fff; }

/* 下限〜上限のセレクト */
.c-filter__range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.375em; font-size: 0.875em; }
.c-filter__range[hidden] { display: none; }
.c-filter__range:has(> select:only-of-type) { grid-template-columns: minmax(0, 1fr); }
.c-filter select, .c-filter-modal select, .c-filter__input {
	width: 100%; margin: 0; padding: 0.625em 0.75em; border: 0; border-radius: 0.25em; outline: 0;
	background-color: var(--f-field); font: inherit; font-size: 0.9375em; color: var(--f-ink);
}
.c-filter select, .c-filter-modal select {
	appearance: none; -webkit-appearance: none; padding-right: 1.75em; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231a1a1a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.5em center; background-size: 0.75em;
}
.c-filter__input { font-size: 0.875em; }
.c-filter__input::placeholder { color: #999; }

/* さらに条件を追加する */
.c-filter__more { padding: 0.75em 1em; border: 0; border-radius: 0.5em; background: var(--f-ink); color: #fff !important; font-size: 0.875em; font-weight: 700; white-space: nowrap; }

/* 下に固定の検索ボタン */
.c-filter__foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 0.375em; margin-top: auto; padding: 0.875em 1.125em calc(0.875em + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -0.25em 1em rgba(0, 0, 0, 0.06); }
.c-filter__submit { padding: 0.8125em 1em; border: 0; border-radius: 0.5em; background: var(--f-brand-gradient); color: var(--f-on-brand) !important; font-size: 0.9375em; font-weight: 700; white-space: nowrap; }
.c-filter__submit span { margin-left: 0.25em; font-variant-numeric: tabular-nums; }
.c-filter__reset { padding: 0.25em; border: 0; background: none; font-size: 0.8125em; text-decoration: underline; }

/* モーダル（背景は黒の半透明・本体は白・右上に丸い×） */
.c-filter-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 2em; background: rgba(0, 0, 0, 0.5); font-size: clamp(0px, calc(100vw / 80), 16px); }
.c-filter-modal[hidden] { display: none; }
.c-filter-modal__box { display: flex; flex-direction: column; width: min(100%, 52em); max-height: min(100%, 44em); border-radius: 0.75em; background: #fff; box-shadow: 0 1em 3em rgba(0, 0, 0, 0.25); overflow: hidden; }
.c-filter-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.25em 1.5em 0.75em; }
.c-filter-modal__ttl { font-size: 1.125em; font-weight: 700; }
.c-filter-modal__x { flex: none; width: 2.25em; height: 2.25em; border: 0; border-radius: 50%; background: var(--f-chip); font-size: 1em; line-height: 1; }
.c-filter-modal__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 11em minmax(0, 1fr); }
.c-filter-modal__nav { display: grid; align-content: start; gap: 0.125em; padding: 0.25em 0.75em 1em 1.5em; overflow-y: auto; }
.c-filter-modal__nav button { display: flex; align-items: baseline; justify-content: space-between; padding: 0.5em 0.75em; border: 0; border-radius: 0.375em; background: none; font-size: 0.875em; text-align: left; white-space: nowrap; }
.c-filter-modal__nav button:hover { background: var(--f-chip); }
.c-filter-modal__nav button.is-on { background: var(--f-ink); color: #fff; }
.c-filter-modal__panel { display: grid; align-content: start; gap: 0.625em; padding: 0.25em 1.5em 1.5em 0.75em; overflow-y: auto; }
.c-filter-modal__panel[hidden] { display: none; }
.c-filter-modal__panel .c-filter__ttl { font-size: 0.875em; }
.c-filter-modal__panel .c-filter__ttl:not(:first-child) { margin-top: 0.75em; }
.c-filter-modal__panel .c-filter__chip { font-size: 0.8125em; }
.c-filter-modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: 0.75em; padding: 1em 1.5em; box-shadow: 0 -0.25em 1em rgba(0, 0, 0, 0.06); }
.c-filter-modal__count { margin-right: auto; font-size: 0.875em; font-variant-numeric: tabular-nums; }
.c-filter-modal__cancel { padding: 0.75em 1.25em; border: 0; border-radius: 0.5em; background: var(--f-chip); font-size: 0.875em; white-space: nowrap; }
.c-filter-modal__ok { padding: 0.75em 2em; border: 0; border-radius: 0.5em; background: var(--f-brand-gradient); color: var(--f-on-brand); font-size: 0.875em; font-weight: 700; white-space: nowrap; }
html.is-filter-modal-open { overflow: hidden; }

@media (max-width: 769px) {
	.c-filter__body { padding: 0.875em 1.25em 1.25em; }
	/* iOS は 16px 未満の入力欄で画面が拡大されるため */
	.c-filter select, .c-filter-modal select, .c-filter__input { font-size: max(1em, 16px); }
	.c-filter__chip { padding: 0.6875em 0.875em; }
	.c-filter-modal { padding: 0; place-items: stretch; font-size: clamp(0px, calc(100vw / 25), 14px); }
	.c-filter-modal__box { width: 100%; max-height: none; height: 100%; border-radius: 0; }
	.c-filter-modal__head { padding: calc(1em + env(safe-area-inset-top, 0px)) 1.25em 0.75em; }
	.c-filter-modal__body { grid-template-columns: 8.5em minmax(0, 1fr); }
	.c-filter-modal__nav { padding: 0.25em 0.5em 1em 0.75em; }
	.c-filter-modal__nav button { padding: 0.625em 0.625em; font-size: 0.8125em; }
	.c-filter-modal__panel { padding: 0.25em 1em 1.5em 0.5em; }
	.c-filter-modal__foot { padding: 0.875em 1.25em calc(0.875em + env(safe-area-inset-bottom, 0px)); }
	.c-filter-modal__ok { padding: 0.75em 1.5em; }
}
