/*
 * 03 — 花夢 / Hanayume
 * A quiet, ceremonial visual language built from white paper, pale sakura pink,
 * and Shirakuni's deep beni. Loaded after base.css so this file only defines
 * the theme and its layout treatment.
 */
:root {
  --hy-paper: #fffdfd;
  --hy-white: #ffffff;
  --hy-pink: #f7dade;
  --hy-pink-soft: #fdf3f4;
  --hy-pink-deep: #edc4cc;
  --hy-beni: #64141e;
  --hy-beni-soft: rgba(100, 20, 30, .18);
  --hy-beni-faint: rgba(100, 20, 30, .08);
  --hy-serif: "Noto Serif JP", "Yu Mincho", serif;
  --hy-round: "Kiwi Maru", "Yu Gothic", sans-serif;
  --hy-content: 1180px;
  --hy-gutter: clamp(22px, 6vw, 92px);
  --hy-shadow: 0 22px 70px rgba(100, 20, 30, .09);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--hy-beni);
  background: var(--hy-paper);
  font-family: var(--hy-round);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 4% 16%, rgba(247, 218, 222, .32), transparent 29rem),
    radial-gradient(ellipse at 97% 58%, rgba(247, 218, 222, .24), transparent 30rem);
}
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--hy-beni); outline-offset: 5px; }
::selection { color: var(--hy-white); background: var(--hy-beni); }

.skip {
  position: fixed; z-index: 200; top: 10px; left: 10px;
  padding: .65rem 1rem; transform: translateY(-160%);
  color: var(--hy-white); background: var(--hy-beni);
}
.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 100; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 82px; padding: 10px var(--hy-gutter);
  border-bottom: 1px solid rgba(100, 20, 30, .09);
  background: rgba(255, 253, 253, .94);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  display: grid; width: 42px; aspect-ratio: 1; place-items: center;
  border: 1px solid var(--hy-beni); border-radius: 50%;
  font-family: var(--hy-serif); font-size: 20px;
}
.brand-text { display: grid; line-height: 1.25; }
.brand-text small { font-size: 10px; letter-spacing: .16em; }
.brand-text strong { font-family: var(--hy-serif); font-size: 21px; font-weight: 500; letter-spacing: .08em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.desktop-nav a, .site-footer nav a {
  position: relative; text-decoration: none; font-size: 12px; letter-spacing: .1em;
}
.desktop-nav a::after, .site-footer nav a::after {
  position: absolute; right: 0; bottom: -7px; left: 0; height: 1px;
  background: var(--hy-beni); content: ""; transform: scaleX(0); transform-origin: right;
  transition: transform .28s ease;
}
.desktop-nav a:hover::after, .site-footer nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-contact {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 15px;
  border: 1px solid var(--hy-beni); border-radius: 99px; text-decoration: none;
  font-size: 11px; letter-spacing: .08em; transition: color .2s, background .2s;
}
.header-contact:hover { color: var(--hy-white); background: var(--hy-beni); }
.mobile-nav { display: none; }

.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  align-items: center; gap: clamp(30px, 6vw, 92px); min-height: min(760px, calc(100svh - 82px));
  max-width: 1600px; margin: 0 auto; padding: 82px var(--hy-gutter) 112px;
  overflow: hidden;
}
.hero::before {
  position: absolute; z-index: -1; top: 8%; left: 42%; width: min(48vw, 620px); aspect-ratio: 1;
  border: 1px solid rgba(100, 20, 30, .1); border-radius: 50%; content: "";
  box-shadow: 0 0 0 34px rgba(247, 218, 222, .16), 0 0 0 88px rgba(100, 20, 30, .035);
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; padding: 20px 0; }
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 13px; margin: 0 0 20px;
  color: var(--hy-beni); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow .line { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.hero-prelude { margin: 0 0 22px; font-size: 13px; letter-spacing: .14em; }
.hero h1 {
  margin: 0; font-family: var(--hy-serif); font-size: clamp(34px, 4.15vw, 61px);
  font-weight: 400; line-height: 1.55; letter-spacing: .08em;
}
.hero h1 em { font-style: normal; }
.hero h1 > span { display: block; margin-top: 7px; font-size: .42em; letter-spacing: .42em; }
.hero-description { margin: 25px 0 0; font-size: 14px; line-height: 2.15; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 26px;
  min-height: 52px; padding: 12px 21px; border: 1px solid var(--hy-beni);
  text-decoration: none; font-size: 12px; letter-spacing: .08em; transition: .25s ease;
}
.button.primary { color: var(--hy-white); background: var(--hy-beni); }
.button.primary:hover { color: var(--hy-beni); background: var(--hy-white); }
.text-link { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-size: 12px; }
.text-link span, .button span, .header-contact span { transition: transform .2s ease; }
.text-link:hover span, .button:hover span, .header-contact:hover span { transform: translate(3px, -2px); }
.hero-visual { position: relative; min-width: 0; padding: 30px 22px 34px 34px; }
.hero-visual::before {
  position: absolute; z-index: 0; top: 0; right: 2%; width: 86%; height: 92%;
  border: 1px solid rgba(100, 20, 30, .24); border-radius: 49% 51% 47% 53% / 47% 44% 56% 53%;
  content: ""; transform: rotate(-8deg);
}
.hero-visual::after {
  position: absolute; z-index: 0; right: 0; bottom: 3%; width: 37%; height: 32%;
  border: 1px solid rgba(100, 20, 30, .16); border-radius: 50%; content: "";
  transform: rotate(28deg);
}
.hero-photo {
  position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1.13 / 1;
  border-radius: 48% 48% 4px 4px; background: var(--hy-pink);
  box-shadow: var(--hy-shadow);
}
.hero-photo::after {
  position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.65); border-radius: inherit;
  content: ""; pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.42); transform-origin: center bottom; }
.hero-stamp {
  position: absolute; z-index: 2; right: -1%; bottom: 8%; display: grid; width: 76px; aspect-ratio: 1;
  place-content: center; border: 1px solid var(--hy-beni); border-radius: 50%;
  color: var(--hy-beni); background: var(--hy-paper); font-family: var(--hy-serif); line-height: 1.3;
  text-align: center; box-shadow: 0 0 0 8px rgba(255,253,253,.72);
}
.hero-caption { position: absolute; z-index: 2; bottom: 3px; left: 34px; font-size: 8px; letter-spacing: .2em; }
.scroll-cue {
  position: absolute; bottom: 31px; left: var(--hy-gutter); display: flex; align-items: center; gap: 16px;
  text-decoration: none; font-size: 9px; letter-spacing: .22em;
}
.scroll-cue span { display: grid; width: 26px; aspect-ratio: 1; place-items: center; border: 1px solid var(--hy-beni-soft); border-radius: 50%; }

.quick-info {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--hy-content); margin: -1px auto 0; padding: 30px var(--hy-gutter);
  border-top: 1px solid var(--hy-beni-soft); border-bottom: 1px solid var(--hy-beni-soft);
  background: rgba(255,255,255,.72);
}
.quick-info > div { display: grid; align-content: center; gap: 7px; padding: 2px 30px; border-right: 1px solid var(--hy-beni-faint); }
.quick-info > div:first-child { padding-left: 0; }
.quick-info > div:last-child { border-right: 0; }
.quick-label { font-size: 14px; letter-spacing: .1em; }
.quick-info strong { font-family: var(--hy-serif); font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: .035em; line-height: 1.5; }
.quick-info small { font-size: 13px; line-height: 1.5; }

.section { position: relative; padding: clamp(76px, 10vw, 142px) var(--hy-gutter); }
.section > * { max-width: var(--hy-content); margin-right: auto; margin-left: auto; }
.section-heading { margin-bottom: clamp(34px, 5vw, 64px); }
.section-kicker { margin-bottom: 9px; }
.section-heading h2, .contact-section h2 {
  margin: 0; font-family: var(--hy-serif); font-size: clamp(30px, 4vw, 48px);
  font-weight: 400; letter-spacing: .16em; line-height: 1.5;
}
.section-heading > p:last-child { margin: 10px 0 0; font-size: 13px; }
.notice-section { background: linear-gradient(180deg, var(--hy-pink-soft), rgba(253,243,244,0)); }
.notice-main { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 7vw, 92px); }
.notice-row { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 25px 0; border-top: 1px solid var(--hy-beni-soft); }
.notice-number { padding-top: 2px; font-family: var(--hy-serif); font-size: 12px; letter-spacing: .1em; }
.notice-row h3 { margin: 0 0 8px; font-family: var(--hy-serif); font-size: 18px; font-weight: 500; letter-spacing: .07em; }
.notice-row p { margin: 0; font-size: 13px; line-height: 2; }
.notice-text > .text-link { margin: 17px 0 0 60px; }
.notice-image { position: relative; margin: 0; padding: 13px; border: 1px solid var(--hy-beni-soft); border-radius: 46% 46% 4px 4px; background: var(--hy-white); }
.notice-image img { width: 100%; max-height: 460px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 44% 44% 2px 2px; }
.notice-image figcaption { padding: 9px 5px 0; font-size: 9px; }

.history-section { overflow: hidden; }
.history-section::before {
  position: absolute; top: 7%; right: -9%; width: 38vw; aspect-ratio: 1;
  border: 1px solid var(--hy-beni-faint); border-radius: 50%; content: "";
  box-shadow: 0 0 0 35px rgba(247,218,222,.17), 0 0 0 85px rgba(100,20,30,.025);
  pointer-events: none;
}
.history-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 9vw, 130px); }
.history-lead { position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 25px 0; }
.outline-word { position: absolute; top: 0; left: 0; color: transparent; -webkit-text-stroke: 1px rgba(100,20,30,.26); font-family: var(--hy-serif); font-size: clamp(86px, 12vw, 170px); line-height: 1; letter-spacing: .08em; }
.history-lead p { position: relative; max-width: 320px; margin: 0; padding: 23px 0 0 22px; border-left: 1px solid var(--hy-beni); font-family: var(--hy-serif); font-size: 15px; line-height: 2.2; }
.history-body h3 { margin: 0 0 15px; font-family: var(--hy-serif); font-size: 14px; font-weight: 500; letter-spacing: .14em; }
.deities { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.deities li { padding-bottom: 11px; border-bottom: 1px solid var(--hy-beni-faint); font-family: var(--hy-serif); font-size: 18px; }
.deities rt { font-family: var(--hy-round); font-size: 9px; }
.deities small { font-family: var(--hy-round); font-size: 11px; }
.story-text { padding-left: 20px; border-left: 1px solid var(--hy-pink-deep); }
.story-text p { margin: 0 0 16px; font-size: 13px; line-height: 2.15; }

.festivals-section { background: var(--hy-pink-soft); }
.festival-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--hy-beni-soft); border-bottom: 1px solid var(--hy-beni-soft); }
.festival-list > div { display:block; min-height: 168px; padding: 24px 15px; border-right: 1px solid var(--hy-beni-faint); }
.festival-list > div:first-child { border-left: 1px solid var(--hy-beni-faint); }
.festival-list time { display: block; min-height: 38px; font-size: 10px; line-height: 1.7; }
.festival-list h3 { margin: 14px 0 3px; font-family: var(--hy-serif); font-size: 19px; font-weight: 500; }
.festival-list h3 small { font-family: var(--hy-round); font-size: 10px; font-weight: 400; }
.festival-list span { font-size: 10px; }
.calendar-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; align-items: start; margin-top: 54px; }
.calendar-wrap h3 { margin: 0; font-family: var(--hy-serif); font-size: 18px; font-weight: 500; }
.calendar-wrap p { margin: 8px 0 0; font-size: 12px; }
.calendar-wrap iframe { width: 100%; min-height: 430px; border: 1px solid var(--hy-beni-faint); background: var(--hy-white); }

.prayer-section { background: var(--hy-paper); }
.prayer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prayer-card { padding: clamp(25px, 4vw, 48px); border: 1px solid var(--hy-beni-soft); background: rgba(255,255,255,.68); }
.card-index { display: inline-flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: .16em; }
.card-index::after { display: inline-block; width: 32px; height: 1px; background: var(--hy-pink-deep); content: ""; }
.prayer-card h3 { margin: 12px 0 15px; font-family: var(--hy-serif); font-size: 25px; font-weight: 500; letter-spacing: .12em; }
.prayer-card > p { margin: 0 0 17px; font-size: 13px; }
.info-pair { display: flex; justify-content: space-between; gap: 15px; margin: 22px 0; padding: 12px 0; border-top: 1px solid var(--hy-beni-faint); border-bottom: 1px solid var(--hy-beni-faint); font-size: 12px; }
.info-pair strong { font-weight: 500; }
.prayer-card .small-note { margin: 10px 0 0; font-size: 11px; line-height: 1.9; }
.fees { display: grid; grid-template-columns: .65fr 1.35fr; gap: 35px; margin-top: 28px; padding: 30px clamp(22px, 4vw, 46px); background: var(--hy-pink-soft); }
.fees h3 { margin: 0; font-family: var(--hy-serif); font-size: 18px; font-weight: 500; }
.fees > div p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--hy-beni-faint); font-size: 12px; }
.fees > div strong { flex: 0 0 auto; font-family: var(--hy-serif); font-weight: 500; }
.fees > small { grid-column: 2; font-size: 10px; }

.goshuin-section { background: linear-gradient(180deg, var(--hy-pink-soft), var(--hy-paper)); }
.goshuin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.goshuin-grid figure { margin: 0; min-width: 0; }
.goshuin-grid figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--hy-pink); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.goshuin-grid figure:hover img { transform: translateY(-5px); }
.goshuin-grid figcaption { display: grid; gap: 3px; padding: 12px 1px; }
.goshuin-grid figcaption strong { font-family: var(--hy-serif); font-size: 14px; font-weight: 500; }
.goshuin-grid figcaption span { font-size: 11px; }

.access-section { overflow: hidden; background: var(--hy-pink-soft); }
.access-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(32px, 7vw, 84px); align-items: stretch; }
.access-text h3 { margin: 0 0 12px; font-family: var(--hy-serif); font-size: 22px; font-weight: 500; letter-spacing: .1em; }
.access-text address { margin-bottom: 26px; font-size: 13px; font-style: normal; line-height: 2; }
.route { margin: 18px 0; padding-top: 15px; border-top: 1px solid var(--hy-beni-faint); }
.route h4 { margin: 0 0 5px; font-size: 12px; font-weight: 500; }
.route p { margin: 0; font-size: 12px; line-height: 1.9; }
.access-text .button { margin-top: 15px; }
.map-wrap { min-height: 400px; border: 10px solid var(--hy-white); box-shadow: var(--hy-shadow); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: none; }

.contact-section {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center;
  padding: clamp(65px, 9vw, 116px) var(--hy-gutter); overflow: hidden; color: var(--hy-white); background: var(--hy-beni);
}
.contact-section::before, .contact-section::after { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ""; pointer-events: none; }
.contact-section::before { top: -70%; left: 42%; width: 48vw; aspect-ratio: 1; box-shadow: 0 0 0 36px rgba(255,255,255,.035), 0 0 0 95px rgba(255,255,255,.025); }
.contact-section::after { right: 4%; bottom: -58%; width: 28vw; aspect-ratio: 1; }
.contact-section > div { position: relative; z-index: 1; }
.contact-section .section-kicker { color: var(--hy-pink); }
.contact-section h2 { font-size: clamp(25px, 3vw, 38px); }
.contact-section p:not(.section-kicker) { max-width: 440px; margin: 14px 0 0; font-size: 12px; }
.contact-links { display: grid; }
.contact-links a { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.35); text-decoration: none; }
.contact-links a:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-links small { grid-column: 1; color: var(--hy-pink); font-size: 10px; }
.contact-links strong { font-size: clamp(14px, 1.5vw, 19px); font-weight: 400; letter-spacing: .04em; overflow-wrap: anywhere; }
.contact-links span { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; padding: 30px var(--hy-gutter) 24px; color: var(--hy-beni); background: var(--hy-paper); }
.site-footer > div { display: grid; gap: 2px; }
.site-footer > div strong { font-family: var(--hy-serif); font-size: 18px; font-weight: 500; }
.site-footer > div span { font-size: 9px; letter-spacing: .08em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { font-size: 10px; }
.site-footer > small { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--hy-beni-faint); font-size: 9px; text-align: center; }

@media (max-width: 900px) {
  :root { --hy-gutter: clamp(22px, 5vw, 48px); }
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 10px; }
  .header-contact { padding: 8px 11px; font-size: 10px; }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 24px; min-height: 640px; }
  .hero-visual { padding-left: 10px; }
  .hero-caption { left: 10px; }
  .quick-info > div { padding-right: 14px; padding-left: 14px; }
  .festival-list > div { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 68px; padding: 8px 20px; }
  .brand-mark { width: 36px; font-size: 17px; }
  .brand-text strong { font-size: 18px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { cursor: pointer; list-style: none; padding: 8px 0 8px 14px; font-size: 12px; letter-spacing: .1em; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { margin-left: 7px; }
  .mobile-nav nav { position: absolute; top: calc(100% + 12px); right: -10px; display: grid; width: min(82vw, 320px); padding: 10px 18px; border: 1px solid var(--hy-beni-soft); background: var(--hy-paper); box-shadow: var(--hy-shadow); }
  .mobile-nav nav a { padding: 10px 0; border-bottom: 1px solid var(--hy-beni-faint); text-decoration: none; font-size: 13px; }
  .mobile-nav nav a:last-child { border: 0; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: auto; padding: 58px 23px 82px; }
  .hero::before { top: 34%; left: 20%; width: 82vw; }
  .hero-copy { max-width: 100%; padding: 0; }
  .hero h1 { font-size: clamp(34px, 9vw, 49px); }
  .hero-prelude { margin-bottom: 13px; font-size: 11px; }
  .hero-description { margin-top: 15px; font-size: 12px; }
  .hero-actions { gap: 15px; margin-top: 23px; }
  .button { min-height: 47px; padding: 10px 15px; gap: 16px; font-size: 11px; }
  .text-link { font-size: 11px; }
  .hero-visual { width: min(100%, 490px); align-self: center; padding: 19px 18px 29px 9px; }
  .hero-photo { aspect-ratio: 1.08 / 1; }
  .hero-stamp { right: -2px; bottom: 7%; width: 62px; font-size: 14px; }
  .hero-caption { left: 9px; bottom: 0; font-size: 7px; }
  .scroll-cue { bottom: 20px; left: 23px; }
  .quick-info { grid-template-columns: 1fr; padding: 8px 23px; }
  .quick-info > div { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--hy-beni-faint); }
  .quick-info > div:first-child { padding-left: 0; }
  .quick-info > div:last-child { border-bottom: 0; }
  .quick-info strong { font-size: 22px; }
  .section { padding: 76px 22px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p:last-child { font-size: 12px; }
  .notice-main, .history-layout, .calendar-wrap, .access-layout { grid-template-columns: 1fr; gap: 34px; }
  .notice-row { grid-template-columns: 30px 1fr; gap: 12px; padding: 19px 0; }
  .notice-row h3 { font-size: 16px; }
  .notice-row p { font-size: 12px; }
  .notice-text > .text-link { margin-left: 42px; }
  .notice-image { width: min(100%, 390px); justify-self: center; }
  .history-section::before { top: 4%; right: -35%; width: 75vw; }
  .history-lead { min-height: 260px; }
  .outline-word { font-size: 108px; }
  .history-lead p { max-width: 100%; font-size: 14px; }
  .story-text { padding-left: 14px; }
  .story-text p { font-size: 12px; }
  .festival-list { grid-template-columns: 1fr; border-bottom: 0; }
  .festival-list > div, .festival-list > div:first-child { display: grid; grid-template-columns: minmax(105px, .8fr) 1fr; align-items: baseline; gap: 3px 15px; min-height: auto; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--hy-beni-faint); }
  .festival-list time { grid-row: 1 / span 2; min-height: auto; }
  .festival-list h3 { margin: 0; font-size: 17px; }
  .festival-list span { grid-column: 2; }
  .calendar-wrap { margin-top: 38px; }
  .calendar-wrap iframe { min-height: 440px; }
  .prayer-grid { grid-template-columns: 1fr; }
  .prayer-card { padding: 25px 21px; }
  .prayer-card h3 { font-size: 22px; }
  .fees { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .fees > small { grid-column: 1; }
  .fees > div p { font-size: 11px; }
  .goshuin-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .goshuin-grid figcaption strong { font-size: 12px; }
  .goshuin-grid figcaption span { font-size: 10px; }
  .access-layout { gap: 28px; }
  .map-wrap { min-height: 310px; border-width: 7px; }
  .map-wrap iframe { min-height: 296px; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; padding: 66px 23px; }
  .contact-section::before { top: -32%; left: 36%; width: 85vw; }
  .contact-section::after { width: 55vw; }
  .contact-links strong { font-size: 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 26px 23px 18px; }
  .site-footer nav { gap: 12px 18px; }
  .site-footer > small { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 夜明け前の社殿を思わせる、提案03固有のファーストビュー */
body.hanayume .hero{max-width:none;background:#64141e;color:#fffaf8}
body.hanayume .hero::before{z-index:0;border-color:rgba(255,250,248,.23);box-shadow:0 0 0 34px rgba(247,218,222,.08),0 0 0 88px rgba(247,218,222,.035)}
body.hanayume .hero .eyebrow{color:#f7dade}
body.hanayume .hero-visual::before,body.hanayume .hero-visual::after{border-color:rgba(255,250,248,.4)}
body.hanayume .hero .button.primary{color:#64141e;background:#fffaf8;border-color:#fffaf8}
body.hanayume .hero .button.primary:hover{color:#fffaf8;background:transparent}
body.hanayume .hero .text-link,body.hanayume .hero .scroll-cue{color:#fffaf8}
body.hanayume .hero .hero-caption{color:#fffaf8;text-shadow:0 1px 4px #64141e}

/* 03 refinement: a clear reading rhythm around the existing page contents. */
body.hanayume main { counter-reset: chapter; }
body.hanayume .section { counter-increment: chapter; }
body.hanayume .section-heading { position: relative; padding-left: clamp(48px, 5vw, 74px); }
body.hanayume .section-heading::before {
  content: "0" counter(chapter);
  position: absolute; top: 4px; left: 0;
  color: var(--hy-beni); font-family: var(--hy-serif); font-size: 14px;
  letter-spacing: .12em;
}
body.hanayume .section-heading::after {
  content: ""; position: absolute; top: 39px; left: 0; width: 31px; height: 1px;
  background: var(--hy-beni-soft);
}
body.hanayume .section-heading > p:last-child { font-size: 15px; line-height: 1.8; }
body.hanayume .section-kicker { font-size: 11px; letter-spacing: .18em; }
body.hanayume .notice-row p,
body.hanayume .story-text p,
body.hanayume .prayer-card > p,
body.hanayume .access-text address,
body.hanayume .route p { font-size: 15px; line-height: 1.95; }
body.hanayume .prayer-card .small-note,
body.hanayume .fees > small { font-size: 13px; line-height: 1.9; }

/* The notice images follow their order on the current website. */
body.hanayume .notice-section {
  background: linear-gradient(180deg, #f8e8e9 0%, #fffafa 75%, var(--hy-paper) 100%);
}
body.hanayume .notice-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(35px, 6vw, 88px); }
body.hanayume .notice-showcase { min-width: 0; }
body.hanayume .notice-showcase-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 12px; font-family: var(--hy-serif); font-size: 14px; letter-spacing: .1em;
}
body.hanayume .notice-showcase-head span:last-child { font-family: var(--hy-round); font-size: 11px; letter-spacing: .18em; }
body.hanayume .notice-text { padding-top: 28px; }
body.hanayume .notice-row { grid-template-columns: 38px 1fr; gap: 17px; padding: 25px 0 29px; }
body.hanayume .notice-row h3 { font-size: 20px; }
body.hanayume .notice-number { font-size: 14px; }
body.hanayume .notice-text > .text-link { margin-left: 55px; font-size: 14px; }

body.hanayume .calendar-section { padding-top: 84px; padding-bottom: 98px; background: var(--hy-paper); }
body.hanayume .calendar-section .section-heading { margin-bottom: 30px; }
body.hanayume .calendar-wrap { display: block; margin-top: 0; }
body.hanayume .calendar-wrap > div { display: none; }
body.hanayume .calendar-wrap iframe { display: block; width: 100%; min-height: 540px; border: 1px solid var(--hy-beni-soft); box-shadow: 16px 16px 0 var(--hy-pink-soft); }

body.hanayume .history-section { background: #fffafa; }
body.hanayume .history-lead p { font-size: 18px; line-height: 2.1; }
body.hanayume .deities li { font-size: 21px; }
body.hanayume .festival-list { border: 0; gap: 1px; background: var(--hy-beni-faint); }
body.hanayume .festival-list > div,
body.hanayume .festival-list > div:first-child { position: relative; min-height: 214px; padding: 52px 18px 28px; border: 0; background: #fffafa; }
body.hanayume .festival-list > div::before { content: ""; position: absolute; top: 24px; left: 18px; width: 13px; height: 13px; border: 1px solid var(--hy-beni); border-radius: 50%; background: var(--hy-pink-soft); }
body.hanayume .festival-list time { min-height: 40px; font-size: 12px; }
body.hanayume .festival-list h3 { font-size: 21px; }
body.hanayume .festival-list span { font-size: 12px; line-height: 1.6; }
body.hanayume .prayer-grid { gap: 0; }
body.hanayume .prayer-card { position: relative; min-height: 485px; padding: clamp(30px, 4vw, 56px); }
body.hanayume .prayer-card:first-child { color: #fffaf8; background: var(--hy-beni); }
body.hanayume .prayer-card:first-child .card-index::after { background: rgba(255,255,255,.55); }
body.hanayume .prayer-card:first-child .info-pair { border-color: rgba(255,255,255,.28); }
body.hanayume .prayer-card:first-child .small-note { color: #fff0ee; }
body.hanayume .prayer-card:nth-child(2) { background: #fffafa; }
body.hanayume .prayer-card h3 { font-size: 30px; }
body.hanayume .fees { margin-top: 0; padding-top: 44px; padding-bottom: 44px; }
body.hanayume .fees > div p { font-size: 14px; }
body.hanayume .goshuin-grid figure { padding: 12px; background: #fff; border: 1px solid var(--hy-beni-faint); }
body.hanayume .goshuin-grid figure img { aspect-ratio: 4 / 5; object-fit: contain; background: var(--hy-pink-soft); }
body.hanayume .goshuin-grid figcaption { padding: 14px 3px 4px; }
body.hanayume .goshuin-grid figcaption strong { font-size: 16px; }
body.hanayume .goshuin-grid figcaption span { font-size: 13px; }
body.hanayume .goshuin-note { margin-top: 25px; font-size: 14px; }
body.hanayume .route h4 { font-size: 15px; }

@media (max-width: 900px) {
  body.hanayume .notice-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  body.hanayume .festival-list { grid-template-columns: repeat(3, 1fr); }
  body.hanayume .prayer-grid { grid-template-columns: 1fr; }
  body.hanayume .prayer-card { min-height: 0; }
}
@media (max-width: 680px) {
  body.hanayume .section { padding-top: 82px; padding-bottom: 82px; }
  body.hanayume .section-heading { padding-left: 47px; }
  body.hanayume .section-heading > p:last-child { font-size: 14px; }
  body.hanayume .notice-main { grid-template-columns: 1fr; gap: 29px; }
  body.hanayume .notice-showcase-head { font-size: 12px; }
  body.hanayume .notice-text { padding-top: 5px; }
  body.hanayume .notice-row p,
  body.hanayume .story-text p,
  body.hanayume .prayer-card > p,
  body.hanayume .access-text address,
  body.hanayume .route p { font-size: 14px; }
  body.hanayume .notice-row h3 { font-size: 17px; }
  body.hanayume .notice-text > .text-link { margin-left: 42px; }
  body.hanayume .calendar-wrap iframe { min-height: 460px; box-shadow: 9px 9px 0 var(--hy-pink-soft); }
  body.hanayume .history-lead p { font-size: 16px; }
  body.hanayume .festival-list { grid-template-columns: 1fr; }
  body.hanayume .festival-list > div,
  body.hanayume .festival-list > div:first-child { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 0; gap: 0 18px; padding: 24px 14px 23px 35px; }
  body.hanayume .festival-list > div::before { top: 29px; left: 10px; width: 10px; height: 10px; }
  body.hanayume .festival-list time { grid-row: 1 / span 2; min-height: 0; font-size: 11px; }
  body.hanayume .festival-list h3 { font-size: 18px; }
  body.hanayume .festival-list span { font-size: 11px; }
  body.hanayume .prayer-grid { gap: 0; }
  body.hanayume .prayer-card { min-height: 0; padding: 31px 24px; }
  body.hanayume .fees > div p { font-size: 13px; }
  body.hanayume .fees > small { font-size: 12px; }
  body.hanayume .goshuin-grid figure { padding: 7px; }
  body.hanayume .goshuin-grid figcaption strong { font-size: 13px; }
  body.hanayume .goshuin-grid figcaption span { font-size: 11px; }
}

/* Follow-up revisions based on the shrine's current page and crest. */
body.hanayume .brand-mark {
  width: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border-color: var(--hy-beni);
  border-radius: 50%;
  background: var(--hy-beni);
}
body.hanayume .brand-mark img { width: 83%; height: 83%; object-fit: contain; }
body.hanayume .hero { padding-bottom: 82px; }
body.hanayume .hero h1 { font-size: clamp(23px, 2.35vw, 34px); line-height: 1.55; }
body.hanayume .hero h1 > span {
  margin-top: 16px; font-size: clamp(48px, 5.5vw, 82px); line-height: 1.25;
  letter-spacing: .16em; white-space: nowrap;
}
body.hanayume .hero-prelude { font-size: 14px; line-height: 1.8; letter-spacing: .06em; }

body.hanayume .notice-main { display: flex; flex-direction: column; gap: 54px; }
body.hanayume .notice-text {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 76px); width: 100%; padding-top: 0;
}
body.hanayume .notice-row { margin: 0; }
body.hanayume .notice-text > .text-link { grid-column: 1 / -1; justify-self: end; margin: 6px 0 0; }
body.hanayume .notice-showcase { width: 100%; }
body.hanayume .notice-showcase-head { margin-bottom: 18px; font-size: clamp(18px, 2vw, 26px); }
body.hanayume .notice-showcase-head span:last-child { font-size: 12px; }

body.hanayume .history-layout { display: block; }
body.hanayume .history-deities {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  align-items: start; padding: 28px 0;
}
body.hanayume .history-deities h3 {
  margin: 0; font-family: var(--hy-serif); font-size: clamp(25px, 2.4vw, 29px);
  font-weight: 500; letter-spacing: .12em;
}
body.hanayume .history-deities .deities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0; border: 0; }
body.hanayume .history-deities .deities li { padding: 2px 0; border: 0; line-height: 1.7; }
body.hanayume .history-deities .deities small { display: block; margin-top: 3px; }
body.hanayume .history-story {
  position: relative; display: grid; grid-template-columns: .78fr 1.22fr;
  gap: clamp(42px, 8vw, 110px); padding-top: clamp(75px, 9vw, 126px);
}
body.hanayume .history-story .outline-word { top: 36px; opacity: .6; }
body.hanayume .history-opening {
  position: relative; z-index: 1; align-self: start; margin: 125px 0 0;
  padding-left: 20px; border-left: 1px solid var(--hy-beni);
  font-family: var(--hy-serif); font-size: 18px; line-height: 2.15;
}
body.hanayume .history-story .story-text { position: relative; z-index: 1; align-self: start; }
body.hanayume .festival-list > div,
body.hanayume .festival-list > div:first-child { padding-top: 31px; }
body.hanayume .festival-list > div::before { display: none; }

body.hanayume .prayer-flow { display: grid; max-width: var(--hy-content); }
body.hanayume .prayer-flow .prayer-card { min-height: 0; }
body.hanayume .prayer-flow .prayer-card > p { max-width: 900px; }
body.hanayume .prayer-flow .info-pair {
  justify-content: flex-start; align-items: baseline; gap: clamp(24px, 6vw, 90px);
  max-width: 600px; margin: 30px 0 23px; padding: 18px 0;
}
body.hanayume .prayer-flow .info-pair span,
body.hanayume .prayer-flow .info-pair strong {
  font-family: var(--hy-serif); font-size: clamp(20px, 2vw, 27px);
  font-weight: 500; line-height: 1.5;
}
body.hanayume .prayer-flow .prayer-card .small-note { font-size: 14px; }
body.hanayume .reservation-emphasis {
  display: inline-block; margin: 0 .35em .3em 0; padding: 1px 2px;
  border-bottom: 2px solid var(--hy-pink); color: #fff;
  font-family: var(--hy-serif); font-size: 19px; font-weight: 600;
}
body.hanayume .prayer-flow .fees { margin: 0; }
body.hanayume .prayer-flow .prayer-card:last-child { margin-top: 36px; border-color: var(--hy-beni-soft); }
body.hanayume .travel-fee {
  display: inline-block; margin-top: 12px !important; padding-top: 18px;
  border-top: 1px solid var(--hy-beni-soft); font-family: var(--hy-serif);
  font-size: 17px !important;
}

body.hanayume .goshuin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body.hanayume .goshuin-grid figure { display: flex; flex-direction: column; }
body.hanayume .goshuin-grid .portrait { grid-column: span 1; }
body.hanayume .goshuin-grid .landscape { grid-column: span 2; }
body.hanayume .goshuin-grid figure img {
  width: 100%; height: clamp(340px, 38vw, 540px); aspect-ratio: auto;
  object-fit: contain;
}
body.hanayume .goshuin-grid figcaption { margin-top: auto; }
body.hanayume .contact-links a { grid-template-columns: 1fr; }
body.hanayume .site-footer { display: block; padding: 18px var(--hy-gutter); text-align: center; }
body.hanayume .site-footer > small { display: block; padding: 0; border: 0; font-size: 11px; }

@media (max-width: 900px) {
  body.hanayume .history-deities { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  body.hanayume .history-deities .deities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.hanayume .history-story { gap: 36px; }
  body.hanayume .history-opening { margin-top: 105px; }
}
@media (max-width: 680px) {
  body.hanayume .brand-mark { width: 43px; flex-basis: 43px; }
  body.hanayume .hero { padding-bottom: 55px; }
  body.hanayume .hero h1 { font-size: clamp(21px, 5.8vw, 28px); }
  body.hanayume .hero h1 > span { margin-top: 14px; font-size: clamp(43px, 12vw, 58px); }
  body.hanayume .hero-prelude { font-size: 11px; }
  body.hanayume .notice-main { gap: 44px; }
  body.hanayume .notice-text { grid-template-columns: 1fr; }
  body.hanayume .notice-text > .text-link { justify-self: start; margin: 14px 0 0; }
  body.hanayume .notice-showcase-head { font-size: 17px; }
  body.hanayume .notice-showcase-head span:last-child { font-size: 10px; }
  body.hanayume .history-deities { display: block; padding: 24px 0; }
  body.hanayume .history-deities h3 { margin: 0 0 18px; }
  body.hanayume .history-deities .deities { grid-template-columns: 1fr; gap: 8px; }
  body.hanayume .history-deities .deities li { padding: 7px 0 10px; }
  body.hanayume .history-story { grid-template-columns: 1fr; gap: 24px; padding-top: 55px; }
  body.hanayume .history-story .outline-word { top: 30px; }
  body.hanayume .history-opening { margin-top: 80px; font-size: 16px; }
  body.hanayume .festival-list > div,
  body.hanayume .festival-list > div:first-child { padding: 20px 12px; }
  body.hanayume .prayer-flow .prayer-card { padding: 31px 24px; }
  body.hanayume .prayer-flow .info-pair { gap: 20px; margin: 24px 0 18px; }
  body.hanayume .prayer-flow .info-pair span,
  body.hanayume .prayer-flow .info-pair strong { font-size: 19px; }
  body.hanayume .reservation-emphasis { font-size: 17px; }
  body.hanayume .prayer-flow .prayer-card:last-child { margin-top: 23px; }
  body.hanayume .goshuin-grid { grid-template-columns: 1fr; gap: 18px; }
  body.hanayume .goshuin-grid .portrait,
  body.hanayume .goshuin-grid .landscape { grid-column: auto; }
  body.hanayume .goshuin-grid figure img { height: auto; max-height: 500px; }
}

/* Notices use the same portrait/landscape card rhythm as the goshuin section. */
body.hanayume .notice-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body.hanayume .notice-image-grid figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--hy-beni-faint);
  background: #fff;
}
body.hanayume .notice-image-grid .portrait { grid-column: span 1; }
body.hanayume .notice-image-grid .landscape { grid-column: span 2; }
body.hanayume .notice-image-grid figure:nth-child(5) { grid-column: 1 / -1; }
body.hanayume .notice-image-grid figure > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
body.hanayume .notice-image-grid img {
  display: block;
  width: 100%;
  height: clamp(340px, 38vw, 540px);
  object-fit: contain;
  background: var(--hy-pink-soft);
}
body.hanayume .notice-image-grid figure:nth-child(5) img { height: 510px; }
body.hanayume .notice-image-grid figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding: 16px 3px 4px;
  font-family: var(--hy-serif);
  line-height: 1.6;
}
body.hanayume .notice-image-grid figcaption > span:first-child {
  font-family: var(--hy-round);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}
body.hanayume .notice-image-grid figcaption strong { font-size: 16px; font-weight: 500; }
body.hanayume .notice-image-grid .image-open {
  display: inline-block;
  margin-left: auto;
  font-family: var(--hy-round);
  font-size: 11px;
  white-space: nowrap;
  color: var(--hy-beni);
  text-decoration: underline;
  text-underline-offset: .25em;
}
body.hanayume .notice-image-grid figure > a:hover img { filter: brightness(.97); }
body.hanayume .notice-image-grid a:focus-visible { outline: 3px solid var(--hy-beni); outline-offset: 4px; }
body.hanayume .notice-image-help { margin: 20px 0 0; font-size: 13px; }

@media (max-width: 680px) {
  body.hanayume .notice-image-grid { grid-template-columns: 1fr; gap: 18px; }
  body.hanayume .notice-image-grid .portrait,
  body.hanayume .notice-image-grid .landscape,
  body.hanayume .notice-image-grid figure:nth-child(5) { grid-column: auto; }
  body.hanayume .notice-image-grid figure { padding: 7px; }
  body.hanayume .notice-image-grid img,
  body.hanayume .notice-image-grid figure:nth-child(5) img { height: auto; max-height: 500px; }
  body.hanayume .notice-image-grid figcaption strong { font-size: 13px; }
  body.hanayume .notice-image-grid .image-open { font-size: 10px; }
}
