/* ==========================================================================
   記事・固定ページ本文（ブロックエディタの編集画面にも適用）
   ========================================================================== */

/* --- article -------------------------------------------------------------- */
.p-article__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.p-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--rp-text-date);
	font-size: 12px;
}

.p-article__title,
.p-page__title {
	color: var(--rp-text);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
}

.p-page__title {
	margin-bottom: 32px;
	color: var(--rp-blue);
}

@media (max-width: 768px) {
	.p-article__title,
	.p-page__title {
		font-size: 22px;
	}
}

.p-article__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--rp-border);
}

/* --- 本文 ----------------------------------------------------------------- */
.entry-content {
	font-feature-settings: 'palt' 1;
}

.entry-content > * + * {
	margin-top: 24px;
}

.entry-content p {
	line-height: 2;
	letter-spacing: 0.04em;
}

.entry-content a {
	color: var(--rp-blue-link);
}

.entry-content h2 {
	margin: 56px 0 16px;
	padding: 8px 0 8px 12px;
	border-left: 12px solid var(--rp-blue);
	background: #f8f8f8;
	color: var(--rp-blue);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.entry-content h3 {
	margin: 40px 0 16px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--rp-blue-pale2);
	color: var(--rp-blue);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.entry-content h4 {
	margin: 24px 0 16px;
	font-size: 16px;
	font-weight: 700;
}

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
	margin-top: 16px;
}

@media (max-width: 768px) {
	.entry-content h2 {
		margin-top: 40px;
		font-size: 22px;
	}

	.entry-content h3 {
		font-size: 18px;
	}

	.entry-content h4 {
		font-size: 14px;
	}
}

.entry-content ul,
.entry-content ol {
	margin-left: 24px;
	letter-spacing: 0.02em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin: 8px 0;
	line-height: 1.8;
}

.entry-content figure,
.entry-content .wp-block-image {
	margin: 32px 0;
	text-align: center;
}

.entry-content figure img {
	border-radius: 4px;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--rp-text-sub);
	font-size: 12px;
}

.entry-content .wp-block-table {
	margin: 32px 0;
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.7;
}

.entry-content th,
.entry-content td {
	padding: 12px 16px;
	border: 1px solid #d9e3ef;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--rp-blue-pale2);
	color: var(--rp-blue);
	font-weight: 700;
}

.entry-content blockquote {
	margin: 32px 0;
	padding: 16px 20px;
	border-left: 4px solid #ccc;
	background: var(--rp-bg-gray);
	line-height: 1.8;
	letter-spacing: 0.02em;
}

.entry-content hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--rp-border);
}

/* 旧サイトの埋め込みHTML（記事カード・CTAボタン・表など）。中のスタイルは各ブロック内で完結している */
.entry-content .rp-embed {
	margin: 32px 0;
	line-height: 1.6;
}

.entry-content .rp-embed :where(p) {
	margin: 0;
}

/* --- 導入事例 ------------------------------------------------------------- */
.p-case-profile {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}

.p-case-profile__thumb img {
	width: 100%;
	border-radius: 10px;
}

.p-case-profile__name {
	font-size: 18px;
	font-weight: 700;
}

.p-case-profile__person {
	color: var(--rp-text-sub);
	font-size: 14px;
}

.p-case-profile__points {
	padding: 24px;
	border-radius: 10px;
	background: var(--rp-blue-pale);
}

.p-case-profile__points-title {
	margin-bottom: 8px;
	color: var(--rp-blue);
	font-weight: 700;
}

.p-case-profile__points li {
	padding-left: 1em;
	text-indent: -1em;
	line-height: 1.8;
}

.p-case-profile__points li::before {
	content: '・';
}

/* --- 記事下 --------------------------------------------------------------- */
.c-article-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin: 60px 0;
}

.c-article-cta__lead {
	color: var(--rp-blue);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.4;
	text-align: center;
}

@media (max-width: 768px) {
	.c-article-cta__lead {
		font-size: 16px;
	}
}

.p-related__title {
	margin-bottom: 24px;
	color: var(--rp-blue);
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.p-related__more {
	margin-top: 32px;
	text-align: center;
}
