@charset "UTF-8";

/*
 * Event archive styles
 * eiwa2021
 */

/* --------------------------------
 * Base
 * -------------------------------- */
.events-archive {
	background: #efefef;
	color: #111;
	font-family: inherit;
}

.events-archive *,
.events-archive *::before,
.events-archive *::after {
	box-sizing: border-box;
}

.events-archive a {
	color: inherit;
	text-decoration: none;
}

.events-archive img {
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

/* --------------------------------
 * Common width
 * -------------------------------- */
.events-hero__inner,
.events-list-section__inner {
	width: min(100% - 40px, 1200px);
	margin-inline: auto;
}

/* --------------------------------
 * Hero
 * -------------------------------- */
.events-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 80px 0;
	background-image: url("../img/events-hero.webp");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	overflow: hidden;
}

.events-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
	z-index: 1;
}

.events-hero__inner {
	position: relative;
	z-index: 2;
	text-align: center;
}

.events-hero__title {
	margin: 0;
	color: #fff;
	font-size: 2.3rem;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

/* --------------------------------
 * List section
 * -------------------------------- */
.events-list-section {
	padding: 150px 0 132px;
	background: #efefef;
}

/* デザイン上は見せないが、見出し構造としては残す */
.events-list-section__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------
 * Event list
 * -------------------------------- */
.events-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 44px;
	row-gap: 84px;
}

.events-list__item {
	min-width: 0;
}

/* --------------------------------
 * Event card
 * -------------------------------- */
.event-card {
	height: 100%;
	background: #fff;
	overflow: hidden;
}

.event-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	background: #fff;
	text-decoration: none;
}

.event-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #bfbfbf;
	overflow: hidden;
}

.event-card__image-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.event-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: #bfbfbf;
}

.event-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px 30px 24px;
	background: #fff;
	text-align: center;
}

.event-card__title {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #bfbfbf;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.03em;
}

.event-card__labels {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.event-card__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 3px 10px;
	background: #FFEF24;
	color: #000;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.03em;
}

.event-card__date {
	margin: 10px 0 0;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.03em;
}

.event-card__target {
	margin-top: 16px;
}

.event-card__target-text {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: 0.03em;
	text-align: center;
}

.event-card__footer {
	margin-top: auto;
}
.event-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	background: #000;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	transition: opacity 0.25s ease;
}

.event-card__link:hover .event-card__image-img {
	transform: scale(1.04);
}

.event-card__link:hover .event-card__button {
	opacity: 0.82;
}

/* --------------------------------
 * Pagination
 * -------------------------------- */
.events-pagination {
	margin-top: 72px;
}

.events-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.events-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.events-pagination .page-numbers a,
.events-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #777;
	background: #fff;
	color: #111;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
}

.events-pagination .page-numbers .current {
	background: #666;
	color: #fff;
	border-color: #666;
}

.events-pagination .page-numbers a:hover {
	background: #f7f7f7;
}

/* --------------------------------
 * Empty
 * -------------------------------- */
.events-empty {
	width: min(100%, 680px);
	margin: 0 auto;
	padding: 44px 32px;
	background: #fff;
	text-align: center;
}

.events-empty__text {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.03em;
}

/* --------------------------------
 * Responsive
 * -------------------------------- */
@media screen and (max-width: 767px) {
	.events-hero__inner,
	.events-list-section__inner {
		width: calc(100% - 32px);
	}
	
	/* Hero */
	.events-hero {
		min-height: 320px;
		padding: 72px 0 56px;
		background-position: center center;
	}
	
	.events-hero::before {
		background: rgba(0, 0, 0, 0.32);
	}
	.events-hero__title {
		font-size: 2rem;
		line-height: 1.7;
		letter-spacing: 0.04em;
	}
	/* List section */
	.events-list-section {
		padding: 64px 0 80px;
	}
	
	.events-list {
		grid-template-columns: 1fr;
		row-gap: 48px;
		column-gap: 0;
	}
	
	.events-list__item {
		width: 100%;
		max-width: 390px;
		margin-inline: auto;
	}
	
	/* Event card */
	.event-card {
		width: 100%;
	}
	
	.event-card__image {
		aspect-ratio: 4 / 3;
	}

	.event-card__body {
		padding: 24px 22px 22px;
	}

	.event-card__title {
		padding-bottom: 11px;
		font-size: 1.6rem;
		line-height: 1.5;
	}

	.event-card__labels {
		gap: 6px;
		margin-top: 13px;
	}

	.event-card__label {
		min-width: 48px;
		padding: 3px 9px;
		font-size: 1.2rem;
	}

	.event-card__date {
		margin-top: 10px;
		font-size: 1.2rem;
		line-height: 1.6;
	}

	.event-card__target {
		margin-top: 14px;
	}

	.event-card__target-heading {
		margin-bottom: 6px;
		font-size: 1.2rem;
		line-height: 1.6;
	}

	.event-card__target-text {
		font-size: 1.2rem;
		line-height: 1.75;
	}

	.event-card__button {
		min-height: 44px;
		padding: 10px 12px;
		font-size: 1.3rem;
	}

	.event-card__link:hover .event-card__image-img {
		transform: none;
	}

	/* Pagination */
	.events-pagination {
		margin-top: 56px;
	}

	.events-pagination .page-numbers {
		gap: 7px;
	}

	.events-pagination .page-numbers a,
	.events-pagination .page-numbers span {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		font-size: 1.3rem;
	}

	/* Empty */
	.events-empty {
		width: 100%;
		padding: 36px 20px;
	}

	.events-empty__text {
		font-size: 1.4rem;
		line-height: 1.8;
	}
}









