/**
 * 社中展一覧ページのスタイル
 */

/* 年フィルター */
.year-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.year-filter-link {
	display: inline-block;
	padding: 8px 16px;
	margin: 4px;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	color: #333;
	transition: all 0.2s ease;
}

.year-filter-link:hover {
	background-color: #f0f0f0;
	color: #333;
}

.year-filter-link.is-active {
	background-color: #333;
	color: #fff;
	border-color: #333;
}

.year-filter-link.is-active:hover {
	background-color: #555;
	color: #fff;
}

/* 月別セクション */
.exhibition-month-section {
	margin-bottom: 40px;
}

.month-heading {
	font-size: 1.3rem;
	font-weight: bold;
	margin-bottom: var(--wp--preset--spacing--20);
	padding-bottom: 8px;
	border-bottom: 2px solid #333;
	color: #333;
}

/* テーブルラッパー（横スクロール対応・広幅表示） */
.exhibition-table-wrapper {
	position: relative;
	margin: 20px 0;
	/* コンテンツ幅を超えて広く表示（award-winner-tableと同様） */
	width: calc(100vw - 40px);
	max-width: 1200px;
	margin-left: 50%;
	transform: translateX(-50%);
}

.exhibition-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* テーブル本体 */
.exhibition-syachu-table {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	font-size: 14px;
}

.exhibition-syachu-table th,
.exhibition-syachu-table td {
	border: 1px solid #ddd;
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
}

.exhibition-syachu-table th {
	background-color: #f4f4f4;
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
}

.exhibition-syachu-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.exhibition-syachu-table tbody tr:hover {
	background-color: #f5f5f5;
}

/* 各列の幅調整 */
.exhibition-syachu-table .exhibition-name {
	min-width: 180px;
	font-weight: 500;
}

.exhibition-syachu-table .exhibition-date {
	white-space: nowrap;
	text-align: center;
	min-width: 100px;
}

.exhibition-syachu-table .exhibition-time {
	min-width: 120px;
}

.exhibition-syachu-table .exhibition-venue {
	min-width: 150px;
}

.exhibition-syachu-table .exhibition-organizer {
	min-width: 100px;
}

.exhibition-syachu-table .exhibition-pdf {
	text-align: center;
	min-width: 60px;
}

/* PDFリンク */
.pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #d32f2f;
	text-decoration: none;
	font-weight: 500;
}

.pdf-link:hover {
	text-decoration: underline;
}

.pdf-link .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
	.exhibition-syachu-table {
		font-size: 13px;
	}

	.exhibition-syachu-table th,
	.exhibition-syachu-table td {
		padding: 8px 10px;
	}

	.month-heading {
		font-size: 1.1rem;
	}

	.year-filter-link {
		padding: 6px 12px;
		font-size: 14px;
	}
}

/* スクロールヒント（モバイル時） */
@media screen and (max-width: 768px) {
	.exhibition-table-scroll::before {
		content: "\2190  \6a2a\306b\30b9\30af\30ed\30fc\30eb\3067\304d\307e\3059  \2192";
		display: block;
		text-align: center;
		font-size: 12px;
		color: #666;
		padding: 8px;
		background: #f0f8ff;
		border-radius: 4px;
		margin-bottom: 8px;
	}
}
