@charset "UTF-8";

/* Google Fonts: sample.txt 内 Chart.js と同じ Noto Sans JP を本文に明示（フォールバックはサイト共通のゴシック系） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* 調査・データ記事向けプロース（sample.txt / AI生成HTMLの見た目に合わせた本文スタイル） */

main > .white_wrap .content {
	--hb-ink: #1a2744;
	--hb-accent: #2c67e1;
	--hb-accent-soft: #93b5f1;
	--hb-muted: #555;
	--hb-caption: #999;
	--hb-border: #e8eaed;
	--hb-bg-soft: #f8f9fa;
	--hb-negative: #d44;
	/* 本文ベース: single.css の .content p と同一（16px / 行間 1.7）＋ sample と整合するフォント */
	font-family: 'Noto Sans JP', 'Yu Gothic', '游ゴシック', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
	letter-spacing: normal;
	color: #333;
	-webkit-font-smoothing: antialiased;
}

/* 本文リンク（cmn.css の水色を差し替え） */
main > .white_wrap .content a:link,
main > .white_wrap .content a:visited,
main > .white_wrap .content a:focus,
main > .white_wrap .content a:hover {
	color: var(--hb-accent) !important;
	text-decoration: underline;
}

main > .white_wrap .content a:hover {
	opacity: 0.92;
}

/* 段落まわり: single.css と完全一致（連続 p の区切り = 35px） */
main > .white_wrap .content * + p {
	margin: 35px 0 0;
}

main > .white_wrap .content p {
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
	letter-spacing: normal;
	margin: 0;
}

main > .white_wrap .content strong,
main > .white_wrap .content b {
	font-weight: 700;
}

/* 見出し（本文内 h3 がセクションの主役） */
main > .white_wrap .content h2 {
	font-size: 1.5em;
	font-weight: bold;
	color: var(--hb-ink);
	/* 左・下をアクセント青で強調（インライン border も上書き） */
	border-left: 4px solid var(--hb-accent) !important;
	border-bottom: 4px solid var(--hb-accent) !important;
	border-top: none;
	border-right: none;
	padding: 0.45em 12px 0.45em 12px;
	margin-top: 1.75em;
	margin-bottom: 0.65em;
	line-height: 1.35;
	background: #d2e7f6 !important;
}

main > .white_wrap .content h3 {
	font-size: 1.4em;
	font-weight: bold;
	color: var(--hb-ink);
	border-left: 4px solid var(--hb-accent);
	padding-left: 12px;
	margin-top: 2em;
	margin-bottom: 0.8em;
	line-height: 1.35;
}

main > .white_wrap .content h4 {
	font-size: 1.15em;
	font-weight: bold;
	color: var(--hb-ink);
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

/* 図表・本文イメージの最大幅 */
main > .white_wrap .content img {
	max-width: 800px;
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

main > .white_wrap .content p > img:only-child {
	display: block;
	margin-bottom: 1em;
}

/* 表（cmn.css の全体テーブル指定を本文で上書き） */
main > .white_wrap .content table {
	width: 100%;
	max-width: 800px;
	margin: 16px auto;
	border-collapse: collapse;
	font-size: 0.92em;
	background: transparent;
}

main > .white_wrap .content thead th {
	padding: 10px 12px;
	font-weight: 600;
	background: var(--hb-ink);
	color: #fff;
	border: none;
	text-align: left;
	font-size: inherit;
	line-height: 1.4;
}

main > .white_wrap .content thead tr:nth-child(n + 2) th {
	background: #2c3e5a;
	color: #ccc;
	font-size: 0.85em;
	font-weight: 600;
	padding: 4px 12px;
}

main > .white_wrap .content tbody td {
	padding: 8px 12px;
	font-size: inherit;
	line-height: 1.5;
	color: #333;
	background: transparent;
	border: none;
	font-family: inherit;
	font-weight: inherit;
}

main > .white_wrap .content tbody tr {
	border-bottom: 1px solid var(--hb-border);
	border-top: none;
}

main > .white_wrap .content tbody tr:nth-child(even) td {
	background: var(--hb-bg-soft);
}

main > .white_wrap .content tbody {
	border-bottom: none;
}

/* 出典行（sample.txt: font-size 0.75em; color #999; margin-top 2px） */
main > .white_wrap .content p[style*="text-align: right"] {
	font-size: 0.75em;
	line-height: 1.7;
	color: var(--hb-caption);
	margin-top: 10px;
	margin-bottom: 10px;
}

main > .white_wrap .content p[style*="text-align: right"] a {
	font-size: inherit;
}

/* 箇条書き（グローバル .content ul のリセットを本文で復元） */
main > .white_wrap .content ul:not([class*="split_"]):not([class*="gap_"]) {
	list-style: disc;
	padding-left: 1.5em;
	margin: 1em 0;
	line-height: 1.8;
}

main > .white_wrap .content ol:not([class*="split_"]) {
	list-style: decimal;
	padding-left: 1.5em;
	margin: 1em 0;
	line-height: 1.8;
}

main > .white_wrap .content li::marker {
	color: var(--hb-muted);
}

/* エディタ／HTMLからクラス付きで使えるコールアウト（インライン無しでも近い見た目） */
main > .white_wrap .content .hb-callout {
	margin: 16px 0 24px;
	padding: 14px 18px;
	border-radius: 8px;
	background: var(--hb-bg-soft);
	border: 1px solid #e5e7eb;
}

main > .white_wrap .content .hb-callout > p:first-child {
	margin-top: 0;
	font-weight: bold;
	font-size: 0.85em;
	color: var(--hb-ink);
	margin-bottom: 8px;
}

main > .white_wrap .content .hb-callout ul {
	font-size: 0.82em;
	color: var(--hb-muted);
	margin: 0;
	padding-left: 18px;
	line-height: 1.8;
}

main > .white_wrap .content .hb-callout-note {
	margin: 24px 0;
	padding: 14px 18px;
	border-radius: 8px;
	background: var(--hb-bg-soft);
	border-left: 3px solid #94a3b8;
	font-size: 0.85em;
	color: var(--hb-ink);
	line-height: 1.8;
}

/* Chart.js 用プレースホルダー（sample と同様の高さ確保） */
main > .white_wrap .content .hb-chart-placeholder {
	position: relative;
	min-height: 220px;
	max-width: 800px;
	margin: 4px auto;
}

@media screen and (max-width: 640px) {
	main > .white_wrap .content table {
		font-size: 0.82em;
	}

	main > .white_wrap .content thead th,
	main > .white_wrap .content tbody td {
		padding: 6px 8px;
	}
}
