/*
 * 店舗一覧ページ専用 CSS（is_post_type_archive('shop') でのみ読み込み）
 * 対象: shops-layout（サイドバー＋リストのグリッド）と shops-bg（背景）。
 * 注記: shop-card-h 系と shops-sidebar 系は taxonomy / home でも使うため style.css に残置。
 */

.shops-layout {
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 860px) { .shops-layout { grid-template-columns: 1fr; } }

.shops-bg { background: var(--grad-page); }

/* ============================================================
 * 絞り込みサイドバー（Figma「都道府県/コンセプト」チェックボックス絞り込み）
 * .post-type-archive-shop にスコープ（home.php の共有サイドバーには影響させない）
 * ============================================================ */
.post-type-archive-shop .shops-filter { display: flex; flex-direction: column; gap: 16px; }

.post-type-archive-shop .shops-sidebar__box {
	background: #fff;
	border: 2px solid #ff83bb;
	border-radius: 10px;
	box-shadow: 0 0 2px #604b5e;
	padding: 22px 31px 34px;
	margin: 0;
}

.post-type-archive-shop .shops-sidebar__box h3 {
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #e0558d;
	letter-spacing: 0.028em;
	margin: 0 0 14px;
	padding-bottom: 14px;
	border-bottom: 2px dashed #f4b6d2;
}

.post-type-archive-shop .shops-sidebar__box ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.post-type-archive-shop .shops-filter__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
}

.post-type-archive-shop .shops-check {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.post-type-archive-shop .shops-check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.post-type-archive-shop .shops-check__box {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 2px solid #e0558d;
	background: #fff;
	box-sizing: border-box;
	position: relative;
	transition: background .15s, border-color .15s;
}

.post-type-archive-shop .shops-check input:checked + .shops-check__box {
	background: #e0558d;
	border-color: #e0558d;
}

.post-type-archive-shop .shops-check input:checked + .shops-check__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.post-type-archive-shop .shops-check input:focus-visible + .shops-check__box {
	outline: 2px solid #ff83bb;
	outline-offset: 2px;
}

.post-type-archive-shop .shops-check__label {
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #e0558d;
	line-height: 1.5;
}

.post-type-archive-shop .shops-sidebar__count {
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #b087b5;
	text-align: right;
	white-space: nowrap;
}

.post-type-archive-shop .shops-filter__search {
	width: 100%;
	padding: 9px 12px;
	border: 2px solid #ffc0db;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}
.post-type-archive-shop .shops-filter__search:focus {
	outline: none;
	border-color: #e0558d;
}

.post-type-archive-shop .shops-filter__submit {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 999px;
	background: var(--grad-cta, #e0558d);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.05em;
}
.post-type-archive-shop .shops-filter__submit:hover { opacity: .92; }

/* ツールバー（Figma 件数表示 + 並び替え） */
.post-type-archive-shop .shops-list__head { margin: 0 0 12px; }
.post-type-archive-shop .shops-list__title { font-size: 22px; margin: 0; color: #d24a8a; }
.post-type-archive-shop .shops-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #ffeef7; border-radius: 10px; padding: 10px 20px; margin-bottom: 16px; }
.post-type-archive-shop .shops-toolbar__count { margin: 0; display: flex; align-items: baseline; gap: 2px; line-height: 1.5; }
.post-type-archive-shop .shops-toolbar__count .num { color: #e0558d; font-size: 16px; font-weight: 500; letter-spacing: .25px; }
.post-type-archive-shop .shops-toolbar__count .unit { color: #b087b5; font-size: 13px; }
.post-type-archive-shop .shops-toolbar__sort { display: flex; align-items: center; gap: 6px; margin: 0; }
.post-type-archive-shop .shops-toolbar__sort-label { color: #b087b5; font-size: 13px; white-space: nowrap; }
.post-type-archive-shop .shops-toolbar__sort-select { appearance: none; -webkit-appearance: none; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="5" viewBox="0 0 8 5"><path d="M1 1l3 3 3-3" stroke="%23a569af" stroke-width="1.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 12px center; border: none; border-radius: 100px; padding: 8px 30px 8px 14px; color: #a569af; font-size: 12px; font-weight: 500; cursor: pointer; }

/* SP: 絞り込みトグル（スマホは初期折りたたみ / PCは常時表示） */
.post-type-archive-shop .shops-sidebar__toggle { display: none; }
@media (max-width: 860px) {
	.post-type-archive-shop .shops-sidebar__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #fff; border: 2px solid #ff83bb; border-radius: 10px; padding: 14px 18px; color: #e0558d; font-size: 15px; font-weight: 700; cursor: pointer; }
	.post-type-archive-shop .shops-sidebar__toggle-ic { width: 10px; height: 10px; border-right: 2px solid #e0558d; border-bottom: 2px solid #e0558d; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
	.post-type-archive-shop .shops-sidebar.is-open .shops-sidebar__toggle-ic { transform: rotate(-135deg); margin-top: 4px; }
	.post-type-archive-shop .shops-filter { display: none; margin-top: 12px; }
	.post-type-archive-shop .shops-sidebar.is-open .shops-filter { display: flex; }
}
