/* 能生白山神社 — 旧Wixサイトの見た目を踏襲 */
:root {
  --ink: #000;
  --gold: #C09E01;
  --gold-line: #C9A84C;
  --red: #8B0000;
  --dark: #242323;
  --grey: #E8E6E6;
  --paper: #FAFAFA;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --box: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 2.3; letter-spacing: .2em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.box { width: 100%; max-width: var(--box); margin: 0 auto; padding: 0 20px; }
.box-wide { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.center { text-align: center; }
.red { color: var(--red); }
.rounded { border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.35); width: 100%; object-fit: cover; }

/* ---------- ヘッダー ---------- */
.site-header { background: #ddd center / cover no-repeat; position: relative; z-index: 20; }
.header-inner { max-width: 1280px; margin: 0 auto; min-height: 164px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 24px; }
.logo { position: relative; display: block; text-decoration: none; color: #000; flex: none; }
.logo .logo-text { margin: 0; display: block; position: relative; font-size: 50px; font-weight: 700; letter-spacing: .3em; line-height: 1; white-space: nowrap; }
.logo .swoosh { position: absolute; left: -2%; top: 46%; width: 104%; height: auto; max-height: 64px; object-fit: contain; pointer-events: none; }
.gnav ul { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.gnav li + li { border-left: 1px solid rgba(0,0,0,.18); }
.gnav a { display: block; padding: .2em .75em; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-decoration: none; color: #000; line-height: 1.6; }
.gnav a:hover, .gnav a[aria-current] { color: var(--red); }
.menu-btn { display: none; }

@media (max-width: 1240px) {
  .header-inner { min-height: 96px; }
  .logo .logo-text { margin: 0; display: block; font-size: 34px; }
  .menu-btn { display: block; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
  .menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #000; content: ""; transition: transform .2s; }
  .menu-btn span:first-child { top: 21px; }
  .menu-btn span:first-child::before { left: 0; top: -8px; }
  .menu-btn span:first-child::after { left: 0; top: 8px; }
  .menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-8px) rotate(-45deg); }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(250,250,250,.98); box-shadow: 0 6px 12px rgba(0,0,0,.15); }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; padding: 8px 24px 16px; }
  .gnav li + li { border-left: 0; border-top: 1px solid rgba(0,0,0,.1); }
  .gnav a { padding: .8em 0; }
}
@media (max-width: 480px) { .logo .logo-text { margin: 0; display: block; font-size: 27px; letter-spacing: .24em; } .header-inner { padding: 0 16px; min-height: 80px; } }

/* ---------- ボタン ---------- */
.btn { display: inline-block; background: var(--gold); color: #fafafa; text-decoration: none; font-weight: 700; letter-spacing: .1em; line-height: 1.4; padding: 15px 52px 15px 40px; border-radius: 2px; position: relative; transition: background-color .15s; }
.btn::after { content: ""; position: absolute; right: 22px; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover { background: #a98a00; }
.btn-gold-dark { color: var(--dark); font-size: 16px; }
.btn-big { font-size: 27px; letter-spacing: .1em; padding: 16px 70px; }
.btn-big::after { display: none; }
.btn-dark { display: inline-block; background: #2B2B2B; color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .1em; line-height: 1.4; padding: 8px 22px; margin-top: .6em; }
.btn-dark:hover { background: #000; }

/* ---------- トップ：クラファン告知 ---------- */
.h-cf { padding: 56px 0 64px; }
.h-cf-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; padding-left: 40px; }
.h-cf h2 { font-size: 30px; line-height: 1.4; letter-spacing: .12em; }
.h-cf-text { font-size: 25px; line-height: 1.4; letter-spacing: .08em; padding-left: 40px; }
@media (max-width: 760px) { .h-cf-top, .h-cf-text { padding-left: 0; } .h-cf h2 { font-size: 22px; } .h-cf-text { font-size: 17px; line-height: 1.9; } .btn-big { font-size: 20px; padding: 12px 40px; } }

/* ---------- スライド ---------- */
.h-slides { background: var(--dark); padding: 21px 0 40px; }
.slides { list-style: none; margin: 0; padding: 0; position: relative; height: min(86vh, 940px); overflow: hidden; }
.slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slides li.on { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides-page { height: min(70vh, 640px); margin: 48px 0; }
@media (max-width: 760px) { .slides { height: 62vw; } }
@media (prefers-reduced-motion: reduce) { .slides li { transition: none; } }

.news-rows { list-style: none; max-width: var(--box); margin: 32px auto 0; padding: 0 20px; }
.news-rows li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; color: #fff; }
.news-rows time { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.news-rows a { color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .3em; }
.news-rows a:hover { text-decoration: underline; }
@media (max-width: 600px) { .news-rows li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 水の動画 ---------- */
.h-water { position: relative; min-height: 583px; display: grid; place-items: center; overflow: hidden; color: #fafafa; text-align: center; background: #2e3b33; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-water::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); z-index: 1; }
.h-water-inner { position: relative; z-index: 2; padding: 60px 20px; }
.h-water h2 { font-size: 38px; letter-spacing: .1em; line-height: 1.4; margin-bottom: 36px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.h-water p { font-size: 20px; line-height: 2.3; letter-spacing: .2em; margin-bottom: 36px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
@media (max-width: 760px) { .h-water h2 { font-size: 24px; } .h-water p { font-size: 15px; } .h-water p br { display: none; } }

/* ---------- 手水舎 ---------- */
.h-temizu { min-height: 400px; background: var(--grey) center / cover no-repeat; display: flex; align-items: flex-end; }
.h-temizu p { width: 100%; background: rgba(0,0,0,.45); color: #fff; text-align: center; font-size: 17px; line-height: 2.3; letter-spacing: .2em; padding: 18px 20px; }
@media (max-width: 760px) { .h-temizu p { font-size: 14px; } .h-temizu p br { display: none; } }

/* ---------- カード2枚 ---------- */
.h-cards { background: #333 center / cover no-repeat; padding: 80px 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; max-width: 1100px; }
.card { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); padding: 36px 0 44px; text-align: center; }
.card h2 { font-size: 30px; letter-spacing: .3em; margin-bottom: 18px; }
.card > a.lb img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 10px; }
.card-text { text-align: left; padding: 28px 12px 36px; font-size: 17px; line-height: 2.3; letter-spacing: .2em; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- 境内 ---------- */
.h-keidai { position: relative; padding: 0 0 80px; background: #fff; }
.wave-top { height: 160px; background: linear-gradient(180deg, #e3e3e3, #f4f4f4); clip-path: path('M0,0 H2000 V60 C1500,10 900,40 0,160 Z'); }
.h-keidai .wave-top { clip-path: none; background: radial-gradient(120% 140% at 100% -20%, #d9d9d9 0 55%, transparent 56%), linear-gradient(#fff, #fff); }
.sec-title-left { font-size: 38px; letter-spacing: .35em; line-height: 1.4; margin: 0 0 48px 40px; }
.keidai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.keidai-pics { display: grid; gap: 48px; }
.keidai-pics img { aspect-ratio: 4/3; }
.keidai-text { font-size: 17px; line-height: 2.3; letter-spacing: .2em; padding-top: 40px; }
.keidai-text .btn { margin-top: 40px; float: right; }
@media (max-width: 860px) { .keidai-grid { grid-template-columns: 1fr; gap: 32px; } .keidai-text { padding-top: 0; } .keidai-text .btn { float: none; } .sec-title-left { margin-left: 0; font-size: 30px; } }

/* ---------- 御祈祷 ---------- */
.h-gokito { background: var(--paper); text-align: center; padding-bottom: 120px; position: relative; overflow: hidden; }
.h-gokito .wave-top { height: 200px; background: radial-gradient(140% 120% at 30% 0%, #e2e2e2 0 50%, transparent 51%); clip-path: none; margin-bottom: -110px; }
.h-gokito h2, .h-gokito h1 { position: relative; font-size: 30px; letter-spacing: .3em; line-height: 1.4; margin-bottom: 120px; }
.h-gokito .soon { font-size: 38px; font-weight: 700; letter-spacing: .35em; line-height: 1.4; }
.page-gokito { padding-top: 120px; min-height: 60vh; }

/* ---------- アクセス ---------- */
.h-access { background: var(--paper); padding: 80px 0 100px; }
.sec-title { font-size: 38px; letter-spacing: .35em; line-height: 1.4; text-align: center; margin-bottom: 20px; }
.acard { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); border-radius: 5px; padding: 18px 28px 36px; margin-top: 24px; }
.acard-title { font-size: 27px; font-weight: 400; letter-spacing: .1em; line-height: 1.4; display: inline-block; padding: 0 60px 8px 0; margin-bottom: 20px; border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--gold-line), rgba(201,168,76,.15)) 1; }
.acard-title:first-child { font-weight: 700; }
.map { aspect-ratio: 16/9; padding: 0 20px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.routes { list-style: none; margin: 0; padding: 0 0 0 16px; }
.routes li + li { margin-top: 14px; }
.route-name { font-weight: 700; letter-spacing: .05em; padding-left: 34px; position: relative; }
.route-name::before { content: "»"; position: absolute; left: 0; top: -0.15em; color: var(--gold); font-size: 30px; line-height: 1.4; font-weight: 400; }
.routes p:not(.route-name) { padding-left: 60px; font-size: 17px; letter-spacing: .2em; }
@media (max-width: 600px) { .acard { padding: 14px 16px 24px; } .acard-title { font-size: 22px; } .map { padding: 0; aspect-ratio: 4/3; } .routes { padding: 0; } .routes p:not(.route-name) { padding-left: 34px; font-size: 15px; letter-spacing: .1em; } }

/* ---------- フッター ---------- */
.site-footer { background: #ddd center / cover no-repeat; padding: 56px 0 40px; }
.footer-inner { max-width: var(--box); margin: 0 auto; padding: 0 20px; }
.footer-name { font-size: 50px; font-weight: 700; letter-spacing: .32em; line-height: 1.2; margin-bottom: 28px; }
.footer-info { margin: 0 0 36px; }
.footer-info div { display: flex; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.footer-info dt { font-size: 13px; letter-spacing: .25em; min-width: 7.5em; padding-left: 30px; position: relative; font-weight: 600; }
.footer-info dt::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 75% 100%, 50% 60%, 25% 100%, 0 50%); }
.footer-info dd { margin: 0; font-size: 18px; letter-spacing: .3em; }
.footer-info a { text-decoration: none; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.site-footer nav a { display: block; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-decoration: none; padding: 0 1.4em; }
.site-footer nav a:hover { color: var(--red); }
@media (max-width: 600px) { .footer-name { font-size: 32px; } .footer-info div { flex-direction: column; gap: 0; } .footer-info dd { font-size: 15px; letter-spacing: .1em; padding-left: 30px; } }

/* ---------- 下層ページ共通 ---------- */
.page { padding: 56px 0 100px; }
.page-title { font-size: 30px; font-weight: 400; letter-spacing: .2em; line-height: 1.4; margin: 0 0 48px 40px; }
.page-title span { display: inline-block; padding: 0 30px 10px 0; border-bottom: 2px solid var(--gold-line); }
.page-title.center { margin-left: 0; text-align: center; }
.page-title.center span { padding: 0 0 6px; border-bottom: 0; }
.lead-block { border-left: 3px solid var(--gold-line); padding: 0 0 0 4px; margin: 0 0 48px 40px; font-size: 17px; line-height: 2.3; letter-spacing: .2em; }
.lead-block .big { font-size: 30px; letter-spacing: .1em; }
.wide-img { margin: 0 0 48px; }
.wide-img img { aspect-ratio: 16/8; }
.center-title { font-size: 20px; letter-spacing: .2em; text-align: center; margin: 0 auto 28px; }
.center-title::after { content: ""; display: block; width: 280px; max-width: 70%; height: 2px; background: var(--gold); margin: 8px auto 0; }
.center-title.plain::after { display: none; }
.note { font-size: 15px; text-align: center; }
@media (max-width: 760px) { .page-title { margin-left: 0; font-size: 24px; } .lead-block { margin-left: 0; font-size: 15px; letter-spacing: .1em; } .lead-block .big { font-size: 24px; } }

/* ---------- 写真 ---------- */
.gallery, .mosaic { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 10px; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img, .mosaic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.mosaic { grid-template-columns: repeat(4, 1fr); }
.mosaic li:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.mosaic li:nth-child(7n+1) img { height: 100%; aspect-ratio: auto; }
@media (max-width: 600px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
a.lb { display: block; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- 歴史：資料 ---------- */
.docs-sec { background: var(--grey) center / cover no-repeat; padding: 40px 0 72px; }
.docs-title { font-size: 20px; letter-spacing: .2em; margin-bottom: 40px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 80px; }
.docs a { display: flex; flex-direction: column; align-items: center; gap: 28px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); padding: 36px 16px 40px; text-decoration: none; text-align: center; font-size: 15px; line-height: 2; letter-spacing: .2em; min-height: 250px; }
.docs a:hover { box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.pdf-icon { width: 46px; height: 58px; background: #fff; border: 1px solid #ccc; border-radius: 3px; position: relative; display: block; }
.pdf-icon b { position: absolute; top: 8px; left: -4px; right: -4px; background: #E2463B; color: #fff; font: 700 11px/1.6 sans-serif; letter-spacing: .05em; text-align: center; }
.pdf-icon::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 18px; border: 2px solid #E2463B; border-radius: 50% 50% 10% 10%; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 520px) { .docs { grid-template-columns: 1fr; } }

/* ---------- 春季大祭 ---------- */
.dances { margin-top: 24px; }
.dance { margin: 0 0 56px; }
.dance::after { content: ""; display: table; clear: both; }
.dance-head { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 28px; flex-wrap: wrap; }
.gold-label { background: var(--gold); color: #fff; font-size: 30px; letter-spacing: .28em; line-height: 1.4; padding: 14px 40px 14px 48px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.gold-label small { font-size: 20px; color: #000; font-weight: 400; letter-spacing: .2em; margin-left: .4em; }
.who { font-size: 20px; letter-spacing: .2em; border-bottom: 1px solid #000; line-height: 1.6; }
.dance .lead-block { border-left: 0; margin: 0 0 24px 40px; }
.dance-pic { max-width: 470px; margin-left: auto; }
.dance-pic img { aspect-ratio: 4/3; }
.tv { padding: 20px 0 72px; }
.yt { max-width: 660px; margin: 0 auto; aspect-ratio: 16/9; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.tv-caption { text-align: center; font-size: 15px; letter-spacing: .25em; margin-top: 8px; padding-top: 10px; border-top: 2px solid var(--gold); display: block; max-width: 300px; margin-left: auto; margin-right: auto; white-space: nowrap; overflow: visible; }
.schedule-sec { background: linear-gradient(180deg, rgba(198,226,236,.35), rgba(255,255,255,0) 70%); padding: 40px 0 100px; }
.schedule { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 760px; text-align: center; }
.schedule li { padding: 18px 0 22px; border-bottom: 1px solid var(--gold-line); }
.schedule h3 { font-size: 30px; letter-spacing: .1em; line-height: 1.4; margin-bottom: 10px; }
.schedule p { font-size: 17px; letter-spacing: .2em; line-height: 2; }
@media (max-width: 760px) { .gold-label { font-size: 22px; padding: 10px 24px; } .gold-label small { font-size: 15px; } .who { font-size: 16px; } .dance .lead-block { margin-left: 0; } .dance-pic { max-width: none; } .schedule h3 { font-size: 22px; } .tv-caption { white-space: normal; max-width: none; } }

/* ---------- 祭典 ---------- */
.timeline { list-style: none; margin: 0 0 64px; padding: 0 0 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 0; width: 3px; background: var(--gold-line); }
.tl-item { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding-bottom: 48px; position: relative; }
.tl-month { width: 80px; height: 80px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 25px; font-weight: 700; letter-spacing: .1em; position: relative; z-index: 1; }
.tl-body h2 { font-size: 20px; letter-spacing: .2em; line-height: 1.6; margin: 18px 0 14px; }
.tl-body p { font-size: 15px; letter-spacing: .2em; line-height: 2.3; }
.tl-pics { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tl-pics img { aspect-ratio: 4/3; }
@media (max-width: 600px) { .timeline::before { left: 27px; } .tl-item { grid-template-columns: 56px 1fr; gap: 12px; } .tl-month { width: 56px; height: 56px; font-size: 17px; } .tl-body h2 { font-size: 16px; margin-top: 10px; letter-spacing: .1em; } .tl-pics { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- 境内 ---------- */
.box-wide > a.lb img, .box-wide > img { margin-bottom: 72px; }
.site { margin: 0 0 72px; scroll-margin-top: 20px; }
.site h2 { display: flex; align-items: center; gap: 16px; font-size: 20px; letter-spacing: .2em; margin-bottom: 18px; }
.num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 22px; font-weight: 400; flex: none; letter-spacing: 0; }
.site-text { font-size: 15px; letter-spacing: .2em; line-height: 2.3; padding-left: 68px; margin-bottom: 40px; }
.site-pics { list-style: none; margin: 0; padding: 0 0 0 68px; display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr; align-items: end; }
.site-pics.n1 { grid-template-columns: minmax(0, 560px); }
.site-pics.n3 { grid-template-columns: 1fr 1fr 1fr; }
.site-pics img { aspect-ratio: 4/3; }
@media (max-width: 600px) { .site-text, .site-pics { padding-left: 0; } .site-pics, .site-pics.n3 { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- お問い合わせ ---------- */
.contact-page .page-title span { font-size: 30px; }
.contact-lead { font-size: 20px; letter-spacing: .1em; line-height: 2.2; margin-bottom: 36px; }
.hours { font-size: 30px; font-weight: 700; letter-spacing: .1em; }
.tel-big { font-size: 36px; font-weight: 700; letter-spacing: .1em; margin-bottom: 72px; }
.tel-big a { text-decoration: none; }
.form { max-width: 760px; margin: 0 auto; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); border-radius: 5px; padding: 28px clamp(18px, 4vw, 48px) 40px; letter-spacing: .1em; line-height: 1.8; }
.form-title { font-size: 27px; font-weight: 400; display: inline-block; padding: 0 60px 8px 0; margin-bottom: 28px; border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--gold-line), rgba(201,168,76,.15)) 1; }
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; padding: 0; }
.req, .opt { font-size: 12px; font-weight: 700; margin-left: .8em; padding: .1em .6em; vertical-align: .15em; letter-spacing: .1em; }
.req { background: var(--red); color: #fff; }
.opt { border: 1px solid #bbb; color: #555; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; font: inherit; font-family: var(--serif); font-size: 16px; letter-spacing: .05em; padding: .6em .8em; border: 1px solid #c8c8c8; background: #fafafa; border-radius: 2px; color: #000; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; background: #fff; }
.field [aria-invalid="true"] { border-color: var(--red); }
.choices { display: flex; flex-wrap: wrap; gap: .3em 1.8em; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: .4em; margin: 0; }
.hint { font-size: 13px; color: #555; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.btn-submit { display: block; width: 100%; border: 0; font: inherit; font-size: 18px; font-weight: 700; color: #fafafa; cursor: pointer; margin-top: 24px; padding: 16px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 16px; font-weight: 700; }
.form-status.ok { color: #2b5d2b; }
.form-status.ng { color: var(--red); }
@media (max-width: 600px) { .contact-lead { font-size: 15px; } .hours { font-size: 20px; } .tel-big { font-size: 26px; } }

/* ---------- クラファン ---------- */
.cf-page .page-title span { font-size: 38px; letter-spacing: .12em; }
.cf-sub { font-size: 20px; letter-spacing: .1em; margin: -24px 0 28px; }
.cf-hero { display: block; margin-bottom: 48px; }
.cf-text p, p.cf-text { font-size: 17px; letter-spacing: .1em; line-height: 2.3; }
.cf-text { margin-bottom: 40px; }
.cf-count { font-size: 25px; font-weight: 700; letter-spacing: .1em; line-height: 1.8; margin-bottom: 8px; }
.cf-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.cf-photos img { aspect-ratio: 3/2; }
img.flyer { max-width: 560px; margin: 0 auto 56px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.supporters { list-style: none; margin: 0 auto 40px; padding: 0; max-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; text-align: left; }
.supporters li { font-size: 17px; letter-spacing: .15em; padding: .4em 0; border-bottom: 1px solid #ddd; }
@media (max-width: 600px) { .cf-page .page-title span { font-size: 24px; } .cf-photos, .supporters { grid-template-columns: 1fr; } }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0 0 0 40px; padding: 0; }
.news-list li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ddd; }
.news-list time { font-weight: 600; }
.article { max-width: 760px; }
.article time { display: block; font-weight: 600; margin-bottom: 8px; }
.article-title { font-size: 26px; letter-spacing: .1em; line-height: 1.6; margin-bottom: 32px; }
.article p { margin-bottom: 1.2em; letter-spacing: .1em; }
@media (max-width: 600px) { .news-list { margin-left: 0; } .news-list li { grid-template-columns: 1fr; gap: 0; } .article-title { font-size: 20px; } }

/* =========================================================
   整え（旧サイトの雰囲気はそのまま、読みやすさと揃えを調整）
   ========================================================= */
:root { --shadow: 0 2px 10px rgba(0,0,0,.18); --shadow-strong: 0 4px 18px rgba(0,0,0,.28); --sec: clamp(64px, 9vw, 104px); }
body { font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* 本文：字間を少し詰め、行の長さを抑えて読みやすく */
.card-text, .keidai-text, .lead-block, .site-text, .tl-body p, .cf-text p, p.cf-text, .h-temizu p, .article p { letter-spacing: .12em; line-height: 2.15; }
.lead-block { max-width: 52em; padding-left: 18px; }
.lead-block .big { font-size: 1.75em; line-height: 1; margin-right: .1em; }
.lead-block p + p, .card-text p + p, .keidai-text p + p { margin-top: .5em; }

/* 写真：影をやわらかく、角丸を統一、拡大できる写真はわずかに反応 */
.rounded, .gallery img, .mosaic img, .card > a.lb img { border-radius: 8px; box-shadow: var(--shadow); }
a.lb { border-radius: 8px; overflow: hidden; }
a.lb img { transition: transform .5s ease, filter .3s; }
a.lb:hover img { transform: scale(1.03); filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { a.lb img { transition: none; } a.lb:hover img { transform: none; } }

/* ヘッダー：メニューの区切りを細く、今いるページに小さな下線 */
.gnav li + li { border-left-color: rgba(0,0,0,.14); }
.gnav a { position: relative; transition: color .15s; }
.gnav a[aria-current]::after { content: ""; position: absolute; left: .75em; right: .75em; bottom: -2px; height: 1px; background: var(--red); }
@media (max-width: 1240px) { .gnav a[aria-current]::after { display: none; } .site-header { box-shadow: 0 1px 0 rgba(0,0,0,.06); } }

/* ボタン：高さ・矢印位置を統一、押したときの手応え */
.btn { box-shadow: 0 2px 6px rgba(120,95,0,.25); transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(120,95,0,.3); }
.btn:active { transform: translateY(0); }
.btn-gold-dark { min-width: 300px; text-align: center; }

/* トップ：クラファン告知 */
.h-cf { padding: 64px 0 72px; }
.h-cf .box { border-left: 3px solid var(--gold-line); padding-left: 0; }
.h-cf-top { margin-bottom: 28px; }
.h-cf-text { font-size: 21px; line-height: 1.9; max-width: 40em; }

/* スライド下のお知らせ：細い区切り線で一覧らしく */
.news-rows { margin-top: 28px; }
.news-rows li { border-bottom: 1px solid rgba(255,255,255,.14); padding: 16px 4px; }
.news-rows li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.news-rows time { font-size: 18px; color: #e9e3cf; }

/* 水の動画・手水舎 */
.h-water h2 { margin-bottom: 28px; }
.h-water p { margin-bottom: 40px; letter-spacing: .16em; }
.h-temizu { min-height: 440px; }
.h-temizu p { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)); padding: 24px 20px; }

/* カード2枚：高さをそろえ、ボタンを下端にそろえる */
.h-cards { padding: var(--sec) 0; }
.cards { gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.card { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 44px; border-radius: 4px; box-shadow: var(--shadow-strong); }
.card > a.lb { width: 100%; }
.card-text { padding: 28px 4px 32px; flex: 1; }
.card .btn { margin-top: auto; }

/* 境内：上の波をやわらかい曲線に */
.h-keidai .wave-top, .h-gokito .wave-top { height: 140px; clip-path: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v38c-260 58-560 96-860 80C360 106 170 70 0 92Z' fill='%23e4e2e2'/%3E%3Cpath d='M0 0h1440v18c-300 40-620 64-900 50C320 58 150 34 0 48Z' fill='%23d6d4d4'/%3E%3C/svg%3E") top / 100% 100% no-repeat; }
.h-keidai { padding-bottom: var(--sec); }
.keidai-grid { gap: clamp(32px, 6vw, 72px); }
.keidai-text .btn { float: none; margin-top: 36px; }

/* 御祈祷 */
.h-gokito .wave-top { margin-bottom: -40px; }
.h-gokito h2, .h-gokito h1 { margin-bottom: 64px; }
.h-gokito .soon { color: #333; }
.h-gokito .soon::before, .h-gokito .soon::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--gold-line); vertical-align: middle; margin: 0 .6em; }

/* アクセス */
.h-access { padding: var(--sec) 0; }
.h-access .box { max-width: 980px; }
.acard { border-radius: 6px; box-shadow: var(--shadow); margin-top: 32px; padding: 22px 32px 36px; }
.map { padding: 0; border-radius: 4px; overflow: hidden; }
.routes li + li { margin-top: 18px; }

/* フッター：情報とメニューの間に区切り */
.site-footer { padding: 64px 0 32px; }
.footer-info { margin-bottom: 40px; }
.site-footer nav { border-top: 1px solid rgba(0,0,0,.12); padding-top: 24px; }
.site-footer nav a { transition: color .15s; }

/* 下層ページ */
.page { padding: 64px 0 var(--sec); }
.page-title { margin-bottom: 44px; }
.lead-block { margin-bottom: 56px; }
.slides-page { margin: 16px 0 64px; }

/* 春季大祭：舞ごとに区切り、写真は本文の横に */
.dance { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid #e6e1d2; }
.dance:last-child { border-bottom: 0; }
.dance-head { margin-bottom: 22px; }
.gold-label { border-radius: 2px; box-shadow: 0 2px 6px rgba(120,95,0,.3); }
.dance-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.dance-body .lead-block { margin: 0 0 0 40px; }
.dance-body .dance-pic { max-width: none; margin: 0; }
.dance-body.no-pic { grid-template-columns: minmax(0, 1fr); }
.tv { padding: 32px 0 80px; }
.yt { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.schedule li { padding: 22px 0 26px; }
@media (max-width: 860px) { .dance-body { grid-template-columns: 1fr; gap: 24px; } .dance-body .lead-block { margin-left: 0; } }

/* 祭典：年表の丸に縁取り */
.tl-month { box-shadow: 0 0 0 5px #fff, 0 2px 6px rgba(120,95,0,.3); }
.tl-item { padding-bottom: 56px; }
.tl-pics { gap: 32px; }

/* 境内：番号ごとの区切り */
.site { padding-bottom: 56px; border-bottom: 1px solid #e6e1d2; }
.site:last-of-type { border-bottom: 0; }
.site-pics { gap: 24px; }
.num { box-shadow: 0 2px 6px rgba(120,95,0,.3); }

/* 歴史：資料カード */
.docs a { border-radius: 4px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.docs a:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.docs { gap: 40px 48px; }

/* お問い合わせ・クラファン */
.form { border-radius: 6px; box-shadow: var(--shadow); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { border-radius: 3px; transition: border-color .15s, background-color .15s; }
.cf-hero img { box-shadow: var(--shadow-strong); }
.supporters li { border-bottom-color: #e6e1d2; }

/* スマホ */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .h-cf { padding: 40px 0 48px; }
  .h-cf .box { border-left: 0; }
  .h-cf-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h-cf-text { font-size: 16px; }
  .btn-gold-dark { min-width: 0; width: 100%; max-width: 340px; }
  .card { padding: 28px 16px 32px; }
  .card h2 { font-size: 24px; }
  .h-temizu { min-height: 300px; }
  .h-keidai .wave-top, .h-gokito .wave-top { height: 70px; }
  .acard { padding: 16px 16px 24px; }
  .page { padding-top: 40px; }
  .gold-label { font-size: 20px; letter-spacing: .2em; }
  .site h2 { font-size: 18px; }
  .num { width: 42px; height: 42px; font-size: 18px; }
  .footer-name { font-size: 30px; }
}
@media (max-width: 760px) {
  .h-cf .box { padding-left: 20px; padding-right: 20px; }
  .btn { font-size: 14px; letter-spacing: .06em; padding: 14px 44px 14px 26px; white-space: nowrap; }
  .btn-big { font-size: 20px; padding: 12px 40px; }
  .card .btn, .h-water .btn, .keidai-text .btn { width: 100%; }
}

/* 基本情報・よくあるご質問 */
.h-info { background: var(--paper); padding: 0 0 var(--sec); }
.faq-title { margin-top: 72px; }
.info-list, .faq { margin: 0; }
.info-list div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #e6e1d2; }
.info-list div:last-child, .faq div:last-child { border-bottom: 0; }
.info-list dt { font-weight: 700; color: #6b5600; letter-spacing: .15em; }
.info-list dd, .faq dd { margin: 0; letter-spacing: .1em; line-height: 2; }
.faq div { padding: 18px 4px; border-bottom: 1px solid #e6e1d2; }
.faq dt { font-weight: 700; letter-spacing: .1em; line-height: 1.8; padding-left: 2.2em; position: relative; margin-bottom: 6px; }
.faq dt::before { content: "問"; position: absolute; left: 0; top: .1em; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%; background: var(--gold); color: #fff; font-size: .85em; letter-spacing: 0; }
.faq dd { padding-left: 2.2em; position: relative; }
.faq dd::before { content: "答"; position: absolute; left: 0; top: .2em; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: .85em; font-weight: 700; letter-spacing: 0; }
@media (max-width: 600px) { .info-list div { grid-template-columns: 1fr; gap: 2px; } .faq-title { margin-top: 48px; } }

/* 背景画像は旧サイトと同じく薄く重ねる（ヘッダー18%・フッター10%・カード背景22%・資料背景15%） */
.fade-bg { position: relative; isolation: isolate; background-image: none; }
.fade-bg::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; z-index: -1; pointer-events: none; }
.site-header.fade-bg { background-color: #fff; }
.site-header.fade-bg::before { opacity: .18; }
.site-footer.fade-bg { background-color: #fafafa; }
.site-footer.fade-bg::before { opacity: .1; }
.h-cards.fade-bg { background-color: #fff; }
.h-cards.fade-bg::before { opacity: .22; }
.docs-sec.fade-bg { background-color: #fafafa; }
.docs-sec.fade-bg::before { opacity: .15; }
.header-inner { max-width: 1440px; gap: 16px; }
.gnav a { padding-left: .65em; padding-right: .65em; }
.gnav ul { flex-wrap: nowrap; }
@media (max-width: 1240px) { .gnav ul { flex-wrap: wrap; } }

/* 半角数字・英字も本文と同じ明朝でそろえる（高さのそろった数字） */
body { font-variant-numeric: lining-nums proportional-nums; }
time, .tel-big, .hours, .footer-info dd { font-variant-numeric: lining-nums tabular-nums; }
