@charset "UTF-8";

/* ===== base ===== */
:root {
	--orange: #f15a24;
	--vermilion: #ea5514;
	--amber: #f39800;
	--pill-yellow: #fcee21;
	--cream: #fff3c2;
	--green: #8cbe5a;
	--green-lt: #e6f0d3;
	--pink: #f08278;
	--pink-lt: #fbddd0;
	--orangecard-lt: #fde3d8;
}

img {
	max-width: 100%;
	height: auto;
}

/* 透過セクション＝背景は白 */
.event_wrap {
	background: #fff;
	padding: 245px 0 165px;
}

/* ===== section title (pill + dotted lines) ===== */
.sec-title {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	width: calc(100% - 40px);
	margin: 0 auto;
}

.sec-title::before,
.sec-title::after {
	content: '';
	flex: 1 1 auto;
	height: 8px;
	background: url(../img/line_dot.png) repeat-x;
	background-size: auto 100%;
}

.sec-title::before {
	background-position: right center;
}
.sec-title::after {
	background-position: left center;
}

.sec-title__pill {
	flex: 0 0 auto;
	margin: 0 20px;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 392px;
	width: 100%;
	height: 80px;
	background: var(--pill-yellow);
	border: 3px solid var(--orange);
	border-radius: 999px;
	color: var(--orange);
	font-size: 28px;
	letter-spacing: 0.14em;
	white-space: nowrap;
	box-shadow: 0 7px 0 var(--orange);
}

/* ===== visual wrap (hero 背景) ===== */
.visual_wrap {
	background: var(--cream) url(../img/bg_dot.png) repeat;
	background-size: 15px;
	background-position: top center;
}

/* ===== hero ===== */
.hero {
	position: relative;
	height: 190px;
}

.hero__flags {
	height: 34px;
	background: url(../img/top_triangle.png) repeat-x center top;
	background-size: auto 34px;
}

.hero__inner {
	max-width: 480px;
	width: calc(100% - 40px);
	margin: 0 auto;
	position: relative;
	z-index: 5;
}

.hero__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

/* ===== events ===== */
.events {
	max-width: 1160px;
	margin: 0 auto;
	padding: 150px 20px 110px;
	position: relative;
}

.events .sec-title {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
}

.events__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
}

.events__grid--past {
	margin-top: 120px;
}

.ev-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.ev-card__flag {
	position: absolute;
	left: 6px;
	bottom: calc(100% + 15px);
	margin-bottom: -24px;
	width: 44%;
	max-width: 168px;
	height: auto;
	z-index: 3;
}

.ev-card__head {
	min-height: 195px;
	padding: 14px 15px 22px;
	text-align: center;
	color: #fff;
}

.ev-card__name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 53px;
	margin: 0 auto 16px;
	padding: 10px 15px;
	background: #fff;
	border-radius: 999px;
	color: #3a3a3a;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -1px;
}

.ev-card__date {
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 0;
	margin-bottom: 8px;
}

.ev-card__place {
	font-size: 16px;
	line-height: 1.6;
}

.ev-card__body {
	position: relative;
	flex: 1;
	padding: 22px 22px 36px;
}

.ev-card__logo {
	display: block;
	width: 88%;
	margin: 6px auto 0;
}

.ev-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84%;
	height: 50px;
	margin: 0 auto;
	padding: 0 16px;
	background: #fff;
	border: 2px solid var(--orange);
	border-radius: 999px;
	color: var(--orange);
	font-weight: 700;
	font-size: 18px;
	text-align: center;
	letter-spacing: 0.14em;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 50%);
}

/* past cards */
.ev-card--past {
	background: #fce7de;
}

.ev-card--past .ev-card__head {
	background: #fcded3;
	color: #d9b3a8;
}

.ev-card--past .ev-card__name {
	background: #fbeee8;
	color: #cbb8b0;
}

.ev-card--past .ev-card__logo {
	opacity: 0.28;
	margin-bottom: 0;
}

.ev-card__over {
	position: absolute;
	top: 8px;
	left: 0;
	width: 100%;
	z-index: 2;
	color: var(--vermilion);
	font-weight: 900;
	font-size: 21px;
	line-height: 1.5;
	text-align: center;
}

.ev-card--past .ev-card__btn {
	z-index: 2;
	margin-top: 18px;
}

/* ===== responsive ===== */

/* --- 〜1080px --- */
@media (max-width: 1080px) {
	.sec-title__pill {
		font-size: 24px;
		height: 70px;
		box-shadow: 0 6px 0 var(--orange);
	}
}

/* --- 〜900px：イベントカードを1カラムに --- */
@media (max-width: 900px) {
	.events__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-inline: auto;
		gap: 120px;
	}
	.events__grid--past {
		margin-top: 120px;
	}
	.ev-card__head {
		min-height: 0;
	}
}

/* --- 〜767px：スマホ --- */
@media (max-width: 767px) {
	.sec-title__pill {
		font-size: 18px;
		height: 54px;
		padding: 0 24px;
		margin: 0 12px;
		box-shadow: 0 5px 0 var(--orange);
	}
	.events {
		padding-top: 120px;
		padding-bottom: 70px;
	}
	.events__grid {
		gap: 100px;
	}
	.events__grid--past {
		margin-top: 100px;
	}
	.ev-card__name {
		font-size: 18px;
		min-height: 46px;
	}
	.ev-card__date {
		font-size: 18px;
	}
	.ev-card__place {
		font-size: 14px;
	}
	.ev-card__over {
		font-size: 19px;
	}
}
@media (max-width: 450px) {
	.event_wrap {
		background: #fff;
		padding: 150px 0 120px;
	}
}

/* --- 〜400px --- */
@media (max-width: 400px) {
	.sec-title__pill {
		font-size: 16px;
		letter-spacing: 0.08em;
	}
}
