/* ==========================================================================
   ニュース一覧・アーカイブ・検索・固定ページ（templates/home.html ほか）
   数値は STUDIO 版（/news）に合わせています：白いパネル 1300px（ヘッダーの下 40px）・カード 3 列（間隔 32px）
   ========================================================================== */

.p-news {
	padding-block: 40px 30px;
}

.p-news .l-panel {
	max-width: 1300px !important;
	padding-block: 40px;
	border-radius: 20px;
}

.p-news .l-panel > * {
	max-width: 1080px;
}

/* 見出し（英字 24px → 見出し 36px → 説明文） */
.p-news .l-panel > .c-section-heading {
	margin-top: 60px !important;
}

.p-news .c-section-heading__eyebrow {
	font-weight: 400;
}

.p-news .c-section-heading__lead {
	margin-bottom: 0 !important;
	font-family: var(--st-font-ui);
}

/* カード */
.p-news .c-post-grid {
	gap: 32px !important;
}

.p-news .c-post-card__thumb {
	height: 192px;
	border-color: var(--wp--preset--color--base-2);
	border-radius: 0;
}

.p-news .c-post-card__thumb img {
	height: 190px !important;
}

.p-news .c-post-card__title {
	display: block; /* タイトルは全文を表示（STUDIO 版と同じ） */
	margin-top: -12px !important; /* 日付との間は 4px */
	font-family: var(--st-font-ui);
	font-weight: 700;
}

.p-news .c-post-card__date {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: normal;
}

.p-news .c-post-card__category a {
	padding: 2px 14px;
	font-feature-settings: "palt";
	font-weight: 700;
}

/* ページ送り：STUDIO 版の「他の記事を見る」ボタンの見た目（282×44px） */
.p-news .c-pagination {
	margin-top: 35px !important;
}

.p-news .c-pagination .wp-block-query-pagination-numbers {
	display: none;
}

.p-news .c-pagination .wp-block-query-pagination-previous,
.p-news .c-pagination .wp-block-query-pagination-next {
	box-sizing: border-box;
	gap: 0;
	width: 282px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--st-primary);
	border-radius: 40px;
	background: var(--wp--preset--color--base);
	color: var(--st-text);
	font-family: var(--st-font-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.p-news .c-pagination .wp-block-query-pagination-next-arrow,
.p-news .c-pagination .wp-block-query-pagination-previous-arrow {
	margin: 0 0 0 4px;
	font-size: 0; /* 「»」の代わりに「›」を表示 */
	line-height: 1;
}

.p-news .c-pagination .wp-block-query-pagination-next-arrow::after {
	content: "›";
	font-size: 26px;
}

.p-news .c-pagination .wp-block-query-pagination-previous-arrow {
	margin: 0 4px 0 0;
}

.p-news .c-pagination .wp-block-query-pagination-previous-arrow::after {
	content: "‹";
	font-size: 26px;
}

@media (max-width: 540px) {
	.p-news {
		padding-inline: 0;
	}

	.p-news .l-panel {
		padding: 40px 8px;
		border-radius: 8px;
	}

	.p-news .c-post-grid {
		gap: 24px !important;
	}

	.p-news .c-post-card__date,
	.p-news .c-post-card__category a {
		font-size: 11px;
	}

	.p-news .c-section-heading__eyebrow {
		margin-bottom: 30px !important;
		font-size: 24px;
	}

	.p-news .c-section-heading__title {
		margin-bottom: 20px !important;
		font-size: 36px;
	}

	.p-news .c-post-card__title {
		margin-top: -8px !important;
		line-height: 1.5;
	}
}

.p-page__title {
	margin-bottom: var(--st-space-xl) !important;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 600;
	color: var(--st-primary);
}
