/* =========================================================
   BUZZGAMES 製品絞り込み検索 - スタイル
   ========================================================= */

#buzzgames-product-search { padding: 40px 0 80px; }
#buzzgames-product-search .bg-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

#buzzgames-product-search .bg-page-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
#buzzgames-product-search .bg-page-lead  { color: #555; margin-bottom: 24px; font-size: 14px; }

/* ----------- 製品一覧ヘッダー ----------- */
.bg-list-header {
	background: #eaf4fb;
	padding: 56px 0 72px;
	margin-bottom: 32px;
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* 下の白い斜めカット */
.bg-list-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 90px;
	background: #fff;
	clip-path: polygon(0 70%, 23% 0, 37% 70%, 100% 70%, 100% 100%, 0 100%);
	z-index: 1;
}

.bg-list-header-inner {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 48px;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
}

.bg-header-frame {
	display: none;
}

.bg-header-content {
	padding: 0;
	margin: 0;
}

.bg-header-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1e73be;
	font-weight: 500;
	font-size: 28px;
	letter-spacing: 0.12em;
	margin-bottom: 16px;
}

.bg-header-tag svg {
	width: 24px;
	height: 24px;
}

.bg-list-title {
	font-size: 14px;
	font-weight: 700;
	color: #000;
	margin: 0;
}

.bg-list-updated {
	text-align: right;
	color: #000;
	font-size: 14px;
	margin: 88px 0 0;
	padding-right: 0;
	font-weight: 500;
}

@media (max-width: 768px) {
	.bg-list-header {
		padding: 36px 0 56px;
	}

	.bg-list-header-inner {
		padding: 0 24px;
	}

	.bg-header-tag {
		font-size: 12px;
		gap: 8px;
	}

	.bg-header-tag svg {
		width: 18px;
		height: 18px;
	}

	.bg-list-title {
		font-size: 14px;
	}

	.bg-list-updated {
		font-size: 16px;
		margin-top: 48px;
	}
}

/* ----------- 検索フォーム ----------- */
.bg-search-form {
	background: #f6f7f8;
	border: 1px solid #e3e5e8;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 32px;
}

.bg-search-table { width: 100%; border-collapse: collapse; }
.bg-search-table th,
.bg-search-table td {
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e3e5e8;
}
.bg-search-table th {
	width: 160px;
	background: #ebedef;
	font-weight: 600;
	font-size: 14px;
	color: #222;
}
.bg-search-table td { background: #fff; }
.bg-search-table small { color: #888; font-weight: normal; }

.bg-search-table select,
.bg-search-table input[type="text"],
.bg-search-table input[type="number"] {
	padding: 8px 10px;
	border: 1px solid #cfd3d7;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	min-width: 120px;
}
.bg-search-table input.bg-keyword { width: 60%; min-width: 240px; }

.bg-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.bg-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #222;
}
.bg-checkbox input { transform: translateY(-1px); }

/* ボタン */
.bg-search-actions { text-align: center; margin-top: 18px; }
.bg-search-btn,
.bg-reset-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
}
.bg-search-btn {
	background: #1d1f23;
	color: #fff;
}
.bg-search-btn:hover { background: #000; }
.bg-reset-btn {
	background: #fff;
	color: #333;
	border: 1px solid #cfd3d7;
	margin-left: 12px;
}
.bg-reset-btn:hover { background: #f0f0f0; }

/* ----------- 検索結果 ----------- */
.bg-results { margin-top: 16px; }
.bg-results-title {
	font-size: 20px;
	font-weight: 700;
	border-left: 4px solid #1e5fa8;
	padding-left: 10px;
	margin-bottom: 20px;
}
.bg-count { color: #1e5fa8; }

.bg-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bg-card {
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s;
}
.bg-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.bg-card-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f2f3f5;
	overflow: hidden;
}
.bg-card-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.bg-no-image {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	color: #aaa; font-size: 14px; letter-spacing: 1px;
}

.bg-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.bg-card-cat {
	display: inline-block;
	background: #eef0f3;
	color: #333;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 99px;
	margin-bottom: 8px;
	width: fit-content;
}
.bg-card-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.bg-card-title a { color: #111; text-decoration: none; }
.bg-card-title a:hover { color: #1e5fa8; }
.bg-card-desc { font-size: 13px; color: #555; line-height: 1.6; flex: 1; }
.bg-card-btn {
	display: block;
	margin-top: 12px;
	text-align: center;
	background: #1e5fa8;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 4px;
	text-decoration: none;
}
.bg-card-btn:hover { background: #173f72; color: #fff; }

/* ページネーション */
.bg-pagination { text-align: center; margin-top: 30px; }
.bg-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	border: 1px solid #cfd3d7;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}
.bg-pagination .page-numbers.current {
	background: #1d1f23;
	color: #fff;
	border-color: #1d1f23;
}
.bg-pagination .page-numbers:hover { background: #eee; }

.bg-no-results {
	padding: 40px;
	text-align: center;
	background: #fff;
	border: 1px dashed #cfd3d7;
	border-radius: 6px;
	color: #666;
}

/* ----------- レスポンシブ ----------- */
@media (max-width: 900px) {
	.bg-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.bg-search-table,
	.bg-search-table tbody,
	.bg-search-table tr,
	.bg-search-table th,
	.bg-search-table td { display: block; width: 100%; }
	.bg-search-table th { background: transparent; padding-bottom: 4px; }
	.bg-search-table td { padding-top: 4px; padding-bottom: 16px; }
	.bg-card-grid { grid-template-columns: 1fr; }
	.bg-search-table input.bg-keyword { width: 100%; min-width: 0; }
	.bg-reset-btn { margin-left: 0; margin-top: 8px; display: inline-block; }
}

/* 製品詳細ページの「前の記事 / 次の記事」ナビを非表示 */
body.single-product .post-navigation,
body.single-product .nav-links,
body.single-product .vk_post-pagination,
body.single-product nav.navigation.post-navigation,
body.single-product .post-pagination,
body.single-product .pn-link {
	display: none !important;
}