:root {
  color-scheme: light;
  --paper: #fffcf4;
  --cream: #f5eddb;
  --ink: #20362f;
  --green: #133b31;
  --deep: #102b24;
  --red: #8a2636;
  --gold: #f6d88e;
  --line: #ded4bd;
  --muted: #5c685f;
  --display: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.8 "Noto Sans JP", "Hiragino Sans", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #cb781b; outline-offset: 4px; }
[id] { scroll-margin-top: 7rem; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 30; background: white; padding: .5rem .9rem; }
.skip:focus { transform: none; }
.icon-library { position: absolute; pointer-events: none; }
.icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; --shift: 3px 0; }
.icon-down { rotate: 90deg; --shift: 0 3px; }
.icon-up { rotate: -90deg; --shift: 0 -3px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 10px; }
.brand, .nav-mystery { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; font-weight: 900; }
.brand { font-family: var(--display); line-height: 1.2; }
.brand b { color: var(--red); font: 400 .95em var(--serif); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--red); color: var(--paper); font: italic 24px var(--serif); }
.nav-mystery { min-height: 36px; padding: .25rem .65rem; border-radius: 6px; background: #efe8d5; color: var(--red); font-size: .81rem; white-space: nowrap; }
.site-nav { border-top: 1px solid #ece3d0; }
.nav-list { display: flex; justify-content: flex-end; gap: .5rem; list-style: none; padding: 0; margin-block: 0; }
.nav-list a { display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 46px; padding-inline: .85rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.nav-list .icon { color: var(--red); }
.nav-list a:hover, .nav-mystery:hover { background: var(--cream); text-decoration: underline; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--paper); }
.hero-art { position: absolute; inset: 0 0 0 32%; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), #102b246b 32%, #102b241a 70%), linear-gradient(0deg, #102b2473, transparent 40%); }
.hero-inner { min-height: clamp(390px, 41vw, 570px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 55px 72px; }
.hero-kicker { color: var(--gold); font-size: .83rem; letter-spacing: .1em; margin: 0 0 12px; }
.hero h1 { margin: 0; font: 900 clamp(2.2rem, 4.15vw, 4.2rem)/1.23 var(--display); text-shadow: 0 2px 12px #071d16a6; }
.hero h1 span { display: block; font: 400 1.04em/1.05 var(--serif); color: var(--gold); margin-block-start: .1em; }
.hero-sub { margin: 1.1rem 0 0; font-size: clamp(.94rem, 1.45vw, 1.1rem); font-weight: 700; }
.button { display: inline-flex; gap: .55em; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 900; text-decoration: none; }
.button:hover { text-decoration: underline; }
.mystery-link { color: #33251e; background: var(--gold); }
.mystery-link:hover { background: #ffe9aa; }
.date-wrap { position: relative; margin-top: -32px; }
.hero-date { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 28px #263f2820; }
.hero-date li { display: flex; align-items: baseline; gap: .45em; justify-content: center; min-height: 64px; padding: .6rem .45rem; font-weight: 900; }
.hero-date li:first-child { border-radius: 11px 0 0 11px; }
.hero-date li:last-child { border-radius: 0 11px 11px 0; }
.hero-date li + li { border-left: 1px dashed var(--line); }
.hero-date time { color: var(--red); font: 400 clamp(1.65rem, 4vw, 2.65rem)/1.15 var(--serif); }
.hero-date time span { color: #ad7846; }
.hero-date .weekday { font-size: .72rem; }
.section { padding-block: clamp(54px, 7.4vw, 98px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(20px, 3.5vw, 36px); }
.eyebrow { color: var(--red); margin: 0 0 .2rem; font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--serif); }
.section h2, .related h2 { margin: 0; font: 900 clamp(1.75rem, 3.7vw, 2.85rem)/1.3 var(--display); }
.section-head > p, .note { color: var(--muted); margin: 0; font-size: .9rem; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.schedule-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.card-art { aspect-ratio: 1.9; position: relative; overflow: hidden; background: #d6dfd5; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.card-art > span { position: absolute; bottom: 8px; left: 8px; padding: .15rem .45rem; border-radius: 4px; background: #102b24; color: white; font-size: .68rem; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: clamp(14px, 2.2vw, 24px); }
.date-line { display: flex; align-items: baseline; gap: .38em; color: var(--red); font-weight: 900; }
.date-line strong { font: 400 clamp(1.9rem, 4vw, 2.75rem)/1.1 var(--serif); }
.card-body h3 { font: 900 clamp(1.25rem, 2.4vw, 1.6rem)/1.3 var(--display); margin: .55rem 0 .2rem; }
.card-body p { margin: 0; font-size: .88rem; }
.card-body .time { margin-top: auto; padding-top: .55rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: .4em; border-top: 1px solid var(--line); padding-top: .65rem; margin-top: .65rem; color: var(--red); font-weight: 900; font-size: .85rem; }
.schedule-card:hover .card-link { text-decoration: underline; }
.venues { background: var(--cream); }
.venue { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(16px, 4vw, 48px); border-top: 1px solid #cec2a8; padding: clamp(22px, 4vw, 36px) 0; }
.venue:last-child { border-bottom: 1px solid #cec2a8; }
.venue-title .number { color: var(--red); font: italic 400 1.35rem var(--serif); }
.venue-title h3 { font: 900 1.65rem var(--display); margin: 0 0 .2rem; }
.venue-title p, .venue-details p { margin: 0; font-size: .92rem; }
.venue-title p:first-of-type { font-weight: 900; }
.venue-details h4 { color: var(--red); margin: 0 0 .5rem; font-size: .87rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 .65rem; }
.tags li { border: 1px solid var(--line); background: var(--paper); padding: .2rem .65rem; border-radius: 20px; font-size: .8rem; }
.text-link, .toplink { display: inline-flex; align-items: center; min-height: 44px; gap: .45em; font-size: .86rem; font-weight: 900; color: var(--red); }
.venue-cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; max-width: 100%; min-height: 48px; margin-top: 16px; padding: 10px 16px; border-radius: 7px; background: var(--red); color: var(--paper); text-decoration: none; }
.venue-cta-title { font-size: .9rem; font-weight: 700; line-height: 1.5; }
.venue-cta .icon { width: 18px; height: 18px; }
.venue-cta:hover { background: #702031; }
@media (prefers-reduced-motion: no-preference) {
  .venue-cta { transition: background-color 180ms, transform 200ms var(--ease); }
  .venue-cta:active { transform: translateY(1px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .venue-cta:hover { transform: translateY(-1px); }
}
.stamp { background: var(--green); color: var(--paper); }
.stamp .eyebrow { color: var(--gold); }
.stamp-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 7vw, 85px); }
.stamp-copy { max-width: 36ch; }
.stamp-steps { margin: 0; padding: 0; list-style: none; border-block: 1px solid #6d8d7d; }
.stamp-steps li { display: flex; align-items: center; gap: 14px; padding: .7rem 0; font-weight: 700; }
.stamp-steps li + li { border-top: 1px dashed #6d8d7d; }
.stamp-steps b { display: grid; place-items: center; border-radius: 50%; width: 36px; height: 36px; background: var(--gold); color: var(--deep); font: italic 400 1.2rem var(--serif); }
.mystery { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(16px, 5vw, 56px); padding: clamp(20px, 4vw, 44px); border-radius: 14px; background: radial-gradient(ellipse at 25% 50%, #353a73, #171d47 70%); color: var(--paper); }
.mystery h3 { margin: 0; font: 900 clamp(1.45rem, 3vw, 2.25rem)/1.4 var(--display); }
.mystery .eyebrow { color: var(--gold); font-family: inherit; font-style: normal; font-size: .84rem; }
.mystery-period { margin: .4rem 0 .85rem; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.feature { position: relative; isolation: isolate; overflow: hidden; background: #f1e7cc; border-radius: 12px; padding: clamp(17px, 3vw, 30px); }
.feature:nth-child(2) { background: #e5eddf; }
.feature h3 { font: 900 1.36rem var(--display); margin: 0; }
.feature p { margin: .45rem 0 0; max-width: 37ch; font-size: .91rem; }
.feature-photo { margin: 18px 0 0; }
.feature-photo img { width: 100%; height: auto; border-radius: 8px; }
.feature-symbol { position: absolute; z-index: -1; right: 8px; bottom: -45px; opacity: .10; font: 400 9rem var(--serif); }
.related { background: var(--cream); padding-block: 28px; }
.related-inner { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; }
.related h2 { font-size: 1.3rem; }
.related p { margin: 0; font-size: .91rem; }
.access-grid { display: block; }
.access-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.access-item { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.access-item h3 { margin: 0 0 .3rem; font: 900 1.1rem/1.4 var(--display); }
.access-item p { margin: 0; font-size: .88rem; }
.flyer { background: var(--cream); }
.flyer-inner { display: grid; grid-template-columns: 1fr minmax(0, 440px); align-items: center; gap: clamp(20px, 8vw, 105px); }
.flyer-image { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px #263f2826; }
.flyer-image img { width: 100%; }
.flyer-link { border-color: var(--red); color: var(--red); background: var(--paper); }
.footer { padding-block: 44px 24px; background: var(--deep); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px 32px; }
.footer-title { font: 900 1.4rem/1.45 var(--display); margin: 0; }
.footer-info, .copyright { font-size: .8rem; }
.footer-info p { margin: 0 0 .6rem; }
.toplink { color: var(--gold); }
.copyright { border-top: 1px solid #547268; margin-top: 1rem; padding-top: 1rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .brand { font-size: .86rem; }
  .nav-mystery { font-size: .72rem; }
  .nav-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .nav-list a { flex-direction: column; padding: .3rem .05rem; min-height: 48px; font-size: .7rem; line-height: 1.2; gap: .3em; }
  .hero-art { inset: 0 0 auto; height: clamp(180px, 59vw, 305px); }
  .hero-art::after { background: linear-gradient(0deg, var(--deep), transparent 60%); }
  .hero-inner { padding-block: clamp(130px, 48vw, 244px) 48px; min-height: 0; }
  .hero h1 { font-size: clamp(1.85rem, 7.8vw, 3.05rem); }
  .hero-kicker { font-size: .74rem; }
  .hero-date li { display: grid; grid-template-columns: auto auto; justify-content: center; gap: .06em .25em; align-items: baseline; }
  .hero-date strong { font-size: .84rem; }
  .section-head { display: block; }
  .section-head > p { margin-top: .45rem; }
  .section-head > p br { display: none; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-card { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
  .card-art { aspect-ratio: auto; }
  .card-art img { position: absolute; inset: 0; }
  .venue, .stamp-layout, .mystery, .feature-grid, .access-list, .flyer-inner, .footer-grid { grid-template-columns: 1fr; }
  .mystery-logo { width: min(100%, 360px); margin-inline: auto; }
  .flyer-image { max-width: 420px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-inner > * { animation: rise 520ms var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 65ms; }
  .hero-inner > :nth-child(3) { animation-delay: 130ms; }
  .icon { transition: translate 200ms var(--ease); }
  a:focus-visible .icon { translate: var(--shift); }
  .button, .schedule-card, .nav-list a { transition: background-color 180ms, transform 200ms var(--ease), box-shadow 200ms; }
  .button:active { scale: .98; }
  .venue:target, .access-item:target { animation: target-wash 900ms ease 140ms both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover .icon { translate: var(--shift); }
  .schedule-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #263f2822; }
}
@keyframes rise { from { opacity: .3; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes target-wash { from { background: #f4d89180; } to { background: transparent; } }

.nav-list a[aria-current="location"] {
  border-radius: 7px;
  background: #f1e2bd;
  color: #6e1e2c;
  text-decoration: none;
}
@media (max-width: 700px) {
  .nav-list a span { white-space: nowrap; }
  .brand > span:last-child { word-break: keep-all; }
}

.hero-sparkles { position: absolute; inset: 0; pointer-events: none; color: #ffe8af; }
.hero-sparkles span { position: absolute; text-shadow: 0 0 16px #ffdc87; line-height: 1; }
.hero-sparkles span:nth-child(1) { top: 11%; right: 9%; font-size: 30px; }
.hero-sparkles span:nth-child(2) { bottom: 15%; right: 5%; font-size: 22px; }
.hero-sparkles span:nth-child(3) { top: 22%; right: 35%; font-size: 16px; }
.rally-teaser {
  margin-top: 28px;
  padding-block: 26px;
  background: radial-gradient(ellipse at 20% 50%, #33356a, #171d47 75%);
  color: #fffaf0;
}
.rally-teaser-inner { display: grid; grid-template-columns: minmax(140px, 190px) minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; }
.rally-teaser-logo { width: 100%; }
.rally-teaser h2 { margin: 0 0 5px; font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.5; }
.rally-teaser p { margin: 0; color: #e1e3f2; font-size: .87rem; }
.rally-teaser-link { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55rem .85rem; border-radius: 7px; background: #ffdb6f; color: #24203f; font-weight: 900; font-size: .85rem; text-decoration: none; }
@media (max-width: 700px) {
  .rally-teaser-inner { grid-template-columns: 1fr; gap: 14px; }
  .rally-teaser-logo { width: 180px; }
  .rally-teaser-link { justify-self: start; }
  .hero-date li { grid-template-columns: auto auto; }
  .hero-date strong { grid-column: 1 / -1; }
  .hero-sparkles span:nth-child(3) { top: 9%; right: 58%; }
}

@media (min-width: 701px) and (max-width: 960px) {
  .rally-teaser-inner { grid-template-columns: 150px minmax(0, 1fr); }
  .rally-teaser-link { grid-column: 2; justify-self: start; }
}
