/* ==========================================================================
   コラム（column CPT）専用デザイン
   - common.css は非改変。column系ページ(single/archive/taxonomy)でのみ enqueue。
   - すべて .c-col- 名前空間でスコープし既存FLOCSSクラスと衝突させない。
   - ブランド: navy #0A324E / pink #DD849A・#F2A9BB / cream #FCF1E7
   ========================================================================== */

.c-col,
.c-col-cards,
.c-col-archive-head,
.c-col-pager {
	--c-navy: #0A324E;
	--c-navy2: #1f2d3d;
	--c-pink: #DD849A;
	--c-pink-l: #F2A9BB;
	--c-cream: #FCF1E7;
	--c-ink: #33404a;
	--c-muted: #6b7a86;
	--c-line: #e7ecf1;
	--c-soft: #f6f8fa;
	--c-readw: 820px;
	--c-radius: 14px;
}

.c-col { max-width: var(--c-readw); margin: 0 auto; }
.c-col *, .c-col-cards *, .c-col-card * { box-sizing: border-box; }

/* ---------- パンくず ---------- */
.c-col-crumb { font-size: .8rem; color: var(--c-muted); margin: 0 0 20px; line-height: 1.7; }
.c-col-crumb a { color: var(--c-muted); text-decoration: none; }
.c-col-crumb a:hover { color: var(--c-navy); text-decoration: underline; }
.c-col-crumb span { margin: 0 .5em; color: #c2ccd4; }

/* ---------- FV（ファーストビュー／ヒーロー） ---------- */
.c-col-fv {
	position: relative;
	border-radius: var(--c-radius);
	overflow: hidden;
	min-height: 360px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, #0A324E 0%, #173f5c 55%, #3a5f7a 100%);
	background-size: cover;
	background-position: center;
	box-shadow: 0 20px 44px -26px rgba(10, 50, 78, .55);
}
.c-col-fv--img::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 26, 42, .86) 0%, rgba(6, 26, 42, .40) 48%, rgba(6, 26, 42, .05) 100%);
}
.c-col-fv__deco {
	position: absolute;
	right: -70px;
	top: -70px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 169, 187, .55), rgba(242, 169, 187, 0) 70%);
	pointer-events: none;
}
.c-col-fv__inner { position: relative; z-index: 1; width: 100%; padding: 36px 34px; color: #fff; }
.c-col-fv__cat {
	display: inline-block;
	background: var(--c-pink);
	color: #fff;
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .05em;
	padding: 5px 15px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.c-col-fv__title {
	color: #fff;
	font-size: 2rem;
	line-height: 1.5;
	font-weight: 700;
	margin: 0;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}
.c-col-fv__meta {
	margin-top: 18px;
	font-size: .84rem;
	color: rgba(255, 255, 255, .95);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}
.c-col-fv__meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 目次ボックス ---------- */
.c-col-toc {
	border: 1px solid var(--c-line);
	background: var(--c-soft);
	border-radius: var(--c-radius);
	padding: 24px 28px;
	margin: 38px 0;
}
.c-col-toc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--c-navy);
	font-size: 1.08rem;
	margin: 0 0 14px;
}
.c-col-toc__head::before { content: ""; width: 24px; height: 3px; background: var(--c-pink); border-radius: 2px; }
.c-col-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.c-col-toc__list li { counter-increment: toc; }
.c-col-toc__list a {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 10px 4px;
	color: var(--c-ink);
	text-decoration: none;
	line-height: 1.6;
	border-bottom: 1px dashed #dfe6ec;
}
.c-col-toc__list li:last-child a { border-bottom: 0; }
.c-col-toc__list a::before {
	content: counter(toc, decimal-leading-zero);
	color: var(--c-pink);
	font-weight: 700;
	font-size: .9em;
	flex: 0 0 auto;
}
.c-col-toc__list a:hover { color: var(--c-navy); }

/* ---------- 本文（ブロック間隔＆見出し） ---------- */
.c-col-body { color: var(--c-ink); font-size: 1.02rem; line-height: 2; }
.c-col-body > * { margin-top: 0; }
.c-col-body > * + * { margin-top: 1.6em; }       /* ブロック間隔 */
.c-col-body p { margin: 0; }

.c-col-body h2,
.c-col-sec-title {
	margin: 2.8em 0 0;
	padding: 0 0 .55em;
	font-size: 1.5rem;
	line-height: 1.5;
	font-weight: 700;
	color: var(--c-navy);
	border-bottom: 2px solid var(--c-line);
	position: relative;
	/* サイトヘッダーが position:sticky（高さ約159px）のため、目次アンカーで飛んだ見出しが
	   ヘッダー下に隠れないよう十分なオフセットを確保する */
	scroll-margin-top: 175px;
}
.c-col-body h2::after,
.c-col-sec-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 72px;
	height: 3px;
	background: linear-gradient(90deg, var(--c-pink), var(--c-pink-l));
	border-radius: 2px;
}
.c-col-body h2 + * { margin-top: 1.1em; }
.c-col-body h3 {
	margin: 2.3em 0 0;
	padding-left: .7em;
	font-size: 1.18rem;
	line-height: 1.6;
	font-weight: 700;
	color: var(--c-navy);
	border-left: 5px solid var(--c-pink-l);
}
.c-col-body h3 + * { margin-top: .9em; }

.c-col-body a { color: var(--c-navy2); text-decoration: underline; text-underline-offset: 2px; }
.c-col-body strong { color: var(--c-navy); font-weight: 700; }

.c-col-body ul { margin: 0; padding: 0; list-style: none; }
.c-col-body ul li { position: relative; padding-left: 1.4em; margin: .55em 0; }
.c-col-body ul li::before {
	content: "";
	position: absolute;
	left: .2em;
	top: .82em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-pink);
}

.c-col-body ol { margin: 0; padding-left: 0; list-style: none; counter-reset: c-col-ol; }
.c-col-body ol li { position: relative; padding-left: 1.9em; margin: .55em 0; counter-increment: c-col-ol; }
.c-col-body ol li::before {
	content: counter(c-col-ol);
	position: absolute;
	left: 0;
	top: .35em;
	width: 1.35em;
	height: 1.35em;
	border-radius: 50%;
	background: var(--c-pink);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.35em;
	text-align: center;
}

/* ---------- 表（比較表・料金表） ----------
   Markdown の | 表 → <table>。single-column.php が .c-col-tablewrap で包み、
   狭い画面では表だけを横スクロールさせる（本文は横に溢れさせない）。 */
.c-col-tablewrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid var(--c-line);
}
.c-col-body table {
	width: 100%;
	min-width: 460px;          /* これ未満はラッパー側で横スクロール */
	border-collapse: collapse;
	background: #fff;
	font-size: .95rem;
	line-height: 1.75;
}
.c-col-body table th,
.c-col-body table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--c-line);
	border-right: 1px solid var(--c-line);
	word-break: break-word;
}
.c-col-body table th:last-child,
.c-col-body table td:last-child { border-right: 0; }
.c-col-body table tr:last-child td { border-bottom: 0; }
.c-col-body table thead th {
	background: var(--c-navy);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	border-right-color: rgba(255, 255, 255, .22);
	border-bottom: 0;
}
/* 1列目＝比較軸。見出し列として強調する */
.c-col-body table tbody th,
.c-col-body table tbody td:first-child {
	background: #f7f9fb;
	font-weight: 700;
	color: var(--c-navy);
	white-space: nowrap;
}
.c-col-body table tbody tr:nth-child(even) td:not(:first-child) { background: #fbfcfd; }
/* 表内は行間を詰め、箇条書きの丸も出さない（セルが窮屈になるため） */
.c-col-body table ul li { padding-left: 0; margin: .2em 0; }
.c-col-body table ul li::before { display: none; }

/* 表の直後に置く注記（出典・注釈） */
.c-col-body .c-col-tablenote { font-size: .86rem; color: #6b7785; margin-top: .7em; }

/* コールアウト（ポイント／未承認薬ボックス等の blockquote） */
.c-col-body blockquote {
	margin: 0;
	padding: 22px 24px;
	border-radius: 12px;
	background: #f4f6f8;
	border: 1px solid #e4e9ee;
}
.c-col-body blockquote > *:first-child { margin-top: 0; }
.c-col-body blockquote > * + * { margin-top: .9em; }
.c-col-body blockquote ul li::before { background: var(--c-pink); }

/* ---------- FAQ（常時可視。JSON-LDはメタと共有） ---------- */
.c-col-faq { margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.c-col-faq__item { border: 1px solid var(--c-line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.c-col-faq__q { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--c-navy); margin: 0 0 10px; line-height: 1.6; }
.c-col-faq__a { display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink); margin: 0; line-height: 1.9; font-size: .96rem; }
.c-col-faq__q::before,
.c-col-faq__a::before {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	font-weight: 700;
}
.c-col-faq__q::before { content: "Q"; background: var(--c-navy); }
.c-col-faq__a::before { content: "A"; background: var(--c-pink); }

/* ---------- 参考文献・監修 ---------- */
.c-col-refs { margin: 50px 0 0; padding: 22px 24px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.c-col-refs__head { font-weight: 700; color: var(--c-navy); margin: 0 0 10px; font-size: 1rem; }
.c-col-refs ul { list-style: none; margin: 0; padding: 0; }
.c-col-refs li { padding: 7px 0; border-bottom: 1px dashed var(--c-line); font-size: .88rem; color: var(--c-muted); word-break: break-word; }
.c-col-refs li:last-child { border-bottom: 0; }
.c-col-refs a { color: var(--c-navy2); }

.c-col-author { display: flex; gap: 14px; align-items: center; margin: 22px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--c-soft); }
.c-col-author__badge {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-navy), #3a5f7a);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.c-col-author__t { font-size: .9rem; color: var(--c-ink); line-height: 1.7; margin: 0; }
.c-col-author__t b { color: var(--c-navy); }
.c-col-author__t a { color: var(--c-navy2); }

/* ---------- CTA・戻る ---------- */
.c-col-cta { text-align: center; margin: 46px 0 0; }
/* 予約ボタン（コラム専用。common.cssの p-btn-reserve は固定幅＋overflow:hiddenでスマホ見切れするため自前実装） */
.c-col-cta-btn {
	display: inline-block;
	max-width: 100%;
	padding: 15px 44px;
	background: linear-gradient(135deg, #DD849A, #e79aad);
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 14px 28px -14px rgba(221, 132, 154, .75);
	transition: transform .15s ease, box-shadow .15s ease;
}
.c-col-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(221, 132, 154, .8); }
.c-col-cta-btn > span { display: flex; flex-direction: column; align-items: center; line-height: 1.4; }
.c-col-cta-btn small { font-size: .74rem; font-weight: 600; opacity: .95; letter-spacing: .02em; }
.c-col-cta-btn__label { font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; }
.c-col-back { margin: 34px 0 0; }
.c-col-back a { color: var(--c-navy2); text-decoration: none; font-size: .92rem; }
.c-col-back a:hover { text-decoration: underline; }
.c-col-back a::before { content: "← "; }

/* ---------- 一覧（カードグリッド） ---------- */
.c-col-archive-head { max-width: 1080px; margin: 0 auto; text-align: center; }
.c-col-archive-head h1 { font-size: 1.8rem; color: var(--c-navy); font-weight: 700; margin: 0 0 8px; }
.c-col-archive-head p { color: var(--c-muted); font-size: .95rem; margin: 0; line-height: 1.8; }

.c-col-cards {
	list-style: none;
	margin: 32px auto 0;
	padding: 0;
	max-width: 1080px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}
.c-col-card {
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--c-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.c-col-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(10, 50, 78, .5); }
.c-col-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.c-col-card__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #0A324E, #3a5f7a);
	position: relative;
	overflow: hidden;
}
.c-col-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-col-card__media--noimg::after {
	content: "COLUMN";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .5);
	font-weight: 700;
	letter-spacing: .18em;
	font-size: 1rem;
}
.c-col-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-col-card__cat { align-self: flex-start; background: var(--c-pink); color: #fff; font-weight: 700; font-size: .72rem; padding: 3px 11px; border-radius: 999px; }
.c-col-card__title { font-size: 1.05rem; line-height: 1.55; font-weight: 700; color: var(--c-navy); margin: 0; }
.c-col-card__excerpt { font-size: .85rem; line-height: 1.7; color: var(--c-muted); margin: 0; flex: 1; }
.c-col-card__date { font-size: .78rem; color: #9aa7b1; margin: 0; }

/* ---------- ページネーション ---------- */
.c-col-pager { max-width: 1080px; margin: 38px auto 0; }
.c-col-pager .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.c-col-pager .page-numbers {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	color: var(--c-navy);
	text-decoration: none;
}
.c-col-pager .page-numbers.current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.c-col-pager .page-numbers.dots { border: 0; }

/* ---------- 一覧トップ（ハブ） ---------- */
.c-col-hero { text-align: center; max-width: 780px; margin: 0 auto; }
.c-col-hero__eyebrow { display: inline-block; letter-spacing: .3em; font-size: .72rem; font-weight: 700; color: var(--c-pink); margin: 0 0 12px; }
.c-col-hero h1 { font-size: 2rem; line-height: 1.45; color: var(--c-navy); font-weight: 700; margin: 0 0 14px; }
.c-col-hero p { color: var(--c-muted); font-size: .95rem; line-height: 1.95; margin: 0; }

/* ジャンル入口（TOP「診療のご案内」と同じイラスト・ピル型ラベルを再利用して意匠を統一） */
.c-col-hub {
	list-style: none;
	margin: 40px auto 0;
	padding: 0;
	max-width: 900px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
.c-col-hub__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 30px 28px 28px;
	border: 1px solid var(--c-line);
	border-radius: var(--c-radius);
	background: #fff;
	color: var(--c-ink);
	text-decoration: none;
	box-shadow: 0 14px 30px -22px rgba(10, 50, 78, .35);
	transition: transform .18s ease, box-shadow .18s ease;
}
.c-col-hub__link:hover { transform: translateY(-4px); box-shadow: 0 22px 42px -24px rgba(10, 50, 78, .45); }
.c-col-hub__fig { width: min(230px, 66%); height: auto; display: block; }
.c-col-hub__label {
	/* common.css の .p-section-title-heading（TOP診療のご案内）と同じ意匠 */
	font-family: "Zen Old Mincho", serif;
	font-weight: 400;
	font-size: 1.25rem;
	color: var(--c-navy);
	background: #F2F2F2;
	border: 1px solid #678499;
	border-radius: 100px;
	text-align: center;
	width: 100%;
	padding: .5em 1em;
	box-sizing: border-box;
}
.c-col-hub__desc { font-size: .875rem; line-height: 1.9; color: var(--c-muted); align-self: stretch; }
.c-col-hub__more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--c-navy2); }
.c-col-hub__more::after { content: "→"; }
.c-col-hub__count { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 10px; font-size: .78rem; color: var(--c-navy); font-weight: 700; }

/* ジャンル別の新着 */
.c-col-latest { max-width: 1080px; margin: 56px auto 0; }
.c-col-latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; position: relative; padding-bottom: .55em; border-bottom: 2px solid var(--c-line); }
.c-col-latest__head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; background: linear-gradient(90deg, var(--c-pink), var(--c-pink-l)); border-radius: 2px; }
.c-col-latest__head h2 { font-size: 1.35rem; font-weight: 700; color: var(--c-navy); margin: 0; line-height: 1.5; }
.c-col-latest__head a { color: var(--c-navy2); text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.c-col-latest__head a:hover { text-decoration: underline; }
.c-col-latest__head a::after { content: " →"; }
.c-col-latest .c-col-cards { margin-top: 26px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 768px) {
	.c-col-fv { min-height: 260px; }
	.c-col-fv__inner { padding: 24px 20px; }
	.c-col-fv__title { font-size: 1.42rem; }
	.c-col-body { font-size: 1rem; line-height: 1.95; }
	.c-col-body h2, .c-col-sec-title { font-size: 1.3rem; scroll-margin-top: 90px; }
	.c-col-body h3 { font-size: 1.1rem; }
	.c-col-body table { font-size: .9rem; }
	.c-col-body table th, .c-col-body table td { padding: 10px 12px; }
	.c-col-toc { padding: 20px 20px; }
	.c-col-cards { grid-template-columns: 1fr; gap: 18px; }
	.c-col-hero h1 { font-size: 1.5rem; }
	.c-col-hero__br { display: none; }
	.c-col-hub { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
	.c-col-hub__link { padding: 26px 22px 24px; }
	.c-col-hub__fig { width: min(200px, 58%); }
	.c-col-hub__label { font-size: 1.1rem; }
	.c-col-latest { margin-top: 44px; }
	.c-col-latest__head h2 { font-size: 1.15rem; }
	.c-col-latest__head a { font-size: .82rem; }
}
