/*
Theme Name: New Mental Media（SWELL子テーマ）
Template: swell
Version: 1.0.0
Description: メンタルヘルス記事メディア用のSWELL子テーマ。SEOメタ、パンくず、構造化データ、監修者情報を実装。
Text Domain: newmental-child
*/

/* ============================================================
   配色：生成り、はちみつ色、若葉色、茶色の文字
   色を変えるときはここを編集する
============================================================ */
html:root {
	--nm-brown: #4b3a2b;
	--nm-brown-sub: #75624d;
	--nm-kinari: #fff9ee;
	--nm-honey: #fbe0a1;
	--nm-honey-soft: #fdf1d6;
	--nm-leaf: #dbe8b0;
	--nm-leaf-deep: #5f7a28;
	--nm-line: #efe3c8;
	--nm-round: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Zen Maru Gothic", "Meiryo", sans-serif;

	--color_main: var(--nm-leaf-deep);
	--color_htag: var(--nm-leaf-deep);
	--color_text: var(--nm-brown);
	--color_bg: var(--nm-kinari);
	--color_content_bg: var(--nm-kinari);
	--color_header_bg: var(--nm-kinari);
	--color_header_text: var(--nm-brown);
	--color_footer_bg: var(--nm-honey);
	--color_footer_text: var(--nm-brown);
}

/* ============================================================
   ヘッダー
============================================================ */
#header.l-header,
.l-fixHeader {
	background: var(--nm-kinari);
	border-top: none;
	border-bottom: 1px solid var(--nm-line);
	box-shadow: none;
}
#header .l-header__inner {
	padding-top: 14px;
	padding-bottom: 14px;
}
.c-headLogo.-txt .c-headLogo__link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--nm-brown);
	font-family: var(--nm-round);
	line-height: 1.2;
}
.nm-logo__mark {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
}
.nm-logo__text {
	display: flex;
	flex-direction: column;
}
.l-fixHeader .nm-logo__mark {
	width: 36px;
	height: 36px;
}
.nm-logo__sub {
	font-size: 12px;
	font-weight: 500;
	color: var(--nm-brown-sub);
	letter-spacing: 0.04em;
}
.nm-logo__main {
	margin-top: 3px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.06em;
}
.l-fixHeader .nm-logo__main {
	font-size: 20px;
}
#gnav .c-gnav > .menu-item > a {
	padding: 0 16px;
	font-family: var(--nm-round);
	color: var(--nm-brown);
}
#gnav .c-gnav > .menu-item > a .ttl {
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
}
#gnav .c-gnav > .menu-item > a::after {
	content: none;
}
#gnav .c-gnav > .menu-item > a:hover .ttl {
	color: var(--nm-leaf-deep);
}

@media (max-width: 959px) {
	.nm-logo__mark {
		width: 36px;
		height: 36px;
	}
	.c-headLogo.-txt .c-headLogo__link {
		gap: 7px;
	}
	.nm-logo__sub {
		font-size: 10px;
	}
	.nm-logo__main {
		font-size: 21px;
	}
	#header .l-header__inner {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

/* ============================================================
   記事の見出し
============================================================ */
.c-postTitle__ttl,
html .post_content h2,
html .post_content h3 {
	font-family: var(--nm-round);
}
html .post_content h2 {
	padding: 0.7em 1em;
	border: none;
	border-radius: 12px;
	background: var(--nm-leaf);
	color: var(--nm-brown);
}
html .post_content h2::before,
html .post_content h2::after {
	content: none;
}

.nm-footer-notice {
	margin: 0.75em auto 0;
	padding: 0 16px;
	max-width: 760px;
	font-size: 11px;
	line-height: 1.7;
	text-align: center;
}

/* ============================================================
   記事内パーツ
============================================================ */
.nm-box {
	--nm-border: var(--nm-line);
	--nm-soft: var(--nm-honey-soft);
	--nm-text-sub: var(--nm-brown-sub);
	box-sizing: border-box;
	font-size: 0.94em;
	line-height: 1.8;
}

/* SWELLの .post_content ul/li 装飾をリセット */
.post_content .nm-box ul,
.post_content .nm-box ol {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	counter-reset: none !important;
}
.post_content .nm-box li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	counter-increment: none !important;
}
.post_content .nm-box li::marker {
	content: "" !important;
}
.post_content .nm-box li::before {
	content: none;
	display: none;
}
.post_content .nm-box p {
	margin: 0 !important;
}

.nm-box__label {
	font-size: 0.86em;
	font-weight: 700;
	color: var(--nm-text-sub);
	letter-spacing: 0.04em;
}

/* ============================================================
   記事上部：監修バイライン
============================================================ */
.post_content .nm-byline {
	margin: 0 0 1.25em;
	padding: 0.7em 0;
	border-top: 1px solid var(--nm-border);
	border-bottom: 1px solid var(--nm-border);
	color: var(--nm-text-sub);
	font-size: 0.86em;
}
.nm-byline__sep {
	margin: 0 0.5em;
	color: var(--nm-border);
}

/* ============================================================
   記事上部：この記事の結論
============================================================ */
.post_content .nm-summary {
	margin: 0 0 2em;
	padding: 1.1em 1.25em;
	background: var(--nm-soft);
	border-left: 4px solid var(--color_main, #2c7a7b);
}
.nm-summary__title {
	font-weight: 700;
	margin-bottom: 0.4em !important;
}
.post_content .nm-summary li {
	position: relative;
	padding-left: 1.1em !important;
}
.post_content .nm-summary .nm-summary__item::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color_main, #2c7a7b);
}

/* ============================================================
   記事下部：出典 / 監修 / 免責 / ピラー導線
============================================================ */
.post_content .nm-sources,
.post_content .nm-credit,
.post_content .nm-notice,
.post_content .nm-pillar {
	margin: 2em 0 0;
}

.post_content .nm-sources {
	padding-top: 1.25em;
	border-top: 1px solid var(--nm-border);
}
.post_content .nm-sources li {
	margin-top: 0.35em !important;
	font-size: 0.92em;
	overflow-wrap: anywhere;
}

.post_content .nm-credit {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	padding: 1.1em 1.25em;
	border: 1px solid var(--nm-border);
	border-radius: 6px;
}
.nm-credit__photo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 !important;
}
.nm-credit__name {
	font-size: 1.08em;
	font-weight: 700;
}
.nm-credit__cred {
	color: var(--nm-text-sub);
	font-size: 0.9em;
}

.post_content .nm-notice {
	padding: 1em 1.25em;
	background: var(--nm-soft);
	color: var(--nm-text-sub);
	font-size: 0.88em;
}
.post_content .nm-notice p + p {
	margin-top: 0.6em !important;
}

.post_content .nm-pillar {
	padding: 1em 1.25em;
	border: 1px solid var(--color_main, #2c7a7b);
	border-radius: 6px;
}
.nm-pillar__link {
	font-weight: 700;
}

/* ============================================================
   監修者プロフィール
============================================================ */
.post_content .nm-profile {
	margin: 2em 0 0;
}
.post_content .nm-profile__row {
	display: grid;
	grid-template-columns: 9em 1fr;
	gap: 1em;
	padding: 0.8em 0;
	border-bottom: 1px solid var(--nm-border);
}
.post_content .nm-profile__head {
	font-weight: 700;
}
.post_content .nm-profile__articles {
	margin-top: 2em;
}
.post_content .nm-profile__articles-title {
	font-weight: 700;
	margin-bottom: 0.5em !important;
}
.post_content .nm-profile__articles li {
	margin-top: 0.4em !important;
}

@media (max-width: 599px) {
	.post_content .nm-profile__row {
		grid-template-columns: 1fr;
		gap: 0.2em;
	}
	.post_content .nm-credit {
		padding: 1em;
	}
}
