/* シェアあだち イベント告知
   色はテーマ側で --sae-* を上書きすると変えられます。 */
.sae {
	--sae-accent: #d2482a;
	--sae-accent-ink: #b23b20;
	--sae-accent-soft: #fbe7e1;
	--sae-green: #1f5c4a;
	--sae-ink: #1d2420;
	--sae-muted: #5b615c;
	--sae-line: #e4e2da;
	--sae-card: #ffffff;
	--sae-ground: #f4f3ee;
	color: var(--sae-ink);
	margin: 0 0 2em;
}

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

.sae-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.sae__heading {
	margin: 0 0 12px;
}

/* タブ */
.sae-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
}
.sae-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid var(--sae-line);
	background: var(--sae-card);
	color: var(--sae-ink) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
}
.sae-tabs__tab.is-current {
	background: var(--sae-ink);
	border-color: var(--sae-ink);
	color: #fff !important;
}

/* 月の見出し */
.sae-month {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 13px !important;
	font-weight: 700;
	color: var(--sae-muted);
	letter-spacing: 0.04em;
}
.sae-month::before,
.sae-month::after {
	display: none !important;
}
.sae-month span,
.sae-month {
	line-height: 1.4;
}
.sae-list > .sae-month:first-child {
	margin-top: 0 !important;
}

.sae-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* カード */
.sae-card {
	background: var(--sae-card);
	border: 1px solid var(--sae-line);
	border-radius: 16px;
	overflow: hidden;
}
.sae-card__head {
	display: flex;
	align-items: stretch;
}
.sae .sae-card__toggle {
	all: unset;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px 12px 14px;
	cursor: pointer;
	color: var(--sae-ink);
	-webkit-tap-highlight-color: transparent;
}
.sae .sae-card__toggle:focus-visible {
	outline: 3px solid var(--sae-green);
	outline-offset: -3px;
	border-radius: 16px;
}

.sae-date {
	flex: 0 0 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 12px;
	background: var(--sae-ground);
	line-height: 1.1;
}
.sae-date__md {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.sae-date__wd {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--sae-muted);
}

.sae-card__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.sae-card__meta {
	font-size: 12px;
	color: var(--sae-muted);
	line-height: 1.4;
}
.sae-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.sae-card__chev {
	flex: 0 0 auto;
	fill: none;
	stroke: var(--sae-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}
.sae-card.is-open .sae-card__chev {
	transform: rotate(180deg);
}

/* 応援ボタン */
.sae .sae-cheer {
	all: unset;
	box-sizing: border-box;
	flex: 0 0 auto;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 64px;
	min-height: 60px;
	margin: 8px 10px 8px 0;
	padding: 6px 8px;
	border-radius: 14px;
	border: 1.5px solid var(--sae-accent);
	background: var(--sae-card);
	color: var(--sae-accent-ink);
	cursor: pointer;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.sae .sae-cheer:focus-visible {
	outline: 3px solid var(--sae-green);
	outline-offset: 2px;
}
.sae-cheer__icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}
.sae-cheer__count {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.1;
}
.sae-cheer__label {
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
}
.sae .sae-cheer.is-cheered {
	background: var(--sae-accent);
	color: #fff;
}
.sae .sae-cheer.is-cheered .sae-cheer__icon {
	fill: currentColor;
}
.sae .sae-cheer.is-ended {
	cursor: default;
	border-color: var(--sae-line);
	color: var(--sae-muted);
	background: var(--sae-ground);
}
.sae .sae-cheer.is-pop .sae-cheer__icon {
	animation: sae-pop 0.45s ease;
}
@keyframes sae-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.35); }
	100% { transform: scale(1); }
}
@media (hover: hover) {
	.sae .sae-cheer:not(.is-ended):not(.is-cheered):hover {
		background: var(--sae-accent-soft);
	}
}

/* 開いたときの中身 */
.sae-card__body {
	padding: 0 14px 16px;
	border-top: 1px solid var(--sae-line);
}
.sae-card__body[hidden] {
	display: none;
}
.sae-card__img {
	display: block;
	width: 100%;
	max-height: 320px;
	margin: 14px 0 0;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}
.sae-card__summary {
	margin: 12px 0 0 !important;
	font-size: 14px;
	line-height: 1.8;
}

.sae-facts {
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 13.5px;
}
.sae-facts > div {
	display: grid;
	grid-template-columns: 5.5em 1fr;
	gap: 8px;
}
.sae-facts dt {
	margin: 0;
	color: var(--sae-muted);
	font-weight: 700;
}
.sae-facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.sae-maplink {
	margin-left: 8px;
	font-weight: 700;
	color: var(--sae-green) !important;
}

.sae-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.sae-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--sae-ink);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}
.sae-btn--ghost {
	background: var(--sae-card);
	color: var(--sae-ink) !important;
	border: 1px solid var(--sae-line);
}

.sae-card.is-past .sae-date {
	background: var(--sae-line);
}
.sae-card.is-past .sae-card__title {
	color: var(--sae-muted);
}

.sae-empty {
	padding: 24px 16px;
	border-radius: 16px;
	background: var(--sae-ground);
	color: var(--sae-muted);
	text-align: center;
}
.sae-more,
.sae-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 16px 0 0;
}
.sae-pager__now {
	font-size: 13px;
	color: var(--sae-muted);
}

/* 詳細ページ */
.sae-single {
	margin-bottom: 1.5em;
}
.sae-ended {
	margin: 0 0 12px !important;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--sae-ground);
	color: var(--sae-muted);
	font-weight: 700;
	font-size: 14px;
}
.sae-single__img {
	display: block;
	width: 100%;
	border-radius: 16px;
	margin-bottom: 12px;
}
.sae-single__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--sae-line);
	border-radius: 16px;
	background: var(--sae-card);
}
.sae-single__when {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sae-single__date {
	font-weight: 800;
	font-size: 16px;
}
.sae-single__venue {
	font-size: 13px;
	color: var(--sae-muted);
}
.sae-single .sae-cheer {
	margin: 0;
}
.sae-single__summary {
	margin: 14px 0 0 !important;
	font-size: 15px;
	line-height: 1.8;
}
.sae-map {
	margin-top: 14px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--sae-line);
	aspect-ratio: 4 / 3;
	max-height: 360px;
}
.sae-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 640px) {
	.sae-card__title {
		font-size: 16px;
	}
	.sae-date {
		flex-basis: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sae .sae-cheer.is-pop .sae-cheer__icon {
		animation: none;
	}
	.sae-card__chev {
		transition: none;
	}
}

/* テーマのボタン装飾に負けないように（:not(#sae-r) で優先度を上げる） */
.sae .sae-card__toggle:not(#sae-r),
.sae .sae-cheer:not(#sae-r) {
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	font-family: inherit;
	text-decoration: none;
}
.sae .sae-card__toggle:not(#sae-r) {
	padding: 12px 8px 12px 14px;
	border: 0;
	background-color: transparent;
	color: var(--sae-ink);
}
.sae .sae-cheer:not(#sae-r) {
	padding: 6px 8px;
	border: 1.5px solid var(--sae-accent);
	background-color: var(--sae-card);
	color: var(--sae-accent-ink);
}
.sae .sae-cheer.is-cheered:not(#sae-r) {
	background-color: var(--sae-accent);
	color: #fff;
}
.sae .sae-cheer.is-ended:not(#sae-r) {
	border-color: var(--sae-line);
	color: var(--sae-muted);
	background-color: var(--sae-ground);
}

/* 見出し：テーマ（SWELLなど）の見出し装飾を打ち消す。月の見出しの線は span で描く */
.sae :is(h2, h3):not(#sae-r) {
	position: static;
	z-index: auto;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
}
.sae :is(h2, h3):not(#sae-r)::before,
.sae :is(h2, h3):not(#sae-r)::after {
	content: none;
	display: none;
}
.sae .sae__heading:not(#sae-r) {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.4;
}
.sae .sae-month:not(#sae-r) {
	margin: 20px 0 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--sae-muted);
}
.sae .sae-list > .sae-month:first-child:not(#sae-r) {
	margin-top: 0;
}
