/* ============================================================
   梅林山 菩提寺 ― Site Stylesheet
   Designed by LIH Co., Ltd.
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties
   ============================================================ */
:root {
  /* ── Color Palette ── */
  --color-navy: #1e2a5e;
  --color-navy-deep: #0f1535;
  --color-navy-mid: #1a2252;
  --color-navy-light: #263478;

  /* Accent 1: 金色 */
  --color-gold: #b8913f;
  --color-gold-light: #d4ac5a;
  --color-gold-pale: #e8d09a;
  --color-gold-muted: #8c6e30;

  /* Accent 2: 紫 (Murasaki) */
  --color-murasaki: #6b3f9e;
  --color-murasaki-light: #8b60c0;
  --color-murasaki-pale: #c4a8e0;

  /* Accent 3: 若草色 (Wakakusa) */
  --color-wakakusa: #5a8c28;
  --color-wakakusa-light: #7ab840;

  /* Surface & Text */
  --color-cream: #f0ebe0;
  --color-cream-warm: #e8e0d2;
  --color-parchment: #f5f0e8;
  --color-text-dark: #1a1410;
  --color-text-mid: #4a3e30;
  --color-text-muted: #7a6e60;
  --color-white: #ffffff;

  /* Border */
  --color-border: rgba(184, 145, 63, 0.25);
  --color-border-light: rgba(184, 145, 63, 0.12);

  /* ── Typography ── */
  --font-primary: 'Noto Serif JP', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  --font-display: 'Shippori Mincho B1', 'Noto Serif JP', 'Hiragino Mincho Pro', serif;
  --font-latin: 'Cormorant Garamond', Georgia, serif;

  /* ── Font Sizes ── */
  --fs-body: 1.1rem;
  --fs-sm: 1.0rem;
  --fs-xs: 0.9rem;
  --fs-label: 0.82rem;

  /* ── Spacing ── */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 8rem;

  /* ── Layout ── */
  --max-width: 1200px;
  --max-width-narrow: 740px;
  --max-width-wide: 1360px;
  --header-height: 72px;

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.7s;
  --dur-xslow: 1.1s;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-text-dark);
  background-color: var(--color-parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s, color .2s;
}

a:hover {
  opacity: .72;
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

strong {
  font-weight: 600;
}

ruby rt {
  font-size: .6em;
  font-weight: 300;
}

small {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   3. Typography
   ============================================================ */
.section-header {
  margin-bottom: var(--sp-xl);
}

.section-header--center {
  text-align: center;
}

.section-header--light .section-eyebrow,
.section-header--light .section-title {
  color: var(--color-cream);
}

.section-header--light .section-title-rule {
  background: var(--color-gold);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.3;
  color: var(--color-navy-deep);
}

.section-title-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin-top: 1rem;
}

.section-header--center .section-title-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  margin-top: 1.25rem;
  font-size: var(--fs-body);
  color: var(--color-text-mid);
  line-height: 2;
}

.btn-text {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.btn-text:hover {
  opacity: 1;
  color: var(--color-gold-muted);
  border-color: var(--color-gold-muted);
}

.text-blue {
  color: #263478;
  font-weight: 500;
}

/* ============================================================
   4. Layout Utilities
   ============================================================ */
.section {
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
  position: relative;
}

.section__inner {
  width: 92%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section__inner--narrow {
  max-width: var(--max-width-narrow);
}

.section__inner--wide {
  max-width: var(--max-width-wide);
}

.facility-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.facility-photos-grid .photo-main {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: #c4bbb0;
}

.facility-photos-grid img:not(.photo-main) {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #c4bbb0;
}

.price-note {
  display: block;
  font-size: var(--fs-xs);
  font-family: var(--font-latin);
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-top: .15rem;
}

/* ============================================================
   5. Scroll Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #5a8c28 0%, #b8913f 50%, #8b60c0 100%);
  z-index: 1100;
  transition: width .1s linear;
  pointer-events: none;
}

/* ============================================================
   6. Site Header & Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(15, 21, 53, 0.93);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(184, 145, 63, .2);
  transition: background .4s, box-shadow .4s;
}

.site-header.scrolled {
  background: rgba(15, 21, 53, 0.99);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 92%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.header-logo__link {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  line-height: 1;
}

.header-logo__kamon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  flex-shrink: 0;
  transition: opacity .25s;
}

.header-logo__link:hover .header-logo__kamon {
  opacity: 1;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.global-nav a {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .85);
  padding: .25rem 0;
  position: relative;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width .4s var(--ease-out-expo);
}

.global-nav a:hover {
  opacity: 1;
  color: var(--color-gold-light);
}

.global-nav a:hover::after {
  width: 100%;
}

.nav-contact {
  border: 1px solid rgba(184, 145, 63, .5) !important;
  padding: .3rem 1rem !important;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s !important;
}

.nav-contact:hover {
  background: var(--color-gold) !important;
  color: var(--color-navy-deep) !important;
  border-color: var(--color-gold) !important;
}

.nav-contact::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-white);
  transition: transform .4s var(--ease-out-expo), opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.global-nav-mobile {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(10, 14, 40, .97);
  border-bottom: 1px solid rgba(184, 145, 63, .2);
  padding: var(--sp-md) 0;
}

.global-nav-mobile ul {
  width: 92%;
  margin: 0 auto;
}

.global-nav-mobile li+li {
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.global-nav-mobile a {
  display: block;
  padding: .85rem 0;
  font-size: 1rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .85);
}

/* ============================================================
   7. Hero Section
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--color-navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  animation: heroZoom 18s var(--ease-in-out) forwards;
  will-change: transform;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.02);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(10, 14, 40, .62) 0%,
      rgba(10, 14, 40, .38) 45%,
      rgba(15, 21, 53, .18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  text-align: left;
  padding-top: calc(var(--header-height) + clamp(3rem, 8vh, 6rem));
  padding-left: clamp(3rem, 8vw, 9rem);
  padding-right: 1rem;
  animation: heroFadeUp 1.4s var(--ease-out-expo) .3s both;
  max-width: min(560px, 50%);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-img {
  width: clamp(180px, 22vw, 300px);
  display: block;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .45));
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .9);
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-denom {
  display: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-latin);
  font-size: .85rem;
  letter-spacing: .3em;
  z-index: 2;
  animation: heroFadeUp 1s 1.5s both;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================================
   8. Stats Strip
   ============================================================ */
.stats-strip {
  background-color: #1a2252;
  border-top: 1px solid rgba(184, 145, 63, .25);
  border-bottom: 1px solid rgba(184, 145, 63, .15);
  padding: 2.8rem 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      transparent 0px, transparent 18px,
      rgba(184, 145, 63, .05) 18px, rgba(184, 145, 63, .05) 19px);
  pointer-events: none;
}

.stats-strip__inner {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.stats-grid {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.stat-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 1.4rem .5rem;
  border-right: 1px solid rgba(184, 145, 63, .2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  display: block;
  font-size: 1.0rem;
  letter-spacing: .12em;
  color: rgba(232, 208, 154, .92);
  margin-bottom: .4rem;
  font-weight: 400;
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -.02em;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
}

.stat-unit {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #e8d09a;
  letter-spacing: .05em;
}

.stat-sub {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(232, 208, 154, .72);
  margin-top: .4rem;
}

/* ============================================================
   9. News Band
   ============================================================ */
.news-band {
  background-color: #1e2a5e;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid rgba(184, 145, 63, .18);
}

.news-band__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.news-band__label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--color-gold);
  padding-top: .2rem;
  border-right: 1px solid rgba(184, 145, 63, .35);
  padding-right: var(--sp-md);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
}

.news-date {
  font-family: var(--font-latin);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--color-gold-pale);
  flex-shrink: 0;
}

.news-text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .88);
  letter-spacing: .04em;
}

/* ============================================================
   10. Section: About (寺院の紹介)
   ============================================================ */
.section--about {
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
  background-color: var(--color-parchment);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
  margin-bottom: var(--sp-2xl);
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 2.1;
  color: #2a2018;
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.about-body {
  font-size: var(--fs-body);
  color: var(--color-text-mid);
  line-height: 2;
}

.temple-info {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border);
}

.temple-info__grid {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .5rem 1rem;
  align-items: baseline;
}

.temple-info__grid dt {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-gold-muted);
}

.temple-info__grid dd {
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  letter-spacing: .04em;
}

.temple-info__grid dd a {
  color: var(--color-navy);
  font-family: var(--font-latin);
  font-size: 1.1rem;
  letter-spacing: .08em;
}

.gallery-label {
  font-size: .88rem;
  letter-spacing: .2em;
  color: var(--color-gold-muted);
  margin-top: .7rem;
  margin-bottom: 0;
  font-weight: 500;
  text-align: center;
}

.excavation-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compare-btn {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  aspect-ratio: 3/4;
}

.compare-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out-expo);
}

.compare-btn:hover img {
  transform: scale(1.04);
}

.compare-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 14, 40, .75), transparent);
  color: var(--color-cream);
  font-size: .88rem;
  letter-spacing: .2em;
  padding: .6rem .7rem .5rem;
  text-align: center;
}

.map-wrap {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(10, 14, 40, .12);
  border: 1px solid var(--color-border-light, rgba(184, 145, 63, .12));
}

.map-wrap iframe {
  display: block;
}

/* ============================================================
   11. Section: Priest (住職の紹介)
   ============================================================ */
.section--priest {
  position: relative;
  background: linear-gradient(135deg, #0f1535 0%, #160f2a 100%);
  color: var(--color-cream);
  padding: var(--sp-3xl) 0;
}

.section--priest .section__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-lg) var(--sp-3xl);
  align-items: stretch;
}

/* PC用：左カラムの縦長コンテンツ */
.priest-visual-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 300px;
  flex-shrink: 0;
  height: 100%;
}

.priest-visual {
  position: relative;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  width: 300px;
  height: 380px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.priest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.priest-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(15, 21, 53, .5) 100%);
}

/* 縦書き引用ブロック（PCでは高さを引き伸ばす） */
.priest-photo-quote {
  background: rgba(10, 14, 40, .85);
  border: 1px solid rgba(184, 145, 63, .25);
  border-top: none;
  border-radius: 0 0 3px 3px;
  padding: 3rem 1rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.priest-photo-quote p {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin-top: 3rem;
}

.priest-photo-quote p span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  font-size: clamp(.88rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: .22em;
  color: rgba(240, 235, 224, .9);
  display: block;
  /* 「こそ」の孤立改行を防ぐ */
  white-space: nowrap;
}

.priest-photo-quote p span:nth-child(1) {
  margin-top: 2rem;
}

.priest-photo-quote p span:nth-child(2) {
  margin-top: 5rem;
}

.priest-photo-quote p span:nth-child(3) {
  margin-top: 8rem;
}

.priest-photo-quote footer {
  padding-top: .6rem;
  border-top: 1px solid rgba(184, 145, 63, .2);
  width: 100%;
  text-align: center;
}

.priest-photo-quote cite {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(196, 168, 224, .5);
}

/* PC用：右カラムのテキスト群 */
.priest-content-top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1rem;
}

.priest-content-bottom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.priest-name-ja {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--color-white);
  margin-top: var(--sp-lg);
}

.priest-role {
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--color-gold-pale);
  font-weight: 300;
  margin-top: .25rem;
  margin-bottom: var(--sp-lg);
}

.priest-story p {
  font-size: var(--fs-body);
  line-height: 2.1;
  color: rgba(244, 237, 224, .88);
  margin-bottom: .8rem;
}

.priest-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-gold-light);
  border-left: 2px solid #8b60c0;
  padding-left: 1rem;
  margin: var(--sp-md) 0;
  line-height: 1.8;
}

.priest-profile {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: var(--sp-lg) 0 var(--sp-md);
  padding: var(--sp-md) 0;
  border-top: 1px solid rgba(184, 145, 63, .2);
  border-bottom: 1px solid rgba(184, 145, 63, .2);
}

.priest-profile li {
  display: flex;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(244, 237, 224, .75);
  letter-spacing: .06em;
}

.priest-profile span {
  flex-shrink: 0;
  color: var(--color-gold-pale);
  width: 2.5rem;
  font-size: .88rem;
  letter-spacing: .1em;
}

.priest-message {
  margin-top: var(--sp-md);
}

.priest-message p {
  font-size: var(--fs-sm);
  line-height: 2.1;
  color: rgba(244, 237, 224, .8);
  margin-bottom: .8rem;
}

.priest-message strong {
  color: var(--color-gold-light);
}

/* ============================================================
   13. Section: Facilities (施設の紹介)
   ============================================================ */
.section--facilities {
  background-color: var(--color-cream-warm);
}

.facility-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  padding: var(--sp-xl) 0;
}

.facility-block--reverse {
  direction: rtl;
}

.facility-block--reverse>* {
  direction: ltr;
}

.facility-block__text {
  padding: var(--sp-md);
}

.facility-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-navy-deep);
  margin-bottom: .6rem;
}

.facility-name::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #5a8c28, #b8913f);
  margin-bottom: .8rem;
}

.facility-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  letter-spacing: .08em;
  margin-bottom: .8rem;
}

.facility-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.facility-list li {
  font-size: var(--fs-sm);
  color: var(--color-text-mid);
  padding-left: 1rem;
  position: relative;
}

.facility-list li::before {
  content: '―';
  position: absolute;
  left: 0;
  color: var(--color-gold-muted);
  font-size: .6rem;
  top: .3em;
}

.facility-divider {
  height: 1px;
  background: var(--color-border-light, rgba(184, 145, 63, .12));
}

/* ============================================================
   14. Section: Art
   ============================================================ */
.section--art {
  background: linear-gradient(175deg, #0f1535 0%, #160f2a 100%);
  color: var(--color-cream);
}

.section--art .section-title {
  color: var(--color-white);
}

.section--art .section-lead {
  color: rgba(244, 237, 224, .78);
}

.art-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid rgba(184, 145, 63, .12);
}

.art-block--wide {
  grid-template-columns: 3fr 2fr;
}

.art-block--reverse {
  direction: rtl;
}

.art-block--reverse>* {
  direction: ltr;
}

.art-block__media img {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.art-block__media--portrait img {
  aspect-ratio: 3/4;
  max-height: 500px;
}

.art-category-header {
  padding: var(--sp-xl) 0 var(--sp-sm);
}

.art-category-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--color-gold);
  position: relative;
  padding-left: 1rem;
}

.art-category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #5a8c28;
}

.stglass-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.stglass-list>li {
  font-size: var(--fs-sm);
  color: rgba(244, 237, 224, .88);
}

.stglass-list strong {
  display: block;
  color: var(--color-gold-pale);
  font-size: .85rem;
  letter-spacing: .12em;
  margin-bottom: .3rem;
}

.stglass-list ul {
  padding-left: .8rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.stglass-list ul li {
  font-size: .88rem;
  color: rgba(244, 237, 224, .7);
  display: flex;
  gap: .5rem;
  align-items: baseline;
}

.stglass-list ul li small {
  font-family: var(--font-latin);
  font-size: .82rem;
  color: rgba(184, 145, 63, .6);
}

/* ============================================================
   15. Section: Nokotsutan (納骨壇)
   ============================================================ */
.section--nokotsutan {
  background-color: var(--color-parchment);
}

.nokotsutan-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.nokotsutan-location {
  font-size: var(--fs-sm);
  color: var(--color-text-mid);
  line-height: 2;
  margin-bottom: var(--sp-md);
}

.nokotsutan-types {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: var(--sp-lg);
}

.nokotsutan-types li {
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  padding-left: 1rem;
  position: relative;
}

.nokotsutan-types li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-gold-muted);
}

.nokotsutan-types small {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.nokotsutan-inquiry {
  margin-top: var(--sp-md);
}

/* ============================================================
   16. Section: Pet Memorial
   ============================================================ */
.section--pet {
  background: linear-gradient(160deg, #1e2a5e 0%, #20163a 100%);
  color: var(--color-cream);
}

.section--pet .section-title {
  color: var(--color-white);
}

.section--pet .section-sub {
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--color-gold-pale);
  margin-top: .5rem;
}

.pet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.pet-body {
  font-size: var(--fs-sm);
  line-height: 2.1;
  color: rgba(244, 237, 224, .82);
  margin-bottom: .8rem;
}

.pet-types {
  margin-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  border-top: 1px solid rgba(184, 145, 63, .2);
  padding-top: var(--sp-md);
}

.pet-types li,
.pet-fees li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: var(--fs-sm);
  color: rgba(244, 237, 224, .85);
}

.pet-type-label {
  font-family: var(--font-latin);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--color-gold-light);
  border: 1px solid rgba(184, 145, 63, .4);
  padding: .1rem .4rem;
  border-radius: 1px;
  flex-shrink: 0;
}

.pet-fees {
  margin-top: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.pet-inquiry {
  margin-top: var(--sp-md);
}

.section--pet .btn-text {
  color: var(--color-gold-pale);
  border-bottom-color: rgba(184, 145, 63, .4);
}

.section--pet .btn-text:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   17. Section: Contact
   ============================================================ */
.section--contact {
  background-color: var(--color-cream-warm);
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
}

.contact-block {
  text-align: center;
  padding: var(--sp-xl);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background-color: var(--color-parchment);
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: var(--color-navy);
  margin-bottom: .4rem;
}

.contact-post {
  font-size: var(--fs-sm);
  color: var(--color-text-mid);
  letter-spacing: .06em;
  margin-bottom: .8rem;
}

.contact-tel a {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
}

.contact-tel-label {
  font-family: var(--font-latin);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--color-gold-muted);
}

.contact-tel-num {
  font-family: var(--font-latin);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--color-navy);
}

/* ============================================================
   18. Site Footer
   ============================================================ */
.site-footer {
  background-color: #0f1535;
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-top: 1px solid rgba(184, 145, 63, .15);
}

.footer-inner {
  text-align: center;
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.footer-logo {
  margin-bottom: .4rem;
}

.footer-logo-kana {
  display: block;
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--color-gold-pale);
  opacity: .6;
}

.footer-logo-kanji {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--color-white);
}

.footer-denom {
  font-size: .85rem;
  letter-spacing: .2em;
  color: rgba(244, 237, 224, .45);
}

.footer-address {
  font-size: .85rem;
  letter-spacing: .06em;
  color: rgba(244, 237, 224, .4);
}

.footer-copy {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, .06);
  width: 100%;
}

.footer-copy small {
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .25);
}

.footer-copy a {
  color: rgba(184, 145, 63, .4);
}

.footer-copy a:hover {
  color: rgba(184, 145, 63, .7);
  opacity: 1;
}

/* ============================================================
   19. Scroll Animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-xslow) var(--ease-out-expo), transform var(--dur-xslow) var(--ease-out-expo);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   20. Responsive: Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sp-3xl: 6rem;
    --sp-2xl: 4rem;
  }

  .global-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding-left: clamp(2.5rem, 6vw, 5rem);
    max-width: min(55%, 480px);
  }

  .hero-logo-img {
    width: clamp(160px, 20vw, 240px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  /* --- 住職セクションのSP/Tabletレイアウト（順序入れ替え） --- */
  .section--priest .section__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .priest-visual-wrap {
    grid-column: 1;
    grid-row: 2;
    /* 順序変更：上部テキスト(1) -> 写真(2) -> 下部テキスト(3) */
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
  }

  .priest-content-top {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .priest-content-bottom {
    grid-column: 1;
    grid-row: 3;
    padding: 0;
  }

  .priest-visual {
    width: 100%;
    max-width: 360px;
    height: 380px;
    margin: 0 auto;
  }

  /* スマホ・タブレットでは引用文を横並びに */
  .priest-photo-quote {
    width: 100%;
    padding: 2rem 1rem 1.5rem;
    flex-grow: 0;
  }

  .priest-photo-quote p {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .priest-photo-quote p span {
    writing-mode: horizontal-tb;
    font-size: .95rem;
    letter-spacing: .1em;
    line-height: 1.85;
    margin-top: 0 !important;
    white-space: normal;
    /* 横書き時は改行を許可 */
    text-align: center;
  }

  /* ----------------------------------------------------- */

  /* --- 施設セクションのSP/Tabletレイアウト --- */
  .fac-row,
  .fac-row--rev {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    /* 写真とテキストの余白を狭くする */
    padding: var(--sp-lg) 0;
  }

  .fac-row--rev .fac-row__photos {
    order: 0;
  }

  .fac-row--rev .fac-row__text {
    order: 0;
  }

  /* 全て「下部に横並びサムネイル」のスタイルに統一 */
  .fac-row__photos--vsubs {
    flex-direction: column;
  }

  .fac-row__photos--vsubs .fac-row__subs {
    flex-direction: row;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .fac-row__photos--vsubs .fac-row__subs img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    flex: unset;
  }

  /* ----------------------------------------------------- */

  .facility-block {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .facility-block--reverse {
    direction: ltr;
  }

  .art-block {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .art-block--wide {
    grid-template-columns: 1fr;
  }

  .art-block--reverse {
    direction: ltr;
  }

  .nokotsutan-layout,
  .pet-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .stats-grid {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 30%;
  }
}

/* ============================================================
   21. Responsive: Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sp-3xl: 4rem;
    --sp-2xl: 2.8rem;
    --sp-xl: 2rem;
    --header-height: 60px;
  }

  html {
    font-size: 16px;
  }

  .hero {
    height: 100svh;
    min-height: 100dvh;
  }

  .hero-img {
    object-position: 60% 38%;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + clamp(2rem, 6vh, 4rem));
    padding-left: clamp(1.5rem, 6vw, 3rem);
    padding-right: 1rem;
    max-width: min(85%, 380px);
  }

  .hero-logo-img {
    width: clamp(140px, 42vw, 210px);
    margin-bottom: .8rem;
  }

  .hero-lead {
    font-size: clamp(.9rem, 3.8vw, 1.05rem);
    letter-spacing: .18em;
  }

  .stats-grid {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(184, 145, 63, .15);
  }

  .stat-num {
    font-size: 2rem;
  }

  .news-band__inner {
    flex-direction: column;
    gap: .6rem;
  }

  .news-band__label {
    border-right: none;
    border-bottom: 1px solid rgba(184, 145, 63, .35);
    padding-right: 0;
    padding-bottom: .4rem;
  }

  .about-layout {
    grid-template-columns: 1fr !important;
    gap: var(--sp-xl);
  }

  .excavation-compare {
    grid-template-columns: 1fr;
  }

  .compare-btn {
    aspect-ratio: 4/3;
  }

  .temple-info__grid {
    grid-template-columns: 3.5rem 1fr;
  }

  .map-wrap iframe {
    height: 260px;
  }

  /* Priest section text tweaks for smaller mobile */
  .priest-name-ja {
    font-size: 1.5rem;
    margin-top: var(--sp-md);
  }

  .priest-story p,
  .priest-message p {
    font-size: .95rem;
    line-height: 1.9;
  }

  .priest-profile li {
    font-size: .88rem;
    flex-wrap: wrap;
  }

  .fac-row,
  .fac-row--rev {
    grid-template-columns: 1fr !important;
  }

  .fac-row__photos {
    order: 1;
  }

  .fac-row__text {
    padding: 0 .5rem;
  }

  .fac-row__name {
    font-size: 1.3rem;
    white-space: normal;
  }

  .fac-row__subs {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .art-feature {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }

  .art-feature__main-wrap {
    aspect-ratio: 4/3;
  }

  .art-feature__sub-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .art-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stglass-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }

  .nokotsutan-layout {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }

  .facility-photos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facility-photos-grid .photo-main {
    aspect-ratio: 4/3;
  }

  .pet-layout {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }

  .pet-types li {
    flex-wrap: wrap;
    gap: .4rem;
  }

  .contact-block {
    padding: var(--sp-lg) var(--sp-md);
  }

  .contact-tel-num {
    font-size: 1.8rem;
  }

  .section-header {
    margin-bottom: var(--sp-lg);
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

/* ============================================================
   22. Responsive: Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-img {
    object-position: 55% 35%;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-logo-img {
    width: clamp(120px, 50vw, 180px);
  }

  .hero-lead {
    font-size: .88rem;
    letter-spacing: .14em;
  }

  .stats-grid {
    flex-direction: column;
  }

  .stat-item {
    flex: none;
    width: 100%;
  }

  .fac-row__subs {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .fac-row__subs img {
    aspect-ratio: 1;
  }

  .art-gallery {
    grid-template-columns: 1fr !important;
  }

  .art-feature__sub-row img {
    aspect-ratio: 1;
  }

  .facility-photos-grid img:not(.photo-main) {
    aspect-ratio: 1;
  }

  .pet-types li {
    flex-direction: column;
    gap: .1rem;
  }

  .nokotsutan-types li {
    font-size: var(--fs-sm);
  }

  .priest-visual {
    max-width: 280px !important;
    height: 320px !important;
  }
}

/* ============================================================
   ART: プラネタリウム特集
   ============================================================ */
.art-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid rgba(184, 145, 63, .15);
  margin-bottom: var(--sp-lg);
}

.art-feature__media {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.art-feature__main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  background: #c4bbb0;
}

.art-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 2px;
  display: block;
  transition: opacity .35s ease;
  min-height: unset;
}

.art-feature__sub-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.art-feature__sub-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1px;
  background: #c4bbb0;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s ease, outline .2s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.art-feature__sub-row img:hover {
  opacity: .9;
}

.art-feature__sub-row img.is-active {
  opacity: 1;
  outline-color: #b8913f;
}

.art-feature__eyebrow {
  font-family: var(--font-latin);
  font-size: .82rem;
  letter-spacing: .22em;
  color: var(--color-gold);
  margin-bottom: .4rem;
}

.art-feature__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: .1em;
  margin-bottom: .4rem;
}

.art-feature__spec {
  font-size: var(--fs-xs);
  color: rgba(232, 208, 154, .65);
  letter-spacing: .1em;
  margin-bottom: .8rem;
}

.art-feature__theme {
  font-size: var(--fs-sm);
  color: var(--color-gold-light);
  letter-spacing: .08em;
  margin-bottom: .6rem;
}

.art-feature__desc {
  font-size: var(--fs-sm);
  line-height: 2;
  color: rgba(244, 237, 224, .75);
}

@media (max-width: 900px) {
  .art-feature {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

/* ============================================================
   ART: カテゴリ見出し
   ============================================================ */
.art-cat-header {
  padding: var(--sp-lg) 0 var(--sp-md);
}

.art-cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--color-gold);
  position: relative;
  padding-left: 1rem;
}

.art-cat-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #5a8c28;
}

/* ============================================================
   ART: 絵画ギャラリー (3列グリッド)
   ============================================================ */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: var(--sp-xl);
}

.art-gallery__item {
  display: flex;
  flex-direction: column;
}

.art-gallery__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  background: #c4bbb0;
  margin-bottom: .8rem;
}

.art-gallery__img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .7s var(--ease-out-expo);
}

.art-gallery__item:hover .art-gallery__img-wrap img {
  transform: scale(1.04);
}

.art-gallery__caption {
  flex: 1;
}

.art-gallery__artist {
  font-size: var(--fs-xs);
  color: rgba(232, 208, 154, .7);
  letter-spacing: .1em;
  margin-bottom: .2rem;
}

.art-gallery__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.art-gallery__spec {
  font-size: var(--fs-xs);
  color: rgba(232, 208, 154, .5);
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

.art-gallery__desc {
  font-size: var(--fs-sm);
  color: rgba(244, 237, 224, .65);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .art-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .art-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ART: ステンドグラスグリッド
   ============================================================ */
.stglass-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  padding-top: var(--sp-md);
}

.stglass-grid__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stglass-grid__photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  background: #c4bbb0;
}

.stglass-grid__photos .stglass-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

@media (max-width: 900px) {
  .stglass-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FACILITY ROWS (写真グリッド左 + テキスト右、交互)
   ============================================================ */
.fac-row {
  display: grid;
  /* メディア領域を広げるため 1.9fr に変更 */
  grid-template-columns: 1.9fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  padding: var(--sp-xl) 0;
}

.fac-row--rev {
  grid-template-columns: 1fr 1.9fr;
}

.fac-row--rev .fac-row__photos {
  order: 2;
}

.fac-row--rev .fac-row__text {
  order: 1;
}

.fac-row__photos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fac-row__main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #c4bbb0;
}

.fac-row__main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity .35s ease;
}

.fac-row__subs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.fac-row__subs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1px;
  display: block;
  background: #c4bbb0;
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s ease, outline .2s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.fac-row__subs img:hover {
  opacity: .9;
}

.fac-row__subs img.is-active {
  opacity: 1;
  outline-color: #b8913f;
}

/* ---- 縦サムネイル variant（安穏堂・同朋会館） ---- */
.fac-row__photos--vsubs {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .fac-row__photos--vsubs {
    flex-direction: column;
  }
}

.fac-row__photos--vsubs .fac-row__main-wrap {
  flex: 1;
  aspect-ratio: 4 / 3;
  height: auto;
}

.fac-row__photos--vsubs .fac-row__subs {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
  gap: 6px;
  /* サムネイルの横幅を広げ、視認性をアップ */
  width: 140px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fac-row__photos--vsubs .fac-row__subs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
  }

  .fac-row__photos--vsubs .fac-row__subs img {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }
}

.fac-row__photos--vsubs .fac-row__subs img {
  width: 100%;
  height: 0;
  flex: 1;
  object-fit: cover;
  aspect-ratio: unset;
}

/* ---- 1枚のみ variant（法事会館） ---- */
.fac-row__photos--single .fac-row__main-wrap {
  aspect-ratio: 4 / 3;
}

/* テキストエリア */
.fac-row__text {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: var(--sp-md);
  min-width: 0;
}

.fac-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-navy-deep);
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(184, 145, 63, .2);
  white-space: nowrap;
}

.fac-row__name::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #5a8c28, #b8913f);
  margin-bottom: .7rem;
}

.fac-row__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  letter-spacing: .06em;
}

.fac-row__list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.fac-row__list li {
  font-size: var(--fs-sm);
  color: var(--color-text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.65;
}

.fac-row__list li::before {
  content: '―';
  position: absolute;
  left: 0;
  color: var(--color-gold-muted);
  font-size: .6rem;
  top: .35em;
}

.fac-divider {
  height: 1px;
  background: rgba(184, 145, 63, .15);
}

/* ============================================================
   LOGO IMAGE (ヘッダー・FV・フッター)
   ============================================================ */
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.hero-logo-img {
  display: block;
  width: clamp(140px, 18vw, 260px);
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--sp-md);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .5));
}

.footer-logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  margin: 0 auto var(--sp-sm);
  opacity: .85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}