/* ============================================================
   ブロックパターン「店舗サイト用」専用スタイル
   inc/block-patterns.php で登録した4パターンが使うクラスだけをまとめてある。
   他サイトへ持っていくときは、このファイルとinc/block-patterns.php、
   inc/csb-shortcodes.php の3つをコピーすれば動く。

   クラス名はすべて csb-p- 接頭辞。テーマ側のクラスに依存しない。
   ============================================================ */

:root {
	--csb-p-navy: #33506e;
	--csb-p-navy-soft: #5b7492;
	--csb-p-ink: #3a4654;
	--csb-p-ink-strong: #2c3a4c;
	--csb-p-muted: #7c8797;
	--csb-p-hair: rgba(51, 80, 110, 0.14);
	--csb-p-line: #00804a;
	--csb-p-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

/* ───────── 見出し・文章 ───────── */
.csb-p-ttl {
	font-family: var(--csb-p-serif);
	font-weight: 400;
	letter-spacing: 0.12em;
	color: var(--csb-p-ink-strong);
	text-align: center;
}
.csb-p-cap {
	margin-top: 3em;
	font-family: var(--csb-p-serif);
	font-weight: 500;
	letter-spacing: 0.24em;
	color: var(--csb-p-navy);
	text-align: center;
}
.csb-p-sub,
.csb-p-note,
.csb-p-foot {
	margin-top: 0.8em;
	font-size: 0.84rem;
	line-height: 2;
	color: var(--csb-p-muted);
	text-align: center;
}
.csb-p-lead {
	max-width: 34em;
	margin: 0 auto;
	font-size: 0.92rem;
	line-height: 2;
	color: var(--csb-p-ink);
}

/* ───────── 料金表 ───────── */
.csb-p-table table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.csb-p-table th,
.csb-p-table td { border: 0; }
.csb-p-table thead th {
	padding: 0 10px 12px;
	border-bottom: 1px solid var(--csb-p-navy-soft);
	font-family: var(--csb-p-serif);
	font-weight: 500;
	font-size: 0.74rem;
	letter-spacing: 0.2em;
	color: var(--csb-p-navy-soft);
	text-align: left;
}
.csb-p-table tbody td {
	padding: 26px 10px;
	border-bottom: 1px solid var(--csb-p-hair);
	vertical-align: top;
	text-align: left;
	font-size: 0.86rem;
	line-height: 2;
	color: var(--csb-p-muted);
}
.csb-p-table tbody td strong {
	display: block;
	margin-bottom: 6px;
	font-family: var(--csb-p-serif);
	font-weight: 500;
	font-size: 1.06rem;
	letter-spacing: 0.1em;
	color: var(--csb-p-ink-strong);
}
/* 2列目=料金、3列目=備考。列を増やしても既定表示に戻るだけで崩れない */
.csb-p-table thead th:nth-child(2),
.csb-p-table thead th:nth-child(3) { text-align: right; }
.csb-p-table tbody td:nth-child(2) {
	width: 20%;
	text-align: right;
	white-space: nowrap;
	font-family: var(--csb-p-serif);
	font-size: 1.4rem;
	color: var(--csb-p-navy);
}
.csb-p-table tbody td:nth-child(3) {
	width: 25%;
	text-align: right;
	color: var(--csb-p-ink);
}
.csb-p-table tbody td:nth-child(3) strong {
	display: inline-block;
	margin-bottom: 6px;
	padding: 4px 14px;
	border: 1px solid rgba(91, 116, 146, 0.32);
	border-radius: 999px;
	background: rgba(91, 116, 146, 0.13);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--csb-p-navy);
}

/* ───────── 店舗情報テーブル ───────── */
.csb-p-info { max-width: 720px; margin-left: auto; margin-right: auto; }
.csb-p-info table { width: 100%; border-collapse: collapse; }
.csb-p-info td {
	padding: 18px 12px;
	border: 0;
	border-bottom: 1px solid var(--csb-p-hair);
	font-size: 0.93rem;
	vertical-align: top;
}
.csb-p-info td:first-child {
	width: 30%;
	text-align: right;
	font-family: var(--csb-p-serif);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: var(--csb-p-navy-soft);
}

/* ───────── 地図（[csb_map] ショートコード） ───────── */
.csb-map {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 40px auto 0;
	overflow: hidden;
	border: 1px solid var(--csb-p-hair);
	background: #eef4f8;
}
.csb-map--16x9 { aspect-ratio: 16 / 9; }
.csb-map--4x3 { aspect-ratio: 4 / 3; }
.csb-map--1x1 { aspect-ratio: 1 / 1; }
.csb-map iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 860px) {
	.csb-map--16x9 { aspect-ratio: 4 / 3; }
}

/* ───────── CTA / 記事下ブロック ───────── */
.csb-p-cta,
.csb-p-postcta {
	margin-top: 56px;
	padding: 38px 30px 34px;
	border: 1px solid var(--csb-p-hair);
	border-radius: 2px;
	background: linear-gradient(180deg, #fdfdfd 0%, #f3f7fa 100%);
	text-align: center;
}
.csb-p-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 34px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.csb-p-links li { margin: 0; padding-left: 0; list-style: none; }
.csb-p-links li::before { content: none; }
.csb-p-links a {
	font-size: 0.9rem;
	color: var(--csb-p-navy);
	text-decoration: none;
	border-bottom: 1px solid rgba(51, 80, 110, 0.25);
}
.csb-p-links a:hover { border-color: var(--csb-p-navy); }

.csb-p-btn--line .wp-block-button__link,
.csb-p-btn--tel .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 30px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.csb-p-btn--line .wp-block-button__link {
	background: var(--csb-p-line);
	color: #ffffff;
}
.csb-p-btn--line .wp-block-button__link:hover { background: #069158; color: #ffffff; }
.csb-p-btn--tel .wp-block-button__link {
	background: rgba(255, 255, 255, 0.7);
	color: var(--csb-p-navy);
	border: 1px solid var(--csb-p-navy);
}
.csb-p-btn--tel .wp-block-button__link:hover { background: var(--csb-p-navy); color: #ffffff; }

@media (max-width: 600px) {
	.csb-p-cta,
	.csb-p-postcta { padding: 28px 20px 26px; }

	.csb-p-table table,
	.csb-p-table tbody,
	.csb-p-table tr,
	.csb-p-table td,
	.csb-p-info table,
	.csb-p-info tbody,
	.csb-p-info tr,
	.csb-p-info td { display: block; width: 100%; }
	.csb-p-table thead { display: none; }
	.csb-p-table tbody tr,
	.csb-p-info tbody tr { padding: 22px 0; border-bottom: 1px solid var(--csb-p-hair); }
	.csb-p-table tbody td,
	.csb-p-info td { padding: 0; border-bottom: 0; text-align: center; }
	.csb-p-table tbody td:nth-child(2) { width: 100%; margin-top: 10px; text-align: center; }
	.csb-p-table tbody td:nth-child(3) { width: 100%; margin-top: 8px; text-align: center; }
	.csb-p-info td:first-child { width: 100%; text-align: center; }
}
