/*
  ニュースページ用スタイル
  色・余白などは下の変数を書き換えるだけで調整できます。
*/
:root {
	--newsx-text: #2b2a2a;
	--newsx-muted: #777;
	--newsx-link: #2b2a2a;
	--newsx-link-hover: #d47171;
	--newsx-border: #e5e0da;
	--newsx-accent: #b7832f;
	--newsx-font: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
	--newsx-max-width: 800px;
}

.newsx-page {
	box-sizing: border-box;
	color: var(--newsx-text);
	font-family: var(--newsx-font);
	margin: 0 auto;
	max-width: var(--newsx-max-width);
	padding: 40px 16px 80px;
}

.newsx-page * {
	box-sizing: border-box;
}

.newsx-heading {
	font-size: 1.8rem;
	letter-spacing: .08em;
	margin: 0 0 32px;
	text-align: center;
}

/* 一覧 -------------------------------------------------- */

.newsx-list {
	display: grid;
	gap: 24px;
}

.newsx-item {
	border-bottom: 1px solid var(--newsx-border);
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	padding-bottom: 24px;
}

.newsx-item:has(.newsx-thumb) {
	grid-template-columns: 140px 1fr;
}

.newsx-thumb {
	display: block;
	overflow: hidden;
}

.newsx-thumb img {
	aspect-ratio: 4 / 3;
	border-radius: 4px;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.newsx-date {
	color: var(--newsx-muted);
	font-size: .85rem;
}

.newsx-title {
	font-size: 1.05rem;
	margin: 4px 0 8px;
}

.newsx-title a,
.newsx-nav-newer,
.newsx-nav-older {
	color: var(--newsx-link);
	text-decoration: none;
}

.newsx-title a:hover,
.newsx-nav-newer:hover,
.newsx-nav-older:hover {
	color: var(--newsx-link-hover);
}

.newsx-excerpt {
	color: var(--newsx-muted);
	font-size: .9rem;
	line-height: 1.7;
	margin: 0 0 8px;
}

.newsx-more {
	color: var(--newsx-accent);
	font-size: .85rem;
	text-decoration: none;
}

.newsx-more:hover {
	text-decoration: underline;
}

.newsx-empty,
.newsx-error {
	color: var(--newsx-muted);
	text-align: center;
}

@media (max-width: 480px) {
	.newsx-item {
		grid-template-columns: 1fr;
	}
}

/* 詳細 -------------------------------------------------- */

.newsx-back {
	margin-bottom: 24px;
}

.newsx-back a {
	color: var(--newsx-link);
	font-size: .9rem;
	text-decoration: none;
}

.newsx-back a:hover {
	color: var(--newsx-link-hover);
}

.newsx-detail-title {
	font-size: 1.4rem;
	line-height: 1.5;
	margin: 8px 0 24px;
}

.newsx-detail-body {
	line-height: 1.9;
}

.newsx-detail-body p {
	margin: 0 0 1.2em;
}

.newsx-detail-body h3 {
	border-left: 4px solid var(--newsx-accent);
	font-size: 1.1rem;
	margin: 1.6em 0 .6em;
	padding-left: .6em;
}

.newsx-detail-body a {
	color: var(--newsx-accent);
}

.newsx-detail-images {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr);
	margin: 24px 0;
}

.newsx-detail-images img {
	border-radius: 4px;
	display: block;
	height: auto;
	width: 100%;
}

@media (max-width: 480px) {
	.newsx-detail-images {
		grid-template-columns: 1fr;
	}
}

.newsx-nav {
	border-top: 1px solid var(--newsx-border);
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 16px;
}

.newsx-nav-older {
	margin-left: auto;
}
