/**
 * イベント管理（evmg_x4t）フロントエンド
 *
 * ・すべてのセレクタを .evmg-x4t 配下（およびライトボックス用の接頭辞）に限定し、
 *   テーマ（Lightning）や他プラグインへ影響しないようにする。
 * ・文字色と背景色のコントラスト比は 4.5:1 以上（JIS X 8341-3:2016 AA 相当）を目安に設定。
 * ・配色は CSS 変数で一元管理しているため、テーマに合わせた調整はここだけで済む。
 */

.evmg-x4t {
	--evmg-ink: #14181d;
	--evmg-ink-sub: #55606d;
	--evmg-line: #dfe3e8;
	--evmg-line-strong: #b9c0c9;
	--evmg-bg: #ffffff;
	--evmg-bg-soft: #f5f7f9;
	--evmg-accent: #0f4c5c;
	--evmg-accent-soft: #e6f1f4;
	/* ショートコードAのカード内の文字色 */
	--evmg-card-date: #008888;
	--evmg-card-org: #454e5a;
	/* 開催期間のブロックに使う鮮やかな水色 */
	--evmg-cyan: #00a7d8;
	--evmg-cyan-dark: #0089b3;
	/* 選択中の月タブ */
	--evmg-tab-active: #ffc800;
	--evmg-tab-active-border: #d9aa00;
	/* タブの枠線（本文の罫線より少し濃く） */
	--evmg-tab-line: #9aa3ae;
	--evmg-focus: #0f4c5c;

	max-width: 1180px;
	margin: 0 auto;
	color: var(--evmg-ink);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

/* 段落の余白は各パーツ側で指定する。
   ここで「.evmg-x4t p」に余白を持たせると、詳細度（0,1,1）が
   「.evmg-x4t-card__date」など（0,1,0）を上回り、
   個別の指定を打ち消してしまうため既定値は 0 にしておく。
   本文（.evmg-x4t-section__body p）の余白は後段で個別に指定している。 */
.evmg-x4t p {
	margin: 0;
}

.evmg-x4t a {
	color: var(--evmg-accent);
}

.evmg-x4t :focus-visible,
.evmg-x4t-lightbox :focus-visible {
	outline: 3px solid var(--evmg-focus, #0f4c5c);
	outline-offset: 2px;
}

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

.evmg-x4t .evmg-x4t-empty {
	margin: 0;
	padding: 2em 1em;
	border: 1px dashed var(--evmg-line-strong);
	border-radius: 6px;
	background-color: var(--evmg-bg-soft);
	color: var(--evmg-ink-sub);
	text-align: center;
}

/* ================================================================== */
/* ショートコードA：直近イベントのカード                                */
/* ================================================================== */

.evmg-x4t-cards {
	display: grid;
	grid-template-columns: repeat(var(--evmg-cols-sp, 1), minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media screen and (min-width: 768px) {
	.evmg-x4t-cards {
		grid-template-columns: repeat(var(--evmg-cols-pc, 2), minmax(0, 1fr));
	}
}

.evmg-x4t-cards .evmg-x4t-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--evmg-line);
	border-radius: 10px;
	background-color: var(--evmg-bg);
	list-style: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.evmg-x4t-card:hover {
	transform: translateY(-4px);
	border-color: var(--evmg-line-strong);
	box-shadow: 0 12px 29px rgba(20, 24, 29, 0.13);
}

/* PC1カラムのときは横並びにして間延びを防ぐ */
@media screen and (min-width: 768px) {
	.evmg-x4t-pickup[data-columns-pc="1"] .evmg-x4t-card {
		flex-direction: row;
		align-items: stretch;
	}

	.evmg-x4t-pickup[data-columns-pc="1"] .evmg-x4t-card__media {
		flex: 0 0 260px;
		max-width: 260px;
	}

	.evmg-x4t-pickup[data-columns-pc="1"] .evmg-x4t-card__body {
		flex: 1 1 auto;
	}
}

/* サムネイル全体がリンク */
.evmg-x4t-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--evmg-bg-soft);
	line-height: 0;
}

/* サムネイルは正方形（aspect-ratio 非対応環境向けのフォールバック付き） */
.evmg-x4t-card__media::before {
	content: '';
	display: block;
	padding-top: 100%;
}

@supports (aspect-ratio: 1 / 1) {
	.evmg-x4t-card__media::before {
		display: none;
	}

	.evmg-x4t-card__media {
		aspect-ratio: 1 / 1;
	}
}

.evmg-x4t-card__image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: 50% 50%;
	transition: transform 0.4s ease;
}

.evmg-x4t-card:hover .evmg-x4t-card__image {
	transform: scale(1.05);
}

.evmg-x4t-figures--noimage .evmg-x4t-figure__image {
	border-radius: 8px;
}

.evmg-x4t-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

.evmg-x4t .evmg-x4t-card__date {
	margin: 0 0 3px;
	color: var(--evmg-card-date, #008888);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.evmg-x4t .evmg-x4t-card__org {
	margin: 0 0 2px;
	color: var(--evmg-card-org, #454e5a);
	font-size: 14px;
	line-height: 1.6;
}

.evmg-x4t-card .evmg-x4t-card__title {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--evmg-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

/* タイトルもリンク。見た目は文字のままにして、操作できることはホバーで示す */
.evmg-x4t-card__titlelink {
	color: inherit;
	text-decoration: none;
}

.evmg-x4t-card__titlelink:hover,
.evmg-x4t-card__titlelink:focus {
	color: var(--evmg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* サムネイル・タイトルどちらにマウスを乗せてもカード全体が反応する */
.evmg-x4t-card:hover .evmg-x4t-card__titlelink {
	color: var(--evmg-accent);
}

.evmg-x4t .evmg-x4t-card__action {
	margin: auto 0 0;
}

.evmg-x4t-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 20px;
	border: 1px solid var(--evmg-accent);
	border-radius: 999px;
	background-color: transparent;
	color: var(--evmg-accent);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.evmg-x4t-button:hover,
.evmg-x4t-button:focus {
	background-color: var(--evmg-accent);
	color: #ffffff;
	text-decoration: none;
}

.evmg-x4t-button__arrow {
	display: inline-block;
	width: 16px;
	height: 8px;
	border-bottom: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: skewX(45deg) scaleY(0.6);
	transition: transform 0.2s ease;
}

.evmg-x4t-button:hover .evmg-x4t-button__arrow {
	transform: skewX(45deg) scaleY(0.6) translateX(3px);
}

/* ================================================================== */
/* ショートコードB：月別の詳細一覧                                      */
/* ================================================================== */

/* タブ。JavaScript が無効な場合は hidden 属性のままなので表示されない。 */
/* 画面幅に対して均等分割。
   広い画面では1段に全月、狭い画面では上下2段に分ける（段数は変数で指定）。 */
.evmg-x4t-tabs {
	display: grid;
	grid-template-columns: repeat(var(--evmg-tabs-total, 1), minmax(0, 1fr));
	gap: 6px;
	background-color: var(--evmg-bg);
}

/* 上部：スクロールに追従させる */
.evmg-x4t-tabs--top {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0 0 32px;
	padding: 10px 0;
	border-bottom: 1px solid var(--evmg-line);
}

/* 下部：読み終わったあとの再選択用。追従はさせない */
.evmg-x4t-tabs--bottom {
	margin: 40px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--evmg-line);
}

.evmg-x4t-tabs[hidden] {
	display: none;
}

.evmg-x4t-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	min-height: 56px;
	padding: 4px 8px 6px;
	border: 1px solid var(--evmg-tab-line);
	border-radius: 8px;
	background-color: var(--evmg-bg);
	color: var(--evmg-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.evmg-x4t-tab:hover {
	border-color: var(--evmg-accent);
	background-color: var(--evmg-accent-soft);
}

/* 年は左上に小さく。年が入らないタブにも同じ高さを確保して、
   月と件数の位置が段や列でずれないようにする。 */
.evmg-x4t-tab__year {
	align-self: stretch;
	min-height: 1.25em;
	margin-bottom: 1px;
	overflow: hidden;
	color: var(--evmg-ink-sub);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-align: left;
	white-space: nowrap;
}

.evmg-x4t-tab__month {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.evmg-x4t-tab__count {
	color: var(--evmg-ink-sub);
	font-size: 11px;
	letter-spacing: 0.02em;
}

/* 選択中のタブ。背景が明るいので文字は濃色にしてコントラストを確保する。 */
.evmg-x4t-tab[aria-selected="true"] {
	border-color: var(--evmg-tab-active-border);
	background-color: var(--evmg-tab-active);
	color: var(--evmg-ink);
}

.evmg-x4t-tab[aria-selected="true"] .evmg-x4t-tab__count,
.evmg-x4t-tab[aria-selected="true"] .evmg-x4t-tab__year {
	color: #6b5300;
}

.evmg-x4t-tab[aria-selected="true"]:hover {
	border-color: var(--evmg-tab-active-border);
	background-color: var(--evmg-tab-active);
}

/* パネル。既定では全月を縦に表示し、JavaScript が有効なときだけ1月ずつに切り替える。 */
.evmg-x4t-panel {
	margin: 0 0 56px;
}

.evmg-x4t-panel:focus {
	outline: none;
}

/* タブから移動したときに、上部のタブが画面の端に貼りつかないようにする */
.evmg-x4t-monthly {
	scroll-margin-top: 16px;
}

.evmg-x4t-monthly.is-enhanced .evmg-x4t-panel {
	margin-bottom: 0;
}

.evmg-x4t-panel[hidden] {
	display: none;
}

.evmg-x4t .evmg-x4t-panel__title {
	margin: 0 0 28px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--evmg-ink);
	color: var(--evmg-ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
}

.evmg-x4t-panel__num {
	margin-right: 0.35em;
	font-size: 1.5em;
	letter-spacing: 0.02em;
}

/* イベント1件 */
.evmg-x4t-event {
	margin: 0 0 48px;
	padding: 0 0 44px;
	border-bottom: 1px solid var(--evmg-line);
	scroll-margin-top: 84px;
}

.evmg-x4t-event:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.evmg-x4t-event:focus {
	outline: none;
}

/* アンカーで飛んできた直後だけ、対象を控えめに示す */
.evmg-x4t-event:target {
	position: relative;
}

.evmg-x4t-event:target::before {
	content: '';
	position: absolute;
	top: -16px;
	left: -16px;
	width: 4px;
	height: calc(100% + 16px);
	border-radius: 2px;
	background-color: var(--evmg-accent);
}

.evmg-x4t-event__head {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0 0 20px;
}

.evmg-x4t-event__heading {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

/* ------------------------------------------------------------------ */
/* 開催期間のブロック                                                  */
/* ------------------------------------------------------------------ */

.evmg-x4t-daterange {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 104px;
	padding: 12px 8px 14px;
	background-color: var(--evmg-cyan);
	color: #ffffff;
	text-align: center;
	/* 角は丸めず、右下だけ斜めに落として少し表情をつける */
	position: relative;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

/* 上辺に濃いめの帯を重ねてアクセントにする */
.evmg-x4t-daterange::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: var(--evmg-cyan-dark);
}

.evmg-x4t-daterange--single {
	padding-top: 16px;
	padding-bottom: 18px;
}

.evmg-x4t-daterange__item {
	display: block;
	line-height: 1.1;
}

.evmg-x4t-daterange__md {
	display: block;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.evmg-x4t-daterange__dow {
	display: block;
	margin-top: 1px;
	color: #fffbe0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* 開始日と終了日をつなぐ縦線 */
.evmg-x4t-daterange__bar {
	display: block;
	width: 2px;
	height: 14px;
	margin: 4px 0;
	background-color: rgba(255, 255, 255, 0.85);
}

.evmg-x4t .evmg-x4t-event__org {
	margin: 0 0 4px;
	color: var(--evmg-ink-sub);
	font-size: 14px;
}

.evmg-x4t-event__heading .evmg-x4t-event__title {
	margin-bottom: 0;
}

.evmg-x4t .evmg-x4t-event__title {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	color: var(--evmg-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

/* 画像：左詰めで並べ、2枚の高さを画像1に揃える。
   --evmg-fig-h には画像1の表示高さがPHPから入る（取得できない場合は auto）。 */
.evmg-x4t-figures {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 24px;
}

.evmg-x4t .evmg-x4t-figure {
	flex: 0 0 auto;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.evmg-x4t-figure__link {
	position: relative;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background-color: var(--evmg-bg-soft);
	line-height: 0;
	vertical-align: top;
}

/* 高さを固定しておくことで、縦横比の違う画像を並べても
   要素の幅が実際の見た目どおりになり、余白なく左詰めになる。 */
.evmg-x4t-figure__image {
	display: block;
	width: auto;
	height: var(--evmg-fig-h, auto);
	max-width: 400px;
	max-height: 400px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* 拡大アイコン（虫めがね） */
.evmg-x4t-figure__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(20, 24, 29, 0.66);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.evmg-x4t-figure__zoom::before {
	content: '';
	position: absolute;
	top: 9px;
	left: 9px;
	width: 11px;
	height: 11px;
	border: 2px solid #ffffff;
	border-radius: 50%;
}

.evmg-x4t-figure__zoom::after {
	content: '';
	position: absolute;
	right: 9px;
	bottom: 9px;
	width: 8px;
	height: 2px;
	background-color: #ffffff;
	transform: rotate(45deg);
}

.evmg-x4t-figure__link:hover .evmg-x4t-figure__zoom,
.evmg-x4t-figure__link:focus .evmg-x4t-figure__zoom,
.evmg-x4t-figure__link:focus-visible .evmg-x4t-figure__zoom {
	opacity: 1;
}

/* 本文セクション */
.evmg-x4t-section {
	margin: 0 0 22px;
}

.evmg-x4t-section:last-child {
	margin-bottom: 0;
}

/* 小見出しも本文と同じ大きさに揃える（PC16px / スマホ15px） */
.evmg-x4t .evmg-x4t-section__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--evmg-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.evmg-x4t .evmg-x4t-section__heading::before {
	content: '';
	flex: 0 0 auto;
	width: 3px;
	height: 1.1em;
	border-radius: 2px;
	background-color: var(--evmg-accent);
}

/* 「内容」〜「お問い合わせ先」は同じ大きさに揃える */
.evmg-x4t-section__body {
	color: var(--evmg-ink);
	font-size: 15px;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

@media screen and (min-width: 768px) {
	.evmg-x4t .evmg-x4t-section__heading,
	.evmg-x4t-section__body {
		font-size: 16px;
	}
}

.evmg-x4t-section__body p {
	margin: 0 0 0.9em;
}

.evmg-x4t-section__body p:last-child {
	margin-bottom: 0;
}

.evmg-x4t-section__body ul,
.evmg-x4t-section__body ol {
	margin: 0 0 0.9em;
	padding-left: 1.4em;
}

.evmg-x4t-section__body a {
	text-underline-offset: 2px;
}

/* ================================================================== */
/* 画像の拡大表示                                                      */
/* ================================================================== */

.evmg-x4t-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.evmg-x4t-lightbox[hidden] {
	display: none;
}

.evmg-x4t-lightbox__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(10, 13, 16, 0.86);
}

.evmg-x4t-lightbox__panel {
	position: relative;
	max-width: 100%;
	max-height: 100%;
}

.evmg-x4t-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 96px);
	margin: 0 auto;
	border-radius: 4px;
	background-color: #ffffff;
}

/* 2枚組のときの切り替えボタン */
.evmg-x4t-lightbox__nav {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	color: #14181d;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	-webkit-appearance: none;
	appearance: none;
}

.evmg-x4t-lightbox__nav[hidden] {
	display: none;
}

.evmg-x4t-lightbox__nav--prev {
	left: -18px;
}

.evmg-x4t-lightbox__nav--next {
	right: -18px;
}

/* 矢印（山括弧） */
.evmg-x4t-lightbox__arrow {
	display: block;
	width: 12px;
	height: 12px;
	margin: 0 auto;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.evmg-x4t-lightbox__nav--prev .evmg-x4t-lightbox__arrow {
	transform: translateX(3px) rotate(-135deg);
}

.evmg-x4t-lightbox__nav--next .evmg-x4t-lightbox__arrow {
	transform: translateX(-3px) rotate(45deg);
}

.evmg-x4t-lightbox__counter {
	position: absolute;
	left: 50%;
	bottom: -34px;
	margin: 0;
	color: #ffffff;
	font-size: 13px;
	letter-spacing: 0.06em;
	transform: translateX(-50%);
}

.evmg-x4t-lightbox__counter[hidden] {
	display: none;
}

.evmg-x4t-lightbox__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #ffffff;
	color: #14181d;
	cursor: pointer;
	font-family: inherit;
	font-size: 22px;
	line-height: 44px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	-webkit-appearance: none;
	appearance: none;
}

body.evmg-x4t-lightbox-open {
	overflow: hidden;
}

/* ================================================================== */
/* レスポンシブ                                                        */
/* ================================================================== */

@media screen and (max-width: 767px) {
	.evmg-x4t {
		font-size: 15px;
	}

	.evmg-x4t-cards {
		gap: 18px;
	}

	.evmg-x4t-card__body {
		padding: 16px 16px 18px;
	}

	.evmg-x4t-card .evmg-x4t-card__title {
		font-size: 17px;
	}

	/* 上下2段に均等に分ける（奇数のときは上の段が1つ多い） */
	.evmg-x4t-tabs {
		grid-template-columns: repeat(var(--evmg-tabs-per-row, 1), minmax(0, 1fr));
		gap: 5px;
	}

	.evmg-x4t-tab {
		min-height: 52px;
		padding: 3px 4px 5px;
	}

	.evmg-x4t-tab__year {
		font-size: 11px;
	}

	.evmg-x4t-tab__month {
		font-size: 15px;
	}

	.evmg-x4t .evmg-x4t-panel__title {
		font-size: 16px;
	}

	.evmg-x4t-panel__num {
		font-size: 1.35em;
	}

	.evmg-x4t .evmg-x4t-event__title {
		font-size: 20px;
	}

	.evmg-x4t-event__head {
		gap: 12px;
		margin-bottom: 16px;
	}

	.evmg-x4t-daterange {
		width: 88px;
		padding: 10px 6px 12px;
	}

	.evmg-x4t-daterange__md {
		font-size: 18px;
	}

	.evmg-x4t-daterange__dow {
		font-size: 11px;
	}

	.evmg-x4t-event {
		margin-bottom: 36px;
		padding-bottom: 32px;
		scroll-margin-top: 72px;
	}

	.evmg-x4t-figures {
		gap: 10px;
	}

	/* 狭い画面では高さ固定をやめ、画面幅に収める（必要なら折り返す） */
	.evmg-x4t-figure__image {
		height: auto;
		max-width: 100%;
		max-height: 260px;
	}

	.evmg-x4t-tabs--top {
		margin-bottom: 24px;
		padding: 8px 0;
	}

	.evmg-x4t-tabs--bottom {
		margin-top: 28px;
		padding-top: 14px;
	}

	.evmg-x4t-lightbox {
		padding: 16px;
	}

	.evmg-x4t-lightbox__close {
		top: -8px;
		right: -8px;
	}

	.evmg-x4t-lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.evmg-x4t-lightbox__nav--prev {
		left: -6px;
	}

	.evmg-x4t-lightbox__nav--next {
		right: -6px;
	}
}

/* 幅の狭い端末では、1段の列数が増えても収まるよう文字を少し小さくする */
@media screen and (max-width: 480px) {
	.evmg-x4t-tab {
		padding: 3px 2px 5px;
	}

	.evmg-x4t-tab__month {
		font-size: 14px;
	}

	.evmg-x4t-tab__count {
		font-size: 10px;
	}
}

/* ================================================================== */
/* アニメーション抑制・印刷                                            */
/* ================================================================== */

@media (prefers-reduced-motion: reduce) {
	.evmg-x4t *,
	.evmg-x4t-lightbox * {
		transition: none !important;
		animation: none !important;
	}

	.evmg-x4t-card:hover {
		transform: none;
	}

	.evmg-x4t-card:hover .evmg-x4t-card__image,
	.evmg-x4t-figure__link:hover .evmg-x4t-figure__image {
		transform: none;
	}
}

@media print {
	.evmg-x4t-tabs,
	.evmg-x4t-lightbox {
		display: none !important;
	}

	/* 印刷時はすべての月を展開する */
	.evmg-x4t-panel[hidden] {
		display: block !important;
	}

	.evmg-x4t-event {
		break-inside: avoid;
	}
}
