@charset "UTF-8";

/*
 * ニュース一覧・記事ページ専用のスタイル。
 * 既存サイトの配色（アクセント #CA2420 / 本文 #111 / 罫線 #d7d7d7）と
 * ブレークポイント（639px）に合わせている。
 */

/* ------------------------------------------------------------------
   一覧
------------------------------------------------------------------ */
.news-layout {
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

.news-main {
	flex: 1;
	min-width: 0;
}

.news-side {
	width: 240px;
	flex-shrink: 0;
}

.news-list {
	border-top: 1px solid #d7d7d7;
}

.news-item {
	border-bottom: 1px solid #d7d7d7;
}

.news-item > a {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 28px 4px;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.news-item > a:hover {
	opacity: 0.6;
}

.news-item .thumb {
	width: 200px;
	flex-shrink: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}

.news-item .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-item .body {
	flex: 1;
	min-width: 0;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.news-meta time {
	font-family: Roboto, sans-serif;
	font-size: 14px;
	letter-spacing: 0.05em;
	color: #888;
}

.news-cat {
	display: inline-block;
	padding: 3px 12px;
	font-size: 12px;
	line-height: 1.6;
	color: #CA2420;
	border: 1px solid #CA2420;
	border-radius: 2px;
	white-space: nowrap;
}

.news-item h2 {
	font-size: 19px;
	line-height: 1.6;
	font-weight: 700;
	margin-bottom: 8px;
}

.news-item p {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
}

.news-empty {
	padding: 60px 0;
	text-align: center;
	color: #666;
}

/* ------------------------------------------------------------------
   サイドバー
------------------------------------------------------------------ */
.news-side h2 {
	font-size: 16px;
	font-weight: 700;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 2px solid #111;
}

.news-side + .news-side,
.news-side .block + .block {
	margin-top: 40px;
}

.news-side ul li {
	border-bottom: 1px solid #e5e5e5;
}

.news-side ul li a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 2px;
	font-size: 14px;
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-side ul li a:hover,
.news-side ul li a[aria-current="true"] {
	color: #CA2420;
}

.news-side ul li a span {
	color: #999;
	font-family: Roboto, sans-serif;
	font-size: 13px;
}

/* ------------------------------------------------------------------
   ページャ
------------------------------------------------------------------ */
.news-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 50px;
}

.news-pager a,
.news-pager span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	color: #111;
	border: 1px solid #d7d7d7;
	text-decoration: none;
	transition: all 0.3s ease;
}

.news-pager a:hover {
	color: #FFF;
	background: #CA2420;
	border-color: #CA2420;
}

.news-pager .current {
	color: #FFF;
	background: #111;
	border-color: #111;
}

/* ------------------------------------------------------------------
   記事ページ
------------------------------------------------------------------ */
.article-head {
	padding-bottom: 24px;
	margin-bottom: 36px;
	border-bottom: 1px solid #d7d7d7;
}

.article-head h1 {
	font-size: 30px;
	line-height: 1.5;
	font-weight: 700;
	margin-top: 14px;
}

.article-thumb {
	margin-bottom: 40px;
}

.article-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

/* 本文。Markdownから生成される要素にスタイルを当てる */
.article-body {
	font-size: 16px;
	line-height: 2;
}

.article-body > * + * {
	margin-top: 1.4em;
}

.article-body h2 {
	font-size: 24px;
	line-height: 1.5;
	font-weight: 700;
	margin-top: 2.4em;
	padding-left: 16px;
	border-left: 4px solid #CA2420;
}

.article-body h3 {
	font-size: 20px;
	line-height: 1.6;
	font-weight: 700;
	margin-top: 2em;
	padding-bottom: 8px;
	border-bottom: 1px solid #d7d7d7;
}

.article-body h4 {
	font-size: 17px;
	font-weight: 700;
	margin-top: 1.8em;
}

.article-body a {
	color: #CA2420;
	text-decoration: underline;
}

.article-body a:hover {
	text-decoration: none;
}

.article-body strong {
	font-weight: 700;
}

.article-body ul,
.article-body ol {
	padding-left: 1.6em;
}

.article-body ul > li {
	list-style: disc;
}

.article-body ol > li {
	list-style: decimal;
}

.article-body li + li {
	margin-top: 0.5em;
}

.article-body img {
	max-width: 100%;
	height: auto;
}

.article-body blockquote {
	padding: 20px 24px;
	background: #f7f7f7;
	border-left: 3px solid #ccc;
	color: #555;
}

.article-body blockquote > * + * {
	margin-top: 1em;
}

.article-body pre {
	padding: 20px;
	overflow-x: auto;
	background: #2b2b2b;
	color: #f5f5f5;
	font-size: 14px;
	line-height: 1.7;
	border-radius: 3px;
}

.article-body code {
	font-family: Consolas, Menlo, monospace;
	font-size: 0.92em;
	padding: 0.15em 0.4em;
	background: #f0f0f0;
	border-radius: 2px;
}

.article-body pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.article-body hr {
	border: none;
	border-top: 1px solid #d7d7d7;
	margin: 2.4em 0;
}

/* 表は幅が足りないときだけ横スクロールさせる */
.article-body .table-scroll {
	overflow-x: auto;
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.article-body th,
.article-body td {
	padding: 12px 16px;
	border: 1px solid #d7d7d7;
	text-align: left;
	vertical-align: top;
}

.article-body th {
	background: #f7f7f7;
	font-weight: 700;
	white-space: nowrap;
}

/* 記事下 */
.article-foot {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #d7d7d7;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
}

.article-tags li a {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	color: #666;
	background: #f2f2f2;
	text-decoration: none;
	border-radius: 2px;
}

.article-nav {
	display: flex;
	justify-content: center;
}

.related-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.related-list a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.related-list a:hover {
	opacity: 0.6;
}

.related-list .thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
	margin-bottom: 12px;
}

.related-list .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-list time {
	font-family: Roboto, sans-serif;
	font-size: 13px;
	color: #888;
}

.related-list h3 {
	font-size: 15px;
	line-height: 1.6;
	font-weight: 700;
	margin-top: 4px;
}

/* ------------------------------------------------------------------
   トップページの最新情報
------------------------------------------------------------------ */
.topnews {
	padding: 80px 0 0;
}

.topnews .news-list {
	max-width: 900px;
	margin: 0 auto;
}

.topnews .bt {
	margin-top: 40px;
	text-align: center;
}

/* ------------------------------------------------------------------
   スマートフォン
------------------------------------------------------------------ */
@media only screen and (max-width: 639px) {
	.topnews {
		padding: 50px 0 0;
	}

	.topnews .bt {
		margin-top: 30px;
	}

	.news-layout {
		display: block;
	}

	.news-side {
		width: auto;
		margin-top: 50px;
	}

	.news-item > a {
		display: block;
		padding: 20px 2px;
	}

	.news-item .thumb {
		width: 100%;
		margin-bottom: 14px;
	}

	.news-item h2 {
		font-size: 17px;
	}

	.article-head h1 {
		font-size: 22px;
	}

	.article-body {
		font-size: 15px;
		line-height: 1.9;
	}

	.article-body h2 {
		font-size: 20px;
	}

	.article-body h3 {
		font-size: 17px;
	}

	.related-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.related-list a {
		display: flex;
		gap: 14px;
		align-items: flex-start;
	}

	.related-list .thumb {
		width: 120px;
		flex-shrink: 0;
		margin-bottom: 0;
	}
}
