:root {
  color-scheme: light;
  --night: #171d47;
  --ink: #22274d;
  --paper: #fffaf0;
  --muted: #565b73;
  --line: #ddd5c4;
  --gold: #ffdb6f;
  --red: #ab273e;
  --wrap: 1080px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.75; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #d75700; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 86px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; padding: 8px 14px; background: white; transform: translateY(-180%); z-index: 10; }
.skip:focus { transform: none; }
.masthead { background: #111637; color: #f7eed8; font-size: .8rem; }
.masthead-inner { min-height: 52px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.masthead b { color: var(--gold); margin-inline-start: .35em; }
.icon-library { position: absolute; pointer-events: none; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  --icon-shift: 3px 0;
}
.icon-left { rotate: 180deg; --icon-shift: -3px 0; }
.icon-down { rotate: 90deg; --icon-shift: 0 3px; }
.icon-out { --icon-shift: 2px -2px; }
.back, .footer a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
.back { padding-block: 10px; }
.hero {
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 28%, #ffd980 1px, transparent 2px) 8px 19px / 137px 121px,
    radial-gradient(circle at 60% 40%, #fff7db 1px, transparent 2px) 0 0 / 173px 151px,
    radial-gradient(ellipse at 50% 42%, #33356a, var(--night) 73%);
  border-bottom: 5px solid #d6ad54;
}
.hero-inner { padding: clamp(36px, 6vw, 74px) 0 clamp(42px, 7vw, 82px); }
.hero-label { color: var(--gold); font-weight: 800; letter-spacing: .14em; margin: 0 0 14px; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(100%, 650px); margin: auto; filter: drop-shadow(0 8px 14px #0e102eaa); }
.hero-copy { font-size: clamp(1.12rem, 3.5vw, 1.55rem); font-weight: 800; margin: 22px 0 10px; }
.hero-date { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 0; }
.hero-date > span { font: 700 clamp(1.55rem, 5vw, 2.4rem)/1.3 Georgia, serif; white-space: nowrap; }
.hero-date small { font: 800 .85rem "Hiragino Sans", sans-serif; }
.hero-date strong { border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); padding: 1px 12px; font-size: .8rem; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 8px 19px; border-radius: 8px; border: 1px solid var(--gold); font-weight: 800; font-size: .92rem; text-decoration: none; }
.primary { background: var(--gold); color: #24203f; }
.secondary { background: #171d47; color: #fffaf0; }
.section-nav { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.section-nav ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; }
.section-nav a { display: grid; min-height: 54px; place-items: center; text-align: center; font-weight: 800; font-size: clamp(.73rem, 2.5vw, .95rem); text-decoration: none; }
.section-nav a:hover { background: #f2e8d4; }
.section { padding-block: clamp(48px, 7vw, 86px); }
.section-title { margin-bottom: 24px; }
.section-title p { margin: 0 0 2px; color: var(--red); font: 800 .77rem/1.5 system-ui, sans-serif; letter-spacing: .16em; }
.section-title h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.35; }
.section { padding-block: clamp(46px, 6vw, 76px); }
.section-title { margin-bottom: clamp(18px, 3vw, 28px); }
.section-title p { letter-spacing: .14em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; padding: clamp(16px, 2.5vw, 24px); border-radius: 10px; background: #f3ecdc; }
.steps li > span { font: 700 2.05rem/1 Georgia, serif; color: #885421; }
.steps h3 { margin: .45rem 0; font-size: 1.13rem; }
.steps p { margin: 0 0 .4rem; }
.map-link { display: inline-flex; align-items: center; min-height: 44px; gap: .45em; font-size: .88rem; font-weight: 800; }


.hero-prize { margin: 12px 0 0; color: var(--gold); font-size: .85rem; font-weight: 800; }
.rally-lead { padding-top: clamp(38px, 6vw, 68px); max-width: 760px; }
.rally-lead p { margin: 0 0 .85em; line-height: 2; }
.rally-lead .rally-lead-opening { color: var(--ink); font-weight: 800; font-size: 1.08rem; }
.song-emphasis { color: var(--red); font-weight: 800; }
.prize-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 5% 12%, #f5d38826, transparent 30%),
    radial-gradient(circle at 95% 78%, #bb863b22, transparent 25%),
    #171d47;
  color: var(--paper);
}
.prize-section::before, .prize-section::after { content: "✦"; position: absolute; pointer-events: none; color: #eac77b; }
.prize-section::before { top: 6%; right: 8%; font-size: 32px; }
.prize-section::after { bottom: 12%; left: 3%; font-size: 18px; }
.prize-intro { max-width: 48em; margin: 0 0 26px; color: #e5e6f2; }
.prize-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 24px; }
.prize-list li { min-width: 0; }
.prize-list h3 { font-size: 1.08rem; line-height: 1.5; margin: 0 0 .5rem; }
.prize-list p { margin: 0; }
.prize-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 14px;
  background: linear-gradient(115deg, #f0cd7b, #fff0ba 44%, #e6bc64);
  color: #54242b;
  box-shadow: 0 12px 34px #070b2c40;
}
.prize-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-weight: 900; line-height: 1.2; }
.prize-amount > span { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.prize-amount > small { font-size: clamp(1.05rem, 2.6vw, 1.65rem); }
.prize-main .prize-description { margin-top: .65rem; font-size: .86rem; }
.prize-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 90px; height: 90px; border-radius: 50%; background: #8a2636; color: #fff0bd; line-height: 1.05; rotate: 8deg; box-shadow: 0 4px 12px #6c291f22; }
.prize-badge strong { font-size: 2.55rem; }
.prize-badge span { font-weight: 800; font-size: .87rem; }
.prize-extra { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(17px, 2.6vw, 26px); border-radius: 12px; background: #ffffff0b; }
.prize-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 13px; border-radius: 50%; background: #f3d282; color: #282441; }
.prize-icon .icon { width: 26px; height: 26px; }
.prize-extra .prize-winners { margin-top: auto; color: #ffdf8e; font-weight: 800; }
.prize-winners span { font-weight: 500; font-size: .87rem; }
.prize-reception { padding: clamp(18px, 3vw, 28px); border-radius: 12px; background: #fffaf0; color: var(--ink); }
.prize-reception h3 { margin: 0 0 14px; font-size: clamp(1.06rem, 2.5vw, 1.3rem); line-height: 1.5; }
.prize-times { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; }
.prize-times li { display: flex; flex-wrap: wrap; gap: .35em .75em; align-items: baseline; }
.prize-times span { color: var(--red); font-weight: 800; font-size: 1.14rem; font-variant-numeric: tabular-nums; }
.prize-reception > p { margin: 14px 0 0; font-size: .88rem; }
.prize-mobile-break { display: none; }
@media (max-width: 600px) {
  .prize-list { grid-template-columns: 1fr; gap: 12px; }
  .prize-main { grid-column: auto; gap: 12px; padding: 20px; }
  .prize-badge { width: 68px; height: 68px; }
  .prize-badge strong { font-size: 2rem; }
  .prize-mobile-break { display: inline; }
}

.points-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.point { display: flex; min-width: 0; flex-direction: column; padding: clamp(15px, 2.3vw, 24px); border-radius: 12px; background: #fffdf8; box-shadow: 0 1px 6px #30284a13; }
.point:target { outline: 2px solid #c08b3a; outline-offset: 3px; }
.point-head { margin-bottom: 14px; }
.point-meta { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--muted); font-size: .83rem; font-weight: 800; }
.point-number { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--night); background: #f3e4b9; font: 700 .98rem Georgia, serif; }
.point h3 { margin: .45rem 0 0; font-size: clamp(1.15rem, 2.5vw, 1.4rem); line-height: 1.35; }
.point-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.point-media figure { margin: 0; min-width: 0; }
.point-media figcaption { margin-bottom: 5px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.point-map iframe { display: block; width: 100%; height: clamp(155px, 17vw, 185px); border: 0; border-radius: 8px; }
.point-map iframe { background: #e9eee7; }
.panel-photo img { display: block; width: 100%; height: auto; border-radius: 8px; object-fit: contain; }
.map-link { margin-top: .25rem; color: var(--red); }
.point-hint { margin-top: 6px; }

.hint-band { background: var(--night); color: var(--paper); }
.hint-wrap { max-width: 780px; }
.hint-band .section-title p { color: var(--gold); }
.hint { background: #f4eddf; border-radius: 8px; color: var(--ink); }
.hint:target { outline: 2px solid #c79536; outline-offset: 3px; }
.hint summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 13px; border-radius: inherit; cursor: pointer; list-style: none; font-size: .91rem; font-weight: 800; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary > .icon { color: var(--red); }
.hint summary:hover, .hint[open] summary { background: #eee2c8; }
.hint-toggle { display: grid; place-items: center; flex: 0 0 1.9rem; height: 1.9rem; margin-inline-start: auto; border-radius: 50%; background: #e7dac0; color: var(--ink); }
.hint[open] .hint-toggle { background: var(--ink); color: white; }
.hint[open] .hint-toggle .icon { rotate: 180deg; }
.hint-body { padding: 12px 14px 16px; }
.hint-body p { margin: 0; font-size: .9rem; }
.hint-body .hint-type { color: var(--muted); font-size: .78rem; font-weight: 800; margin-bottom: 3px; }

.kit-band { background: #f4eddf; }
.kit-band .section-title h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
.kit-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: .45rem; font-size: .91rem; }
.kit-list li { display: grid; grid-template-columns: 2.8rem 1fr; gap: 8px; }
.kit-download { background: var(--night); color: var(--paper); border-color: var(--night); }
.kit-download span { color: var(--gold); font-size: .75rem; }

.event-invite { background: #12362d; color: var(--paper); }
.event-invite-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
}
.event-invite-copy h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.45rem); line-height: 1.35; }
.event-invite-copy > p { margin: .65rem 0 1rem; }
.event-invite-copy .event-invite-kicker { margin: 0 0 .5rem; color: var(--gold); font-size: .82rem; font-weight: 800; }
.event-invite-dates { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.event-invite-dates li { display: flex; gap: .3em; align-items: baseline; }
.event-invite-dates time { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.event-invite-dates time span, .event-invite-dates strong { font-size: .85rem; }
.event-invite-flyer { display: block; width: min(100%, 380px); justify-self: center; }
.event-invite-art { width: 100%; border-radius: 12px; }
@media (max-width: 740px) {
  .event-invite-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .section-nav ul { gap: 2px; }
  .section-nav a { font-size: .69rem; padding-inline: .1rem; }
}

.footer { background: #111637; color: var(--paper); padding: 24px 0; font-size: .88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer p { margin: 0; font-weight: 800; }

.masthead { border-bottom: 1px solid #3b4168; }
.masthead .back { min-height: 48px; font-weight: 800; }
.hero { text-align: left; border-bottom-width: 3px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(38px, 7vw, 94px); }
.hero h1 { position: relative; isolation: isolate; }
.hero h1::before { content: ""; position: absolute; z-index: -1; inset: -22px -12px; border-radius: 50%; background: radial-gradient(ellipse, #ffcf7852, transparent 67%); }
.hero h1 img { width: 100%; }
.hero-label { font-size: .83rem; margin-bottom: 12px; }
.hero-copy { font-size: clamp(1.5rem, 3.55vw, 2.7rem); line-height: 1.4; margin: 0 0 14px; letter-spacing: .015em; }
.hero-date, .hero-links { justify-content: flex-start; }
.hero-date { margin-top: 18px; }
.hero-date > span { font-size: clamp(1.55rem, 4vw, 2.1rem); }
.hero-links { margin-top: 20px; }
.section-nav ul { gap: 6px; margin-block: 0; }
.section-nav a { display: flex; gap: .5em; align-items: center; justify-content: center; padding: .45em; }
.section-nav .icon { color: var(--red); }

@media (max-width: 740px) {
  .hero { text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { width: min(100%, 440px); margin-inline: auto; }
  .hero h1::before { inset: -16px 0; }
  .hero-label { margin-bottom: 4px; }
  .hero-copy { font-size: clamp(1.35rem, 6vw, 1.95rem); }
  .hero-date, .hero-links { justify-content: center; }
  .hero-date { margin-top: 10px; }
  .hero-links { margin-top: 14px; }
  .section-nav a { flex-direction: column; gap: .3em; line-height: 1.2; white-space: nowrap; }
  .steps, .points-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .point-media { grid-template-columns: 1fr; gap: 6px; }
  .point-map iframe { height: 190px; }
  .point-hint { margin-top: 14px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 28px); }
  .hero-links .button { flex: 1 1 auto; font-size: .82rem; padding-inline: .75rem; }
  .section-nav .icon { width: 1em; height: 1em; }
  .kit-download { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero h1 { animation: hero-arrival 520ms var(--ease-out) both; }
  .hero-links { animation: hero-arrival 480ms var(--ease-out) 110ms both; }
  .button, .section-nav a, .hint summary, .hint-toggle { transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out); }
  .icon { transition: translate 200ms var(--ease-out), rotate 260ms var(--ease-out); }
  a:focus-visible .icon { translate: var(--icon-shift); }
  .button:active, .hint summary:active .hint-toggle { transform: scale(.98); }
  .point:target, .hint:target { animation: arrival-ring 800ms var(--ease-out) 200ms both; }
  @supports selector(details::details-content) {
    .hint::details-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 280ms var(--ease-out), opacity 200ms ease, content-visibility 280ms allow-discrete; }
    .hint[open]::details-content { grid-template-rows: 1fr; opacity: 1; }
    .hint-panel { min-height: 0; overflow: hidden; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover .icon { translate: var(--icon-shift); }
  .button:hover { transform: translateY(-2px); }
  .primary:hover { background: #ffe790; }
  .secondary:hover, .kit-download:hover { background: #2b3463; }
}
@keyframes hero-arrival {
  from { opacity: .15; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes arrival-ring {
  from { box-shadow: 0 0 0 0 #d4a53775; }
  to { box-shadow: 0 0 0 12px #d4a53700; }
}

.section-nav a[aria-current="location"] {
  border-radius: 7px;
  background: #f1e2bd;
  color: #221d48;
  text-decoration: none;
}
