@charset "UTF-8";
/* CSS Document */


#eventList {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 2rem;
}

#eventList li {
	width: calc((100% - 4rem) / 3);
	background: #fff;
	box-shadow: 0px 1px 8px 0px #00000045;
	transition: box-shadow ease-out 0.2s;
}

#eventList a {
	display: block;
	width: 100%;
	height: 100%;
}

#eventList a:hover,
#eventList a:hover img {
	opacity: 1 !important;
}

#eventList li:has(a:hover) {
	box-shadow: 0px 1px 16px 0px #00000085;
}

#eventList p {
	color: #000;
	margin: 0;
	font-weight: 400;
}

#eventList .date {
	font-family: alternate-gothic-atf;
	font-size: 1.25em;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 0.25em 1em;
	position: relative;
}

#eventList .new {
	position: absolute;
	right: 0.8em;
	top: 0;
	height: 100%;
	background: rgb(212, 112, 78);
	color: #fff;
	box-sizing: border-box;
	padding: 0.25em 1em;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

#eventList .new::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
}

#eventList p.event-title {
	padding: 1em;
}

.event-img {
	width: 100%;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	position: relative;
}

#eventList a .event-img::before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	background: #D4704E;
	top: 0;
	left: 0;
	z-index: 2;
	opacity: 0;
	transition: opacity ease-out 0.2s;
}

#eventList a:hover .event-img::before {
	opacity: 0.75;
}

#eventList .event-img::after {
	content: url("../images/arrow-right-s-line.svg");
	width: 8rem;
	position: absolute;
	left: calc(50% - 4rem);
	top: calc(50% - 4rem);
	margin-left: -1em;
	z-index: 3;
	opacity: 0;
	transition: all ease-out 0.4s;
}

#eventList a:hover .event-img::after {
	opacity: 1;
	margin-left: 0;
}

.event-img img {
	width: 100%;
	height: 100%;
	position: relative;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 1;
	transition: opacity ease-out 0.4s;
}


/* ページネーション */

.pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 10px;
	font-family: alternate-gothic-atf, 'Hiragino Sans', YuGothic, "kozuka-gothic-pro", Meiryo, 'sans-serif';
}

.pagination a,
.pagination .current {
	box-sizing: border-box;
	min-width: 2.117em;
	padding: 0.2em 0.4em;
	font-size: 1.7rem;
	font-weight: 400;
	text-align: center;
}

.pagination a {
	border: 1px solid #ccc;
	text-decoration: none;
	color: #333;
	transition: all ease-out 0.2s;
}

.pagination a:hover {
	background: #e1e1e1;
	border: 1px solid #c1c1c1;
}

.pagination .current {
	background: rgb(212, 112, 78);
	color: #fff;
}

.pagination .fa::before {
	position: static;
	padding: 0;
	font-size: 2rem;
}


@media screen and (max-width: 1000px) {

	#eventList {
		row-gap: 3rem;
	}

	#eventList li {
		width: calc(50% - 1rem);
	}
}


@media screen and (max-width: 540px) {

	#eventList {
		row-gap: 2rem;
	}

	#eventList li {
		width: 100%;
	}
}