/*
 * ファミリーホール本体サイト 投稿・一覧CSS(single.php / archive.php)
 * パンくず / セクション見出し / 2カラム / 記事箱 / 本文の見出し装飾 / 目次 / お客様の声 / 一覧カード /
 * 記事下ナビ / ページ送り / サイドバー。すべて body.ns-fh 配下のクラス(ns-)にだけ当てる。
 * 本文の基本装飾(リスト・表・引用)はベースの content.css を土台にして、ここで旧サイトの値に寄せる。
 */

.ns-blog {
	padding-bottom: 20px;
}

/* ------------------------------------------------------------------
 * セクション見出し / 2カラム(パンくず .ns-crumb は site.css)
 * ------------------------------------------------------------------ */

/* 旧 section.column_blog は下に 50px(SP は 30px)の内側余白 */
.ns-blog__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 273px;
	column-gap: 52px;
	align-items: start;
	padding-bottom: 50px;
}

.ns-blog__main {
	min-width: 0;
}

.ns-blog__none {
	padding: 24px 0;
}

/* ------------------------------------------------------------------
 * 記事箱 / 一覧カードの共通部分(紺のタイトル帯 + 白箱)
 * ------------------------------------------------------------------ */

.ns-entry,
.ns-arc {
	margin: 0 0 48px;
	background: #ffffff;
	border: 1px solid #cccccc;
}

.ns-entry__ttl,
.ns-arc__ttl {
	padding: 10px 20px;
	background: var(--fh-navy);
	color: #ffffff;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
}

.ns-arc__ttl a {
	color: #ffffff;
	text-decoration: none;
}

.ns-entry__box {
	padding: 24px;
}

.ns-entry__date {
	display: block;
	margin-bottom: 20px;
	font-size: 16px;
}

/* ------------------------------------------------------------------
 * 本文(旧サイトの記事本文の値に寄せる)
 * ------------------------------------------------------------------ */

.ns-fh .ns-entry__body,
.ns-fh .ns-voice__comment {
	line-height: 1.7;
	letter-spacing: 0.05em;
}

.ns-fh .ns-entry__body > *,
.ns-fh .ns-voice__comment > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ns-fh .ns-entry__body p,
.ns-fh .ns-voice__comment p {
	padding-bottom: 10px;
	line-height: 1.7;
}

.ns-fh .ns-entry__body a {
	color: var(--fh-navy);
	text-decoration: underline;
}

.ns-fh .ns-entry__body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 20px;
}

.ns-fh .ns-entry__body figure {
	margin: 0;
}

.ns-fh .ns-entry__body figcaption {
	margin: 0;
	font-size: inherit;
	color: inherit;
	text-align: left;
}

.ns-fh .ns-entry__body ul {
	padding-left: 0;
	list-style: disc;
}

.ns-fh .ns-entry__body ol {
	padding-left: 1.4em;
	list-style: decimal;
}

.ns-fh .ns-entry__body li {
	list-style-type: disc;
}

.ns-fh .ns-entry__body ol > li {
	list-style-type: decimal;
}

.ns-fh .ns-entry__body li + li,
.ns-fh .ns-entry__body :is(ul, ol) :is(ul, ol) {
	margin-top: 0;
}

.ns-fh .ns-entry__body table {
	width: auto;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 2px;
	font-size: 16px;
}

.ns-fh .ns-entry__body :is(th, td) {
	padding: 1px;
	border: 1px solid #cccccc;
	background: none;
	vertical-align: top;
}

.ns-fh .ns-entry__body th {
	font-weight: 700;
	text-align: center;
}

.ns-fh .ns-entry__body .wp-block-table {
	overflow-x: auto;
}

.ns-fh .ns-entry__body blockquote {
	margin-bottom: 10px;
}

.ns-fh .ns-entry__body hr {
	margin: 20px 0;
}

/* 見出し(装飾は the_content フィルタが差し込む実要素) */
.ns-fh .ns-entry__body h2 {
	position: relative;
	margin: 60px 0 35px;
	padding: 10px 20px 10px 24px;
	background: #fbfbff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.05em;
}

.ns-fh .ns-entry__body > h2:first-of-type {
	margin-top: 0;
}

.ns-entry__bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: var(--fh-navy);
}

.ns-fh .ns-entry__body h3 {
	position: relative;
	margin: 30px 0 10px;
	padding: 0 0 4px 15px;
	border-bottom: 3px solid #e0e0e0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.7;
}

.ns-entry__h3bar {
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 198px;
	max-width: 60%;
	height: 3px;
	background: var(--fh-navy);
}

.ns-fh .ns-entry__body h4 {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 20px 0;
	padding-left: 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.ns-entry__h4ico {
	flex: 0 0 auto;
	color: var(--fh-navy);
}

.ns-fh .ns-entry__body :is(h2, h3, h4) + * {
	margin-top: 0;
}

.ns-entry__pages {
	padding-top: 10px;
}

/* 目次(inc/toc.php の出力) */
.ns-fh .ns-toc {
	width: fit-content;
	max-width: 100%;
	margin: 0 0 1em;
	padding: 10px 20px 10px 10px;
	background: #f9f9f9;
	border: 1px solid #aaaaaa;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	font-size: 16px;
	line-height: 1.6;
}

.ns-toc__title {
	padding: 0;
	font-size: 1.2em;
	font-weight: 500;
	line-height: 34px;
	cursor: pointer;
	list-style: none;
}

.ns-toc__title::-webkit-details-marker {
	display: none;
}

.ns-fh .ns-toc__list,
.ns-fh .ns-toc__sub {
	margin: 0;
	padding-left: 1.7em;
	list-style: decimal;
}

.ns-fh .ns-toc__list {
	font-size: 0.95em;
	font-weight: 500;
}

.ns-fh .ns-toc__sub {
	margin-top: 2px;
	font-size: 0.9em;
}

.ns-fh .ns-toc__item {
	padding: 0;
	list-style-type: decimal;
}

.ns-fh .ns-toc__item a {
	color: #444444;
	text-decoration: none;
}

.ns-fh .ns-toc__item a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * お客様の声(単体)
 * ------------------------------------------------------------------ */

.ns-voice {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 30px;
	margin-bottom: 30px;
}

.ns-voice__img {
	flex: 0 1 60%;
	width: 60%;
	margin: 0;
	border: 1px solid #eeeeee;
	line-height: 0;
}

.ns-voice__img img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ns-voice__info {
	flex: 1 1 40%;
	min-width: 0;
	text-align: right;
}

.ns-voice__date {
	display: block;
	font-size: 15px;
}

.ns-voice__lead {
	margin: 10px 0 5px;
	color: var(--fh-navy);
	font-size: 16px;
	font-weight: 600;
}

.ns-voice__plan,
.ns-voice__hall {
	margin-bottom: 5px;
	color: var(--fh-red);
	font-size: 16px;
	font-weight: 600;
}

.ns-voice__client {
	margin-top: 15px;
	padding: 10px;
	border: 1px solid #eeeeee;
	border-radius: 5px;
	font-size: 14px;
	text-align: left;
}

.ns-voice__client-ttl {
	margin-bottom: 15px;
	padding: 3px 0;
	border: 1px solid var(--fh-navy);
	border-radius: 5px;
	color: var(--fh-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.ns-voice__initial {
	font-size: 14px;
}

.ns-voice__row {
	font-size: 16px;
	font-weight: 500;
}

.ns-voice__row span {
	font-weight: 600;
}

.ns-voice__rate {
	display: flex;
	align-items: center;
	min-height: 51px;
	color: #dad80e;
	font-size: 20px;
	line-height: 1.7;
	text-align: left;
}

.ns-voice__rate-ttl {
	margin-right: 10px;
	color: #333333;
	font-size: 16px;
	font-weight: 600;
}

.ns-voice__rate .ns-stars {
	gap: 2px;
}

.ns-voice__num {
	margin-left: 10px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

/* ------------------------------------------------------------------
 * 記事下ナビ(次の記事 / 一覧 / 前の記事)
 * ------------------------------------------------------------------ */

.ns-entry__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ns-entry__nav > div {
	min-width: 160px;
	text-align: center;
}

.ns-entry__nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--fh-red);
	border: 1px solid var(--fh-red);
	color: #ffffff;
	font-weight: 500;
	text-decoration: none;
}

.ns-entry__nav a:hover {
	text-decoration: none;
	opacity: 0.85;
}

.ns-entry__nav-list a {
	background: #ffffff;
	color: var(--fh-red);
}

/* ------------------------------------------------------------------
 * 一覧カード
 * ------------------------------------------------------------------ */

.ns-arc__box {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 24px;
	color: #333333;
	text-decoration: none;
}

.ns-arc__box:hover {
	text-decoration: none;
}

.ns-arc__thumb {
	flex: 0 0 400px;
	width: 100%;
	max-width: 400px;
	height: 200px;
	margin: 0;
	border: 1px solid #dddddd;
	overflow: hidden;
}

.ns-arc__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ns-arc__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-arc__date {
	display: block;
	font-size: 14px;
}

.ns-arc__cat {
	display: inline-block;
	margin: 5px 0 10px;
	padding: 5px 15px;
	background: var(--fh-navy);
	border-radius: 4px;
	color: #ffffff;
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}

.ns-arc__excerpt {
	font-size: 16px;
	line-height: 1.7;
}

.ns-arc__more {
	display: block;
	width: 300px;
	max-width: 100%;
	margin: 20px 0 0 auto;
	padding: 10px;
	background: #ffffff;
	border: 2px solid #eeeeee;
	border-radius: 45px;
	font-size: 16px;
	text-align: center;
}

.ns-arc:hover .ns-arc__more {
	background: var(--fh-navy);
	color: #ffffff;
}

/* ページ送り */
.ns-pagi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}

.ns-pagi__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 7px 10px;
	border: 1px solid var(--fh-navy);
	color: var(--fh-navy);
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
}

.ns-pagi__num.is-current,
.ns-pagi__num:hover {
	background: var(--fh-navy);
	color: #ffffff;
	text-decoration: none;
}

.ns-pagi__dots {
	padding: 0 3px;
}

/* ------------------------------------------------------------------
 * サイドバー
 * ------------------------------------------------------------------ */

.ns-side {
	min-width: 0;
}

.ns-side__bnrs li {
	margin-bottom: 15px;
	padding: 3px 0;
	line-height: 0;
}

.ns-side__bnrs a {
	display: block;
}

.ns-side__bnrs img {
	width: 100%;
	height: auto;
}

.ns-side__ttl {
	margin-bottom: 20px;
	padding: 10px;
	background: var(--fh-navy);
	color: #ffffff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}

.ns-side__list li {
	padding: 3px 0;
	border-top: 1px solid #cccccc;
	font-size: 16px;
	/* 旧サイトは li の行の高さ 27.2px が 14px のリンクにも効いて 1 行 33.2px になる */
	line-height: 27.2px;
}

.ns-side__list li:first-child {
	border-top: 0;
}

.ns-side__list a {
	display: block;
	color: #333333;
	font-size: 14px;
	text-decoration: none;
}

.ns-side__list a:hover {
	text-decoration: underline;
}

.ns-side__list time {
	margin-right: 0.4em;
}

.ns-side__box--months {
	margin: 30px 0 24px;
}

.ns-side__scroll {
	max-height: 183px;
	overflow-y: auto;
}

/* ------------------------------------------------------------------
 * 末尾の h1(旧サイト踏襲・視覚上ほぼ非表示)
 * ------------------------------------------------------------------ */

.ns-blog__h1 {
	margin-top: 47px;
}

.ns-blog__h1 h1 {
	width: 60vw;
	color: #7f7e7e;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

/* ------------------------------------------------------------------
 * タブレット(820px 以下): 1 カラム
 * ------------------------------------------------------------------ */

@media (max-width: 820px) {
	.ns-blog__cols {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.ns-entry__ttl,
	.ns-arc__ttl {
		font-size: 18px;
		line-height: 25px;
	}

	.ns-entry__box {
		padding: 12px;
	}

	.ns-fh .ns-entry__body h2 {
		margin: 40px 0 20px;
		padding: 10px 10px 10px 14px;
		font-size: 20px;
	}

	.ns-fh .ns-entry__body h3 {
		margin: 25px 0 20px;
	}

	.ns-fh .ns-entry__body h4 {
		margin: 20px 0 5px;
	}

	.ns-entry__nav {
		flex-wrap: wrap;
		gap: 3px;
		margin: 20px 0;
	}

	.ns-blog__cols {
		padding-bottom: 30px;
	}

	/* 旧 article.single_content は SP だけ下に 20px の内側余白 */
	.ns-entry {
		padding-bottom: 20px;
	}

	.ns-arc {
		padding-bottom: 20px;
	}

	.ns-arc__box {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px;
	}

	.ns-arc__thumb {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.ns-arc__text {
		width: 100%;
	}

	.ns-arc__more {
		width: 100%;
	}

	.ns-pagi {
		margin-bottom: 30px;
	}

	.ns-side {
		margin-bottom: 20px;
	}

	.ns-side__bnrs li {
		text-align: center;
	}

	.ns-side__scroll {
		max-height: none;
		overflow: visible;
	}

	.ns-blog__h1 h1 {
		width: 80vw;
	}
}

/* ------------------------------------------------------------------
 * スマートフォン(767px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 767px) {
	/* 旧の一覧見出しは main の直下にあり SP でも画面いっぱい(390px)まで使う。
	   新は .ns-inner の中なので、左右の余白ぶんだけ外へ広げて折り返しを旧に合わせる */
	.ns-blog__ttl {
		margin-inline: -15px;
	}

	.ns-blog .ns-inner {
		width: min(1300px, 100% - 30px);
	}

	.ns-blog .ns-tit {
		margin-bottom: 30px;
	}

	.ns-entry,
	.ns-arc {
		margin-bottom: 28px;
	}

	.ns-entry__nav > div {
		width: calc(50% - 3px);
		min-width: 0;
	}

	.ns-entry__nav-older {
		order: 2;
		margin-left: auto;
	}

	.ns-entry__nav > .ns-entry__nav-list {
		order: 3;
		width: 100%;
	}

	.ns-voice {
		flex-wrap: wrap;
		gap: 0;
		margin-bottom: 10px;
	}

	.ns-voice__img {
		flex: 0 0 100%;
		width: 100%;
		margin-bottom: 10px;
	}

	.ns-voice__info {
		flex: 0 0 100%;
	}

	.ns-voice__row span {
		display: block;
	}
}
