/* ==========================================================
   コラム読み物レイアウト(/column/・/columns/{term}/・ショートハブ)
   既存デザイン準拠: 角丸なし・白地+#dddボーダー・茶#57402d・
   オレンジ#ff8900はホバー/現在地のみ(wp-pagenaviと同じ使い方)
   ========================================================== */

.columnReaderPage {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 0 60px;
}

/* --- 導入ブロック(ハブ用): profileBoxと同じ紙背景+破線の意匠 --- */
.readerIntroBox {
	margin: 10px 0 50px;
}
.readerIntroBox .inbox {
	padding: 35px 40px 30px;
}
.readerIntroBox .readerIntroTitle {
	font-size: 18px;
	font-weight: 700;
	color: #57402d;
	margin-bottom: 12px;
	line-height: 1.6;
}
.readerIntroBox p.txt {
	font-size: 14px;
	line-height: 2;
	color: #231f20;
}

/* --- カテゴリチップ+検索バー(通常コラム用) --- */
.readerToolbar {
	margin: 10px 0 40px;
}
.readerToolbar__search {
	display: flex;
	max-width: 420px;
	margin-bottom: 20px;
}
.readerToolbar__search input[type="text"] {
	flex: 1;
	border: 1px solid #ccc;
	padding: 8px 14px;
	font-size: 14px;
	box-sizing: border-box;
}
.readerToolbar__search button {
	border: 1px solid #999999;
	background: white;
	color: #231f20;
	padding: 8px 20px;
	font-size: 13px;
	cursor: pointer;
	transition: 0.5s;
}
.readerToolbar__search button:hover {
	background: #999999;
	color: white;
}
/* カテゴリのアコーディオン開閉ボタン(SPのみ表示) */
.readerChipsToggle {
	display: none;
}
.readerChips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 769px) {
	/* slideToggleのinline styleが残ってもPCでは常時表示 */
	.readerChips {
		display: flex !important;
	}
}
.readerChips li {
	margin: 0;
}
.readerChips a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #ccc;
	background: white;
	color: #231f20;
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
	transition: 0.5s;
}
.readerChips a:hover {
	color: #ff8900;
	border-color: #ff8900;
}
.readerChips li.is-current a {
	background: #57402d;
	border-color: #57402d;
	color: white;
	font-weight: 700;
}

/* --- リストアイテム --- */
.readerItem {
	position: relative;
	display: flex;
	gap: 30px;
	padding: 32px 0;
	border-bottom: 1px solid #ddd;
}
.readerItem:first-child {
	border-top: 1px solid #ddd;
}
.readerItem:hover .readerItem__title {
	color: #ff8900;
}
.readerItem__thumb {
	flex: 0 0 216px;
}
.readerItem__thumb img {
	display: block;
	width: 100%;
	height: auto;
}
.readerItem__body {
	flex: 1;
	min-width: 0;
}
.readerItem__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 5px;
	margin-bottom: 10px;
}
/* .categoryの背景色はテーマでは.loopBoxや.columnItemBoxスコープでしか定義されていないため、
   一覧アイテム内では明示する(既定色はコラムカードと同じ#4e829e、ACFのterm色があればinlineで上書きされる) */
.readerItem__meta .category {
	margin-bottom: 0;
	display: inline-block;
	background-color: #4e829e;
	color: white;
	font-size: 11px;
	line-height: 1;
	padding: 5px 8px;
	box-sizing: border-box;
}
.readerItem__meta .timebox {
	color: #999999;
	margin-left: 8px;
}
.readerItem__readtime {
	font-size: 12px;
	color: #999999;
	margin-left: 8px;
}
.readerItem__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
	color: #231f20;
	margin: 0 0 10px;
	transition: 0.5s;
}
.readerItem__excerpt {
	font-size: 14px;
	line-height: 2;
	color: #4d4d4d;
	margin: 0 0 12px;
}
.readerItem__more {
	font-size: 13px;
	font-family: hypatia-sans-pro, sans-serif;
	color: #999999;
	transition: 0.5s;
}
.readerItem__more::after {
	content: ">";
	padding-left: 5px;
	display: inline-block;
	transition: 0.5s;
}
.readerItem:hover .readerItem__more {
	color: #ff8900;
}
.readerItem:hover .readerItem__more::after {
	padding-left: 10px;
}

/* --- 一覧下のご相談導線(ボタンは既存btnsContentsBoxを使用) --- */
.readerCtaBox {
	margin: 60px 0 20px;
	text-align: center;
}
.readerCtaBox .readerCtaText {
	font-size: 15px;
	font-weight: 700;
	color: #57402d;
	margin-bottom: 25px;
}

/* --- トップのショートコラム枠リード文 --- */
.indexShortColumnBox .shortLead {
	text-align: center;
	margin-bottom: 35px;
	padding: 0 20px;
}
.indexShortColumnBox .shortLead p {
	display: inline-block;
	font-size: 14px;
	line-height: 2;
	color: #4d4d4d;
	text-align: center;
}

/* --- FV直下CTA帯(トップ): ボタンは既存btnsContentsBoxを使用 --- */
.topCtaBox {
	margin: 40px auto 10px;
}
.topCtaBox .btnsbox {
	justify-content: center;
	gap: 30px;
}
.topCtaBox .btnsContentsBox {
	margin-left: 0;
	margin-right: 0;
	min-width: 320px;
}

/* --- SP --- */
@media (max-width: 768px) {
	.columnReaderPage {
		padding: 0 0 40px;
	}
	.readerItem {
		flex-direction: column;
		gap: 14px;
		padding: 24px 0;
	}
	.readerItem__thumb {
		flex: none;
	}
	.readerItem__title {
		font-size: 16px;
	}
	.readerItem__excerpt {
		font-size: 13.5px;
	}
	.readerIntroBox .inbox {
		padding: 25px 20px 20px;
	}
	/* SP: カテゴリチップはアコーディオン(FV圧迫の回避) */
	.readerChipsToggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		background: white;
		border: 1px solid #ccc;
		padding: 12px 14px;
		font-size: 13px;
		color: #231f20;
		cursor: pointer;
	}
	.readerChipsToggle .arrow {
		width: 8px;
		height: 8px;
		border-right: 1px solid #999999;
		border-bottom: 1px solid #999999;
		transform: rotate(45deg);
		transition: 0.3s;
	}
	.readerChipsToggle.is-open .arrow {
		transform: rotate(225deg);
	}
	.readerChips {
		display: none;
		padding: 12px 12px 6px;
		border: 1px solid #ccc;
		border-top: none;
	}
	/* slideToggle(display:block)時もチップが横に流れるように */
	.readerChips li {
		display: inline-block;
		margin: 0 6px 6px 0;
	}
	/* トップのショート枠リード: SPは左揃え+自然折返し(中央揃え+固定改行だと不格好に折り返すため) */
	.indexShortColumnBox .shortLead {
		text-align: left;
		padding: 0 6.4vw;
		margin-bottom: 25px;
	}
	.indexShortColumnBox .shortLead p {
		text-align: left;
		font-size: 13px;
	}
	.indexShortColumnBox .shortLead br {
		display: none;
	}
	/* CTAエリア(contactItemBox)の背景: 画像(750×3820)は最下部に家の写真があるが、
	   position:topだと空の部分しか見えず、padding-bottom:68vwがただの水色の空白帯になっていた。
	   bottom基準にして本来のデザイン(下部に家)を表示する */
	.contactItemBox {
		background-position: center bottom !important;
	}
	.topCtaBox .btnsbox {
		gap: 15px;
	}
	.topCtaBox .btnsContentsBox {
		min-width: 0;
		max-width: 80vw;
		height: 44px;
		margin: 0 auto;
	}
}
