:root {
  --ink: #1b1b18;
  --deep: #20352c;
  --deep-2: #14241d;
  --paper: #f5f1e8;
  --paper-2: #ebe5d9;
  --white: #fff;
  --gold: #8a6a2f;
  --gold-light: #c9b889;
  --muted: #68685f;
  --line: #d7d0c3;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --wrap: 1160px;
  --shadow: 0 18px 60px rgba(20, 36, 29, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .035em;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #d59c2a; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 8px 14px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 850px); margin-inline: auto; }
.section { padding: 92px 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--paper-2); }
.section--deep { color: var(--white); background: var(--deep); }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section--deep .eyebrow { color: #dbc999; }
.section-title { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(30px, 4.5vw, 48px); font-weight: 500; line-height: 1.45; letter-spacing: .08em; }
.section-lead { max-width: 720px; margin: 0 0 42px; color: var(--muted); }
.section-lead.center { margin-inline: auto; text-align: center; }
.center { text-align: center; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; min-height: 50px; padding: 11px 22px; align-items: center; justify-content: center; border: 1px solid var(--deep); background: var(--deep); color: var(--white); text-decoration: none; transition: .2s ease; }
.btn:hover { background: var(--deep-2); transform: translateY(-1px); }
.btn--light { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn--outline { color: var(--deep); background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 700; text-underline-offset: 5px; }
.text-link::after { content: "→"; }

.site-header { position: sticky; top: 0; z-index: 100; color: var(--white); background: rgba(20, 36, 29, .96); border-bottom: 1px solid rgba(255,255,255,.14); }
.header-inner { width: min(calc(100% - 36px), 1320px); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--white); text-decoration: none; }
.brand-crests { display: flex; gap: 5px; }
.brand-crests img { width: 34px; height: 34px; padding: 3px; object-fit: contain; background: rgba(255,255,255,.94); border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 23px; letter-spacing: .14em; white-space: nowrap; }
.global-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 22px; list-style: none; }
.global-nav a { color: var(--white); font-size: 13px; text-decoration: none; white-space: nowrap; }
.global-nav a:hover { color: #e1cf9b; }
.header-phone { display: inline-flex; min-height: 42px; padding: 7px 14px; align-items: center; border: 1px solid #cbb77e; color: #f1e5c4; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 21px; height: 1px; margin: 5px auto; background: currentColor; content: ""; }

.hero { min-height: calc(100svh - 76px); display: grid; align-items: end; color: var(--white); background: linear-gradient(90deg, rgba(12,22,17,.78), rgba(12,22,17,.34) 55%, rgba(12,22,17,.18)), url("../images/src/bg-history.jpg") center/cover no-repeat; }
.hero-inner { width: min(calc(100% - 48px), var(--wrap)); margin: auto; padding: 120px 0 70px; }
.hero-copy { max-width: 650px; }
.hero-kicker { margin: 0 0 14px; color: #e6dbbd; font-size: 14px; letter-spacing: .22em; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 8vw, 88px); font-weight: 500; line-height: 1.25; letter-spacing: .14em; text-shadow: 0 3px 22px rgba(0,0,0,.35); }
.hero-sub { margin: 24px 0 34px; font-family: var(--serif); font-size: clamp(17px, 2.4vw, 22px); letter-spacing: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { border-top: 1px solid rgba(255,255,255,.25); background: rgba(14,29,23,.88); }
.facts-grid { width: min(100%, var(--wrap)); min-height: 122px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 30px; display: grid; place-content: center; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.fact:last-child { border-right: 0; }
.fact small { display: block; margin-bottom: 4px; color: #d9c791; font-size: 11px; letter-spacing: .16em; }
.fact strong { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); font-weight: 500; line-height: 1.55; }

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 66px; align-items: center; }
.intro-photo { position: relative; }
.intro-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.intro-photo::before { position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border: 1px solid var(--gold-light); content: ""; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card { position: relative; min-height: 360px; display: flex; align-items: end; overflow: hidden; color: var(--white); text-decoration: none; background: var(--deep); }
.guide-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.guide-card::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,18,13,.9), rgba(8,18,13,.1) 72%); content: ""; }
.guide-card:hover img { transform: scale(1.025); }
.guide-card-body { position: relative; z-index: 1; width: 100%; padding: 30px; }
.guide-card small { color: #e0ce99; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.guide-card h3 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.5; }

.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; padding: 22px 0; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-row time { color: var(--muted); font-size: 14px; }
.news-row strong { font-weight: 500; }
.empty-news { padding: 30px 0; color: var(--muted); border-block: 1px solid var(--line); }
.faq-list { border-top: 1px solid rgba(255,255,255,.28); }
.faq-list details { border-bottom: 1px solid rgba(255,255,255,.28); }
.faq-list summary { padding: 24px 44px 24px 0; position: relative; cursor: pointer; font-family: var(--serif); font-size: 19px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 24px; right: 8px; color: #d8c58f; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { margin: 0; padding: 0 0 26px 2.2em; color: #deded7; }
.faq-answer::before { margin-left: -2.2em; margin-right: .8em; color: #d8c58f; content: "A."; }
.cta-band { padding: 76px 0; color: var(--white); background: linear-gradient(110deg, rgba(20,36,29,.97), rgba(20,36,29,.84)), url("../images/src/client-supplied/batch-02-photo-10.jpg") center/cover; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.cta-band p { margin: 0; color: #e3e0d7; }
.phone-stack { text-align: right; }
.phone-large { display: block; color: var(--white); font-family: var(--serif); font-size: clamp(29px, 4vw, 42px); line-height: 1.2; letter-spacing: .06em; text-decoration: none; }
.phone-note { display: block; margin-top: 8px; color: #e0cf9d; font-size: 12px; }

.page-hero { min-height: 440px; display: grid; align-items: end; color: var(--white); background-color: var(--deep); background-size: cover; background-position: center; }
.page-hero-inner { padding: 120px 0 62px; }
.page-hero .crumb { margin: 0 0 14px; color: #e5d8b7; font-size: 12px; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); font-weight: 500; letter-spacing: .08em; }
.page-hero p { max-width: 720px; margin: 18px 0 0; font-size: 17px; }
.prose h2 { margin: 64px 0 20px; font-family: var(--serif); font-size: clamp(27px, 4vw, 38px); font-weight: 500; line-height: 1.55; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.prose p { margin: 0 0 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 38px 0; padding: 28px 32px; border-left: 3px solid var(--gold); background: var(--white); }
.media-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; align-items: start; }
.media-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.caption { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.info-table { width: 100%; border-collapse: collapse; background: var(--white); }
.info-table th, .info-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.info-table th { width: 25%; color: var(--deep); font-weight: 700; background: #eeebe3; }
.table-scroll { overflow-x: auto; }
.history-table { min-width: 680px; }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--gold-light); }
.timeline-row { position: relative; padding: 0 0 34px 34px; }
.timeline-row::before { position: absolute; top: 8px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); content: ""; }
.timeline-row strong { display: block; margin-bottom: 7px; color: var(--gold); font-family: var(--serif); font-size: 19px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; padding: 0; list-style: none; }
.feature-list li { padding: 20px 22px; background: var(--white); border-left: 3px solid var(--gold); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { padding: 24px; background: var(--white); }
.step b { display: block; margin-bottom: 7px; color: var(--gold); font-family: var(--serif); font-size: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; background: var(--white); box-shadow: 0 8px 24px rgba(20,36,29,.07); }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-item a:hover img { transform: scale(1.02); }
.gallery-item figcaption { padding: 10px 12px 13px; color: var(--muted); font-size: 12px; }

/* 伽藍写真は縦長の仏像・石標も切り抜かず、写真全体を見せる。 */
.garan-page .gallery-grid { display: block; columns: 3; column-gap: 16px; }
.garan-page .gallery-item { break-inside: avoid; margin: 0 0 16px; }
.garan-page .gallery-item img { aspect-ratio: auto; height: auto; object-fit: contain; }
.notice-box { padding: 28px 30px; border: 1px solid var(--gold-light); background: #fbf9f3; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { padding: 30px; background: var(--white); border: 1px solid var(--line); }
.contact-card h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.contact-card a { color: var(--deep); font-weight: 700; }
.map-image { width: 100%; border: 1px solid var(--line); background: var(--white); }

.site-footer { padding: 64px 0 22px; color: #ecebe5; background: var(--deep-2); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 48px; }
.footer-brand { font-family: var(--serif); font-size: 28px; letter-spacing: .12em; }
.footer-grid h2 { margin: 0 0 14px; color: #d8c58f; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid p { margin: 0 0 7px; color: #cfd2cd; font-size: 14px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: #ecebe5; font-size: 14px; text-underline-offset: 4px; }
.copyright { margin: 48px 0 0; padding-top: 20px; color: #9ca59f; font-size: 11px; border-top: 1px solid rgba(255,255,255,.12); }
.mobile-phone { display: none; }

@media (max-width: 1050px) {
  .global-nav, .header-phone { display: none; }
  .menu-button { display: block; }
  .global-nav.is-open { position: absolute; top: 76px; left: 0; right: 0; display: block; padding: 14px 24px 24px; background: var(--deep-2); border-top: 1px solid rgba(255,255,255,.12); }
  .global-nav.is-open ul { display: grid; gap: 0; }
  .global-nav.is-open a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .wrap, .narrow { width: min(calc(100% - 32px), var(--wrap)); }
  .section { padding: 68px 0; }
  .header-inner { width: calc(100% - 24px); min-height: 68px; }
  .brand-crests img { width: 29px; height: 29px; }
  .brand-name { font-size: 20px; }
  .global-nav.is-open { top: 68px; }
  .hero { min-height: 620px; background-position: 58% center; }
  .hero-inner { width: calc(100% - 32px); padding: 105px 0 52px; }
  .hero h1 { font-size: clamp(40px, 14vw, 60px); }
  .hero-actions .btn { width: 100%; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { min-height: 92px; padding: 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .fact:last-child { border-bottom: 0; }
  .intro-grid, .media-pair, .cta-inner, .footer-grid, .contact-cards { grid-template-columns: 1fr; gap: 34px; }
  .guide-grid, .feature-list { grid-template-columns: 1fr; }
  .guide-card { min-height: 300px; }
  .news-row { grid-template-columns: 90px 1fr; gap: 12px; }
  .news-row span:last-child { display: none; }
  .phone-stack { text-align: left; }
  .page-hero { min-height: 360px; }
  .page-hero-inner { padding: 90px 0 46px; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 5px; border-bottom: 0; }
  .info-table td { padding-top: 5px; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { padding: 8px 9px 10px; }
  .garan-page .gallery-grid { columns: 2; column-gap: 10px; }
  .garan-page .gallery-item { margin-bottom: 10px; }
  .mobile-phone { position: fixed; right: 12px; bottom: 12px; z-index: 90; display: inline-flex; min-height: 52px; padding: 10px 17px; align-items: center; border-radius: 999px; color: var(--white); background: var(--deep); box-shadow: 0 8px 25px rgba(0,0,0,.28); font-weight: 700; text-decoration: none; }
  .site-footer { padding-bottom: 92px; }
}

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


/* WordPress運用画面 */
body.admin-bar .site-header { top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.post-hero { min-height: 360px; display: grid; align-items: end; padding: 100px 0 54px; color: var(--white); background: var(--deep); }
.post-hero h1 { max-width: 900px; margin: 12px 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); font-weight: 500; line-height: 1.45; }
.post-meta { color: #dacb9f; font-size: 13px; }
.post-layout { width: min(calc(100% - 48px), var(--wrap)); margin: 0 auto; padding: 80px 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; }
.post-body { min-width: 0; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { margin: 2em 0 .7em; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 500; }
.post-body h3 { margin: 1.8em 0 .6em; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.post-body img { height: auto; }
.post-side .widget { margin-bottom: 26px; padding: 24px; background: var(--white); border: 1px solid var(--line); }
.post-side .widget__ttl { margin: 0 0 14px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.archive-card { display: block; color: inherit; text-decoration: none; background: var(--white); box-shadow: var(--shadow); }
.archive-card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.archive-card__body { padding: 24px; }
.archive-card__date { color: var(--gold); font-size: 12px; }
.archive-card h2 { margin: 9px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.5; }
.archive-card p { margin: 0; color: var(--muted); font-size: 14px; }
.nav-links { margin-top: 44px; display: flex; gap: 10px; }
.nav-links a, .nav-links .current { padding: 7px 13px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 768px) { .post-layout { width: min(calc(100% - 32px), var(--wrap)); grid-template-columns: 1fr; padding: 60px 0; } .archive-grid { grid-template-columns: 1fr; } }
