/* ==========================================================================
   corop — ニュース一覧（archive-news.php 専用）
   基準: Figma PC 1280px を ×1.125 でスケール（他ページと同じ換算）
        Figma SP 402px → 実機 375px 想定
   ※色トークン・フォントは header-footer.css の :root で定義（先に読み込む）
   ========================================================================== */

.news {
	--news-line: rgba(76, 73, 72, 0.45);

	max-width: 831px; /* Figma 228〜967 = 739 × 1.125 */
	margin-inline: auto;
	padding: 73px 24px 180px; /* Figma 187-122=65 × 1.125 */
	color: var(--corop-ink, #4c4948);
	font-family: var(--corop-font, "Avenir", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
}

/* ===== 見出し ===== */
.news-head__title {
	margin: 0;
	color: var(--corop-olive, #9d8a3c);
	font-size: 40px; /* Figma 36 × 1.125 */
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
}
.news-head__sub {
	margin: 2px 0 0 5px;
	font-size: 16px; /* Figma 14 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.6;
}

/* ===== 一覧 ===== */
.news-list {
	margin: 36px 0 0 96px; /* Figma 313-228 = 85 × 1.125 */
	padding: 0;
	list-style: none;
	border-top: 1px dashed var(--news-line);
}
.news-item {
	border-bottom: 1px dashed var(--news-line);
}
.news-item__link {
	display: flex;
	align-items: center;
	gap: 23px; /* Figma 20 × 1.125 */
	padding: 22px 4px;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.news-item__link:hover {
	opacity: 0.6;
}
.news-item__date {
	flex: 0 0 auto;
	width: 92px; /* Figma 82 × 1.125 */
	font-size: 15px; /* Figma 13 × 1.125 */
	letter-spacing: 0.1em;
	line-height: 1.5;
}
.news-item__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	letter-spacing: 0.1em;
	line-height: 1.5;
}
/* 丸い矢印アイコンはSPのみ表示（PCのFigmaには無い） */
.news-item__arrow {
	display: none;
	flex: 0 0 auto;
}

.news-empty {
	margin: 48px 0 0;
	letter-spacing: 0.1em;
}

/* ==========================================================================
   ニュース詳細（single-news.php）
   ========================================================================== */
.news-detail__head {
	max-width: 736px; /* 本文と同じ幅 */
	margin-inline: auto;
	padding-bottom: 22px;
	border-bottom: 1px dashed var(--news-line);
}
.news-detail__date {
	display: block;
	color: var(--corop-olive, #9d8a3c);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.6;
}
.news-detail__title {
	margin: 10px 0 0;
	font-size: 24px; /* 他ページの見出しと同じ */
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.6;
}
.news-detail__thumb {
	max-width: 736px;
	margin: 40px auto 0;
}
.news-detail__thumb img {
	display: block;
	width: 100%;
	height: auto;
}
.news-detail .corop-content {
	margin-top: 40px;
}

.news-detail__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 736px;
	margin: 80px auto 0;
	padding-top: 32px;
	border-top: 1px dashed var(--news-line);
}
.news-detail__nav-side {
	flex: 1 1 0;
	min-width: 0;
	font-size: 14px;
	letter-spacing: 0.05em;
}
.news-detail__nav-side--right {
	text-align: right;
}
.news-detail__nav-link {
	color: inherit;
	text-decoration: none;
}
.news-detail__nav-link:hover {
	opacity: 0.6;
}
.news-detail__back {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 52px;
	padding: 0 24px;
	border: 2px solid var(--corop-orange, #d79000);
	border-radius: 999px;
	background: var(--corop-white, #fff);
	color: var(--corop-orange, #d79000);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.news-detail__back:hover {
	background: var(--corop-orange, #d79000);
	color: var(--corop-white, #fff);
}

/* ===== ページャ ===== */
.news-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px; /* Figma 9 × 1.125 */
	margin: 65px 0 0;
}
.news-pager__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 47px;  /* Figma 42 × 1.125 */
	height: 47px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	background: var(--corop-white, #fff);
	color: inherit;
	font-size: 16px; /* Figma 14 × 1.125 */
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.news-pager__item:hover {
	background: #ececec;
}
.news-pager__item.is-current {
	background: #d9d9d9;
	border-color: #d9d9d9;
}
.news-pager__dots {
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	width: 29px; /* Figma 26 × 1.125 */
	padding-bottom: 12px;
	color: var(--news-line);
	letter-spacing: 0.1em;
}

/* ==========================================================================
   SP（Figma node 260:15868）
   ========================================================================== */
@media (max-width: 768px) {
	.news {
		max-width: none;
		padding: 32px 20px 60px;
	}

	.news-head__title {
		font-size: 36px;
	}
	.news-head__sub {
		margin-left: 4px;
		font-size: 14px;
	}

	/* SP は日付とタイトルを2段組みにして、右に丸い矢印を置く */
	.news-list {
		margin: 32px 0 0;
	}
	.news-item__link {
		align-items: center;
		gap: 12px;
		padding: 17px 0;
	}
	.news-item__body {
		min-width: 0;
	}
	.news-item__link {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"date  arrow"
			"title arrow";
		column-gap: 12px;
		row-gap: 0;
	}
	.news-item__date {
		grid-area: date;
		width: auto;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0.05em;
		line-height: 2;
	}
	.news-item__title {
		grid-area: title;
		font-size: 14px;
		letter-spacing: 0.03em;
		line-height: 1.85;
	}
	.news-item__arrow {
		display: block;
		grid-area: arrow;
		align-self: center;
	}

	/* ニュース詳細 */
	.news-detail__title {
		font-size: 19px;
	}
	.news-detail__date {
		font-size: 13px;
	}
	.news-detail__thumb,
	.news-detail .corop-content {
		margin-top: 28px;
	}
	.news-detail__nav {
		flex-direction: column;
		margin-top: 48px;
		padding-top: 24px;
	}
	.news-detail__nav-side,
	.news-detail__nav-side--right {
		width: 100%;
		text-align: center;
	}
	.news-detail__back {
		order: -1;
		width: 100%;
		min-width: 0;
		height: 47px;
		margin-bottom: 8px;
		font-size: 15px;
	}

	.news-pager {
		gap: 8px;
		margin-top: 44px;
	}
	.news-pager__item {
		width: 42px;
		height: 42px;
		font-size: 14px;
	}
	.news-pager__dots {
		width: 26px;
		padding-bottom: 10px;
	}
}
