@charset "utf-8";

/* コンテンツ部分 */
#event {
	padding: 0 3%;
	max-width: 1024px;
	margin: 0 auto;
}

/* イベントを2列に変更 */
#event-contents {
	display: flex;
	display: -webkit-flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	max-width: 904px;
	margin: 0 auto;
}

.event-content {
	width: 45%;
	margin-bottom: 5vw;
	position: relative;
	background-color: #f1e0e7;
}

/* サムネイル画像 */
.event-img {
	width: 100%;
	position: relative;
	overflow: hidden;
	height: 21vw;
	max-height: 210.087px;
}

.event-number {
	width: 1.8em;
	height: 1.6em;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	font-size: 4em;
	line-height: 1.6em;
	padding-bottom: 0.2em;
	background-color: #f1e0e7;
	color: #dc418c;
	z-index: 1;
}

.event-img a {
	display: inline;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.end-event {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	color: #ffffff;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}

.end-text {
	text-align: center;
	line-height: 218px;
	font-size: 3em;
}
@media screen and (max-width: 1024px) {
	.end-text {
		line-height: 21vw;
	}
}

.img-hover {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	transition-property: background-color;
	transition-duration: 0.5s;
	background-color: rgba(255, 255, 255, 0);
}

.event-img img {
	width: 100%;
	z-index: 0;
}

.event-img a:hover .img-hover,
.event-more-text:hover .img-hover {
	background-color: rgba(255, 255, 255, 0.4);
}

/*　イベント情報　*/
.event-text {
	font-size: 2em;
	padding: 0.5em 1em;
	padding-bottom: 5em;
	text-align: left;
}

.event-name {
	width: 100%;
	height: 3em;
	font-size: 2vw;
	color: #dc418c;
	text-align: center;
	margin-bottom: 0.5em;
	overflow: hidden;
}

.event-date,
.event-place {
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	font-weight: 600;
}

.desc {
	height: 6em;
	margin-top: 1em;
	overflow: hidden;
}

@media screen and (min-width: 1025px) {
	.event-text {
		font-size: 18.4px;
	}
	.event-name {
		font-size: 20px;
	}
}

/* 詳細を見るボタン */
.more-button {
	position: absolute;
	bottom: 1em;
	right: 1em;
	font-size: 2.3em;
	border-radius: 0.2em;
	background-color: #cccc33;
}

.event-more {
	position: relative;
}

.event-more-text {
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: #ffffff;
	line-height: 2em;
	padding: 0 0.8em;
}

@media screen and (max-width: 768px) { /* レスポンシブ対応 */
	/* ページタイトル */
	#headline {
		font-size: 8em;
	}

	/* イベントを1列に変更 */
	#event-contents {
		display: block;
	}
	.event-content {
		width: 80%;
		margin: 0 auto 8vw auto;
	}

	/* サムネイル画像 */
	.event-number {
		font-size: 7em;

	}

	.event-img {
		height: calc(38vw - 1em);
		max-height: none;
	}

	.end-text {
		line-height: calc(38vw - 1em);
		font-size: 5em;
	}


	/* イベント情報 */
	.event-text {
		height: 55vw;
		font-size: 3.3em;
		padding-bottom: 1.5em;
	}

	.desc {
		padding: 0 1em;
	}

	/* 詳細を見るボタン */
	.more-button {
		font-size: 3.5em;
		text-align: center;
		width: 50%;
		left: 0;
		right: 0;
		margin: 0 auto;
	}
}

.no-event {
	margin-top: 1rem;
	text-align: center;
	font-size: 36px;
}

@media screen and (max-width: 768px) {
	.no-event {
		font-size: 4.3vw;
	}
}
