/* ---------------------------------------------------------------------- */
/* 各種取り組み */
/* ---------------------------------------------------------------------- */

/* カテゴリカラー */
:root {
	--awards: var(--rd); /* 表彰 */
	--competitions: var(--gd); /* 各種競技大会 */
	--other: var(--gr); /* その他 */
}

/* ベース */
.category {
	background-color: var(--gy);
}

.category-content {
	background-color: var(--wh);
}

/* 見出し */
h1 {
	margin-bottom: 40px;
}

/* リスト */
.category-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.category-list li a {
	column-gap: 16px;
	row-gap: 8px;
	grid-template-areas:
		"time category-tag"
		"title title";
	grid-template-columns: auto 1fr;
}

.category-list time {
	font-size: 12px;
	font-weight: 600;
	grid-area: time;
}

.category-list p {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--bk);
	display: -webkit-box;
	font-size: 14px;
	grid-area: title;
	overflow: hidden;
}

.category-list p img {
	display: block;
	/*aspect-ratio: 16 / 9;*/
	object-fit: cover;
}

.category-list .category-tag {
	grid-area: category-tag;
}

.category-tag {
	align-items: center;
	background-color: var(--bl);
	border-radius: var(--r-pill);
	color: var(--wh);
	display: flex;
	font-size: 11px;
	font-weight: 600;
	justify-content: center;
	line-height: 15px;
	padding: 2px 20px;
	width: 120px;
}

.category-tag.awards {
	background-color: var(--awards);
}

.category-tag.competitions {
	background-color: var(--competitions);
}

.category-tag.other {
	background-color: var(--other);
}

/* タブ */
.initiatives-tab .tabs__nav-button {
	align-items: center;
	background-color: var(--wh);
	box-sizing: border-box;
	display: flex;
	font-size: 10px;
	font-weight: 500;
	height: 35px;
	justify-content: center;
	line-height: var(--lh);
	padding: 6px 0;
	width: 70px;
}

.initiatives-tab .tabs__nav-button.tab-all {
	border: 2px solid var(--bl);
	color: var(--bl);
}

.initiatives-tab .tabs__nav-button.tab-competitions {
	border: 2px solid var(--competitions);
	color: var(--competitions);
}

.initiatives-tab .tabs__nav-button.tab-awards {
	border: 2px solid var(--awards);
	color: var(--awards);
}

.initiatives-tab .tabs__nav-button.tab-other {
	border: 2px solid var(--other);
	color: var(--other);
}

.initiatives-tab .tabs__nav-button.tab-all,
.initiatives-tab .tabs__nav-button.tab-competitions,
.initiatives-tab .tabs__nav-button.tab-awards,
.initiatives-tab .tabs__nav-button.tab-other {
	border-bottom: none;
}

.initiatives-tab .tabs__nav-button.tab-all[aria-selected="true"] {
	background-color: var(--bl);
	color: var(--wh);
}

.initiatives-tab .tabs__nav-button.tab-competitions[aria-selected="true"] {
	background-color: var(--competitions);
	color: var(--wh);
}

.initiatives-tab .tabs__nav-button.tab-awards[aria-selected="true"] {
	background-color: var(--awards);
	color: var(--wh);
}

.initiatives-tab .tabs__nav-button.tab-other[aria-selected="true"] {
	background-color: var(--other);
	color: var(--wh);
}

.tabs__panel {
	padding: 0;
}

.tabs__panel .category-content {
	margin-top: 0;
}

/* ページャー */
.category-list li[hidden] {
	display: none;
}

.pager ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding-top: 10px;
}

.pager li {
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
}

.pager button,
.pager span.page-numbers {
	align-items: center;
	background-color: var(--wh);
	border: 2px solid var(--bl);
	border-radius: 50%;
	color: var(--bl);
	display: flex;
	height: 45px;
	justify-content: center;
	width: 45px;
}

.pager button {
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.pager span.current {
	background-color: var(--bl);
	color: var(--wh);
}

.pager span.dots {
	background-color: transparent;
	border: none;
}

.pager .prev::before {
	content: "<";
}

.pager .next::before {
	content: ">";
}

/* ボタン */
.past-button {
	margin-bottom: 32px;
}

.past-button .bl-button {
	font-size: 12px;
}

@media (min-width: 769px) {

	/* ベース */
	.initiative-tab-list {
		margin: auto;
		max-width: var(--content-w);
	}

	/* 見出し */
	h1 {
		margin-bottom: 70px;
	}

	/* リスト */
	.category-list {
		gap: 40px;
	}

	.category-list li a {
		gap: 24px;
		padding-bottom: 40px;
	}

	.category-list li time {
		font-size: 18px;
	}

	.category-tag {
		font-size: 16px;
		padding: 5px 20px;
		width: 160px;
	}

	.category-list li a p {
		font-size: 18px;
		line-height: 1.61;
	}

	/* タブ */
	.initiatives-tab {
		gap: 15px;
	}

	.initiatives-tab .tabs__nav-button {
		border-radius: var(--r-lg) var(--r-lg) 0 0;
		font-size: 20px;
		height: 62px;
		line-height: var(--lh);
		width: 175px;
	}

	.initiative-tab-list .tabs__panel {
		padding: 0;
	}

	.tabs__panel .category-content {
		padding: 40px;
		margin-bottom:40px;
	}

	/* ボタン */
	.past-button {
		display: flex;
		justify-content: flex-end;
		margin: auto;
		margin-bottom: 70px;
		max-width: var(--content-w);
	}

	.past-button .bl-button {
		font-size: 18px;
		margin-right: 0;
		max-width: 100%;
		width: auto;
	}

}