/* =========================================================
   試乗店舗（/test/ タブ一覧 & 店舗詳細ページ）
   黒基調のサイトに合わせたデザイン
   ========================================================= */

/* ---------- タブ一覧 ---------- */
.jsp-shops {
	margin: 2em 0;
}

.jsp-shop-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.jsp-shop-tab-btn {
	appearance: none;
	border: 1.5px solid #111;
	background: #fff;
	color: #111;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	padding: 12px 22px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.jsp-shop-tab-btn:hover {
	transform: translateY(-1px);
}

.jsp-shop-tab-btn.is-active {
	background: #111;
	color: #fff;
}

.jsp-shop-panel {
	display: none;
}

.jsp-shop-panel.is-active {
	display: block;
	animation: jsp-shop-fade .25s ease;
}

@keyframes jsp-shop-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 店舗カード ---------- */
.jsp-shop-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.jsp-shop-card {
	display: flex;
	flex-direction: column;
	background: #111;
	color: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

.jsp-shop-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #222;
	overflow: hidden;
}

.jsp-shop-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jsp-shop-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 24px;
	flex: 1;
}

.jsp-shop-name {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.4;
	letter-spacing: .02em;
}

/* /test/ ページの h3（店舗名）のマージンボトムを 0 に */
.jsp-shops .jsp-shop-name {
	margin-bottom: 0 !important;
}

.jsp-shop-meta {
	margin: 0;
	font-size: .92rem;
	line-height: 1.8;
	color: #d9d9d9;
}

.jsp-shop-meta a {
	color: #fff;
	text-decoration: underline;
}

.jsp-shop-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	background: #fff;
	color: #111 !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: 13px 20px;
	border-radius: 999px;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.jsp-shop-btn::after {
	content: "→";
	font-weight: 700;
}

.jsp-shop-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 255, 255, .25);
	opacity: .95;
}

/* ---------- 店舗詳細ページ タイトル周り ---------- */
.single-jsp_shop .jsp-product-eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .7em;
	margin-bottom: .7em;
}

.single-jsp_shop .jsp-eyebrow-cat {
	display: inline-block;
	background: #111;
	color: #fff !important;
	text-decoration: none;
	font-size: .76em;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	padding: .5em 1.2em;
	border-radius: 999px;
	transition: background .15s ease;
}

.single-jsp_shop a.jsp-eyebrow-cat:hover {
	background: #444;
}

.single-jsp_shop .jsp-eyebrow-static {
	background: #fff;
	color: #111 !important;
	border: 1.5px solid #111;
	padding: calc(.5em - 1.5px) calc(1.2em - 1.5px);
}

.single-jsp_shop .p-articleHead.c-postTitle {
	margin-bottom: 1.6em;
	padding-bottom: 0;
	border: none;
}

.single-jsp_shop .c-postTitle__ttl {
	font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.5rem) !important;
	font-weight: 800 !important;
	letter-spacing: .02em;
	line-height: 1.4;
	color: #111;
	position: relative;
	padding-bottom: .5em;
	margin: 0;
}

.single-jsp_shop .c-postTitle__ttl::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 4px;
	background: #111;
	border-radius: 4px;
}

/* 重複するSWELL既定メタ（日付・カテゴリ）を非表示 */
.single-jsp_shop .c-postTitle__date,
.single-jsp_shop .p-articleMetas.-top {
	display: none !important;
}

/* ---------- 店舗詳細ページ スライダー（テーブルと同じ横幅／上下余白を最小化） ---------- */
.single-jsp_shop .jsp-slider {
	max-width: none;
	margin: 0;
}

.single-jsp_shop .jsp-slide {
	aspect-ratio: 16 / 9;
}

.single-jsp_shop .jsp-slide-img {
	object-fit: contain;
	background: #f4f6f8;
}

/* ---------- 店舗詳細ページ 情報テーブル ---------- */
.jsp-shop-detail {
	margin: 0 0 2em;
}

.jsp-shop-info {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e2e2e2;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.jsp-shop-info th,
.jsp-shop-info td {
	padding: 14px 18px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #ececec;
	font-size: .98rem;
	line-height: 1.7;
}

.jsp-shop-info tr:last-child th,
.jsp-shop-info tr:last-child td {
	border-bottom: none;
}

.jsp-shop-info th {
	width: 140px;
	background: #111;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.jsp-shop-info td a {
	color: #111;
	text-decoration: underline;
	word-break: break-all;
}

.jsp-shop-reserve {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 2.4em 0 1em;
}

.jsp-shop-reserve-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-width: 320px;
	max-width: 100%;
	background: #111;
	color: #fff !important;
	font-weight: 800;
	font-size: 1.1rem;
	text-decoration: none !important;
	padding: 18px 32px;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
	transition: transform .18s ease, box-shadow .18s ease;
}

.jsp-shop-reserve-btn::after {
	content: "→";
}

.jsp-shop-reserve-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

.jsp-shop-site-link {
	color: #111;
	font-weight: 700;
	text-decoration: underline;
	font-size: .95rem;
}

/* ---------- その他試乗できる店舗 ---------- */
.jsp-shop-related {
	margin: 3.2em 0 1em;
}

.jsp-shop-related-title {
	font-size: 1.5em !important;
	font-weight: 800 !important;
	letter-spacing: .04em;
	color: #111 !important;
	text-align: center;
	margin: 0 0 1.5em !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

.jsp-shop-related-title::before,
.jsp-shop-related-title::after {
	display: none !important;
}

.jsp-shop-related-title::after {
	content: "" !important;
	display: block !important;
	width: 56px;
	height: 3px;
	margin: .5em auto 0;
	background: #111;
	border-radius: 3px;
}

.jsp-shop-relgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.jsp-shop-relcard {
	display: flex;
	flex-direction: column;
	background: #111;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
	transition: transform .18s ease, box-shadow .18s ease;
}

.jsp-shop-relcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.jsp-shop-relcard-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: #222;
	overflow: hidden;
}

.jsp-shop-relcard-thumb .jsp-shop-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jsp-shop-relcard-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #777;
	font-size: .8rem;
	letter-spacing: .1em;
}

.jsp-shop-relcard-body {
	display: block;
	padding: 14px 16px 16px;
}

.jsp-shop-relcard-area {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: #111;
	background: #fff;
	border-radius: 999px;
	padding: .25em .9em;
	margin-bottom: .6em;
}

.jsp-shop-relcard-name {
	display: block;
	color: #fff;
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.jsp-shop-relgrid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
	.jsp-shop-tablist {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		scrollbar-width: thin;
	}

	.jsp-shop-tab-btn {
		flex: 0 0 auto;
		padding: 10px 18px;
		font-size: .95rem;
	}

	.jsp-shop-card-list {
		grid-template-columns: 1fr;
	}

	.jsp-shop-info th {
		width: 96px;
		padding: 12px 12px;
	}

	.jsp-shop-info td {
		padding: 12px 12px;
	}

	.jsp-shop-reserve-btn {
		min-width: 0;
		width: 100%;
	}
}
