:root {
	--ec-bg: #fdfcf8;
	--ec-surface: #ffffff;
	--ec-ink: #1f2430;
	--ec-ink-soft: #626a78;
	--ec-line: #e5e1d6;
	--ec-accent: #b53a6d;
	--ec-accent-dark: #8f2c56;
	--ec-accent-soft: #f9ecf2;
	--ec-radius: 6px;
	--ec-container: 64rem;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ec-ink);
	background: var(--ec-bg);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
	font-feature-settings: "palt";
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

body,
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul { margin: 0; }

a { color: var(--ec-accent); text-underline-offset: .2em; }
a:hover { color: var(--ec-accent-dark); }
button,
input,
select,
textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ec-accent-soft); }

.content-width { width: min(100% - 40px, var(--ec-container)); margin-inline: auto; }
.screen-reader-text,
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus,
.skip-link:focus { z-index: 100; top: 0; left: 0; width: auto; height: auto; margin: 0; padding: .75rem 1.25rem; overflow: visible; clip: auto; color: #fff; background: var(--ec-ink); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--ec-line); background: rgb(253 252 248 / 94%); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; min-height: 68px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .85rem; }
.site-brand { display: grid; color: var(--ec-ink); line-height: 1.25; text-decoration: none; }
.site-brand__name { font-size: .96rem; font-weight: 700; letter-spacing: .02em; }
.site-brand__tagline { margin-top: .2rem; color: var(--ec-ink-soft); font-size: .72rem; font-weight: 400; }
.site-nav ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ec-ink); font-size: .85rem; text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ec-accent); }

.button { display: inline-block; padding: .85rem 2.25rem; border: 1px solid var(--ec-accent); border-radius: var(--ec-radius); color: #fff; background: var(--ec-accent); font-weight: 700; text-align: center; text-decoration: none; }
.button:hover,
.button:focus-visible { color: #fff; background: var(--ec-accent-dark); border-color: var(--ec-accent-dark); }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.text-link:hover,
.text-link:focus-visible { color: var(--ec-accent-dark); text-decoration-thickness: 2px; }
.text-link span { margin-left: .35em; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: 1rem; color: var(--ec-ink-soft); font-size: .78rem; }
.breadcrumb a { color: var(--ec-ink-soft); }

.section-label { color: var(--ec-accent); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin-top: .5rem; font-size: clamp(1.65rem, 3vw + .5rem, 2.25rem); line-height: 1.4; }
.section-lead { max-width: 42em; margin-top: .75rem; color: var(--ec-ink-soft); }

/* Event Connect home and archive */
.hub-hero { padding-block: clamp(4rem, 10vw, 8rem); border-bottom: 1px solid var(--ec-line); }
.hub-hero h1 { margin-top: 1rem; font-size: clamp(2.75rem, 7vw + .5rem, 5rem); line-height: 1.18; letter-spacing: .01em; }
.hub-hero__lead { max-width: 38em; margin-top: 1rem; color: var(--ec-ink-soft); font-size: clamp(1.04rem, 2vw, 1.25rem); }
.hub-hero__cta { margin-top: 2.5rem; }
.hub-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-bottom: 1px solid var(--ec-line); }
.hub-section--muted { background: #f6f4ee; }
.hub-event { display: grid; grid-template-columns: minmax(8.5rem, .45fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 3rem; padding-block: 2rem; border-top: 1px solid var(--ec-line); border-bottom: 1px solid var(--ec-line); }
.hub-event__date { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.hub-event__date span { color: var(--ec-accent); }
.hub-event__label { color: var(--ec-ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.hub-event h3 { margin-top: .45rem; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.35; }
.hub-event__body > p:not(.hub-event__label) { max-width: 43em; margin-top: .75rem; color: var(--ec-ink-soft); }
.hub-event__body > p:last-child { margin-top: 1.5rem; }
.hub-event__facts { display: flex; flex-wrap: wrap; gap: .45rem 2.5rem; margin-top: 1.1rem; }
.hub-event__facts div { font-size: .92rem; }
.hub-event__facts dt { display: inline; color: var(--ec-ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.hub-event__facts dt::after { margin-inline: .4em; content: "／"; font-weight: 400; }
.hub-event__facts dd { display: inline; }
.hub-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hub-about__points { border-top: 1px solid var(--ec-line); }
.hub-about__points p { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--ec-line); color: var(--ec-ink-soft); }
.hub-about__points strong { color: var(--ec-ink); font-size: .9rem; }
.listing-hero { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--ec-line); }
.listing-hero h1 { margin-top: .5rem; font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.2; }
.listing-hero p:not(.section-label) { max-width: 40em; margin-top: .9rem; color: var(--ec-ink-soft); }

/* Cosmos Festa event page */
.event-hero { padding-block: clamp(3.5rem, 8vw, 7.5rem); border-bottom: 1px solid var(--ec-line); }
.event-hero__kicker { color: var(--ec-accent); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.event-hero h1 { margin-top: 1rem; font-size: clamp(2.75rem, 7vw + .5rem, 5rem); line-height: 1.15; letter-spacing: .01em; }
.event-hero__lead { margin-top: .75rem; color: var(--ec-ink-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; }
.event-hero__date { margin-top: clamp(2rem, 5vw, 3.5rem); font-size: clamp(1.75rem, 4vw + .5rem, 2.75rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.4; letter-spacing: .02em; }
.event-hero__date time { display: block; }
.event-hero__date time span { color: var(--ec-accent); }
.event-hero__date > span { color: var(--ec-ink-soft); font-size: .55em; font-weight: 500; }
.event-hero__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 3rem; max-width: 48rem; margin-top: 2rem; }
.event-hero__meta dt,
.access-grid dt { padding-top: .5rem; border-top: 2px solid var(--ec-accent); color: var(--ec-ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.event-hero__meta dd,
.access-grid dd { margin-top: .35rem; }
.event-hero__cta { margin-top: 2.5rem; }
.event-hero__layout--has-flyers { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .62fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.event-hero__flyers { min-width: 0; }
.event-hero__flyer-stack { position: relative; min-height: clamp(21rem, 37vw, 31rem); max-width: 23rem; margin-inline: auto; isolation: isolate; }
.event-hero__flyer-stack::before { position: absolute; z-index: 0; top: 17%; right: 7%; bottom: 17%; left: 7%; border: 1px solid rgb(207 212 221 / 72%); border-radius: 50%; content: ''; pointer-events: none; transform: rotate(-13deg); }
.event-hero__flyer { --flyer-orbit-x: 0px; --flyer-orbit-y: 0px; --flyer-orbit-rotate: 0deg; --flyer-orbit-scale: 1; --flyer-deal-y: 0px; position: absolute; top: 0; left: 14.5%; width: 71%; margin: 0; background: var(--ec-surface); box-shadow: 0 18px 38px rgb(31 36 48 / 16%); cursor: grab; touch-action: none; user-select: none; transform: translate(var(--flyer-orbit-x), calc(var(--flyer-orbit-y) + var(--flyer-deal-y))) rotate(var(--flyer-orbit-rotate)) scale(var(--flyer-orbit-scale)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s ease, box-shadow .25s ease; will-change: transform; }
.event-hero__flyer--front { z-index: 2; transition-delay: .06s; }
.event-hero__flyer--back { --flyer-orbit-y: 5.5rem; --flyer-orbit-scale: .84; z-index: 1; transition-delay: .18s; }
.event-hero__flyer-stack[data-enhanced="true"] .event-hero__flyer { --flyer-deal-y: 48px; opacity: 0; }
.event-hero__flyer-stack.is-ready .event-hero__flyer { --flyer-deal-y: 0px; opacity: 1; }
.event-hero__flyer-stack.is-dragging .event-hero__flyer,
.event-hero__flyer.is-dragging { cursor: grabbing; box-shadow: 0 24px 48px rgb(31 36 48 / 24%); transition: none; }
.event-hero__flyer a { display: block; color: var(--ec-ink); background: var(--ec-surface); text-decoration: none; }
.event-hero__flyer img { display: block; width: 100%; height: auto; border: 1px solid var(--ec-line); pointer-events: none; }
.event-hero__flyer a:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 4px; }
.event-hero__flyer-note { max-width: 23rem; margin: 1rem auto 0; color: var(--ec-ink-soft); font-size: .76rem; line-height: 1.6; text-align: center; }

.event-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-bottom: 1px solid var(--ec-line); }
.event-section--reservation { background: var(--ec-surface); }
.event-section--last { border-bottom: 0; }
.event-list { margin-top: 3rem; padding: 0; list-style: none; border-top: 1px solid var(--ec-line); }
.event-list__item { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem clamp(1.5rem, 4vw, 3rem); padding-block: 2.5rem; border-bottom: 1px solid var(--ec-line); }
.event-list__number { color: var(--ec-line); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.event-list__venue { color: var(--ec-ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.event-list h3 { margin-top: .4rem; font-size: clamp(1.25rem, 2vw + .5rem, 1.6rem); line-height: 1.45; }
.event-list__description { max-width: 44em; margin-top: .6rem; color: var(--ec-ink-soft); }
.event-list__meta { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: 1.1rem; }
.event-list__meta div { font-size: .92rem; }
.event-list__meta dt { display: inline; color: var(--ec-ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.event-list__meta dt::after { margin-inline: .4em; content: "／"; font-weight: 400; }
.event-list__meta dd { display: inline; font-variant-numeric: tabular-nums; }
.event-list__tags { margin-top: 1rem; }
.tag { display: inline-block; padding: .2em .8em; border: 1px solid var(--ec-ink-soft); border-radius: 999px; color: var(--ec-ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.tag--required { border-color: var(--ec-accent); color: var(--ec-accent); background: var(--ec-accent-soft); }

.timetable-wrap { margin-top: 2.5rem; overflow-x: auto; }
.timetable { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .95rem; }
.timetable caption { padding-bottom: .75rem; color: var(--ec-ink-soft); font-size: .8rem; text-align: left; }
.timetable th { padding: .6rem 1rem .6rem 0; border-bottom: 2px solid var(--ec-ink); color: var(--ec-ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.timetable td { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--ec-line); vertical-align: middle; }
.timetable td:first-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timetable__track { position: relative; display: block; min-width: 14rem; height: 8px; overflow: hidden; border-radius: 999px; background: var(--ec-line); }
.timetable__bar { position: absolute; top: 0; bottom: 0; left: calc(var(--start) * 1%); width: calc((var(--end) - var(--start)) * 1%); border-radius: 999px; background: var(--ec-accent); opacity: .85; }

.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.booking-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); background: var(--ec-surface); }
.booking-card__number { color: var(--ec-accent); font-size: .75rem; font-weight: 700; letter-spacing: .15em; }
.booking-card h3 { margin-top: .25rem; font-size: 1.2rem; line-height: 1.45; }
.booking-card__info { color: var(--ec-ink-soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.booking-card__status { margin-top: auto; padding: .9rem 1rem; border: 1px dashed var(--ec-line); border-radius: var(--ec-radius); color: var(--ec-ink-soft); background: var(--ec-bg); font-size: .9rem; font-weight: 700; text-align: center; }
.booking-card--open .booking-card__status { border-color: #7e9b61; color: #456228; background: #f3f8ed; }
.booking-card--paused .booking-card__status,
.booking-card--full .booking-card__status,
.booking-card--closed .booking-card__status { border-color: #be889f; color: var(--ec-accent-dark); background: var(--ec-accent-soft); }
.button--booking { width: 100%; }
.button__external { display: block; margin-top: .15rem; font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.booking-note { margin-top: 2rem; color: var(--ec-ink-soft); font-size: .85rem; }

.notes-list { max-width: 42em; margin-top: 2rem; padding-left: 1.2em; color: var(--ec-ink-soft); }
.notes-list li + li { margin-top: .4em; }
.event-page-content { max-width: 42em; margin-top: 2rem; }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.access-grid__tel { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-organizers { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; max-width: 52rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ec-line); color: var(--ec-ink-soft); font-size: .85rem; }
.event-organizers dt { color: var(--ec-ink); font-weight: 700; white-space: nowrap; }
.event-organizers dd { margin: 0; }

.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem); color: #cfd4dd; background: var(--ec-ink); font-size: .85rem; }
.site-footer dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; max-width: 44rem; }
.site-footer dt { color: #fff; font-weight: 700; white-space: nowrap; }
.site-footer dd { margin: 0; }
.site-footer a { color: #fff; }
.site-footer__copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 15%); color: #8b93a3; font-size: .75rem; }

.standard-content { padding-block: 3.5rem; }
.not-found { display: grid; min-height: 52vh; place-items: center; padding-block: clamp(4rem, 12vw, 8rem); }
.not-found .content-width { max-width: 48rem; }
.not-found h1 { margin-top: .5rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.35; }
.not-found p:not(.section-label) { max-width: 42em; margin-top: 1rem; color: var(--ec-ink-soft); }
.not-found p:last-child { margin-top: 2rem; }

@media (max-width: 40rem) {
	.site-header__inner { min-height: 62px; }
	.site-brand__tagline { display: none; }
	.site-nav ul { gap: 1rem; }
	.site-nav a { font-size: .8rem; }
	.hub-event,
	.event-list__item { grid-template-columns: 1fr; }
	.hub-event { gap: .75rem; }
	.event-list__number { font-size: 1.75rem; }
	.hub-about { grid-template-columns: 1fr; gap: 2rem; }
	.hub-about__points p { grid-template-columns: 1fr; gap: .25rem; }
	.event-hero__layout--has-flyers { display: block; }
	.event-hero__flyers { margin-top: 3rem; }
	.event-hero__flyer-stack { min-height: clamp(21rem, 96vw, 29rem); max-width: 19rem; }
	.event-hero__flyer { width: 71%; box-shadow: 0 10px 24px rgb(31 36 48 / 12%); }
	.event-hero__flyer-note { max-width: 19rem; }
}

@media (prefers-reduced-motion: reduce) {
	.event-hero__flyer { transition: none; }
}

@media print {
	.site-header,
	.event-hero__cta,
	.hub-hero__cta,
	.skip-link { display: none; }
	body { background: #fff; font-size: 11pt; }
	.event-section,
	.hub-section { padding-block: 1.5rem; }
	.site-footer { color: #000; background: #fff; }
}
