@charset "utf-8";

/* ============================================
   食べトクとやま 協力店一覧・詳細（/tabetoku/shop/）

   tabetoku2026.css の後に読み込む。
   色・ボタンは tabetoku2026.css の変数（--tb-*）を使い、
   絞り込みのボタン型チェックボックスは
   「富山のさかな」協力店一覧（gourmet_toyama_no_sakana2026.css）と同じ操作感にそろえる。
============================================ */

/* --------------------------------------------
   絞り込み
-------------------------------------------- */
.tbShopFilter {
	margin: 0 0 40px;
	padding: 28px 30px 24px;
	border: 1px solid var(--tb-border);
	border-radius: 8px;
	background: #fff;
}

.tbShopFilter_row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tb-border);
}

.tbShopFilter_row:first-child {
	padding-top: 0;
}

.tbShopFilter_label {
	flex: 0 0 8em;
	margin: 0;
	padding-top: 10px;
	color: var(--tb-green);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
}

.tbShopFilter_field {
	flex: 1 1 auto;
	min-width: 0;
}

.tbShopFilter_field input[type="search"] {
	width: 100%;
	max-width: 520px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--tb-border);
	border-radius: 5px;
	background: #fff;
	font-size: 16px;
	appearance: none;
}

.tbShopFilter_field input[type="search"]:focus {
	outline: 2px solid var(--tb-green);
	outline-offset: 1px;
}

.tbShopFilter_note {
	margin: 8px 0 0;
	color: var(--tb-sub);
	font-size: 14px;
	line-height: 1.6;
}

/* ボタン型のチェックボックス */
.tbShopFilter_pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tbShopFilter_pills label {
	position: relative;
	display: block;
	margin: 0;
}

.tbShopFilter_pills label > [type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	opacity: 0;
}

.tbShopFilter_pills label > b {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	box-sizing: border-box;
	border: 1px solid var(--tb-green);
	border-radius: 100px;
	background: #fff;
	color: var(--tb-green);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background-color .3s, color .3s;
}

.tbShopFilter_pills label > [type="checkbox"]:checked + b {
	background: var(--tb-green);
	color: #fff;
}

.tbShopFilter_pills label > [type="checkbox"]:focus-visible + b {
	outline: 2px solid var(--tb-green);
	outline-offset: 2px;
}

@media screen and (min-width: 1000px) {
	.tbShopFilter_pills label > [type="checkbox"]:not(:checked) + b:hover {
		background: var(--tb-green);
		color: #fff;
	}
}

.tbShopFilter_btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 24px;
	margin-top: 24px;
}

.tbShopFilter_btns .tbBtn {
	cursor: pointer;
	font-family: inherit;
}

.tbShopFilter_clear {
	color: var(--tb-green);
	font-size: 14px;
	text-decoration: underline;
}

/* --------------------------------------------
   検索結果
-------------------------------------------- */

/* 絞り込むと #result へ移動する。固定ヘッダーの分だけ余白を取る */
.tbShopResult {
	scroll-margin-top: 130px;
}

.tbShopResult_keyword {
	margin: 0 0 16px;
	font-size: 16px;
}

.tbShopResult_keyword b {
	color: var(--tb-green);
	font-weight: bold;
}

.tbShopResult_keyword a {
	margin-left: 12px;
	font-size: 14px;
	text-decoration: underline;
}

.tbShopResult_hd,
.tbShopResult_ft {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
}

.tbShopResult_hd {
	border-bottom: 1px solid var(--tb-border);
	margin-bottom: 24px;
}

.tbShopResult_ft {
	border-top: 1px solid var(--tb-border);
	margin-top: 24px;
	justify-content: flex-end;
}

.tbShopResult_count {
	margin: 0;
	font-size: 16px;
}

.tbShopResult_count b {
	font-size: 22px;
	color: var(--tb-green);
}

.tbShopResult_pager .wp-pagenavi {
	margin: 0;
}

.tbShopResult_nodata {
	padding: 40px 20px;
	text-align: center;
	line-height: 1.9;
}

/* 店舗カード */
.tbShopList {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbShopCard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tb-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.tbShopCard_image {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--tb-green-light);
	overflow: hidden;
}

.tbShopCard_image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.tbShopCard_image:hover img {
	transform: scale(1.04);
}

.tbShopCard_noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--tb-green);
	font-size: 14px;
}

.tbShopCard_body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 22px;
}

.tbShopCard_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
}

.tbShopCard_tags > li {
	padding: 2px 12px;
	border: 1px solid var(--tb-green);
	border-radius: 13px;
	color: var(--tb-green);
	font-feature-settings: "palt";
}

.tbShopCard_tags > li.-area {
	border-color: var(--tb-border);
	background: var(--tb-green-light);
	color: var(--tb-green);
}

.tbShopCard_ttl {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.5;
	font-weight: bold;
}

.tbShopCard_ttl a {
	color: var(--tb-green);
	text-decoration: none;
}

.tbShopCard_ttl a:hover {
	text-decoration: underline;
}

.tbShopCard_data {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.tbShopCard_data > div {
	display: flex;
	gap: 8px;
	padding: 4px 0;
	border-top: 1px dotted var(--tb-border);
}

.tbShopCard_data dt {
	flex: 0 0 5em;
	color: var(--tb-sub);
}

.tbShopCard_data dd {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

/* 詳細を見る（カードの下端にそろえる） */
.tbShopCard .tbShopCard_detail {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 16px 0 0;
	color: var(--tb-green);
	font-size: 15px;
	text-decoration: none;
}

.tbShopCard .tbShopCard_detail::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-top: 1px solid var(--tb-green);
	border-right: 1px solid var(--tb-green);
	transform: rotate(45deg);
}

.tbShopCard .tbShopCard_detail:hover {
	text-decoration: underline;
}

/* 一覧下のマップ */
.p-tabetoku-shop .resultMap {
	margin-top: 60px;
}

/* マップ下の「キャンペーンについて」「アプリダウンロード」。下のバナー（.tbBanner）との間隔を空ける */
.tbBtns-shopFoot {
	margin-top: 48px;
	margin-bottom: 80px;
}

@media screen and (max-width: 767px) {
	.tbBtns-shopFoot {
		margin-top: 32px;
		margin-bottom: 48px;
	}
}

/* --------------------------------------------
   詳細
-------------------------------------------- */
.tbShopDetail_title > b {
	font-size: 32px;
	line-height: 1.4;
}

.tbShopDetail {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 20px;
}

.tbShopDetail_media {
	flex: 0 0 420px;
	width: 420px;
}

.tbShopDetail_media img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--tb-border);
	border-radius: 8px;
}

.tbShopDetail_noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	border-radius: 8px;
	background: var(--tb-green-light);
	color: var(--tb-green);
	font-size: 16px;
}

.tbShopDetail_info {
	flex: 1 1 auto;
	min-width: 0;
}

.tbShopDetail_cat {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14px;
	font-feature-settings: "palt";
}

.tbShopDetail_cat > li > a {
	display: inline-block;
	padding: 2px 14px;
	border: 1px solid var(--tb-green);
	border-radius: 13px;
	background: #fff;
	color: var(--tb-green);
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.tbShopDetail_cat > li > a:hover {
	background: var(--tb-green);
	color: #fff;
}

.tbShopDetail_table {
	margin-bottom: 24px;
}

.tbShopDetail_table th {
	white-space: nowrap;
}

.tbShopDetail_zip {
	display: inline-block;
	margin-right: 6px;
}

.tbShopDetail_mapLink {
	display: inline-block;
	margin-left: 10px;
	color: var(--tb-green);
	font-size: 14px;
	text-decoration: underline;
	white-space: nowrap;
}

.tbShopDetail_subTtl {
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tb-green);
	color: var(--tb-green);
	font-size: 18px;
	line-height: 1.5;
}

.tbShopDetail_text {
	margin-bottom: 24px;
	line-height: 1.9;
}

.tbShopDetail_text p {
	margin: 0;
}

.tbShopDetail_point {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 8px;
	background: var(--tb-green-light);
	color: var(--tb-green);
	font-size: 14px;
	line-height: 1.8;
}

/* 詳細ページのマップ（一覧は不要なので表は出さない） */
.p-tabetoku-shop-detail .resultMap {
	margin-top: 40px;
}

.p-tabetoku-shop-detail .resultMap_listWrap {
	margin-top: 16px;
}

/* 前後の店舗・一覧へ戻る */
.tbShopDetail_nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 50px 0 60px; /* 下は共通のバナー・お問い合わせが続く */
	padding-top: 24px;
	border-top: 1px solid var(--tb-border);
}

.tbShopDetail_nav_side {
	flex: 1 1 0;
	min-width: 0;
}

.tbShopDetail_nav_side.-next {
	text-align: right;
}

.tbShopDetail_nav_side a {
	color: var(--tb-green);
	text-decoration: none;
}

.tbShopDetail_nav_side a:hover {
	text-decoration: underline;
}

.tbShopDetail_nav_side.-prev a::before {
	content: "＜ ";
}

.tbShopDetail_nav_side.-next a::after {
	content: " ＞";
}

/* --------------------------------------------
   タブレット以下
-------------------------------------------- */
@media screen and (max-width: 900px) {
	.tbShopList {
		grid-template-columns: repeat(2, 1fr);
	}

	.tbShopDetail {
		display: block;
	}

	.tbShopDetail_media {
		width: auto;
		max-width: 420px;
		margin: 0 auto 24px;
	}
}

@media screen and (max-width: 767px) {
	.tbShopFilter {
		margin-bottom: 30px;
		padding: 18px 16px 20px;
	}

	.tbShopFilter_row {
		display: block;
		padding: 12px 0;
	}

	.tbShopFilter_label {
		padding: 0 0 8px;
		font-size: 15px;
	}

	.tbShopFilter_pills {
		gap: 8px;
	}

	.tbShopFilter_pills label > b {
		height: 40px;
		padding: 0 15px;
		font-size: 15px;
	}

	.tbShopFilter_btns {
		display: block;
		margin-top: 18px;
		text-align: center;
	}

	.tbShopFilter_btns .tbBtn {
		width: 100%;
		margin-bottom: 12px;
	}

	.tbShopResult {
		scroll-margin-top: 100px;
	}

	.tbShopResult_hd,
	.tbShopResult_ft {
		justify-content: center;
	}

	.tbShopList {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tbShopCard_body {
		padding: 16px 16px 18px;
	}

	.tbShopDetail_title > b {
		font-size: 24px;
	}

	.tbShopDetail_nav {
		flex-wrap: wrap;
		margin-top: 36px;
	}

	.tbShopDetail_nav_center {
		order: 3;
		flex: 1 1 100%;
		text-align: center;
		margin-top: 8px;
	}
}
