/*
 * 咲楽縁 子テーマ 本文(下層ページ・記事)の体裁
 * 色はすべて palettes/*.css の --sk-color-* を参照する。
 */

/* ---- ページ名 ---- */
.c-pageTitle {
	font-family: var(--sk-font-serif);
	letter-spacing: 0.06em;
}

.l-mainContent .c-pageTitle[data-style="b_bottom"] {
	border-bottom-color: var(--sk-color-border);
}

.p-articleHead .c-postTitle__ttl {
	font-family: var(--sk-font-serif);
	line-height: 1.5;
	letter-spacing: 0.04em;
}

/* ---- 見出し(SWELL の帯の装飾を、線だけの落ち着いた形に替える) ---- */
.post_content h2:not(.sk-heading) {
	margin: 3em 0 1.2em;
	padding: 0 0 0.5em;
	border: 0;
	border-bottom: 2px solid var(--sk-color-ornament, var(--sk-color-accent));
	background: none;
	color: var(--sk-color-primary);
	font-family: var(--sk-font-serif);
	font-size: clamp(21px, 3vw, 26px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

.post_content h2:not(.sk-heading)::before,
.post_content h2:not(.sk-heading)::after {
	content: none;
}

.post_content h3 {
	margin: 2.4em 0 1em;
	padding: 0 0 0 0.8em;
	border: 0;
	border-left: 4px solid var(--sk-color-primary);
	background: none;
	color: var(--sk-color-text);
	font-size: clamp(18px, 2.4vw, 21px);
	line-height: 1.6;
}

.post_content h3::before,
.post_content h3::after {
	content: none;
}

.post_content > h2:first-child,
.post_content > section:first-child > h2:first-child {
	margin-top: 0;
}

/* ---- 文章の幅(固定ページは読みやすい行の長さに抑える) ---- */
.page:not(.home) .l-mainContent .post_content {
	max-width: 820px;
	margin-inline: auto;
}

.page:not(.home) .l-mainContent .c-pageTitle,
.page:not(.home) .l-mainContent .l-mainContent__inner > .c-pageTitle {
	max-width: 820px;
	margin-inline: auto;
}

.sk-page-gallery .post_content {
	max-width: none;
}

.post_content p {
	line-height: 2;
}

/* ---- 旧記事:本文が整形済みテキストのブロックで書かれているため、通常の文章として見せる ---- */
.post_content pre.wp-block-preformatted {
	margin: 0 0 1.5em;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: 2;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ---- よくある質問 ---- */
.sk-faq {
	margin: 0 0 14px;
	border: 1px solid var(--sk-color-border);
	border-radius: var(--sk-radius);
	background: var(--sk-color-bg);
}

.post_content .sk-faq p {
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 54px;
	line-height: 1.8;
}

.post_content .sk-faq .sk-faq__q {
	border-bottom: 1px solid var(--sk-color-border);
	background: var(--sk-color-bg-alt);
	font-weight: 700;
}

.sk-faq p::before {
	position: absolute;
	top: 14px;
	left: 16px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-family: var(--sk-font-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.sk-faq__q::before {
	background: var(--sk-color-primary);
	color: var(--sk-color-on-primary);
	content: "Q";
}

.sk-faq__a::before {
	background: var(--sk-color-accent);
	color: var(--sk-color-on-accent);
	content: "A";
}

/* ---- 相談先の囲み ---- */
.sk-consult {
	margin: 2.5em 0;
	padding: clamp(20px, 4vw, 32px);
	border: 1px solid var(--sk-color-border);
	border-top: 3px solid var(--sk-color-ornament, var(--sk-color-primary));
	border-radius: var(--sk-radius);
	background: var(--sk-color-bg-alt);
	text-align: center;
}

.post_content .sk-consult p {
	margin: 0.4em 0;
	line-height: 1.8;
}

.sk-consult .sk-contact__buttons {
	margin: 1em auto;
}

/* ---- フッターの案内 ---- */
.sk-footer-info {
	font-size: 14px;
	line-height: 1.9;
}

.sk-footer-info__name {
	margin: 0 0 0.4em;
	font-family: var(--sk-font-serif);
	font-size: 20px;
	letter-spacing: 0.1em;
}

.sk-footer-info p {
	margin: 0;
}

.sk-footer-info a {
	color: inherit;
}

/* ---- 英語サイト:欧文の書体 ---- */
html[lang="en"] {
	--sk-font-serif: Georgia, "Times New Roman", serif;
}

html[lang="en"] .sk-hero__title {
	letter-spacing: 0.01em;
	font-size: clamp(30px, 5.2vw, 56px);
}

html[lang="en"] .sk-heading,
html[lang="en"] .post_content h2:not(.sk-heading) {
	letter-spacing: 0.01em;
}
