
:root {
  --paper: #fffdf8;
  --paper-warm: #f8f4ea;
  --paper-deep: #f4eee2;
  --shuri-red: #b3261e;
  --shuri-red-bright: #c63327;
  --navy: #092d57;
  --navy-deep: #061f3d;
  --gold: #c9a24f;
  --gold-pale: #e2c980;
  --ink: #1b2028;
  --muted: #687383;
  --line: rgba(163, 125, 53, .3);
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--shuri-red); color: #fff; }
.section-shell { width: min(1180px, calc(100% - 96px)); margin: 0 auto; }
.eyebrow { margin: 0 0 28px; color: var(--shuri-red); font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 18px; color: var(--gold); }
.section-heading h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(46px, 6vw, 82px); font-weight: 500; letter-spacing: .08em; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; color: var(--navy); border-bottom: 1px solid transparent; transition: .45s ease; }
.site-header.is-scrolled { height: 74px; background: rgba(255,253,248,.9); backdrop-filter: blur(16px); border-color: rgba(9,45,87,.12); box-shadow: 0 8px 28px rgba(9,45,87,.06); }
.header-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 10px; letter-spacing: .08em; line-height: 1.65; }
.header-brand b { font-size: 13px; font-weight: 600; }
.brand-mark { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; color: var(--shuri-red); font-size: 9px; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201,162,79,.35); border-radius: inherit; }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 11px; font-weight: 500; letter-spacing: .1em; }
.desktop-nav a { position: relative; padding: 8px 0; color: rgba(9,45,87,.8); }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--shuri-red); transition: right .3s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.desktop-nav .header-entry { padding: 10px 16px; border: 1px solid var(--shuri-red); color: var(--shuri-red); letter-spacing: .12em; transition: background .3s ease,color .3s ease; }
.desktop-nav .header-entry::after { display: none; }
.desktop-nav .header-entry:hover, .desktop-nav .header-entry:focus-visible { background: var(--shuri-red); color: #fff; }
.menu-button, .mobile-menu { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; background: var(--paper); }
.hero-image { position: absolute; inset: 0; background: url("../images/shuri-castle-hero-day.webp") 61% center / cover no-repeat; transform: scale(1.03); animation: imageReveal 2s cubic-bezier(.22,.7,.12,1) forwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,248,.99) 0%, rgba(255,253,248,.94) 28%, rgba(255,253,248,.44) 51%, rgba(255,253,248,.04) 76%), linear-gradient(0deg, rgba(255,253,248,.32), transparent 42%); }
.board-grid { position: absolute; background-image: linear-gradient(rgba(201,162,79,.23) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,79,.23) 1px, transparent 1px); background-size: 42px 42px; }
.hero-grid { width: 420px; height: 420px; left: -130px; bottom: -110px; transform: rotate(-5deg); mask-image: linear-gradient(45deg, #000, transparent 70%); }
.hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 96px)); margin: 50px auto 0; }
.hero-content > * { opacity: 0; transform: translateY(18px); animation: rise .8s ease forwards; }
.hero-eyebrow { max-width: 520px; color: var(--navy); animation-delay: .6s !important; }
.hero-kicker { margin: 0 0 5px; color: var(--navy); font-family: var(--serif); font-size: clamp(18px,2vw,27px); font-weight: 500; letter-spacing: .23em; animation-delay: .78s !important; }
.hero h1 { max-width: 690px; margin: 0 0 30px; color: var(--navy); font-family: var(--serif); font-size: clamp(48px,6.5vw,90px); font-weight: 500; line-height: 1.08; letter-spacing: .055em; animation-delay: .92s !important; }
.hero h1 .h1-kicker { display: block; margin-bottom: .3em; color: var(--navy); font-size: clamp(18px,2vw,27px); font-weight: 500; letter-spacing: .23em; line-height: 1.4; }
.hero h1 .h1-main { display: block; }
.hero h1 .h1-main > span { display: block; color: var(--shuri-red); }
.hero-copy { margin: 0; color: var(--shuri-red); font-family: var(--serif); font-size: clamp(26px,3.1vw,45px); font-weight: 500; line-height: 1.45; letter-spacing: .08em; animation-delay: 1.08s !important; }
.hero-copy span { color: var(--navy); }
.hero-subcopy { margin: 8px 0 30px; color: #465e76; font-family: var(--serif); font-size: clamp(14px,1.3vw,19px); letter-spacing: .18em; animation-delay: 1.2s !important; }
.primary-button { width: 250px; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .14em; transition: .35s ease; animation-delay: 1.34s !important; }
.primary-button i { color: var(--gold-pale); font-size: 17px; font-style: normal; }
.primary-button:hover, .primary-button:focus-visible { border-color: var(--shuri-red); background: var(--shuri-red); transform: translateY(-2px); }
.registration-button { width: 280px; border-color: var(--shuri-red); background: var(--shuri-red); }
.registration-button:hover, .registration-button:focus-visible { border-color: var(--navy); background: var(--navy); }
.hero-actions { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; width: min(560px,100%); animation-delay: 1.34s !important; }
.hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
.secondary-button { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; border: 1px solid var(--navy); background: rgba(255,253,248,.72); color: var(--navy); font-size: 12px; font-weight: 500; letter-spacing: .14em; transition: .35s ease; }
.secondary-button i { color: var(--shuri-red); font-size: 17px; font-style: normal; }
.secondary-button:hover, .secondary-button:focus-visible { border-color: var(--shuri-red); color: var(--shuri-red); transform: translateY(-2px); }
.hero-facts { display: flex; gap: 0; width: min(610px, 100%); margin-top: 24px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); animation-delay: 1.5s !important; }
.hero-facts p { flex: 1; margin: 0; padding: 13px 20px 15px 0; }
.hero-facts p + p { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-facts small { display: block; margin-bottom: 5px; color: var(--shuri-red); font-size: 7px; font-weight: 600; letter-spacing: .22em; }
.hero-facts strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.hero-facts span { display: block; margin-top: 3px; color: #586b7d; font-size: 9px; }
.hero-stone { position: absolute; z-index: 3; right: 6vw; bottom: 9vh; opacity: 0; animation: placeStone .65s 1.8s cubic-bezier(.2,.8,.2,1) forwards; }
.stone-white { width: 42px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff 0, #eee9df 50%, #b7afa3 100%); box-shadow: 0 12px 22px rgba(9,45,87,.25), inset -4px -5px 8px rgba(90,80,65,.3); }
.scroll-cue { position: absolute; right: 4vw; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--navy); font-size: 8px; letter-spacing: .3em; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 70px; background: linear-gradient(var(--shuri-red) 50%, rgba(9,45,87,.15) 50%); background-size: 100% 200%; animation: scrollLine 2.2s infinite; }

.opening-stone { position: relative; min-height: 590px; display: grid; place-items: center; overflow: hidden; background: var(--paper-warm); }
.stone-stage { position: relative; text-align: center; }
.stone-stage::before { content: ""; position: absolute; left: 50%; top: 42px; width: 170px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: translateX(-50%); }
.stone-stage p { margin: 52px 0 0; color: var(--navy); font-family: var(--serif); font-size: clamp(20px,2.4vw,34px); font-weight: 500; line-height: 2; letter-spacing: .15em; }
.stone-black, .black-pebble { border-radius: 50%; background: radial-gradient(circle at 34% 27%, #565b62 0, #23272d 35%, #080a0d 78%); box-shadow: 0 18px 36px rgba(9,45,87,.24), inset 3px 2px 7px #ffffff20; }
.stone-black { width: 82px; aspect-ratio: 1; margin: 0 auto; }

.story { min-height: 900px; display: grid; grid-template-columns: minmax(390px,.9fr) 1.1fr; gap: clamp(64px,7vw,100px); align-items: center; }
.story-copy h2 { margin: 0 0 30px; color: var(--navy); font-family: var(--serif); font-size: clamp(58px,5.6vw,82px); font-weight: 500; line-height: 1.4; letter-spacing: .08em; }
.story-title-line { display: block; white-space: nowrap; }
.story-title-line:first-child::first-letter { color: var(--shuri-red); }
.story-memory { margin: 0 0 26px 46px; color: var(--shuri-red); font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.9; letter-spacing: .14em; }
.story-text { padding-left: 46px; border-left: 2px solid var(--shuri-red); color: #59687a; font-family: var(--serif); font-size: 16px; line-height: 2.2; letter-spacing: .07em; }
.story-visual { position: relative; height: 620px; padding-right: 76px; }
.story-image { height: 100%; background: linear-gradient(90deg, var(--paper), transparent 18%), url("../images/shuri-castle-hero-day.webp") 78% 54% / auto 115% no-repeat; clip-path: polygon(8% 0, 100% 0, 100% 94%, 2% 100%, 0 10%); filter: saturate(.92) contrast(1.03); }
.story-visual::before, .story-visual::after { content: ""; position: absolute; z-index: 2; background: var(--gold); }
.story-visual::before { width: 76px; height: 1px; left: -28px; top: 82px; }
.story-visual::after { width: 1px; height: 76px; left: 8px; top: 45px; }
.story-official-copy { position: absolute; z-index: 3; top: 10px; right: 9px; display: block; width: 56px; }
.story-official-copy img { display: block; width: 100%; height: auto; }

.information { position: relative; overflow: hidden; padding: 145px 0 165px; background: #fff; }
.information::before { content: ""; position: absolute; left: -110px; top: 120px; width: 260px; height: 260px; border: 1px solid rgba(201,162,79,.25); border-radius: 50%; box-shadow: 0 0 0 18px rgba(201,162,79,.05), 0 0 0 40px rgba(201,162,79,.04); }
.note { margin: 30px 0 66px; color: #6d7480; font-size: 12px; letter-spacing: .07em; }
.note strong { display: inline-block; margin-right: 8px; padding: 5px 10px; background: var(--shuri-red); color: #fff; font-size: 9px; font-weight: 500; letter-spacing: .16em; }
.info-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
.info-grid article { position: relative; min-width: 0; min-height: 190px; padding: 28px 30px; border: 1px solid var(--line); background: linear-gradient(145deg,#fff 0%,#fffdf8 100%); display: flex; flex-direction: column; justify-content: space-between; }
.info-grid article::before { content: ""; position: absolute; left: 0; top: 0; width: 55px; height: 3px; background: var(--gold); }
.info-grid article::after { content: ""; position: absolute; right: 19px; bottom: 19px; width: 12px; height: 12px; border-radius: 50%; background: #14171b; box-shadow: inset 2px 2px 3px #ffffff26; }
.info-grid article:nth-child(even)::after { background: radial-gradient(circle at 35% 30%, white, #ddd8d0); box-shadow: 0 2px 5px #0003; }
.info-grid .featured-info { border-color: var(--navy); background: var(--navy); color: #fff; }
.info-grid .featured-info::before { background: var(--shuri-red); }
.info-grid .info-date { grid-column: span 7; }
.info-grid .info-venue { grid-column: span 5; }
.info-grid .info-organizer { grid-column: span 4; }
.info-grid .info-fee { grid-column: span 8; }
.info-grid .info-format { grid-column: span 7; }
.info-grid .info-awards { grid-column: span 5; }
.info-grid .info-support { grid-column: span 12; min-height: 0; padding: 24px 30px 26px; }
.info-grid .info-support strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; margin: 11px 0 12px; font-size: clamp(16px,1.45vw,22px); }
.info-grid .info-support .support-name { display: inline-block; padding-right: 24px; color: inherit; font: inherit; letter-spacing: inherit; }
.info-grid .info-support .support-name + .support-name { padding-left: 24px; border-left: 1px solid var(--line); }
.info-grid .info-support .support-note { margin-left: 4px; color: #7a828d; font-family: var(--sans); font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: .04em; }
.info-grid span { color: var(--shuri-red); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.info-grid .featured-info span { color: var(--gold-pale); }
.info-grid strong { color: var(--navy); font-family: var(--serif); font-size: clamp(20px,1.8vw,28px); font-weight: 600; line-height: 1.55; letter-spacing: .035em; line-break: strict; text-wrap: pretty; }
.info-grid .featured-info strong { color: #fff; }
.info-grid .info-fee strong { font-size: clamp(25px,2.4vw,36px); letter-spacing: .02em; }
.info-grid .fee-line { display: inline-block; color: inherit; font: inherit; letter-spacing: inherit; }
.info-grid .fee-line + .fee-line::before { content: " "; }
.info-grid .info-line { display: block; color: inherit; font: inherit; letter-spacing: inherit; }
.info-grid .info-line + .info-line { margin-top: 2px; }
.info-grid .info-prize { display: inline-block; color: inherit; font: inherit; letter-spacing: inherit; }
.info-grid .info-prize b { color: inherit; font: inherit; }
.info-grid em { margin-top: 12px; color: #687383; font-size: 11px; font-style: normal; line-height: 1.7; }
.info-grid .fee-note { display: block; margin-top: 10px; }
.info-grid .fee-badge { display: inline-block; padding: 5px 13px 6px; border: 1px solid rgba(179,38,30,.32); background: rgba(179,38,30,.07); color: var(--shuri-red); font-size: clamp(11px,1.05vw,13px); font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.info-grid .fee-pay { display: block; margin-top: 8px; color: #7a828d; font-size: clamp(10px,1vw,12px); letter-spacing: .06em; line-height: 1.6; }
.info-grid .featured-info em { color: rgba(255,255,255,.76); }
.info-grid small { color: #87909b; font-size: 8px; letter-spacing: .24em; }
.info-grid .featured-info small { color: rgba(255,255,255,.55); }
.guest-strip { margin-top: 38px; padding: 32px 38px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--paper); }
.guest-strip p { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.guest-strip p span { display: block; margin-bottom: 8px; color: var(--shuri-red); font: 8px var(--sans); letter-spacing: .24em; }
.guest-strip div { text-align: right; }
.guest-strip strong { display: block; color: var(--navy); font-family: var(--serif); font-size: clamp(18px,2vw,27px); font-weight: 600; }
.guest-strip small { display: block; margin-top: 8px; color: #707986; font-size: 10px; }
.guest-strip .guest-lead { margin: 0 0 6px; color: var(--shuri-red); font-size: 11px; font-weight: 500; letter-spacing: .14em; }

.mid-entry-cta { position: relative; overflow: hidden; padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.mid-entry-cta::before { content: ""; position: absolute; width: 180px; height: 180px; right: 7vw; top: -105px; border: 1px solid rgba(201,162,79,.25); border-radius: 50%; box-shadow: 0 0 0 18px rgba(201,162,79,.06); }
.mid-entry-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.mid-entry-inner .eyebrow { margin-bottom: 13px; }
.mid-entry-inner h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(30px,4vw,50px); font-weight: 500; letter-spacing: .1em; }
.mid-entry-inner .primary-button { flex: 0 0 auto; }

.categories { position: relative; padding: 165px 0; overflow: hidden; }
.categories .section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 72px; }
.categories .eyebrow { grid-column: 1 / -1; }
.lead { margin: 0 0 8px auto; color: #667488; font-family: var(--serif); font-size: 14px; line-height: 2; letter-spacing: .08em; }
.category-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.category-card { position: relative; min-width: 0; min-height: 490px; padding: 0 30px 30px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.category-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--navy); }
.category-card:nth-child(2)::before { background: var(--shuri-red); }
.card-number { padding-top: 30px; color: var(--gold); font-family: var(--serif); font-size: 12px; }
.program-content { position: relative; z-index: 1; padding-bottom: 54px; line-break: strict; overflow-wrap: normal; word-break: normal; hyphens: none; }
.category-card .program-part { margin: 0 0 5px; color: var(--shuri-red); font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.55; letter-spacing: .15em; }
.category-card .program-label { margin: 0 0 18px; color: #89744d; font-size: 8px; font-weight: 600; line-height: 1.5; letter-spacing: .23em; }
.category-card h3 { margin: 0 0 12px; color: var(--navy); font-family: var(--serif); font-size: clamp(24px,2.05vw,32px); font-weight: 600; line-height: 1.48; letter-spacing: .045em; line-break: strict; overflow-wrap: normal; word-break: normal; }
.category-card .program-title-line { display: block; max-width: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; }
.nowrap { white-space: nowrap; }
.category-card .program-time { display: block; margin-bottom: 17px; color: var(--shuri-red); font-size: clamp(16px,1.45vw,20px); font-weight: 500; line-height: 1.4; letter-spacing: .08em; }
.program-performers { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-bottom: 15px; }
.category-card .program-meta-label { display: inline-block; max-width: none; margin-top: 3px; padding: 3px 6px; background: var(--navy); color: #fff; font-size: 8px; font-weight: 500; line-height: 1.35; letter-spacing: .12em; }
.program-performers > div { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.category-card .performer-name { display: inline-block; max-width: none; color: var(--navy); font-family: var(--serif); font-size: clamp(13px,1.2vw,16px); font-weight: 600; line-height: 1.75; letter-spacing: .035em; }
.program-detail { margin: 0 0 14px; color: #667488; font-size: 12px; line-height: 1.85; }
.category-card .program-detail-line { display: block; max-width: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: .03em; }
.program-list { max-width: calc(100% - 24px); margin: 0; padding: 0; list-style: none; color: #667488; font-size: 11px; line-height: 1.85; line-break: strict; overflow-wrap: normal; word-break: normal; }
.program-list li { position: relative; padding-left: 15px; }
.category-card .program-item-line { display: block; max-width: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: .02em; }
.program-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.category-card i { position: absolute; width: 105px; aspect-ratio: 1; right: -26px; bottom: -23px; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.category-card:hover i { transform: translate(-11px,-11px); }
.white-pebble { border-radius: 50%; background: radial-gradient(circle at 34% 27%, white, #ded8cf 62%, #948b7e); box-shadow: 0 15px 27px rgba(9,45,87,.22); }

.timeline-section { padding: 150px 0 175px; background: linear-gradient(135deg,#f7eee8 0%,#f8f4ea 55%,#fffdf8 100%); }
.timeline-section .section-heading { margin-bottom: 105px; }
.timeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(7,1fr); margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; height: 1px; left: 5%; right: 5%; top: 27px; background: linear-gradient(90deg,var(--gold),rgba(201,162,79,.35)); transform-origin: left; animation: lineDraw 1.6s ease both; animation-play-state: paused; }
.timeline.is-visible::before { animation-play-state: running; }
.timeline li { position: relative; text-align: center; padding: 0 8px; }
.timeline-stone { position: relative; z-index: 2; display: block; width: 54px; aspect-ratio: 1; margin: 0 auto 30px; border-radius: 50%; }
.timeline-stone.dark { background: radial-gradient(circle at 33% 25%,#555b63,#15191f 42%,#050608); box-shadow: 0 14px 25px rgba(9,45,87,.23); }
.timeline-stone.light { border: 1px solid #d7d0c6; background: radial-gradient(circle at 33% 25%,white,#e9e4dc 64%,#aaa196); box-shadow: 0 12px 22px rgba(9,45,87,.18); }
.timeline li p { color: var(--shuri-red); font-size: 9px; font-weight: 600; letter-spacing: .2em; }
.timeline h3 { min-height: 3.1em; margin: 12px 0; color: var(--navy); font-family: var(--serif); font-size: clamp(15px,1.35vw,20px); font-weight: 600; line-height: 1.55; letter-spacing: .06em; }
.timeline small { display: block; color: #687383; font-size: 10px; line-height: 1.65; line-break: strict; text-wrap: pretty; }

.access { padding: 170px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; align-items: center; }
.access-title h2 { margin: 0 0 40px; color: var(--navy); font-family: var(--serif); font-size: clamp(58px,7vw,94px); font-weight: 500; letter-spacing: .1em; }
.access-title > p:last-child { color: #667488; font-family: var(--serif); line-height: 2; letter-spacing: .1em; }
.access-panel { display: grid; grid-template-columns: 1fr .95fr; border: 1px solid var(--line); background: #fff; }
.access-map { position: relative; display: flex; flex-direction: column; min-height: 430px; background: var(--paper-warm); }
.access-map iframe { flex: 1; width: 100%; min-height: 372px; border: 0; display: block; filter: saturate(.86) contrast(1.02); }
.map-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 20px; border-top: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 11px; font-weight: 600; letter-spacing: .16em; transition: .3s ease; }
.map-link i { color: var(--shuri-red); font-size: 14px; font-style: normal; }
.map-link:hover, .map-link:focus-visible { background: var(--navy); color: #fff; }
.map-link:hover i, .map-link:focus-visible i { color: var(--gold-pale); }
.access-panel dl { margin: 0; padding: 18px 30px; }
.access-panel dl div { padding: 25px 0; border-bottom: 1px solid var(--line); }
.access-panel dl div:last-child { border: 0; }
.access-panel dt { margin-bottom: 9px; color: var(--shuri-red); font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.access-panel dd { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.7; }

.final-cta { position: relative; min-height: 770px; display: grid; place-items: center; overflow: hidden; }
.final-image { position: absolute; inset: 0; background: url("../images/shuri-castle-hero.webp") 55% 68% / cover no-repeat; filter: saturate(.7) brightness(.72) hue-rotate(4deg); transform: scaleX(-1) scale(1.08); }
.final-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,31,61,.88),rgba(9,45,87,.73)),radial-gradient(circle at center,transparent,rgba(6,31,61,.72)); }
.final-grid { width: 520px; height: 520px; right: -130px; top: -120px; transform: rotate(7deg); opacity: .6; mask-image: linear-gradient(-45deg,#000,transparent 70%); }
.final-content { position: relative; z-index: 2; text-align: center; }
.final-content .eyebrow { color: var(--gold-pale); }
.final-content h2 { margin: 0 0 26px; color: #fff; font-family: var(--serif); font-size: clamp(48px,7vw,86px); font-weight: 500; line-height: 1.45; letter-spacing: .1em; }
.final-content h2 span { color: #fff; }
.final-title-line { display: block; white-space: nowrap; }
.final-content > p:not(.eyebrow) { margin: 0 0 42px; color: rgba(255,255,255,.75); font-size: 13px; line-height: 2; letter-spacing: .08em; }
.final-content .primary-button { margin: 0 auto; border-color: var(--gold); background: var(--shuri-red); }
.final-content .primary-button:hover, .final-content .primary-button:focus-visible { border-color: var(--gold-pale); background: #9f201a; }
.final-stone { position: absolute; width: 30px; aspect-ratio: 1; left: 14%; bottom: 19%; border-radius: 50%; background: radial-gradient(circle at 33% 26%,white,#ded8cf 66%,#82796e); box-shadow: 0 9px 16px rgba(0,0,0,.35); }

footer { padding: 68px 5vw 42px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: start; gap: 50px; border-top: 1px solid rgba(201,162,79,.55); background: var(--navy-deep); color: #fff; }
.footer-brand { display: flex; gap: 14px; align-items: center; font-family: var(--serif); font-size: 10px; line-height: 1.8; }
.footer-brand p { margin: 0; }
.footer-brand strong { font-size: 14px; font-weight: 500; }
footer nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .1em; }
footer nav a:hover { color: #fff; }
.footer-meta { color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.8; text-align: right; }
.footer-meta p { margin: 0 0 5px; }
.footer-meta small { display: block; margin-top: 28px; color: var(--gold-pale); font-size: 7px; letter-spacing: .12em; }

@keyframes imageReveal { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.03); } }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes placeStone { from { opacity: 0; transform: translateY(-18px) scale(1.12); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 901px) and (max-width: 1120px) {
  .site-header { padding-inline: 3vw; }
  .desktop-nav { gap: 18px; }
  .desktop-nav .header-entry { padding-inline: 12px; }
  .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-grid .info-date,.info-grid .info-venue,.info-grid .info-organizer,.info-grid .info-fee,.info-grid .info-format,.info-grid .info-awards { grid-column: span 1; }
  .info-grid .info-support { grid-column: span 2; }
  .info-grid strong { font-size: clamp(20px,2.4vw,26px); }
  .info-grid .info-fee strong { font-size: clamp(25px,3vw,32px); }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 48px; }
  .timeline::before { width: 1px; height: auto; left: 75px; right: auto; top: 28px; bottom: 28px; transform-origin: top; animation-name: lineDrawVertical; }
  .timeline li { min-height: 112px; padding: 4px 0 18px 118px; text-align: left; }
  .timeline-stone { position: absolute; left: 0; top: 0; width: 54px; margin: 0; }
  .timeline li p { margin: 0; }
  .timeline h3 { margin: 6px 0; font-size: 20px; }
}

@media (max-width: 900px) {
  .section-shell { width: min(100% - 42px, 640px); }
  .site-header { height: 74px; padding: 0 21px; }
  .site-header.is-scrolled { height: 64px; }
  .header-brand { font-size: 8px; }
  .header-brand b { font-size: 10px; }
  .desktop-nav { display: none; }
  .menu-button { position: relative; z-index: 22; display: grid; align-content: center; gap: 7px; width: 43px; height: 43px; padding: 0 9px; border: 1px solid var(--navy); background: rgba(255,253,248,.65); }
  .menu-button span { display: block; height: 1px; background: var(--navy); transition: .3s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { position: fixed; z-index: 21; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 72px 38px 40px; background: rgba(255,253,248,.98); transform: translateY(-100%); visibility: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1),visibility .5s; }
  .mobile-menu.is-open { transform: translateY(0); visibility: visible; }
  .mobile-menu p { color: var(--shuri-red); font-size: 9px; letter-spacing: .3em; }
  .mobile-menu a { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-family: var(--serif); font-size: 23px; letter-spacing: .1em; }
  .mobile-menu a span { color: var(--shuri-red); font: 9px var(--sans); }
  .mobile-menu .mobile-entry { justify-content: center; margin-top: 22px; padding: 14px 18px; border: 1px solid var(--shuri-red); background: var(--shuri-red); color: #fff; font: 500 13px var(--sans); letter-spacing: .15em; }
  .mobile-menu .mobile-entry span { color: var(--gold-pale); }

  .hero { min-height: 100svh; align-items: flex-start; padding-top: 120px; }
  .hero-image { inset: 46% 0 0; background-image: url("../images/shuri-castle-hero-day-sm.webp"); background-position: 68% center; background-size: auto 100%; }
  .hero-shade { background: linear-gradient(180deg,var(--paper) 0%,rgba(255,253,248,.99) 45%,rgba(255,253,248,.55) 66%,rgba(255,253,248,.05) 84%); }
  .hero-content { width: calc(100% - 42px); margin: 0 auto; }
  .hero-eyebrow { max-width: 280px; margin-bottom: 15px; font-size: 7px; line-height: 1.8; }
  .hero h1 .h1-kicker { margin-bottom: .38em; font-size: 15px; letter-spacing: .17em; }
  .hero h1 { max-width: 350px; margin-bottom: 19px; font-size: clamp(41px,12vw,58px); line-height: 1.22; letter-spacing: .035em; }
  .hero-copy { font-size: 24px; }
  .hero-subcopy { margin: 4px 0 24px; font-size: 12px; }
  .primary-button { width: 215px; height: 55px; }
  .hero-actions { grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; height: 54px; padding: 0 12px 0 14px; font-size: 10px; letter-spacing: .07em; }
  .hero-facts { display: flex; width: 100%; margin-top: 16px; background: rgba(255,253,248,.9); }
  .hero-facts p + p { display: none; }
  .hero-facts p { padding: 9px 14px 10px; }
  .hero-facts p + p { padding-left: 14px; }
  .hero-facts strong { font-size: 14px; line-height: 1.5; }
  .hero-facts span { font-size: 9px; line-height: 1.6; }
  .hero-stone { right: 25px; bottom: 17vh; transform: scale(.72); }
  .scroll-cue { right: 15px; color: #fff; text-shadow: 0 1px 8px rgba(9,45,87,.6); }
  .hero-grid { left: -230px; }

  .opening-stone { min-height: 490px; }
  .stone-stage p { font-size: 18px; }
  .stone-black { width: 66px; }
  .story { min-height: auto; padding: 115px 0; display: flex; flex-direction: column; gap: 65px; align-items: stretch; }
  .story-copy h2 { margin-bottom: 22px; font-size: 54px; }
  .story-memory { margin: 0 0 25px 24px; font-size: 13px; letter-spacing: .1em; }
  .story-text { padding-left: 24px; font-size: 13px; }
  .story-visual { width: calc(100% + 21px); height: 450px; padding-right: 0; }
  .story-image { background-position: 77% 50%; background-size: auto 100%; }
  .story-official-copy { top: auto; right: auto; bottom: -76px; left: 50%; width: min(330px,88%); transform: translateX(-50%); }

  .information { padding: 105px 0 115px; }
  .note { margin-bottom: 40px; line-height: 1.8; }
  .info-grid { grid-template-columns: 1fr; gap: 10px; }
  .info-grid .info-date,.info-grid .info-venue,.info-grid .info-organizer,.info-grid .info-fee,.info-grid .info-format,.info-grid .info-awards,.info-grid .info-support { grid-column: 1; }
  .info-grid .info-support strong { display: block; font-size: 17px; }
  .info-grid .info-support .support-name { display: block; padding: 0; }
  .info-grid .info-support .support-name + .support-name { margin-top: 5px; padding: 0; border: 0; }
  .info-grid article { min-height: 155px; padding: 22px; }
  .info-grid strong { font-size: 19px; }
  .info-grid .info-fee strong { font-size: 26px; }
  .guest-strip { padding: 25px 20px; display: block; }
  .guest-strip div { margin-top: 20px; text-align: left; }

  .mid-entry-cta { padding: 58px 0; }
  .mid-entry-inner { display: block; }
  .mid-entry-inner h2 { margin-bottom: 30px; font-size: 30px; line-height: 1.55; }
  .mid-entry-inner .primary-button { width: min(280px,100%); }

  .categories { padding: 115px 0; }
  .categories .section-heading { display: block; margin-bottom: 50px; }
  .lead { margin: 28px 0 0; font-size: 13px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 440px; padding-inline: 28px; }
  .category-card h3 { font-size: clamp(26px,6.5vw,32px); }
  .program-list { max-width: calc(100% - 34px); }

  .timeline-section { padding: 105px 0 115px; }
  .timeline-section .section-heading { margin-bottom: 66px; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 15px; }
  .timeline::before { width: 1px; height: auto; left: 38px; right: auto; top: 30px; bottom: 30px; transform-origin: top; animation-name: lineDrawVertical; }
  .timeline li { min-height: 135px; padding: 6px 0 20px 106px; text-align: left; }
  .timeline-stone { position: absolute; left: 0; top: 0; width: 48px; margin: 0; }
  .timeline li p { margin: 0; }
  .timeline h3 { min-height: 0; margin: 8px 0; }

  .access { padding: 115px 0; display: block; }
  .access-title { margin-bottom: 55px; }
  .access-title h2 { font-size: 58px; }
  .access-panel { grid-template-columns: 1fr; }
  .access-map { min-height: 0; }
  .access-map iframe { min-height: 268px; }
  .access-panel dl { padding: 12px 24px; }

  .final-cta { min-height: 700px; padding: 80px 21px; }
  .final-image { background-position: 63% center; }
  .final-content h2 { font-size: clamp(36px,9.8vw,42px); line-height: 1.55; letter-spacing: .06em; }
  .final-content .primary-button { width: min(280px,100%); }
  .final-grid { right: -340px; }
  footer { padding: 52px 22px 34px; grid-template-columns: 1fr; gap: 34px; }
  footer nav { grid-template-columns: repeat(2,1fr); }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .story-memory { font-size: clamp(12px,3.4vw,13px); }
  .story-official-copy { width: min(320px,90%); }
  .info-grid .info-fee strong { font-size: clamp(24px,7.4vw,29px); }
  .info-grid .fee-line { display: block; }
  .info-grid .fee-line + .fee-line { margin-top: 3px; }
  .info-grid .fee-line + .fee-line::before { content: none; }
  .info-grid .fee-badge { padding: 5px 11px 6px; font-size: 12px; }
  .info-grid .fee-pay { font-size: 11px; }
  .category-card { min-height: 445px; padding-inline: 24px; }
  .category-card .program-part { font-size: clamp(13px,3.8vw,15px); }
  .category-card .program-label { font-size: clamp(8px,2.35vw,10px); }
  .category-card h3 { font-size: clamp(25px,7.1vw,30px); line-height: 1.5; }
  .category-card .program-time { font-size: clamp(17px,4.9vw,20px); }
  .category-card .performer-name { font-size: clamp(14px,4vw,17px); }
  .program-detail { font-size: clamp(12px,3.45vw,14px); line-height: 1.85; }
  .program-list { max-width: calc(100% - 24px); font-size: clamp(12px,3.25vw,14px); line-height: 1.85; }
}

@keyframes lineDrawVertical { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal,.hero-content > *,.hero-stone { opacity: 1 !important; transform: none !important; }
}
:focus-visible { outline: 2px solid var(--shuri-red); outline-offset: 5px; }


/* ---------- 締切バッジ / CTA補足 ---------- */
.deadline-badge { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 26px; padding: 11px 20px; border: 1px solid var(--gold); background: rgba(255,253,248,.86); animation-delay: 1.28s !important; }
.deadline-badge > span { color: var(--shuri-red); font-size: 9px; font-weight: 600; letter-spacing: .2em; }
.deadline-badge > strong { color: var(--navy); font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.deadline-badge > em { color: #687383; font-size: 10px; font-style: normal; letter-spacing: .1em; }
.mid-entry-note { margin: 14px 0 0; color: var(--shuri-red); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.final-deadline { margin: 26px 0 0 !important; color: var(--gold-pale) !important; font-size: 11px !important; letter-spacing: .12em; }
.final-content p small { display: block; margin-top: 7px; font-size: 11px; opacity: .8; }
.program-footnote { margin: 44px 0 0; color: #687383; font-size: 12px; line-height: 1.9; letter-spacing: .06em; }

/* ---------- 募集要項 ---------- */
.guidelines { padding: 150px 0; background: var(--paper-warm); }
.guidelines-body { display: grid; grid-template-columns: 1.45fr .55fr; gap: 44px; align-items: start; }
.guidelines-list { margin: 0; border-top: 1px solid var(--gold); }
.guideline-row { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.guideline-row.is-key { background: linear-gradient(90deg, rgba(179,38,30,.045), transparent 62%); }
.guideline-row dt { color: var(--shuri-red); font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .14em; line-height: 1.9; }
.guideline-row dd { margin: 0; }
.guideline-row dd strong { display: block; color: var(--navy); font-family: var(--serif); font-size: clamp(17px,1.5vw,21px); font-weight: 600; line-height: 1.65; letter-spacing: .04em; text-wrap: pretty; }
.guideline-row dd .guideline-sub { display: block; margin-top: 3px; color: var(--shuri-red); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.guideline-row dd span { display: block; margin-top: 9px; color: #59687a; font-size: 13px; line-height: 2; letter-spacing: .04em; text-wrap: pretty; }
.guideline-row dd span b { color: var(--navy); font-weight: 600; }

.contact-card { position: sticky; top: 108px; padding: 32px 30px 30px; border: 1px solid var(--line); background: #fff; }
.contact-label { margin: 0 0 18px; color: var(--shuri-red); font-size: 9px; font-weight: 600; letter-spacing: .26em; }
.contact-org { margin: 0 0 22px; color: var(--navy); font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: .05em; }
.contact-org span { display: block; margin-top: 4px; color: #687383; font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .06em; }
.contact-line { display: block; padding: 13px 0; border-top: 1px solid var(--line); }
.contact-line span { display: block; margin-bottom: 4px; color: var(--shuri-red); font-size: 8px; font-weight: 600; letter-spacing: .22em; }
.contact-line strong { color: var(--navy); font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .04em; word-break: break-all; transition: color .3s ease; }
.contact-line:hover strong, .contact-line:focus-visible strong { color: var(--shuri-red); }
.contact-hours { margin: 12px 0 22px; padding-top: 13px; border-top: 1px solid var(--line); color: #687383; font-size: 11px; letter-spacing: .1em; }
.contact-entry { width: 100%; animation-delay: 0s !important; }

@media (max-width: 900px) {
  .deadline-badge { width: 100%; margin-bottom: 20px; padding: 10px 15px; gap: 4px 10px; }
  .deadline-badge > strong { font-size: 14px; }
  .deadline-badge > em { font-size: 9px; }
  .program-footnote { margin-top: 32px; font-size: 11px; }
  .guidelines { padding: 105px 0; }
  .guidelines-body { grid-template-columns: 1fr; gap: 34px; }
  .guideline-row { grid-template-columns: 1fr; gap: 8px; padding: 21px 2px; }
  .guideline-row dt { font-size: 12px; letter-spacing: .16em; }
  .guideline-row dd span { font-size: 12.5px; }
  .contact-card { position: static; padding: 26px 24px; }
}

/* ---------- 碁盤の格子（カードが乗るセクションのみ） ---------- */
.information, .categories { position: relative; }
.information::after, .categories::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(9,45,87,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(9,45,87,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.information > *, .categories > * { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .information::after, .categories::after { background-size: 38px 38px; }
}
