/* 喪中の記事：お正月の飾りを、落ち着いた見た目に切り替える */
body.nbm-mourning,
body.nbm-mourning.custom-background {
	background-color: #f5f4f7 !important;
	background-image: none !important;
}

/* 見出し（h2）：水引の飾り → 細い灰紫の線 */
body.nbm-mourning:not(.page-id-11) .entry-content h2,
body.nbm-mourning:not(.page-id-11) .entry-content h2.has-background,
body.nbm-mourning:not(.page-id-11) .entry-content h2[class*="is-style-"] {
	color: #4b4458 !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2::before,
body.nbm-mourning:not(.page-id-11) .entry-content h2::after {
	background: linear-gradient(#c9c1d6, #c9c1d6) center / 100% 1px no-repeat !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2 .nenga-motif {
	display: none !important;
}

/* 見出し（h3）：赤い帯 → 灰紫の帯 */
body.nbm-mourning:not(.page-id-11) .entry-content h3,
body.nbm-mourning:not(.page-id-11) .entry-content h3.has-background {
	background: linear-gradient(90deg, #f3f0f7, #fff 80%) !important;
	border-left-color: #8e7fa8 !important;
	border-bottom-color: #ddd6e6 !important;
	border-top-color: #ddd6e6 !important;
	border-right-color: #ddd6e6 !important;
	color: #2f2b36 !important;
}

/* 箇条書きの梅の点 → 小さな灰紫の丸 */
body.nbm-mourning:not(.page-id-11) .entry-content ul.wp-block-list:not([class*="is-style-"]) > li::before {
	background: #b3a7c6 !important;
	background-image: none !important;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	top: .75em !important;
	left: 6px !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* 金の枠 → 淡い灰紫の枠 */
body.nbm-mourning:not(.page-id-11) .entry-content .nenga-textbox,
body.nbm-mourning:not(.page-id-11) .entry-content .blank-box,
body.nbm-mourning:not(.page-id-11) .entry-content .sticky,
body.nbm-mourning:not(.page-id-11) .entry-content [class*="is-style-sticky-"],
body.nbm-mourning:not(.page-id-11) .entry-content .information-box,
body.nbm-mourning:not(.page-id-11) .entry-content [class*="is-style-information-box"],
body.nbm-mourning:not(.page-id-11) .entry-content .memo-box,
body.nbm-mourning:not(.page-id-11) .entry-content .ny-related,
body.nbm-mourning:not(.page-id-11) .toc {
	border-color: #d9d2e3 !important;
}
body.nbm-mourning:not(.page-id-11) .toc {
	background-color: #faf9fc !important;
}
body.nbm-mourning:not(.page-id-11) .toc-title {
	color: #4b4458 !important;
}

/* 表 */
body.nbm-mourning:not(.page-id-11) .entry-content th {
	background-color: #efecf4 !important;
	color: #2f2b36 !important;
	border-color: #ddd6e6 !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content td {
	border-color: #ddd6e6 !important;
}

/* 区切り線の飾り */
body.nbm-mourning:not(.page-id-11) .entry-content hr::after {
	display: none !important;
}

/* 上の帯（スクロールしたときに出る赤い帯）→ 落ち着いた灰紫 */
body.nbm-mourning #header-container.fixed-header,
body.nbm-mourning #header-container {
	background-color: #5d5170 !important;
}

body.nbm-mourning #header {
	background-color: #5d5170 !important;
}
/* 本文の上の金の線 */
body.nbm-mourning:not(.page-id-11) #main {
	border-top-color: #c9c1d6 !important;
}

/* ===== 上品に見せる（遺品整理サイトの墓石の記事にならう） ===== */
body.nbm-mourning:not(.page-id-11) #main {
	background-image:
		radial-gradient(55% 28% at 0% 0%, rgba(221, 208, 236, .55), rgba(0, 0, 0, 0) 70%),
		radial-gradient(45% 22% at 100% 100%, rgba(221, 208, 236, .35), rgba(0, 0, 0, 0) 70%) !important;
}
body.nbm-mourning .entry-title {
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	color: #2b2523 !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content {
	counter-reset: nbmh2;
}
body.nbm-mourning:not(.page-id-11) .entry-content p,
body.nbm-mourning:not(.page-id-11) .entry-content li {
	line-height: 2 !important;
	letter-spacing: .03em;
	color: #3a3433;
}

/* h2：明朝・番号・左の細い線・広い余白 */
body.nbm-mourning:not(.page-id-11) .entry-content h2,
body.nbm-mourning:not(.page-id-11) .entry-content h2.has-background,
body.nbm-mourning:not(.page-id-11) .entry-content h2[class*="is-style-"] {
	counter-increment: nbmh2;
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	letter-spacing: .08em !important;
	line-height: 1.6 !important;
	color: #2b2523 !important;
	text-align: left !important;
	background: none !important;
	border: 0 !important;
	border-left: 1px solid #9c93ad !important;
	padding: 14px 0 10px 18px !important;
	margin: 72px 0 22px !important;
	min-height: 0 !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2::before {
	content: counter(nbmh2, decimal-leading-zero) ". " !important;
	position: static !important;
	display: inline !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	color: #9c93ad !important;
	font-weight: 500 !important;
	letter-spacing: .04em !important;
	margin: 0 4px 0 0 !important;
	transform: none !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2::after {
	display: none !important;
	content: none !important;
}

/* h3：明朝・下に細い線だけ */
body.nbm-mourning:not(.page-id-11) .entry-content h3,
body.nbm-mourning:not(.page-id-11) .entry-content h3.has-background {
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	color: #2b2523 !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid #e3dfe9 !important;
	padding: 0 0 8px !important;
	margin: 40px 0 16px !important;
}

/* 表 */
body.nbm-mourning:not(.page-id-11) .entry-content td {
	background-color: #fff;
	border-color: #e6e2ec !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content th {
	background-color: #f5f2f9 !important;
	border-color: #e6e2ec !important;
}

/* 囲みはもっと静かに */
body.nbm-mourning:not(.page-id-11) .entry-content .nenga-textbox,
body.nbm-mourning:not(.page-id-11) .entry-content .blank-box,
body.nbm-mourning:not(.page-id-11) .entry-content .sticky {
	border-color: #e6e2ec !important;
	box-shadow: none !important;
}

@media (max-width: 600px) {
	body.nbm-mourning:not(.page-id-11) .entry-content h2 {
		font-size: 20px !important;
		margin-top: 56px !important;
	}
}
body.nbm-mourning:not(.page-id-11) .entry-content th,
body.nbm-mourning:not(.page-id-11) .entry-content thead th,
body.nbm-mourning:not(.page-id-11) .entry-content thead td {
	border-bottom-color: #c9c1d6 !important;
	color: #2b2523 !important;
}

/* ===== デザイン一覧の「言葉で探す」の箱 ===== */
body.nbm-mourning .ndc-findbox {
	background: linear-gradient(#fdfcfe, #f6f3fa) !important;
	border-color: #ddd6e6 !important;
	box-shadow: none !important;
}
body.nbm-mourning .ndc-fb-kicker {
	background: #6a5a86 !important;
	color: #fff !important;
	box-shadow: none !important;
}
body.nbm-mourning .ndc-fb-title {
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif !important;
	color: #2b2523 !important;
	letter-spacing: .06em !important;
}
/* 人物の絵 → 白い菊と桔梗 */
body.nbm-mourning .ndc-find::before {
	background-image: url("flower-left.webp") !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: left bottom !important;
}
body.nbm-mourning .ndc-find::after {
	background-image: url("flower-right.webp") !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: right bottom !important;
}
body.nbm-mourning .ndc-find-in {
	border-color: #c9c1d6 !important;
}
body.nbm-mourning .ndc-find-in:focus {
	outline-color: #6a5a86 !important;
	border-color: #6a5a86 !important;
}
body.nbm-mourning .ndc-find-go {
	background: #6a5a86 !important;
	background-image: none !important;
	border-color: #5d5170 !important;
	box-shadow: none !important;
	color: #fff !important;
}
body.nbm-mourning .ndc-tabs { border-bottom-color: #e3dfe9 !important; }
body.nbm-mourning .ndc-tab.is-on,
body.nbm-mourning .ndc-tab[aria-selected="true"],
body.nbm-mourning .ndc-tab[aria-pressed="true"] {
	color: #5d5170 !important;
	border-bottom-color: #6a5a86 !important;
}
body.nbm-mourning .ndc-tip,
body.nbm-mourning .ndc-count {
	border-color: #e6e2ec !important;
	box-shadow: none !important;
}
body.nbm-mourning .ndc-active { background: #f5f2f9 !important; }

/* 本文のリンク：赤 → 深い紫 */
body.nbm-mourning:not(.page-id-11) .entry-content a:not(.nbm-btn):not([class*="btn"]) {
	color: #5b4a7a !important;
	text-decoration-color: #b3a7c6 !important;
}
body.nbm-mourning .ndc-card {
	border-color: #e3dfe9 !important;
	background: #fff !important;
	box-shadow: none !important;
}
body.nbm-mourning .ndc-thumb { background-color: #f5f2f9 !important; }

/* ===== h2：線の上に小さな桔梗を一輪 ===== */
body.nbm-mourning:not(.page-id-11) .entry-content h2 {
	position: relative !important;
	overflow: visible !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: -15px !important;
	top: -24px !important;
	width: 30px !important;
	height: 26px !important;
	background: url("h2-mark.webp") center / contain no-repeat !important;
	border: 0 !important;
	transform: none !important;
	opacity: .9;
	pointer-events: none;
}

/* ===== 下の関連記事 ===== */
body.nbm-mourning .related-entry-heading,
body.nbm-mourning .related-entry-main-heading {
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif !important;
	color: #2b2523 !important;
	letter-spacing: .08em !important;
	background: none !important;
	border-color: #e3dfe9 !important;
}
body.nbm-mourning .related-entry-card-wrap {
	border-color: #e6e2ec !important;
	background: #fff !important;
}
body.nbm-mourning .related-entry-card-title { color: #2b2523 !important; }
body.nbm-mourning .related-entry-card .cat-label { background: #6a5a86 !important; border-color: #6a5a86 !important; color: #fff !important; }

/* 表：赤い下線・クリーム色の縞 → 灰紫 */
body.nbm-mourning:not(.page-id-11) .entry-content thead,
body.nbm-mourning:not(.page-id-11) .entry-content .wp-block-table thead {
	border-bottom: 2px solid #c9c1d6 !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content tr:nth-child(even) td {
	background: #faf9fc !important;
}

body.nbm-mourning .related-entry-heading::after {
	background: linear-gradient(90deg, transparent, #b3a7c6, transparent) !important;
}
/* 関連記事の下の箱 */
body.nbm-mourning .nbm-below {
	border: 1px solid #ddd6e6;
	background: #fff;
	border-radius: 6px;
	padding: 22px 22px 14px;
	margin-top: 30px;
}
body.nbm-mourning .nbm-below-title {
	font-family: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
	font-weight: 600;
	font-size: 1.1em;
	letter-spacing: .08em;
	color: #2b2523;
	margin: 0 0 12px;
	padding: 0 0 8px 36px;
	border-bottom: 1px solid #e3dfe9;
	background: url("h2-mark.webp") left 2px / 26px auto no-repeat;
}
body.nbm-mourning .nbm-below ul { list-style: none; margin: 0; padding: 0; }
body.nbm-mourning .nbm-below li { margin: 0 0 12px; padding: 0; line-height: 1.6; }
body.nbm-mourning .nbm-below li::before { display: none !important; }
body.nbm-mourning .nbm-below a { color: #5b4a7a; font-weight: 700; text-decoration: none; }
body.nbm-mourning .nbm-below a::before { content: "→ "; color: #9c93ad; }
body.nbm-mourning .nbm-below span { display: block; font-size: .88em; color: #6b6675; padding-left: 1.3em; }

/* 前後の記事へのリンク（年賀状の記事が出るため隠す） */
body.nbm-mourning #pager-post-navi { display: none !important; }
/* 下の赤い帯 → 灰紫 */
body.nbm-mourning #footer { background-color: #5d5170 !important; background-image: none !important; }

/* デザイン一覧の色（朱・金）をまとめて灰紫に */
body.nbm-mourning .ndc,
body.nbm-mourning .ndc-ask {
	--ndc-shu: #6a5a86 !important;
	--ndc-shu-pale: #f1edf6 !important;
	--ndc-gold: #9c93ad !important;
	--ndc-gold-pale: #f5f2f9 !important;
	--ndc-line: #e3dfe9 !important;
}
/* カテゴリのラベル（赤）→ 灰紫 */
body.nbm-mourning .cat-label {
	background-color: #6a5a86 !important;
	border-color: #6a5a86 !important;
	color: #fff !important;
}


/* ===== h2の桔梗：枠の内側に一輪まるごと見せ、線は花の下から ===== */
body.nbm-mourning:not(.page-id-11) .entry-content h2,
body.nbm-mourning:not(.page-id-11) .entry-content h2.has-background,
body.nbm-mourning:not(.page-id-11) .entry-content h2[class*="is-style-"] {
	border-left: 0 !important;
	padding: 34px 0 10px 30px !important;
	background: linear-gradient(#9c93ad, #9c93ad) 14px 22px / 1px calc(100% - 22px) no-repeat !important;
}
body.nbm-mourning:not(.page-id-11) .entry-content h2::after {
	left: 0 !important;
	top: 0 !important;
	width: 29px !important;
	height: 25px !important;
	opacity: 1;
}
/* 使い方の説明の中の行間は、本文の広い行間を当てない */
body.nbm-mourning:not(.page-id-11) .entry-content .nbm-how-step,
body.nbm-mourning:not(.page-id-11) .entry-content .nbm-zu-notes li { line-height: 1.6 !important; }
