/* =========================================================
   かやの木会館 共通スタイル
   シンプル・レスポンシブ・既存色調を維持した現代化デザイン
   ========================================================= */
:root {
  --navy: #2c3e50;
  --navy-deep: #233140;
  --green: #27ae60;
  --green-dark: #1f8d4e;
  --orange: #d86f1f;
  --text: #24313d;
  --muted: #66727e;
  --line: #dce3e8;
  --soft: #f5f7f8;
  --white: #fff;
  --shadow: 0 12px 32px rgba(35, 49, 64, .08);
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
  font-feature-settings: "palt" 1;
  letter-spacing: .012em;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 50px; height: 58px; object-fit: cover; object-position: center; }
.brand-copy { display: block; line-height: 1.35; }
.brand-catch { display: block; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.brand-name { display: block; color: var(--navy); font-size: 20px; font-weight: 700; letter-spacing: .055em; }
.header-contact { display: flex; align-items: center; gap: 16px; }
.header-tel { text-align: right; line-height: 1.35; }
.header-tel small { display: block; color: var(--muted); font-size: 11px; }
.header-tel a { color: var(--navy); font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.btn-contact {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  color: #fff; background: var(--green);
  border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: background .2s ease, transform .2s ease;
}
.btn-contact:hover { background: var(--green-dark); transform: translateY(-1px); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
#menu-toggle { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
#menu-toggle:focus ~ .site-header .menu-btn { outline: 3px solid rgba(39,174,96,.28); outline-offset: 2px; }
.mobile-nav { display: none; }

.hero { max-width: var(--max); margin: 0 auto; padding: 28px 24px 0; }
.page-shell { max-width: var(--max); margin: 0 auto; padding: 34px 24px 64px; display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 38px; align-items: start; }
.sidebar { position: sticky; top: 112px; }
.nav-card, .side-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(35,49,64,.05); }
.nav-card .nav-title { margin: 0; padding: 12px 16px; color: #fff; background: var(--navy); font-size: 15px; text-align: center; letter-spacing: .04em; }
.nav-card ul { list-style: none; margin: 0; padding: 0; }
.nav-card a { position: relative; display: block; padding: 11px 14px 11px 30px; border-bottom: 1px solid #edf1f3; font-size: 14px; transition: background .18s ease, color .18s ease; }
.nav-card li:last-child a { border-bottom: 0; }
.nav-card a::before { content: "›"; position: absolute; left: 15px; top: 10px; color: var(--green); font-weight: 700; }
.nav-card a:hover, .nav-card a.is-current { color: var(--green-dark); background: #f1faf5; font-weight: 700; }
.side-card { margin-top: 18px; padding: 18px; }
.side-card .side-card-title { margin-bottom: 12px; color: var(--navy); font-size: 15px; }
.side-card dl { margin: 0; }
.side-card dt { color: var(--muted); font-size: 12px; }
.side-card dd { margin: 0 0 12px; font-size: 14px; }
.side-card .side-tel { color: var(--navy); font-size: 19px; font-weight: 700; }
.btn-download { display: block; margin-top: 10px; padding: 10px 12px; color: #fff; background: #68737d; border-radius: 7px; text-align: center; font-size: 13px; font-weight: 700; }

main { min-width: 0; }
.page-title { margin: 0 0 28px; padding: 0 0 13px; color: var(--navy); border-bottom: 3px solid var(--green); font-size: clamp(24px, 3vw, 34px); line-height: 1.4; letter-spacing: .055em; }
.section-heading { margin: 42px 0 18px; padding-bottom: 9px; color: var(--navy); border-bottom: 1px solid var(--line); font-size: 21px; letter-spacing: .045em; }
.section-heading:first-child { margin-top: 0; }
.lead { margin-bottom: 28px; color: var(--text); font-size: 16px; }
.note { color: var(--muted); font-size: 13px; }

.price-callout { margin: 28px 0 34px; padding: 22px 24px; background: linear-gradient(135deg,#f1faf5,#fff); border: 1px solid #cfe9d9; border-left: 5px solid var(--green); border-radius: 12px; }
.price-callout p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.price-callout strong { color: var(--navy); font-size: clamp(28px,4vw,38px); line-height: 1.3; }

.floor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 32px; }
.floor-card { overflow: hidden; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow: 0 8px 24px rgba(35,49,64,.06); transition: transform .2s ease, box-shadow .2s ease; }
.floor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.floor-card img { width:100%; aspect-ratio: 16/9; object-fit:cover; }
.floor-card span { display:block; padding:13px 14px; color:var(--navy); font-weight:700; font-size:14px; }

.banner-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin: 28px 0 40px; }
.banner-grid a { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.banner-grid img { width:100%; display:block; }

.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:28px; }
.gallery-item { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.gallery-item img { width:100%; aspect-ratio: 16/10; object-fit:cover; }
.gallery-item p { margin:0; padding:10px 12px; color:var(--muted); font-size:13px; }
.gallery-wide { display:grid; grid-template-columns: 1.45fr .75fr; gap:18px; margin-bottom:28px; }
.gallery-wide img { width:100%; height:100%; min-height:260px; object-fit:cover; border-radius:12px; border:1px solid var(--line); }

.diagram-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:24px; margin-top:30px; }
.diagram-card { padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.diagram-card-full { grid-column:1/-1; }
.diagram-card h3 { margin-bottom:14px; color:var(--navy); font-size:17px; }
.diagram-card img { display:block; margin:0 auto; max-height:520px; object-fit:contain; }

.table-scroll { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; margin-bottom:34px; border:1px solid var(--line); border-radius:12px; }
.common-table { width:100%; border-collapse:collapse; background:#fff; min-width:620px; }
.common-table th, .common-table td { padding:12px 14px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); vertical-align:middle; }
.common-table th:last-child, .common-table td:last-child { border-right:0; }
.common-table tr:last-child th, .common-table tr:last-child td { border-bottom:0; }
.common-table th { background:#f3f6f7; color:var(--navy); font-weight:700; text-align:left; }
.common-table td.money { white-space:nowrap; text-align:right; font-variant-numeric: tabular-nums; }
.common-table td.center, .common-table th.center { text-align:center; }
.common-table .accent-row td { background:#f7fbf8; }
.price-table { min-width:790px; font-size:14px; }
.equipment-table { min-width:580px; }

.price-floor { margin-bottom:30px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; box-shadow: 0 8px 24px rgba(35,49,64,.05); }
.price-floor-head { display:grid; grid-template-columns: 240px 1fr; align-items:stretch; }
.price-floor-head img { width:100%; height:100%; min-height:150px; object-fit:cover; }
.price-floor-title { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fbfcfc; }
.price-floor-title h3 { margin:0; color:var(--navy); font-size:19px; }
.price-floor-title a { color:var(--green-dark); font-weight:700; font-size:13px; }
.price-floor .table-scroll { margin:0; border:0; border-radius:0; border-top:1px solid var(--line); }

.info-box { padding:20px 22px; margin:26px 0; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
.info-box p:last-child { margin-bottom:0; }
.info-list { margin:0; padding-left:1.2em; }

.access-list { display:grid; gap:12px; margin:0 0 28px; }
.access-item { padding:16px 18px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.access-item strong { color:var(--navy); }
.map-wrap { overflow:hidden; border:1px solid var(--line); border-radius:12px; line-height:0; }
.map-wrap iframe { width:100%; min-height:430px; border:0; }


.site-footer { background: var(--navy); color:#fff; }
.footer-inner { max-width:var(--max); margin:0 auto; padding:36px 24px 30px; display:grid; grid-template-columns: 1.2fr 1fr; gap:40px; }
.footer-brand { font-weight:700; font-size:18px; margin-bottom:8px; }
.footer-inner p { color:#d9e0e5; margin-bottom:8px; font-size:13px; }
.footer-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 16px; align-content:start; }
.footer-nav a { color:#eef2f4; font-size:13px; }
.footer-nav a:hover { text-decoration:underline; }
.copyright { padding:14px 24px; background:var(--navy-deep); text-align:center; color:#cfd7dc; font-size:11px; }

.sp-actions { display:none; }

@media (max-width: 860px) {
  body { padding-bottom:64px; }
  .header-inner { min-height:68px; padding:8px 16px; }
  .brand img { width:42px; height:48px; }
  .brand-name { font-size:17px; }
  .brand-catch { display:none; }
  .header-contact { display:none; }
  .menu-btn { display:flex; }
  .mobile-nav { display:block; position:fixed; z-index:45; top:68px; left:0; right:0; max-height:0; overflow:hidden; visibility:hidden; pointer-events:none; background:#fff; box-shadow:0 12px 28px rgba(35,49,64,.14); transition:max-height .25s ease, visibility .25s ease; }
  #menu-toggle:checked ~ .mobile-nav { max-height:calc(100vh - 68px); overflow-y:auto; visibility:visible; pointer-events:auto; border-bottom:1px solid var(--line); }
  .mobile-nav ul { list-style:none; margin:0; padding:8px 16px 16px; }
  .mobile-nav a { display:block; padding:11px 4px; border-bottom:1px solid #edf1f3; font-size:14px; }
  .hero { padding:18px 16px 0; }
  .page-shell { display:block; padding:26px 16px 48px; }
  .sidebar { display:none; }
  .page-title { margin-bottom:22px; }
  .gallery-wide { grid-template-columns:1fr; }
  .gallery-wide img { min-height:0; }
  .diagram-grid { grid-template-columns:1fr; }
  .price-floor-head { grid-template-columns:1fr; }
  .price-floor-head img { max-height:220px; }
  .footer-inner { grid-template-columns:1fr; gap:20px; padding:28px 16px 24px; }
  .sp-actions { position:fixed; z-index:60; left:0; right:0; bottom:0; display:grid; grid-template-columns:1fr 1fr; box-shadow:0 -6px 18px rgba(0,0,0,.12); }
  .sp-actions a { min-height:58px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; }
  .sp-actions .tel { background:var(--navy); }
  .sp-actions .mail { background:var(--green); }
}

@media (max-width: 600px) {
  body { font-size:15px; }
  .floor-grid, .gallery-grid, .banner-grid { grid-template-columns:1fr; }
  .section-heading { font-size:19px; }
  .price-callout { padding:18px; }
  .price-floor-title { align-items:flex-start; flex-direction:column; }
  .common-table th, .common-table td { padding:10px 11px; }
  .map-wrap iframe { min-height:340px; }
}


/* お知らせ・お問い合わせフォーム */
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.news-item { min-width: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.news-date { margin: 0 0 7px; font-size: 14px; color: var(--green-dark); font-family: Arial, sans-serif; }
.news-title { margin: 0 0 12px; color: var(--navy); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.news-content { min-width: 0; }
.news-photo { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 6px; background: none; overflow: hidden; cursor: zoom-in; }
.news-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; }
.news-zoom-icon { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(20, 32, 43, .78); color: #fff; pointer-events: none; }
.news-zoom-icon svg { width: 18px; height: 18px; }
.news-photo:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.news-image-dialog { max-width: min(94vw, 1100px); max-height: 94vh; padding: 14px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 14px 55px rgba(0, 0, 0, .3); }
.news-image-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.news-image-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 70px); width: auto; height: auto; margin: auto; object-fit: contain; }
.news-image-dialog-close { display: block; margin: 0 0 10px auto; padding: 4px 10px; border: 1px solid #cbd5dc; border-radius: 4px; background: #fff; color: #222; font: inherit; cursor: pointer; }
.news-content-no-image { display: block; }
.news-item-after-third { display: none; }
.news-expanded .news-item-after-third { display: block; }
@media (max-width: 600px) {
  .news-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-item-after-first { display: none; }
  .news-expanded .news-item-after-first { display: block; }
}
.news-empty { margin: 0; padding: 22px 0; color: #666; }
.side-contact-btn {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.side-contact-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.contact-cta {
  margin-top: 42px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #cfe9d9;
  border-left: 5px solid var(--green);
  border-radius: 12px;
  background: #f7fbf8;
}
.contact-cta-copy h2 { margin: 0 0 7px; color: var(--navy); font-size: 20px; }
.contact-cta-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.contact-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.contact-cta-actions .cta-form { background: var(--green); color: #fff; }
.contact-cta-actions .cta-tel { border: 1px solid var(--navy); background: #fff; color: var(--navy); }

.contact-intro { margin-bottom: 28px; }
.contact-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35,49,64,.05);
}
.form-row {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  border-bottom: 1px solid var(--line);
}
.form-label {
  margin: 0;
  padding: 20px;
  background: #f7f9fa;
  color: var(--navy);
  font-weight: 700;
}
.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #b74343;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  vertical-align: 1px;
}
.form-field { padding: 16px 20px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd5dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(39,174,96,.12);
}
.form-field textarea { min-height: 220px; resize: vertical; }
.form-help { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.form-actions { padding: 24px 20px; text-align: center; }
.form-submit {
  min-width: 240px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.form-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.form-message {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #f0caca;
  background: #fff7f7;
  color: #8c2f2f;
}
.form-message ul { margin: 0; padding-left: 1.4em; }
.form-success {
  padding: 28px;
  border: 1px solid #cfe9d9;
  border-left: 5px solid var(--green);
  border-radius: 12px;
  background: #f4fbf7;
}
.form-success h2 { margin-bottom: 10px; color: var(--navy); font-size: 22px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 600px) {
  .contact-cta { align-items: stretch; flex-direction: column; padding: 20px; }
  .contact-cta-actions { width: 100%; }
  .contact-cta-actions a { flex: 1 1 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-label { padding: 14px 15px 4px; background: #fff; }
  .form-field { padding: 8px 15px 16px; }
  .form-actions { padding: 20px 15px; }
  .form-submit { width: 100%; min-width: 0; }
}


/* =========================================================
   2026-10 写真刷新 / 榧寺コンテンツ
   ========================================================= */
.gallery-feature {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 30px;}
.gallery-feature .gallery-item{margin:0}.gallery-feature .gallery-item:first-child{grid-row:1/3}.gallery-feature .gallery-item img{width:100%;height:100%;min-height:220px;aspect-ratio:auto;object-fit:cover}.gallery-feature .gallery-item:first-child img{min-height:456px}
.temple-hero{position:relative;overflow:hidden;margin-bottom:34px;border-radius:16px;box-shadow:var(--shadow);background:var(--navy)}
.temple-hero img{width:100%;height:470px;object-fit:cover;display:block}.temple-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,20,28,.02) 30%,rgba(10,20,28,.72) 100%);pointer-events:none}.temple-hero-copy{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:34px 36px 30px;color:#fff}.temple-hero-copy .eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.16em}.temple-hero-copy h2{margin:0 0 8px;font-size:30px;font-weight:600;letter-spacing:.06em}.temple-hero-copy p{max-width:690px;margin:0;color:rgba(255,255,255,.93);font-size:14px;line-height:1.9}.temple-intro{margin:0 0 34px;font-size:17px;line-height:2.05}.temple-facts{margin-bottom:42px}.temple-facts .common-table{min-width:0}.temple-facts .common-table th{width:145px}
.story-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start;margin:0 0 42px}.story-copy p{margin-bottom:1.25em}.story-photo{margin:0}.story-photo img{width:100%;border-radius:12px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(35,49,64,.06)}.story-photo figcaption{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.65}
.heritage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 40px}.heritage-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(35,49,64,.05)}.heritage-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.heritage-card-body{padding:18px 20px 20px}.heritage-card h3{margin:0 0 8px;color:var(--navy);font-size:18px}.heritage-card p{margin:0;color:var(--muted);font-size:14px}
.ishikawa-feature{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.15fr);gap:28px;margin:0 0 42px;padding:24px;border:1px solid #ded7c8;border-radius:16px;background:#fbfaf7}.ishikawa-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ishikawa-photos img{width:100%;height:170px;object-fit:cover;border-radius:9px}.ishikawa-photos img:first-child{grid-column:1/-1;height:260px}.ishikawa-copy h3{margin:0 0 12px;color:var(--navy);font-size:23px}.ishikawa-copy p{margin-bottom:1.1em}.ishikawa-copy p:last-child{margin-bottom:0}
.temple-scenes{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:12px;margin:0 0 42px}.temple-scenes figure{margin:0;overflow:hidden;border-radius:12px;background:var(--soft)}.temple-scenes img{width:100%;height:260px;object-fit:cover;display:block}.temple-scenes figure:first-child img{height:100%;min-height:260px}
.story-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:38px}.story-card{padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.story-card h3{margin:0 0 8px;color:var(--navy);font-size:18px}.story-card p{margin:0;font-size:14px}
@media(max-width:860px){.gallery-feature{grid-template-columns:1fr 1fr;grid-template-rows:auto}.gallery-feature .gallery-item:first-child{grid-column:1/-1;grid-row:auto}.gallery-feature .gallery-item:first-child img{min-height:0;aspect-ratio:16/10}.gallery-feature .gallery-item img{min-height:0;aspect-ratio:4/3}.temple-hero img{height:400px}.story-layout,.ishikawa-feature{grid-template-columns:1fr}.story-photo{max-width:520px}.temple-scenes{grid-template-columns:1fr 1fr}.temple-scenes figure:first-child{grid-column:1/-1}}
@media(max-width:600px){.gallery-feature,.heritage-grid,.story-cards,.temple-scenes{grid-template-columns:1fr}.gallery-feature .gallery-item:first-child,.temple-scenes figure:first-child{grid-column:auto}.temple-hero{margin-left:-16px;margin-right:-16px;border-radius:0}.temple-hero img{height:340px}.temple-hero-copy{padding:24px 20px 22px}.temple-hero-copy h2{font-size:24px}.temple-intro{font-size:16px}.ishikawa-feature{padding:16px}.ishikawa-photos img,.ishikawa-photos img:first-child{height:190px}.temple-facts .common-table th{width:105px}.temple-facts .table-scroll{overflow:visible}}

/* =========================================================
   2026-10 トップメインビジュアル PC/SP専用画像
   ========================================================= */
.hero-frame {
  overflow:hidden;
  border-radius:16px;
  box-shadow:var(--shadow);
  background:var(--soft);
}
.hero-frame picture,
.hero-frame img {
  display:block;
  width:100%;
}
.hero-frame img {
  height:auto;
  max-height:none;
  object-fit:contain;
}
@media (max-width:600px) {
  .hero { padding:14px 14px 0; }
  .hero-frame { border-radius:12px; }
}

.news-more-button { display: block; margin: 22px auto 8px; padding: 10px 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; }
.news-more-button:hover { background: #f5f7f6; }
.news-more-button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

@media (min-width: 601px) { .news-more-mobile-only { display: none; } }
