/* sakamoto-kabi専用領域に限定。ヘッダー・管理バー・他の管理画面には適用しない。 */
.vl-page,
.vl-page * {
	box-sizing: border-box;
}

.vl-page {
	width: 100%;
	max-width: 1080px;
	min-width: 0;
	margin: 0 auto;
	padding: 40px 24px 56px;
	text-align: left;
	overflow-wrap: anywhere;
}

.vl-page--article {
	max-width: 800px;
}

.vl-list-header {
	margin-bottom: 24px;
}

.vl-list-header h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.4;
}

.vl-list-header p {
	margin: 0;
	font-size: 15px;
}

.vl-feed {
	display: grid;
	gap: 0;
}

.vl-card {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
	padding: 24px 0;
	border-top: 1px solid #8886;
}

.vl-card-content {
	flex: 1;
	min-width: 0;
}

.vl-card-image {
	display: block;
	flex: 0 0 30%;
}

.vl-card-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.vl-page .vl-card-title {
	margin: 8px 0 12px;
	font-size: 26px;
	line-height: 1.55;
	letter-spacing: normal;
}

.vl-card-title a {
	color: inherit;
	text-decoration: none;
}

.vl-card-title a:hover {
	text-decoration: underline;
}

.vl-date,
.vl-article-meta {
	font-size: 14px;
	line-height: 1.7;
}

.vl-card-excerpt {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.8;
}

.vl-read-more {
	display: inline-block;
	padding: 8px 0;
	font-size: 15px;
	text-underline-offset: 4px;
}

.vl-article-header {
	margin: 0 0 28px;
	padding: 0;
	text-align: left;
}

.vl-categories {
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.7;
}

.vl-page .vl-article-title {
	margin: 0 0 20px;
	padding: 0;
	font-size: clamp(28px, 4.8vw, 40px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .01em;
	text-align: left;
	word-break: normal;
	line-break: strict;
}

.vl-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.vl-article-image {
	margin: 0 0 28px;
}

.vl-article-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.vl-article-body {
	min-width: 0;
	font-size: 18px;
	line-height: 1.9;
}

.vl-article-body > :first-child {
	margin-top: 0;
}

.vl-article-body p {
	margin-bottom: 1.5em;
}

.vl-article-body h2 {
	margin: 2em 0 .8em;
	font-size: 1.4em;
	line-height: 1.6;
}

.vl-article-body h3 {
	margin: 1.8em 0 .8em;
	font-size: 1.2em;
	line-height: 1.6;
}

.vl-article-body :where(img, video, iframe) {
	max-width: 100%;
}

.vl-article-body :where(img, video) {
	height: auto;
}

.vl-article-body :where(pre, .wp-block-table) {
	max-width: 100%;
	overflow-x: auto;
}

.vl-article-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #8886;
	font-size: 15px;
}

.vl-page a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.vl-page .pagination,
.vl-page-links {
	margin-top: 24px;
}

.vl-page .page-numbers,
.vl-page-links .post-page-numbers {
	display: inline-block;
	padding: 10px 12px;
}

@media (max-width: 600px) {
	.vl-page {
		padding: 24px 18px 36px;
	}

	.vl-list-header h1 {
		font-size: 24px;
	}

	.vl-card {
		flex-direction: column;
		gap: 16px;
		padding: 20px 0;
	}

	.vl-card-image {
		flex-basis: auto;
		width: 100%;
	}

	.vl-page .vl-card-title {
		font-size: 22px;
	}

	.vl-page .vl-article-title {
		font-size: clamp(26px, 7.2vw, 32px);
		line-height: 1.5;
		margin-bottom: 16px;
	}

	.vl-article-header,
	.vl-article-image {
		margin-bottom: 24px;
	}

	.vl-article-body {
		font-size: 17px;
	}
}

/* ==========================================================================
   sakamoto-kabi: 落ち着いた白基調（questions/2026-10-02 Q8）
   親テーマはダーク基調で、ライトモードでもフッター等を強制的に黒くするため、
   ここで同じセレクタを後から上書きして全体を白基調にそろえる。
   既定モードは light・切替ボタン非表示（bin/apply-theme-settings.sh）。
   ========================================================================== */
:root,
:root.light-theme,
html.light-theme,
body.light-theme,
html.light-theme .site-footer,
body.light-theme .site-footer,
html .site-footer,
html.light-theme .header-super-top,
body.light-theme .header-super-top {
	--bg-color: #ffffff;
	--surface-color: #f6f7f9;
	--text-primary: #1f2328;
	--text-secondary: #555c66;
	--border-color: #dde1e6;
	--accent-color: #1f3a5f;
	--font-heading: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
	--font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

body {
	background: var(--bg-color);
	color: var(--text-primary);
}

.site-footer {
	background: var(--surface-color);
	color: var(--text-primary);
	border-top: 1px solid var(--border-color);
}

/* 念のため（設定で非表示にしているが、テーマ側で出る場合に備える） */
.theme-toggle {
	display: none !important;
}

/* 本文の表・リンク（記事内の対象商品表・出典リンク） */
.vl-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95em;
}

.vl-article-body th,
.vl-article-body td {
	border: 1px solid var(--border-color);
	padding: 0.6rem 0.8rem;
	text-align: left;
	vertical-align: top;
}

.vl-article-body th {
	background: var(--surface-color);
	white-space: nowrap;
}

.vl-article-body a {
	color: var(--accent-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 600px) {
	.vl-article-body table {
		display: block;
		overflow-x: auto;
	}
	.vl-article-body th {
		white-space: normal;
	}
}
