/*
 * お土産の記事（投稿タイプ sbc_souvenir）のデザイン。docs/design_policy.md の方針。
 * WordPress ではサイト専用プラグインが読み込み、ローカルプレビュー（build/wp の各記事の preview.html）にも同じファイルを埋め込む。
 * 対象は body.sbc-site（お土産の記事と、サイトの独自テンプレートのページ）の中だけ。テーマ本体は変更しない。
 * 記事だけの規則（出典の一覧など）は body.single-sbc_souvenir に限る。
 */

/* 幅（2026-10-21、瀧本の指示で統一）：トップ・一覧・ガイド・記事のすべてで、共通のコンテンツ幅を最大 1000px にする。
   ページタイトル・見出し・本文・カード一覧・表の左右をそろえる（カード一覧も同じ幅。広げない）。記事本文の画像は最大 900px で中央寄せ（下の「画像」） */
.sbc-site {
	--wp--style--global--content-size: 1000px;
	--wp--style--global--wide-size: 1000px;
	/*
	 * 書体：外部フォントは読み込まず、各端末の標準フォントを使う。
	 * 欧文・数字は、先に欧文の書体を置き（Windows の Segoe UI など）、和文は後ろの和文書体で表示する。
	 * 丸ゴシック（タイトル・見出し・カードの商品名・メニュー。2026-10-29、ロゴに合わせて明朝から変更）：Zen Maru Gothic 400
	 *   （サイト内のフォント。読み込めないときは macOS・iOS のヒラギノ丸ゴ、それ以外はゴシック）。
	 * 明朝：2026-10-29 から使っていない（変数だけ残す）。
	 * ゴシック（本文・表・補足）：macOS・iOS のヒラギノ角ゴ、Windows の游ゴシック Medium・メイリオ、Android などの Noto Sans。
	 */
	--sbc-font-mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "YuMincho", "Yu Mincho", "游明朝",
		"Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", "BIZ UDPMincho", "MS PMincho", serif;
	--sbc-font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
		"Yu Gothic Medium", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
	--sbc-font-gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic Medium", "YuGothic",
		"Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", "Noto Sans JP", "Noto Sans CJK JP", "Source Han Sans JP",
		"BIZ UDPGothic", sans-serif;
	/*
	 * 色：本文は濃いグレー、補助情報（表の見出し・ラベル・キャプション・出典）は控えめなベージュ系の茶色。
	 * 白地とのコントラスト：本文 #3a3d40 は約 10.9:1、補助 #6b5d4b は約 6.4:1（表の見出しの地色の上で約 5.7:1）。
	 * 小さい文字でも読みやすさの目安（4.5:1）を満たす。
	 */
	--sbc-text: #3a3d40;
	--sbc-muted: #6b5d4b;
	--sbc-line: #e2d9cb;
	--sbc-soft: #f8f4ee;
	--sbc-accent: #8a6a4a; /* 落ち着いた茶系（地図の選択中など） */
	--sbc-logo-beige: #c7b299; /* ロゴのベージュ。見出しの下の短い線 */
	--sbc-h3-line: #cdb99c; /* 小見出し（H3）の下の細線（ベージュ・茶系） */
	--sbc-subtle: #66696d; /* 情報確認年月（落ち着いたグレー。白地とのコントラスト約 5.5:1） */
	--sbc-note: #565a5e; /* 注釈（落ち着いたグレー。購入判断に使うため情報確認年月より濃く、白地で約 7:1） */
}
/* 記事の幅（2026-10-18、瀧本の指示）：本文・見出し・すべての表・表の注記は最大 1000px（上の共通の幅）で左右の位置をそろえる。
   画像は最大 900px で中央寄せ（下の「画像」）。列数による幅の切り替えはしない。狭い画面では画面幅に収め、左右の余白はテーマの余白 */
.sbc-site .wp-block-post-content > .wp-block-table {
	max-width: var(--wp--style--global--content-size);
}

/* 本文：ゴシック、16〜17px、行間 1.85。長い URL・語が画面からはみ出さない */
.sbc-site .wp-block-post-content {
	font-family: var(--sbc-font-gothic);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.95;
	letter-spacing: 0.03em;
	color: var(--sbc-text);
	font-kerning: normal;
	/* 和文と欧文・数字の間に少しすき間を入れる（対応していないブラウザでは無視される） */
	text-autospace: ideograph-alpha ideograph-numeric;
	overflow-wrap: anywhere;
	line-break: strict;
}
.sbc-site .wp-block-post-content strong {
	font-weight: 600;
}
/* 段落・箇条書きの間をゆったり取る（販売店情報の囲み .sbc-store-info の中も本文の直下と同じ。2026-10-30） */
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > p,
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > ul {
	margin-top: 0;
	margin-bottom: 1.6em;
}
.sbc-site .wp-block-post-content li {
	margin-top: 0.45em;
	margin-bottom: 0.45em;
}

/* タイトル：丸ゴシック（400）。大きすぎず、本文と強弱を付ける（2026-10-29。明朝より字面が大きいため少し小さく） */
.sbc-site .wp-block-post-title {
	font-family: var(--sbc-font-round);
	font-size: clamp(1.4rem, 1.15rem + 0.95vw, 1.85rem);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.05em;
	color: var(--sbc-text);
	margin-top: 2.25rem;
	margin-bottom: 1.75rem;
}

/* 見出し（H2）：丸ゴシック（400）。下に細い線と、左端にロゴのベージュの短い線（2026-10-29。太い左の線と地の帯から軽い装飾へ）。
   長い見出しが折り返しても、線はブロックの下に付く */
.sbc-site .wp-block-post-content h2 {
	position: relative;
	font-family: var(--sbc-font-round);
	font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.45rem);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0.06em;
	color: var(--sbc-text);
	margin-top: 3em;
	margin-bottom: 1em;
	padding: 0 0 0.5em;
	border-bottom: 1px solid var(--sbc-line);
	overflow-wrap: anywhere;
}
.sbc-site .wp-block-post-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 2.5em;
	height: 2px;
	border-radius: 1px;
	background: var(--sbc-logo-beige);
}

/* 小見出し（販売店情報の「店舗」「通販」など）：丸ゴシック（400）で本文より少し大きく、控えめに（2026-10-29） */
.sbc-site .wp-block-post-content h3 {
	font-family: var(--sbc-font-round);
	font-size: 1.05em;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--sbc-text);
	margin-top: 1.8em;
	margin-bottom: 0.7em;
}
.sbc-site .wp-block-post-content h2 + h3 {
	margin-top: 0.4em;
}

/* 本文の小見出し（H3）：本文中の種類の見出し（クッキー・ケーキなど）、販売店情報の「店舗」「通販」、
   ガイドの価格表のお土産ごとの見出し（2026-10-15）。丸ゴシックの 400（2026-10-29）、PC 約 20〜21px・スマホ 約 18〜19px。
   下にベージュ・茶系の細線を付ける（H2 は線が濃い短い線付きで、文字も大きい）。上の余白は下より広く、話題の区切りを示す。
   本文の直下の見出しだけが対象で、トップの商品カードの名前（.sbc-card の中）には適用しない（上の規則のまま） */
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > h3 {
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	font-weight: 400;
	line-height: 1.5;
	margin-top: 2.1em;
	margin-bottom: 0.85em;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--sbc-h3-line);
	overflow-wrap: anywhere;
}
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > h2 + h3 {
	margin-top: 0.9em;
}

/* 情報確認年月（導入直後の「情報確認：…」。記事・ガイド共通の .sbc-checked-date）：補助情報として控えめに。
   13〜14px、標準の太さ、行間 1.5、落ち着いたグレー。リードとの間・次の見出しとの間を詰める（2026-10-15） */
.sbc-site .wp-block-post-content > p.sbc-checked-date {
	font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.03em;
	color: var(--sbc-subtle);
	margin-top: 0;
	margin-bottom: 1.4rem;
}
.sbc-site .wp-block-post-content > p:has(+ p.sbc-checked-date) {
	margin-bottom: 0.6em;
}
.sbc-site .wp-block-post-content > p.sbc-checked-date + h2,
.sbc-site .wp-block-post-content > p.sbc-checked-date + :is(.sbc-store-info, .wp-block-image) {
	margin-top: 1.6rem;
}

/* 表（共通） */
.sbc-site .wp-block-table {
	overflow-x: auto;
	margin-bottom: 1.8em;
}
.sbc-site .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-family: var(--sbc-font-gothic);
	font-size: 0.94em;
	line-height: 1.75;
	/* 価格などの数字の幅をそろえる */
	font-variant-numeric: tabular-nums;
}
.sbc-site .wp-block-table th,
.sbc-site .wp-block-table td {
	border: 1px solid var(--sbc-line);
	padding: 0.55em 0.8em;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.sbc-site .wp-block-table thead th {
	background: var(--sbc-soft);
	font-weight: 500;
	color: var(--sbc-muted);
}
/* テーマ（コアの表のスタイル）の見出し行の下の太い線（3px・文字色）を、ほかの罫線と同じ細い線にそろえる */
.sbc-site .wp-block-table thead {
	border-bottom: 1px solid var(--sbc-line);
}
.sbc-site .wp-block-table tfoot {
	border-top: 1px solid var(--sbc-line);
}
/* 数量と単位のまとまり（20袋入り・16個入・48本入など）と、注釈の中の名称は途中で改行しない。まとまり同士の間では折り返す */
.sbc-site .wp-block-table .sbc-nowrap,
.sbc-site :is(.wp-block-post-content, .wp-block-details, .sbc-store-info) > p.sbc-note .sbc-nowrap {
	white-space: nowrap;
}
.sbc-site .sbc-table-details td:first-child,
.sbc-site .sbc-table-details th:first-child {
	width: 32%;
}
.sbc-site .sbc-table-stores th:first-child,
.sbc-site .sbc-table-stores td:first-child {
	width: 30%;
}
.sbc-site .sbc-table-station th:first-child,
.sbc-site .sbc-table-station td:first-child,
.sbc-site .sbc-table-compare th:first-child,
.sbc-site .sbc-table-compare td:first-child {
	width: 24%;
}
.sbc-site .sbc-table-compare th:nth-child(2),
.sbc-site .sbc-table-compare td:nth-child(2) {
	width: 18%;
}
.sbc-site .sbc-table-prices th:first-child,
.sbc-site .sbc-table-prices td:first-child,
.sbc-site .sbc-table-purchase th:nth-child(2),
.sbc-site .sbc-table-purchase td:nth-child(2) {
	width: 28%;
}

/* 通販サイトの検索結果へのアフィリエイトリンク（楽天市場・Yahoo!ショッピング・Amazon。2026-10-20、配色は 2026-11-02）：
   販売店情報の「通販」の最後に、購入先の表とは分けて置き、すぐ下に注記（販売店・商品の違い）を出す。
   PC は横並び・スマホは同じ幅で縦並び。高さ・文字の大きさ・角丸をそろえ、ボタン全体がリンク。公式のロゴは使わない（文字だけ）。
   色は購入先ごとの塗り（瀧本の指定。文字とのコントラストは 4.5:1 以上）：楽天市場 #BF0000／白（約 6.5:1）、
   Yahoo!ショッピング #FFDA00／#222222（約 11.6:1）、Amazon #18794E／白（約 5.4:1。審査待ちのため定義だけ）。
   Yahoo! はバリューコマースの広告コード（href は「//」のまま）を、出力処理が付ける外側の span[data-sbc-shop] で見分ける
   （共用のドメインでは決めない）。クリックは通販（online_shop）と shop_service で数える */
.sbc-site ul.sbc-marketplace-search {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	/* 左右は本文の中央寄せ（margin-left/right: auto）に任せる。0 にすると PC で本文の左端より外に出る（2026-10-27） */
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
	padding: 0;
}
.sbc-site ul.sbc-marketplace-search li {
	flex: 0 1 15rem;
	display: flex;
	margin: 0;
}
/* ボタンが2つ以上のときと、Yahoo! のボタンだけの記事は、「Yahoo!ショッピングで探す」が PC で1行に収まる幅に
   （楽天だけの記事は 15rem のまま。2026-11-02、Yahoo! だけの記事は 2026-11-03） */
.sbc-site ul.sbc-marketplace-search:has(> li + li) li,
.sbc-site ul.sbc-marketplace-search li:has(> [data-sbc-shop="yahoo_shopping"]) {
	flex-basis: 17rem;
}
/* 広告コードを囲む span（通販サイトの識別）は、ボタンの大きさに影響しないよう li いっぱいに広げる */
.sbc-site .sbc-marketplace-search li > [data-sbc-shop] {
	display: flex;
	flex: 1 1 auto;
}
.sbc-site .sbc-marketplace-search a {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.5em 1em;
	border: 1px solid var(--sbc-accent);
	border-radius: 8px;
	background: var(--sbc-soft);
	color: var(--sbc-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	/* 同シリーズの長い文字が折り返すとき、1文字だけ次の行に残らないよう行の長さをそろえる（2026-11-03） */
	text-wrap: balance;
	text-decoration: none;
}
.sbc-site .sbc-marketplace-search a[href^="https://hb.afl.rakuten.co.jp/"],
.sbc-site .sbc-marketplace-search [data-sbc-shop="rakuten"] a {
	border-color: #bf0000;
	background: #bf0000;
	color: #fff;
}
.sbc-site .sbc-marketplace-search [data-sbc-shop="yahoo_shopping"] a {
	border-color: #ffda00;
	background: #ffda00;
	color: #222;
}
.sbc-site .sbc-marketplace-search a[href^="https://www.amazon.co.jp/"],
.sbc-site .sbc-marketplace-search [data-sbc-shop="amazon"] a {
	border-color: #18794e;
	background: #18794e;
	color: #fff;
}
/* 広告コードの中の計測用画像（幅0・高さ1）は消さずにそのまま置き、ボタンの中で場所を取らないようにする */
.sbc-site .sbc-marketplace-search a img {
	flex: none;
	margin: 0;
	border: 0;
}
/* ポイント時・キーボードのフォーカス時：少し暗くして下線。フォーカスはボタンの外側に濃い枠（どの色の上でも見える） */
.sbc-site .sbc-marketplace-search a:hover,
.sbc-site .sbc-marketplace-search a:focus-visible {
	filter: brightness(0.92);
	text-decoration: underline;
}
.sbc-site .sbc-marketplace-search a:focus-visible {
	outline: 3px solid #222;
	outline-offset: 2px;
}
/* 本文のリンクの下線（.wp-block-post-content a）より優先して、ボタンは通常は下線なし・ポイント時だけ下線（2026-10-30。以前は常に下線が出ていた） */
.sbc-site .wp-block-post-content .sbc-marketplace-search a {
	text-decoration: none;
}
.sbc-site .wp-block-post-content .sbc-marketplace-search a:hover,
.sbc-site .wp-block-post-content .sbc-marketplace-search a:focus-visible {
	text-decoration: underline;
}
@media (max-width: 600px) {
	/* 縦に並べ、同じ記事のボタンは高さをそろえる（同シリーズの長い文字が2行になっても、隣のボタンと同じ高さ。2026-11-03） */
	.sbc-site ul.sbc-marketplace-search {
		display: grid;
		grid-auto-rows: 1fr;
	}
	.sbc-site ul.sbc-marketplace-search li,
	.sbc-site ul.sbc-marketplace-search:has(> li + li) li,
	.sbc-site ul.sbc-marketplace-search li:has(> [data-sbc-shop="yahoo_shopping"]) {
		flex: none;
	}
	/* スマホは左右の余白を少し詰め、同シリーズの文字（20字ほど）が1行に収まりやすくする */
	.sbc-site .sbc-marketplace-search a {
		padding-left: 0.75em;
		padding-right: 0.75em;
	}
}

/* 価格は「1,350円」のように途中で折り返さない */
.sbc-site .sbc-table-prices th:nth-child(2),
.sbc-site .sbc-table-prices td:nth-child(2),
.sbc-site .sbc-table-purchase th:nth-child(3),
.sbc-site .sbc-table-purchase td:nth-child(3) {
	white-space: nowrap;
}

/* ガイドの価格表（お土産ごと。2026-10-15）：PC・スマホとも表のまま。容量・価格の列は内容の幅に抑え、
   販売経路に残りの幅を使う。数量と単位・価格は、出力のまとまり（.sbc-nowrap）の途中で折り返さない。
   それでも収まらない表だけ、表の枠（figure の overflow-x: auto）の中で横にスクロールし、ページ全体ははみ出さない */
.sbc-site .sbc-table-guide-prices table {
	table-layout: auto;
}
.sbc-site .sbc-table-guide-prices th:nth-child(-n+2),
.sbc-site .sbc-table-guide-prices td:nth-child(-n+2) {
	width: 1%;
	white-space: nowrap;
}
.sbc-site .sbc-table-guide-prices th {
	white-space: nowrap;
}
/* 販売経路（店頭・公式通販・公式掲載価格など）は語の途中で折り返さず、「・」の後ろなどで折り返す。
   語の幅が収まらない表だけが横スクロールになる（最小幅は決めない。決めると収まる表までスクロールした） */
.sbc-site .sbc-table-guide-prices td:nth-child(3) {
	word-break: keep-all;
	overflow-wrap: normal;
}
/* 注釈（.sbc-note。記事・ガイド共通。2026-10-15）：価格の表の直下の税込・税抜の注記、価格の時点・送料の補足、
   ガイドの表の下の購入先の名称。出力処理（omiyage_data.wp_blocks.mark_notes など）が段落に付ける。
   13〜14px・標準の太さ・行間 1.6・落ち着いたグレー。表との間は約 10px。本文・表のセル・購入リンクの表には付けない。
   開閉できる項目（駅のガイドの売り場・価格の一覧。2026-10-29）の中も同じ */
.sbc-site :is(.wp-block-post-content, .wp-block-details, .sbc-store-info) > p.sbc-note {
	font-size: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.03em;
	color: var(--sbc-note);
	margin-top: 0;
}
.sbc-site :is(.wp-block-post-content, .wp-block-details, .sbc-store-info) > .wp-block-table:has(+ p.sbc-note) {
	margin-bottom: 10px;
}
.sbc-site :is(.wp-block-post-content, .wp-block-details, .sbc-store-info) > p.sbc-note:has(+ p.sbc-note) {
	margin-bottom: 0.35em;
}
/* 注釈の中のリンクは下線で見分けられるようにする（色はテーマのリンクの色のまま） */
.sbc-site :is(.wp-block-post-content, .wp-block-details, .sbc-store-info) > p.sbc-note a {
	text-decoration-line: underline;
	text-underline-offset: 0.2em;
}

/* ASP の画像付きリンク（.sbc-asp。記事下の「通販」。2026-10-15）：中の HTML は ASP が生成したまま（文字・属性を変えない）。
   外側の枠でラベル（広告であること・購入先）との間隔だけを整え、画像の大きさは変えない。収まらない幅は枠の中で横にスクロールする */
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > .sbc-asp {
	margin: 0 0 1.8em;
	overflow-x: auto;
}
.sbc-site :is(.wp-block-post-content, .sbc-store-info) > .sbc-asp > p.sbc-note {
	margin: 0 0 0.4em;
}

/* 画像：最大 900px で本文の中央に置く（狭い画面では本文と同じ幅・同じ余白）。縦横比を保ち、切り抜き・引き伸ばしはしない。
   キャプションは画像と同じ幅で、その中で左寄せ */
.sbc-site .wp-block-post-content > .wp-block-image {
	max-width: min(900px, var(--wp--style--global--content-size));
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0;
}
.sbc-site .wp-block-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}
.sbc-site .wp-block-image figcaption {
	margin: 0.5em 0 0;
	text-align: left;
	font-size: 0.9em;
	color: var(--sbc-muted);
}

/* 出典（記事の本文の最後の箇条書き）：本文より控えめに。ただし小さすぎ・薄すぎにしない */
.single-sbc_souvenir .wp-block-post-content > ul:last-child {
	font-size: 0.92em;
	color: var(--sbc-muted);
	line-height: 1.75;
}

/* スマホ */
@media (max-width: 600px) {
	/* 見出しの上の余白を PC（3em）より2割ほど縮める */
	.sbc-site .wp-block-post-content h2 {
		margin-top: 2.4em;
	}
	.sbc-site .wp-block-post-title {
		margin-top: 1.25rem;
		margin-bottom: 1.25rem;
	}
	.sbc-site .wp-block-table table {
		font-size: 0.92em;
	}
	.sbc-site .wp-block-table th,
	.sbc-site .wp-block-table td {
		padding: 0.5em 0.6em;
	}

	/* 売り場一覧・容量ごとの詳細は、行ごとの縦並び（ラベル付き）にする */
	.sbc-site .sbc-table-stores thead,
	.sbc-site .sbc-table-variants thead,
	.sbc-site .sbc-table-station thead,
	.sbc-site .sbc-table-compare thead {
		display: none;
	}
	.sbc-site .sbc-table-stores table,
	.sbc-site .sbc-table-stores tbody,
	.sbc-site .sbc-table-stores tr,
	.sbc-site .sbc-table-stores td,
	.sbc-site .sbc-table-variants table,
	.sbc-site .sbc-table-variants tbody,
	.sbc-site .sbc-table-variants tr,
	.sbc-site .sbc-table-variants td,
	.sbc-site .sbc-table-station table,
	.sbc-site .sbc-table-station tbody,
	.sbc-site .sbc-table-station tr,
	.sbc-site .sbc-table-station td,
	.sbc-site .sbc-table-compare table,
	.sbc-site .sbc-table-compare tbody,
	.sbc-site .sbc-table-compare tr,
	.sbc-site .sbc-table-compare td {
		display: block;
		width: auto;
	}
	/*
	 * カードの枠線は、行（tr）そのものの枠線で描く。
	 * 以前は外側に1px はみ出す影（box-shadow）で描いていたが、表を包む要素の overflow-x: auto で
	 * はみ出した部分が切り取られ、先頭のカードの上辺が消えていた。縦並びの表では横スクロールが不要なので
	 * 切り取りもやめる。
	 */
	.sbc-site .wp-block-table.sbc-table-stores,
	.sbc-site .wp-block-table.sbc-table-variants,
	.sbc-site .wp-block-table.sbc-table-station,
	.sbc-site .wp-block-table.sbc-table-compare {
		overflow: visible;
	}
	.sbc-site .sbc-table-stores table,
	.sbc-site .sbc-table-variants table,
	.sbc-site .sbc-table-station table,
	.sbc-site .sbc-table-compare table {
		border: none;
		border-collapse: separate;
		border-spacing: 0;
	}
	.sbc-site .sbc-table-stores tr,
	.sbc-site .sbc-table-variants tr,
	.sbc-site .sbc-table-station tr,
	.sbc-site .sbc-table-compare tr {
		border: 1px solid var(--sbc-line);
		border-radius: 8px;
		padding: 0.7em 0.9em;
		margin: 0 0 0.8em;
		background: #ffffff;
	}
	.sbc-site .sbc-table-stores td,
	.sbc-site .sbc-table-variants td,
	.sbc-site .sbc-table-station td,
	.sbc-site .sbc-table-compare td {
		border: none;
		padding: 0.15em 0;
	}
	/* ラベル付きの行：ラベルを左の列に置き、値は残りの幅を使う。値が折り返しても、2行目以降は値の開始位置にそろう
	   （ラベルの下へ回り込まない）。値の中のリンク・まとまりの span もそのまま流れる */
	.sbc-site .sbc-table-stores td:not(:first-child),
	.sbc-site .sbc-table-variants td:not(:first-child),
	.sbc-site .sbc-table-station td:not(:first-child),
	.sbc-site .sbc-table-compare td:not(:first-child) {
		position: relative;
		padding-left: 5.9em;
	}
	.sbc-site .sbc-table-stores td:first-child,
	.sbc-site .sbc-table-variants td:first-child,
	.sbc-site .sbc-table-station td:first-child,
	.sbc-site .sbc-table-compare td:first-child {
		width: auto;
		font-weight: 600;
		font-size: 1.03em;
		margin-bottom: 0.2em;
	}
	.sbc-site .sbc-table-stores td:not(:first-child)::before,
	.sbc-site .sbc-table-variants td:not(:first-child)::before,
	.sbc-site .sbc-table-station td:not(:first-child)::before,
	.sbc-site .sbc-table-compare td:not(:first-child)::before {
		position: absolute;
		left: 0;
		top: 0.15em;
		width: 6.4em; /* 文字が 0.85em のため、値の開始位置（5.9em）の手前に収まる幅 */
		font-size: 0.85em;
		line-height: 2.06; /* 値の1行目と高さをそろえる（本文の行の高さ ÷ 0.85） */
		font-weight: 500;
		color: var(--sbc-muted);
	}
	/* PC の列幅（比較一覧の種類 18%）をカードに持ち込まない（値の列が細くなり「クッ／キー」と折り返していた） */
	.sbc-site .sbc-table-compare td:nth-child(2) {
		width: auto;
	}
	.sbc-site .sbc-table-stores td:nth-child(2)::before { content: "場所"; }
	.sbc-site .sbc-table-stores td:nth-child(3)::before { content: "取扱容量"; }
	.sbc-site .sbc-table-variants td:nth-child(2)::before { content: "内容"; }
	.sbc-site .sbc-table-variants td:nth-child(3)::before { content: "箱のサイズ"; }
	.sbc-site .sbc-table-variants td:nth-child(4)::before { content: "価格"; }
	.sbc-site .sbc-table-station td:nth-child(2)::before { content: "店舗"; }
	.sbc-site .sbc-table-station td:nth-child(3)::before { content: "改札"; }
	.sbc-site .sbc-table-station td:nth-child(4)::before { content: "階・エリア"; }
	.sbc-site .sbc-table-station td:nth-child(5)::before { content: "取扱容量"; }
	.sbc-site .sbc-table-compare td:nth-child(2)::before { content: "種類"; }
	.sbc-site .sbc-table-compare td:nth-child(3)::before { content: "特徴"; }

	/* 価格表・通販表・2列の詳細表は、短い値なので表のまま（列の幅を内容に合わせる） */
	.sbc-site .sbc-table-prices table,
	.sbc-site .sbc-table-purchase table,
	.sbc-site .sbc-table-details table {
		table-layout: auto;
	}
	/* ガイドの価格表：価格の列は販売経路と幅を分け合い、金額と税区分・税込・税抜の記載なしの注記の間で折り返す
	   （1% に絞ると、税区分が混在する表で価格の列が細くなりすぎ、行が高くなった） */
	.sbc-site .sbc-table-guide-prices th:nth-child(2),
	.sbc-site .sbc-table-guide-prices td:nth-child(2) {
		width: auto;
	}
	.sbc-site .sbc-table-guide-prices td:nth-child(2) {
		white-space: normal;
	}
	.sbc-site :is(.wp-block-post-content, .sbc-store-info) > h3 {
		margin-top: 1.9em;
	}
}

/* 記事冒頭の広告の表示（全記事共通。2026-10-20、瀧本の指示）：13px 程度、読みやすい濃さのグレー（白地で約 7:1）。位置は今のまま */
.sbc-site .wp-block-post-content > p.sbc-ad-notice {
	font-size: 0.8125rem;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #595959;
	margin-top: 0;
	margin-bottom: 1.1rem;
}

/* 記事の読みやすさ（2026-10-20、瀧本の指示。シガールとチーズケーキ ナウの見本を確認し、全記事に共通で適用）。
   記事のページ（body.single-sbc_souvenir）だけで、トップ・ガイドのページは変えない。本文 PC 17.5px・スマホ 16.5px、行間 1.75。
   H2 は PC 22px・スマホ 19px（2026-10-29、丸ゴシックに合わせて少し小さく）、H3 は PC 20px・スマホ 18px（H2 > H3 > 本文） */
body.single-sbc_souvenir.sbc-site .wp-block-post-content {
	font-size: 1.09375rem;
	line-height: 1.75;
}
body.single-sbc_souvenir.sbc-site .wp-block-post-content h2 {
	font-size: 1.375rem;
	line-height: 1.5;
	margin-top: 2.6em;
	margin-bottom: 0.9em;
}
body.single-sbc_souvenir.sbc-site :is(.wp-block-post-content, .sbc-store-info) > h3 {
	font-size: 1.25rem;
	margin-top: 1.8em;
	margin-bottom: 0.7em;
}
body.single-sbc_souvenir.sbc-site :is(.wp-block-post-content, .sbc-store-info) > p,
body.single-sbc_souvenir.sbc-site :is(.wp-block-post-content, .sbc-store-info) > ul {
	margin-bottom: 1.2em;
}
@media (max-width: 600px) {
	body.single-sbc_souvenir.sbc-site .wp-block-post-content {
		font-size: 1.03125rem;
	}
	body.single-sbc_souvenir.sbc-site .wp-block-post-content h2 {
		font-size: 1.1875rem;
	}
	body.single-sbc_souvenir.sbc-site :is(.wp-block-post-content, .sbc-store-info) > h3 {
		font-size: 1.125rem;
	}
}

/* 販売店情報の囲み（記事の上下の「販売店情報」。見出し・店舗・通販・楽天のボタンをまとめる。2026-10-30、瀧本の指示）：
   薄いグレーの背景で白い本文と区切る。枠線・影は付けない。囲みの中の表（スマホの縦並びのカード）は白のまま */
.sbc-site .wp-block-post-content > .sbc-store-info {
	box-sizing: border-box;
	margin-top: 2.6em;
	margin-bottom: 2.6em;
	padding: 1.5rem 2rem 1.75rem;
	border-radius: 10px;
	background: #f4f4f3; /* 本文の文字 #3a3d40 とのコントラスト 約 10:1、補助の文字 #6b5d4b は約 5.9:1 */
}
.sbc-site .wp-block-post-content > .sbc-store-info > :first-child {
	margin-top: 0;
}
.sbc-site .wp-block-post-content > .sbc-store-info > :last-child {
	margin-bottom: 0;
}
.sbc-site .sbc-store-info .wp-block-table thead th {
	background: #ffffff;
}
.sbc-site .sbc-store-info .wp-block-table td {
	background: #ffffff;
}

/* 折り返し（2026-10-30）：テーマの text-wrap: pretty（見出し・段落・キャプション）は、Safari（WebKit）では全行の長さをそろえるため、
   長いタイトル・段落の各行の右に2〜3文字分の空きが出る（320px で約 70px）。記事のページでは通常の折り返しにする */
body.single-sbc_souvenir.sbc-site :is(h1, h2, h3, p, li, figcaption, caption) {
	text-wrap: wrap;
}

/* スマホの左右の余白（2026-10-30、瀧本の指示）：テーマの左右の余白（clamp(30px, 5vw, 50px)。スマホでは常に 30px）を、
   サイトのすべてのページ（記事・トップ・一覧・ガイド・サイト情報。body.sbc-site）で 18px にする。ヘッダー・フッターも同じ余白で
   本文と左端がそろう。文字の大きさ・カードの画像の比率・PC（601px 以上）のレイアウトは変えない。
   記事の販売店情報の囲みは画面の端まで広げ、内側の余白を本文の余白と同じにして、中身の幅を本文と同じに保つ */
@media (max-width: 600px) {
	body.sbc-site {
		--wp--style--root--padding-left: 18px;
		--wp--style--root--padding-right: 18px;
	}
	body.single-sbc_souvenir.sbc-site .wp-block-post-content > .sbc-store-info {
		margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important;
		max-width: none;
		padding: 1.25rem var(--wp--style--root--padding-right) 1.5rem var(--wp--style--root--padding-left);
		border-radius: 0;
	}
}
