/* イベントリスト用 */
.eventListSection {
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5em 0;
}

.eventListMonth {
	margin: 1em 0 1.5em;
}

.eventListMonthForm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
}

.eventListMonthLabel {
	font-weight: bold;
	margin: 0;
}

.eventListSelect {
	padding: 0.4em 0.6em;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	min-width: 5em;
}

.eventListSelectMonth {
	min-width: 4em;
}

.eventListSelectPrefecture {
	min-width: 6em;
	max-width: 10em;
}

.eventListMonthBtn {
	padding: 0.4em 1em;
	font-size: 1em;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.eventListMonthBtn:hover {
	background: #555;
}

.eventListEmpty {
	color: #666;
}

.eventListNote {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 1em;
}

.eventListUl {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.eventListDateGroup {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e5e5e5;
}

.eventListDateGroup:last-child {
	border-bottom: none;
}

.eventListDateHeading {
	padding: 0.5em 1em;
	background: #e8e8e8;
	font-weight: bold;
	color: #333;
}

.eventListByDateUl {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

/* 親イベント＋プチオンリーを1ブロックとして区切る */
.eventListParentBlock {
	border: 1px solid #ddd;
	overflow: hidden;
	background: #fff;
}

.eventListParentBlock.eventListItem {
	border-bottom: none;
}

.eventListItem {
	margin: 0;
	border-bottom: 1px solid #eee;
}

.eventListParentBlock.eventListItem:last-child,
.eventListItem:last-child {
	border-bottom: none;
}

.eventListItemInner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1em;
	padding: 0.6em 1em;
}

.eventListItemParent .eventListItemInner {
	background: #f5f5f5;
}

/* バナー：サイズを揃えてツブが揃うように（余白は行背景と同色で目立たなく） */
.eventListBannerWrap {
	flex: 0 0 auto;
	width: 160px;
	height: 60px;
	background: #f9f9f9;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eventListBannerLink {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.eventListBannerLink:hover {
	opacity: 0.9;
}

.eventListBannerImg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.eventListNoBanner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.75rem;
	color: #888;
	background: #f9f9f9;
}

.eventListBody {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2em 0;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.eventListDate {
	flex: 0 0 auto;
	min-width: 8em;
	font-weight: bold;
	color: #333;
}

/* イベント名：1行目で目立たせる */
.eventListNameRow {
	display: block;
	line-height: 1.35;
}

.eventListName {
	font-weight: 500;
}

.eventListNameParent {
	font-size: 1.05em;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
}

/* イベント支援対象バッジ（支援イベント一覧へのリンク） */
.eventListSupportBadge {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0.15em 0.5em;
	font-size: 0.75em;
	font-weight: 600;
	color: #0d5c2e;
	background: #e3f2e8;
	border: 1px solid #a8d4b8;
	border-radius: 3px;
	vertical-align: middle;
	text-decoration: none;
}

.eventListSupportBadge:hover {
	background: #cce6d4;
	border-color: #8bc49a;
	color: #0a4720;
}

.eventListSupportBadge--petit {
	font-size: 0.7em;
	padding: 0.1em 0.4em;
}

/* 搬入・会場・地図：2行目にまとめて補足として */
.eventListSubInfo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.25em;
	font-size: 0.85em;
	color: #666;
	line-height: 1.4;
}

.eventListSubInfoSep {
	color: #999;
	font-weight: 400;
}

.eventListCarried {
	padding: 0.15em 0.5em;
	border-radius: 3px;
	font-weight: 500;
}

/* 0=直接搬入: 黄色 */
.eventListCarried--0 {
	background: #fff3b0;
	color: #7d6a00;
}

/* 1=宅配搬入: 黄緑 */
.eventListCarried--1 {
	background: #c8e6c9;
	color: #2e5c2e;
}

/* 2=WEB: 水色 */
.eventListCarried--2 {
	background: #b3e5fc;
	color: #01579b;
}

/* 未設定時 */
.eventListCarried--default {
	background: #eee;
	color: #666;
}

.eventListPlace {
	color: #555;
}

.eventListMapLink {
	font-size: 0.95em;
	margin-left: 0.15em;
	padding: 0.15em 0.45em;
	background: #e8e8e8;
	color: #444;
	text-decoration: none;
	border-radius: 3px;
	white-space: nowrap;
}

.eventListMapLink:hover {
	background: #ddd;
	color: #000;
}

.eventListPetitUl {
	list-style: none;
	margin: 0.5em 0 0 0;
	padding: 0.4em 0 0.4em 0;
	padding-left: 2.5em;
	background: #f7f7f7;
	border-left: 4px solid #bbb;
}

.eventListItemPetit {
	border-bottom: 1px solid #eee;
	padding: 0;
}

.eventListItemPetit:last-child {
	border-bottom: none;
}

.eventListItemInnerPetit {
	padding: 0.45em 1em 0.45em 0.75em;
}

.eventListNamePetit {
	font-size: 0.95em;
	color: #444;
}

.eventListItemPetit .eventListNamePetit::before {
	content: "└ ";
	color: #999;
	margin-right: 0.25em;
}

/* ========== レスポンシブ（スマホ表示） ========== */
@media (max-width: 767px) {
	.eventListMonth {
		margin: 0.75em 0 1em;
	}

	.eventListMonthForm {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5em;
	}

	.eventListMonthLabel {
		font-size: 0.95em;
	}

	.eventListSelect {
		width: 100%;
		min-width: 0;
		max-width: none;
		padding: 0.5em 0.6em;
		font-size: 16px; /* iOSでズーム防止 */
	}

	.eventListSelectPrefecture {
		max-width: none;
	}

	.eventListMonthBtn {
		width: 100%;
		padding: 0.55em 1em;
		font-size: 16px;
	}

	.eventListSection {
		margin: 1em 0;
	}

	.eventListNote {
		font-size: 0.85em;
		margin-bottom: 0.75em;
	}

	.eventListUl {
		border-left: none;
		border-right: none;
		border-radius: 0;
	}

	.eventListDateHeading {
		padding: 0.45em 0.75em;
		font-size: 0.95em;
	}

	.eventListItemInner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5em;
		padding: 0.5em 0.75em;
	}

	.eventListBannerWrap {
		width: 100%;
		max-width: 100%;
		height: 52px;
		min-height: 52px;
	}

	.eventListNoBanner {
		font-size: 0.7rem;
	}

	.eventListBody {
		min-width: 0;
	}

	.eventListNameParent {
		font-size: 1em;
	}

	.eventListSubInfo {
		font-size: 0.8em;
	}

	.eventListPetitUl {
		padding-left: 1.5em;
		border-left-width: 3px;
		margin-top: 0.4em;
	}

	.eventListItemInnerPetit {
		padding: 0.35em 0.5em 0.35em 0.4em;
	}

	.eventListNamePetit {
		font-size: 0.9em;
	}
}
