@charset "utf-8";

/* --- 1. 基本スタイル --- */
* {
	margin: 0;
	padding: 0;
	font-family: "Times New Roman", Times, serif;
	text-decoration: none;
}
html {
	scroll-behavior: smooth;
}
body {
	color: #35363b;
}
a,
a:hover,
a:visited {
	color: inherit;
}
h1 {
	text-align: center;
	padding: 80px;
	background-color: #f6fdff;
	background-image: radial-gradient(#d5f2fe 20%, transparent 20%),
		radial-gradient(#d5f2fe 20%, transparent 20%);
	background-size: 15px 15px;
	background-position: 0 0, 7px 7px;
	font-weight: normal;
}
/* スマホ用H1のスタイル調整 */
h1.sumaho {
	padding: 40px 0; /* 上下の余白を減らす */
	font-size: 28px; /* フォントサイズを調整 */
	background-image: none; /* スマホでは背景のドットを非表示にする場合 */
	background-color: transparent; /* 背景色も透明にする場合 */
	border-bottom: 2px solid #ccc; /* 下線を追加 */
	margin-bottom: 20px;
}

.pagetop {
	height: 50px;
	width: 50px;
	position: fixed;
	right: 30px;
	bottom: 30px;
	background: #fff;
	border: solid 2px #000;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
}
.pagetop__arrow {
	height: 10px;
	width: 10px;
	border-top: 3px solid #000;
	border-right: 3px solid #000;
	transform: translateY(20%) rotate(-45deg);
}

/* --- ここから下はニュースページ用に整理したスタイルです --- */

/* --- 2. ニュースページ全体のレイアウト --- */

/* PC用：2カラムレイアウト */
#news-wrapper {
	display: flex;
	gap: 50px;
	width: 90%;
	max-width: 1200px;
	margin: 40px auto;
}
#year-tabs-container {
	flex: 0 0 180px;
}
#news-content-area {
	flex: 1;
	min-width: 0;
}

/* PC用：年別タブのスタイル */
.year-tab {
	display: block;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 16px;
	color: #333;
	border-left: 3px solid transparent;
	transition: all 0.3s;
}
.year-tab:hover {
	background-color: #f7f7f7;
}
.year-tab.active {
	background-color: #e8f5f7;
	font-weight: bold;
	border-left: 3px solid #3c6cd4;
}
#current-year-title {
	font-size: 24px;
	padding-bottom: 15px;
	border-bottom: 2px solid #333;
	margin-bottom: 20px;
	text-align: left; /* PC版では左寄せ維持 */
}

/* SP用：プルダウンとニュースエリアの余白 */
#year-select-container-sp {
	padding: 20px 15px 10px 15px;
	/* width: 100%; はプルダウンに適用 */
}
#year-select-sp {
	width: calc(100% - 30px); /* 左右のpaddingを考慮 */
	padding: 12px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: white;
	margin: 0 15px; /* 中央寄せと余白 */
	box-sizing: border-box; /* paddingとborderをwidthに含める */
}
#news-content-area-sp {
	padding: 0 15px; /* 左右の余白を統一 */
}

/* --- 3. ニュースリストテーブル (PC/SP共通) --- */

/* テーブル全体 */
#news-container table,
#news-container-sp table {
	width: 100%;
	border-collapse: collapse;
}

/* テーブルの行 */
#news-container table tr,
#news-container-sp table tr {
	border-bottom: 1px solid #e0e0e0;
}

/* テーブルのセル (日付 & タイトル) */
#news-container table th,
#news-container-sp table th,
#news-container table td,
#news-container-sp table td {
	padding: 25px 15px;
	text-align: left;
	font-weight: normal;
	vertical-align: middle;
}

/* SP用テーブルの日付セルとタイトルセルの調整 */
#news-container-sp table th {
	white-space: nowrap;
	width: auto; /* autoに変更 */
	padding-right: 10px;
	text-align: center; /* 日付を中央に */
	display: block; /* ブロック要素にして、タイトルと改行 */
	padding-bottom: 5px; /* 日付とタイトルの間の余白 */
}
#news-container-sp table td {
	display: block; /* ブロック要素にして、日付と改行 */
	text-align: center; /* タイトルを中央に */
	padding-top: 5px; /* 日付とタイトルの間の余白 */
}
/* SPのテーブルで日付とタイトルが上下になった場合に、リンクのクリック範囲を広げる */
#news-container-sp table tr a {
	display: block;
	padding: 10px 0; /* 各項目内の上下のクリック領域を確保 */
}

/* テーブル内のリンク */
#news-container table td a,
#news-container-sp table td a {
	color: #333;
	text-decoration: none;
}
#news-container table td a:hover,
#news-container-sp table td a:hover {
	text-decoration: underline;
}

/* --- 4. ページネーション (PC/SP共通) --- */

/* コンテナ */
#pagination-container,
#pagination-container-sp {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 40px;
}

/* ボタン */
#pagination-container a,
#pagination-container-sp a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin: 0 4px;
	text-decoration: none;
	color: #337ab7;
	transition: background-color 0.3s;
}
#pagination-container a:hover,
#pagination-container-sp a:hover {
	background-color: #f0f0f0;
}
#pagination-container a[style*="bold"],
#pagination-container-sp a[style*="bold"] {
	background-color: #337ab7;
	color: white;
	border-color: #337ab7;
}

/* --- 5. 元からあったその他のスタイル --- */
/* (こちらは念のためそのまま残してあります) */
/* ... 既存のスタイル ... */

/* --- ▼ サブページ用 最新お知らせ欄のスタイル ▼ --- */

.latest-news-widget {
	max-width: 800px;
	margin: 40px auto; /* 上下の余白と中央寄せは維持します */
}
.latest-news-list {
	margin-bottom: 20px; /* リストとボタンの間の余白 */
}
.latest-news-item {
	display: flex;
	align-items: baseline;
	padding: 15px 10px;
	border-bottom: 1px solid #f0f0f0;
}
.latest-news-list > .latest-news-item:last-child {
	border-bottom: none;
}
.latest-news-item .news-date {
	margin-right: 20px;
	font-size: 15px;
	color: #555;
	white-space: nowrap;
}
.latest-news-item .news-title {
	font-size: 16px;
}
.latest-news-item .news-title a {
	color: #333;
	text-decoration: none;
}
.latest-news-item .news-title a:hover {
	text-decoration: underline;
}
.latest-news-button-wrap {
	text-align: center; /* 「一覧を見る」ボタンを中央に配置 */
	margin-top: 20px;
}
.latest-news-button {
	display: inline-block;
	padding: 10px 30px;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	transition: background-color 0.3s;
}
.latest-news-button:hover {
	background-color: #f7f7f7;
}

/* SP専用の調整 (画面幅が小さい場合) */
@media (max-width: 768px) {
	/* サブページウィジェットのタイトルと日付の中央寄せ */
	.latest-news-item {
		flex-direction: column; /* 縦並びにする */
		align-items: center; /* 中央寄せ */
		text-align: center; /* テキストも中央寄せ */
	}
	.latest-news-item .news-date {
		margin-right: 0;
		margin-bottom: 5px; /* 日付とタイトルの間に少し余白 */
	}
}
