@charset "UTF-8";
/* ====================================================
  コラム詳細 右サイド（template-parts/column-side.php）
  読み込み：header.php で is_singular('column') のときだけ
  ・このファイルの指定はすべて #single-post .colLayout 配下に閉じる
    （本文用の #single-post .single-conts p / ul li の指定に負けないようIDから書く）
  ・!important は使わない（Section46 の再発防止）
  ・色はコーポレートパレットのみ
     #003594 / #0070b3 / #00aad1 / #E9EFF0 / #000000 / #555555 / #999999 / #EBEBEB / #ffffff
  ・2カラムは 1101px 以上。1100px 以下は記事の下に縦積み
  ・追従：画面の高さが 740px 以上なら「関連コラム＋CTA」、足りなければ「CTAだけ」
==================================================== */

/* ---------- 共通（縦積み時の基本形） ---------- */
#single-post .colLayout .colSide {
	width: calc(100% - 3.6rem);
	max-width: 720px;
	margin: 64px auto 0;
	box-sizing: border-box;
}

#single-post .colLayout .colSide-box {
	margin: 0 0 32px;
}

#single-post .colLayout .colSide-head {
	font-size: 16px;
	font-weight: 700;
	color: #003594;
	line-height: 1.5;
	letter-spacing: 0;
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 2px solid #0070b3;
}

#single-post .colLayout .colSide-head small {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	color: #555555;
	margin: 0 0 0 8px;
}

/* 本文用の ul / li の装飾を打ち消す */
#single-post .colLayout .colSide ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#single-post .colLayout .colSide li {
	list-style: none;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
}

#single-post .colLayout .colSide li::before {
	content: none;
}

#single-post .colLayout .colSide-more {
	font-size: 13px;
	line-height: 1.5;
	text-align: right;
	margin: 10px 0 0;
}

#single-post .colLayout .colSide-more a {
	color: #0070b3;
	text-decoration: underline;
}

/* ---------- 1. 業態別の導線（縦積み時は出さない：記事下の #shuunBnArea と重複） ---------- */
#single-post .colLayout .colSide-biz {
	display: none;
}

#single-post .colLayout .colSide-bizList li {
	margin: 0 0 8px;
}

#single-post .colLayout .colSide-bizList a {
	display: block;
	position: relative;
	padding: 12px 36px 12px 14px;
	border: 1px solid #0070b3;
	border-radius: 8px;
	background-color: #ffffff;
	color: #000000;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

#single-post .colLayout .colSide-bizList a::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid #0070b3;
	border-right: 2px solid #0070b3;
	transform: translateY(-50%) rotate(45deg);
}

#single-post .colLayout .colSide-bizList a:hover {
	background-color: #E9EFF0;
}

#single-post .colLayout .colSide-bizList small {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #0070b3;
}

#single-post .colLayout .colSide-bizList span {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: #555555;
}

/* ---------- 2. カテゴリー一覧 ---------- */
#single-post .colLayout .colSide-catList {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#single-post .colLayout .colSide-catList a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid #EBEBEB;
	border-radius: 999px;
	background-color: #ffffff;
	font-size: 13px;
	line-height: 1.5;
	color: #000000;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

#single-post .colLayout .colSide-catList a:hover {
	background-color: #E9EFF0;
	border-color: #E9EFF0;
}

#single-post .colLayout .colSide-catList a.is-current {
	border-color: #0070b3;
	color: #0070b3;
	font-weight: 700;
}

#single-post .colLayout .colSide-catCount {
	font-size: 11px;
	color: #999999;
}

/* ---------- 3. お役立ち資料 ---------- */
#single-post .colLayout .colSide-list li {
	border-bottom: 1px solid #EBEBEB;
}

#single-post .colLayout .colSide-list a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	color: #000000;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

#single-post .colLayout .colSide-list a:hover {
	opacity: 0.7;
}

#single-post .colLayout .colSide-thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background-color: #E9EFF0;
}

/* 資料の表紙は切らずに見せる */
#single-post .colLayout .colSide-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}

#single-post .colLayout .colSide-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

/* ---------- 4. 関連コラム（タイトルのみ） ---------- */
#single-post .colLayout .colSide-relList li {
	border-bottom: 1px solid #EBEBEB;
}

#single-post .colLayout .colSide-relList a {
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: #000000;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* タイトルは省略せず全文を出す。追従させたとき画面に収まらなければ、
   template-parts/column-side.php の小さなスクリプトが .colSide--ctaOnly を付けてCTAだけの追従に切り替える */
#single-post .colLayout .colSide-relList a {
	display: block;
}

#single-post .colLayout .colSide-relList a:hover {
	color: #0070b3;
}

/* ---------- 5. CVボックス ---------- */
#single-post .colLayout .colSide-cv {
	padding: 20px 18px;
	border-radius: 12px;
	background-color: #E9EFF0;
	text-align: center;
}

#single-post .colLayout .colSide-cvLead {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0;
	color: #003594;
	margin: 0 0 14px;
}

#single-post .colLayout .colSide-btn {
	display: block;
	padding: 13px 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

#single-post .colLayout .colSide-btn + .colSide-btn {
	margin-top: 10px;
}

#single-post .colLayout .colSide-btn:hover {
	opacity: 0.8;
}

#single-post .colLayout .colSide-btn--dl {
	background: linear-gradient(90deg, #0070b3 0%, #00aad1 100%);
	color: #ffffff;
}

#single-post .colLayout .colSide-btn--contact {
	background-color: #ffffff;
	border: 1px solid #003594;
	color: #003594;
}

/* 下段の箱：縦積み時は普通の並び。最後の箱の下余白は不要 */
#single-post .colLayout .colSide-sticky > .colSide-box:last-child {
	margin-bottom: 0;
}

/* ---------- 縦積み時（1100px以下）の並び順 ----------
   記事を読み終えた人に、まず次の記事（関連コラム）→ 探し方（カテゴリー）→ 資料 → CTA の順で見せる */
@media screen and (max-width: 1100px) {

	#single-post .colLayout .colSide {
		display: flex;
		flex-direction: column;
	}

	#single-post .colLayout .colSide-sticky {
		display: contents;
	}

	#single-post .colLayout .colSide-related { order: 1; }
	#single-post .colLayout .colSide-cats    { order: 2; }
	#single-post .colLayout .colSide-wp      { order: 3; }
	#single-post .colLayout .colSide-cv      { order: 4; margin-bottom: 0; }
}

/* ---------- PC（1101px以上）：本文720px＋右サイド300px ---------- */
@media screen and (min-width: 1101px) {

	#single-post .colLayout .colLayout-flex {
		display: flex;
		justify-content: center;
		gap: 56px;
		width: calc(100% - 3.6rem);
		max-width: 1076px;
		margin: 0 auto;
		/* align-items は stretch のまま（右サイドを本文と同じ高さにして追従を効かせる） */
	}

	#single-post .colLayout .colLayout-flex > .colLayout-main {
		flex: 1 1 720px;
		width: auto;
		max-width: 720px;
		min-width: 0;
		margin: 0;
	}

	#single-post .colLayout .colSide {
		flex: 0 0 300px;
		width: 300px;
		max-width: none;
		margin: 0;
	}

	#single-post .colLayout .colSide-biz {
		display: block;
	}

	/* common.css の main { overflow: hidden } があると追従が効かない。
	   clip ははみ出しを切る点は hidden と同じだが、スクロール領域を作らないので追従が効く。
	   clip 非対応の古いブラウザは hidden のまま（追従しないだけで崩れはしない） */
	main#single.columnType {
		overflow: hidden;
		overflow: clip;
	}

	/* 画面の高さが足りないとき：下段の箱をほどいて、CTAだけを追従
	   （display: contents で箱を消し、CTAの追従範囲を右サイド全体にする） */
	#single-post .colLayout .colSide-sticky {
		display: contents;
	}

	#single-post .colLayout .colSide-cv {
		position: -webkit-sticky;
		position: sticky;
		top: 145px; /* ヘッダー（top 31px＋高さ94px）の下 */
	}

	/* 右下のフローティングバナーとCTAが重なるため、
	   右サイドを出すPC幅のコラム詳細ではフローティングを出さない */
	body.single-column #rightFroting {
		display: none;
	}
}

/* 画面の高さが十分なとき：関連コラム＋CTAをまとめて追従 */
@media screen and (min-width: 1101px) and (min-height: 740px) {

	#single-post .colLayout .colSide-sticky {
		display: block;
		position: -webkit-sticky;
		position: sticky;
		top: 145px;
	}

	#single-post .colLayout .colSide-cv {
		position: static;
	}
}

/* 画面の高さは足りるが、タイトルが長くて「関連コラム＋CTA」が画面に収まらないとき（スクリプトが付ける）：CTAだけを追従 */
@media screen and (min-width: 1101px) {

	#single-post .colLayout .colSide.colSide--ctaOnly .colSide-sticky {
		display: contents;
		position: static;
	}

	#single-post .colLayout .colSide.colSide--ctaOnly .colSide-cv {
		position: -webkit-sticky;
		position: sticky;
		top: 145px;
	}
}
