:root {
  --ink: #18213a;
  --ink-soft: #273451;
  --paper: #f6f2e8;
  --white: #fffdf8;
  --gold: #c7a458;
  --gold-light: #e9d49b;
  --red: #7f2c2c;
  --text: #252525;
  --line: rgba(24, 33, 58, .18);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--sans); line-height: 1.85; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; transform: translateY(-180%); background: #fff; color: #000; padding: .6rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: .7rem clamp(1rem, 4vw, 4rem); color: var(--white); background: rgba(19, 28, 51, .96); border-bottom: 1px solid rgba(233, 212, 155, .35); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-size: .78rem; line-height: 1.35; letter-spacing: .04em; }
.brand strong { color: var(--gold-light); font-size: .9rem; }
.brand-cross { color: var(--gold); font-size: 1.75rem; }
nav { display: flex; gap: clamp(.8rem, 2.2vw, 2rem); }
nav a { color: #f4eddd; text-decoration: none; font-size: .84rem; font-weight: 700; }
nav a:hover, nav a:focus-visible { color: var(--gold-light); }

.hero { position: relative; min-height: calc(100svh - 78px); display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 37%; filter: saturate(.72) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 20, 39, .96) 0%, rgba(17, 26, 47, .84) 45%, rgba(17, 26, 47, .24) 75%, rgba(17, 26, 47, .34) 100%), linear-gradient(0deg, rgba(11, 17, 32, .75), transparent 50%); }
.hero-copy { position: relative; z-index: 2; width: min(58rem, 90vw); margin: 0 auto; padding: 5rem 28rem 4rem 0; }
.eyebrow, .kicker { margin: 0 0 .7rem; color: var(--gold-light); font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5.2vw, 5rem); font-weight: 500; line-height: 1.27; letter-spacing: .035em; text-shadow: 0 3px 22px rgba(0,0,0,.35); }
.hero h1 span { color: var(--gold-light); }
.hero-intro { max-width: 34rem; margin: 1.5rem 0 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.9; }
.event-board { position: absolute; z-index: 4; right: max(5vw, calc((100vw - 64rem) / 2)); top: 50%; transform: translateY(-45%); display: grid; grid-template-columns: 9rem minmax(15rem, 18rem); background: rgba(251, 248, 238, .97); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.34); border-top: 5px solid var(--gold); }
.event-date { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.8rem 1.2rem; color: var(--white); background: var(--ink-soft); text-align: center; }
.event-date .year { font-size: .9rem; letter-spacing: .2em; }
.event-date .date { font-family: Georgia, serif; font-size: 3.1rem; line-height: 1.2; }
.event-date .day { font-size: .8rem; font-weight: 700; }
.weather { margin-top: .8rem; padding: .16rem .6rem; border: 1px solid var(--gold); color: var(--gold-light); font-size: .7rem; }
.event-times { padding: 1.35rem 1.5rem; }
.time-row { display: grid; grid-template-columns: 4.9rem 1fr; gap: .65rem; align-items: start; padding: .55rem 0 .8rem; border-bottom: 1px solid var(--line); }
.time-row time { color: var(--red); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 700; line-height: 1.15; }
.time-row p { margin: 0; line-height: 1.45; }
.time-row strong { font-family: var(--serif); font-size: 1rem; }
.time-row span { font-size: .78rem; }
.venue { margin: .85rem 0 0; font-size: .8rem; font-weight: 700; }
.scroll-cue { position: absolute; z-index: 4; left: 5vw; bottom: 1.6rem; color: #fff; font-size: .8rem; text-underline-offset: .35rem; }

.materials-intro { background: #e9e0cf; }
.cover-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 1.2rem; align-items: start; }
.document-card { margin: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(38, 35, 28, .08); overflow: hidden; }
.document-card a { display: block; background: #f4efe4; }
.document-card img { width: 100%; object-fit: contain; }
.document-card.landscape img { aspect-ratio: 1.3 / 1; }
.document-card.portrait img { aspect-ratio: .78 / 1; }
.document-card figcaption, .history-documents figcaption, .pilgrimage-grid figcaption { display: grid; gap: .2rem; padding: 1rem 1.15rem 1.15rem; line-height: 1.55; }
.document-card figcaption strong, .history-documents figcaption strong, .pilgrimage-grid figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 1rem; }
.document-card figcaption span, .history-documents figcaption span, .pilgrimage-grid figcaption span { font-size: .8rem; }

.section { padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem); }
.section > * { max-width: 64rem; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 2.6rem; }
.section-number { margin: .1rem 0 0; min-width: 2.8rem; color: var(--gold); font-family: Georgia, serif; font-size: 1.15rem; border-top: 2px solid currentColor; }
.section-heading h2, .father h2, .access h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(1.8rem, 3.7vw, 3rem); font-weight: 500; line-height: 1.35; }
.section-heading .kicker { color: var(--red); }

.program { background: var(--paper); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.program-card { min-height: 24rem; padding: 2rem 1.7rem; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(38, 35, 28, .06); }
.program-card.featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.program-label { margin: 0 0 1.2rem; color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .18em; }
.featured .program-label { color: var(--gold-light); }
.program-card time { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; }
.program-card h3 { margin: 1.4rem 0 1rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; }
.program-card p, .program-card li { font-size: .92rem; }
.panel-mark { width: fit-content; margin: .4rem 0 1rem; padding: .55rem 1rem; background: var(--red); color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.panel-card ul { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.welcome { margin-top: 1.7rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: rgba(255,255,255,.55); font-family: var(--serif); }
.day-schedule { margin-top: 2rem; padding: 1.5rem; background: var(--white); border-top: 4px solid var(--red); }
.day-schedule h3 { margin: 0 0 1rem; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.day-schedule dl { margin: 0; }
.day-schedule dl div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.day-schedule dt { color: var(--red); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; }
.day-schedule dd { display: grid; grid-template-columns: minmax(8rem, .75fr) 1.25fr; gap: 1rem; margin: 0; }
.day-schedule dd strong { font-family: var(--serif); }
.day-schedule dd span { color: #625b50; font-size: .85rem; }
.flyer-wide { margin-top: 2rem; background: var(--white); border: 1px solid var(--line); }
.flyer-wide img { max-height: 72rem; object-fit: contain; background: #fff; }
.flyer-wide figcaption { padding: .7rem 1rem; color: #625b50; font-size: .78rem; text-align: center; }

.history { background: var(--ink); color: #eee9dc; }
.section-heading.light h2 { color: #fff; }
.history-intro { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.history-intro p { margin: 0; }
.history-intro .lead { color: var(--gold-light); font-family: var(--serif); font-size: 1.5rem; line-height: 1.7; }
.timeline { list-style: none; margin-top: 2.8rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.timeline li { position: relative; padding-top: 1.2rem; border-top: 1px solid rgba(233,212,155,.5); }
.timeline li::before { content: ""; position: absolute; top: -.35rem; left: 0; width: .65rem; height: .65rem; background: var(--gold); border-radius: 50%; }
.timeline span { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.45rem; }
.timeline strong { display: block; margin: .5rem 0; font-family: var(--serif); font-size: .95rem; }
.timeline p { margin: 0; color: #cbc7bc; font-size: .78rem; line-height: 1.7; }
.history-documents { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; margin-top: 3rem; }
.history-documents figure { margin: 0; color: var(--text); background: #f7f3e8; overflow: hidden; }
.history-documents a { display: block; background: #fff; }
.history-documents img { height: 28rem; object-fit: contain; }
.source-note { margin-top: 1rem; color: #bdb8ac; font-size: .75rem; text-align: right; }

.father { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 35rem); gap: clamp(2rem, 7vw, 6rem); justify-content: center; align-items: center; background: #e9e0cf; }
.portrait-frame { position: relative; margin: 0; padding: .75rem; border: 1px solid rgba(24,33,58,.35); }
.portrait-frame img { max-height: 34rem; object-fit: cover; filter: sepia(.16) contrast(1.05); }
.portrait-frame p { position: absolute; right: -1.2rem; bottom: 1.5rem; margin: 0; padding: .35rem .8rem; color: #fff; background: var(--red); font-family: Georgia, serif; letter-spacing: .08em; }
.father-copy { margin: 0; }
.father-copy .kicker { color: var(--red); }
.father-copy .latin { margin-top: .3rem; color: #625b50; font-family: Georgia, serif; font-style: italic; }
.father-copy p { max-width: 35rem; }

.highlights { background: var(--white); }
.photo-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; }
.photo-grid figure { margin: 0; background: var(--paper); overflow: hidden; }
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid img { height: 18rem; object-fit: cover; filter: saturate(.82); }
.photo-grid .photo-large img { height: 45rem; object-position: 50% 28%; }
.photo-grid figcaption { display: grid; gap: .2rem; padding: .9rem 1rem 1rem; line-height: 1.55; }
.photo-grid figcaption strong { color: var(--ink); font-family: var(--serif); }
.photo-grid figcaption span { font-size: .8rem; }
.pilgrimage-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; margin-top: 1.2rem; }
.pilgrimage-grid figure { margin: 0; background: var(--paper); overflow: hidden; }
.map-figure img { height: 42rem; object-fit: contain; background: #f8f8f6; }
.kannon-group { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 1rem; padding: 1rem; background: var(--ink); }
.kannon-group figure { background: #fff; }
.kannon-group img { height: 27rem; object-fit: contain; }
.kannon-copy { grid-column: 1 / -1; padding: 1rem 1.15rem 1.2rem; color: #e9e4d7; }
.kannon-copy h3 { margin: 0; color: #fff; font-family: var(--serif); font-size: 1.5rem; }
.kannon-copy p:last-child { margin-bottom: 0; font-size: .9rem; }

.access { max-width: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; }
.access > * { max-width: none; margin: 0; }
.access-photo { min-height: 38rem; }
.access-photo img { height: 100%; object-fit: cover; }
.access-panel { padding: clamp(3rem, 7vw, 6rem); align-self: center; }
.access-panel h2 { color: #fff; }
.access-panel address { margin: 1.3rem 0; color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; font-style: normal; }
.access-panel dl { margin: 1.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.access-panel dl div { display: grid; grid-template-columns: 4rem 1fr; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.access-panel dt { color: var(--gold-light); font-weight: 700; }
.access-panel dd { margin: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-block; min-width: 9rem; padding: .75rem 1.2rem; text-align: center; text-decoration: none; font-weight: 700; border: 1px solid var(--gold); }
.button.gold { background: var(--gold); color: var(--ink); }
.button.line { color: var(--gold-light); }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.travel-note { margin: 1rem 0 1.4rem; padding: 1rem; color: var(--ink); background: var(--gold-light); }
.travel-note strong { font-family: var(--serif); }
.travel-note p { margin: .35rem 0 0; font-size: .84rem; line-height: 1.65; }
.parking-note { margin: 1rem 0 .6rem; color: #cbc7bc; font-size: .76rem; line-height: 1.6; }
.church-link { color: var(--gold-light); font-size: .82rem; text-underline-offset: .25rem; }

.organizers { background: var(--paper); }
.section-heading.compact { margin-bottom: 1.8rem; }
.org-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.org-grid > div { padding: 1.5rem; background: var(--white); border-left: 4px solid var(--gold); }
.org-grid p { margin: 0 0 .4rem; color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .15em; }
.org-grid strong { color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }

.download-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.4rem clamp(1rem, 5vw, 4rem); color: #fff; background: var(--ink-soft); border-top: 1px solid rgba(233, 212, 155, .35); }
.download-band > div { max-width: 45rem; }
.download-band .kicker { margin-bottom: .2rem; }
.download-band h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 500; }
.download-band p:last-child { margin: .45rem 0 0; color: #d9d6ce; font-size: .88rem; }
.download-button { flex: 0 0 auto; min-width: 13rem; }

footer { padding: 3rem 1rem; color: #d9d6ce; background: #10172a; text-align: center; }
footer p { margin: .25rem 0; }
.footer-cross { color: var(--gold); font-size: 2rem; }
.copyright { margin-top: 1.3rem; color: #999; font-size: .75rem; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero-copy { width: min(90vw, 46rem); padding: 3rem 0 20rem; }
  .event-board { left: 5vw; right: auto; top: auto; bottom: 4.4rem; transform: none; }
  .scroll-cue { display: none; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .panel-card { grid-column: 1 / -1; min-height: auto; }
  .history-intro { grid-template-columns: 1fr 1fr; }
  .history-intro .lead { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  html { font-size: 17px; }
  .site-header { position: static; display: block; min-height: 0; padding: .7rem 1rem .5rem; }
  .brand { justify-content: center; }
  nav { margin-top: .65rem; padding-top: .5rem; justify-content: space-between; gap: .45rem; border-top: 1px solid rgba(255,255,255,.16); overflow-x: auto; }
  nav a { font-size: .74rem; white-space: nowrap; }
  .hero { min-height: 48rem; padding: 0; align-items: start; }
  .hero-image { object-position: 57% 35%; }
  .hero-shade { background: linear-gradient(180deg, rgba(11,18,35,.89) 0%, rgba(11,18,35,.70) 50%, rgba(11,18,35,.91) 100%); }
  .hero-copy { width: auto; margin: 0; padding: 3rem 1rem 0; text-align: center; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .hero-intro { display: none; }
  .event-board { left: 1rem; right: 1rem; bottom: 1.25rem; grid-template-columns: 7.3rem 1fr; }
  .event-date { padding: 1rem .65rem; }
  .event-date .date { font-size: 2.5rem; }
  .event-times { padding: .8rem .9rem; }
  .time-row { grid-template-columns: 4.2rem 1fr; padding: .4rem 0 .55rem; }
  .time-row time { font-size: 1.45rem; }
  .time-row strong { font-size: .9rem; }
  .venue { font-size: .72rem; }
  .section { padding: 3.6rem 1rem; }
  .section-heading { gap: .8rem; margin-bottom: 2rem; }
  .section-number { min-width: 2.2rem; }
  .program-grid, .history-intro, .timeline, .photo-grid, .org-grid, .cover-grid, .history-documents, .pilgrimage-grid { grid-template-columns: 1fr; }
  .program-card { min-height: auto; }
  .panel-card { grid-column: auto; }
  .history-intro .lead { grid-column: auto; }
  .timeline { gap: 1.5rem; }
  .father { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait-frame { width: min(18rem, 88vw); }
  .photo-grid figure:first-child { grid-row: auto; }
  .photo-grid .photo-large img, .photo-grid img { height: 22rem; }
  .document-card.landscape img, .document-card.portrait img { aspect-ratio: auto; max-height: 34rem; }
  .day-schedule dl div, .day-schedule dd { grid-template-columns: 1fr; gap: .15rem; }
  .day-schedule dt { font-size: 1rem; }
  .history-documents img, .map-figure img { height: auto; max-height: 34rem; }
  .kannon-group { grid-template-columns: 1fr; }
  .kannon-group img { height: 25rem; }
  .kannon-copy { grid-column: auto; }
  .access { grid-template-columns: 1fr; }
  .access-photo { min-height: 17rem; }
  .access-panel { padding: 3rem 1rem; }
  .button { flex: 1; min-width: 11rem; }
  .download-band { display: grid; text-align: center; }
  .download-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
