/* Webフォントは、各HTMLの <link> で読み込みます（@import は表示が遅くなるため廃止） */

/* ===================================
   1. フォント読み込みとサイト全体の基本設定
   =================================== */
:root {
  --ink: #302d26;   /* メインの文字色（落ち着いた墨色） */
  --gold: #98825b;  /* アクセントカラー（金茶色） */
  --pale: #f9f9f9;  /* 背景色（ペールベージュ） */
  --line: #e6e0d4;  /* 境界線の色 */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 300;
  line-height: 2;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sp-only {
  display: none;
}


/* ===================================
   2. ヘッダー（画面最上部のナビゲーション）
   =================================== */
/* ヘッダー全体（半透明の黒帯＋すりガラス効果） */
header.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.40); /* 半透明の黒（透過度45%） */
  backdrop-filter: blur(8px); /* すりガラスのように背景を少しぼかすおしゃれ効果 */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  box-sizing: border-box;
}

/* 左側のロゴと文字 */
header.header .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  letter-spacing: .15em;
}

header.header .brand small {
  display: block;
  font-size: 11px;
  color: #f7e2b8;
  letter-spacing: .25em;
  font-family: 'Noto Sans JP', sans-serif;
}

header.header .crest {
  color: #f7e2b8;
  font-size: 28px;
}

/* 右側のナビゲーション全体（キュッとひとまとめにする） */
header.header nav {
  display: flex;
  align-items: center;
  gap: 30px; /* メニュー同士の間隔 */
}

/* ナビのリンク文字 */
header.header nav a:not(.nav-contact) {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  transition: color 0.3s;
}

header.header nav a:not(.nav-contact):hover {
  color: #f7e2b8;
}

/* 一番右の「お問合せ」ボタン */
header.header .nav-contact {
  background: var(--gold);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  transition: background 0.3s;
}

header.header .nav-contact:hover {
  background: #968360;
  color: #ffffff !important;
}

/* スマホ用メニューの切り替えボタンは一旦非表示 */
.menu-toggle {
  display: none;
}


/* ===================================
   3. ヒーローセクション（TOPメインビジュアル）
   =================================== */
   .hero {
    position: relative;
    color: white;
    overflow: hidden;
    width: 100%;
    /* 高さを固定せず、画面幅に合わせて画像の比率通りに自動で計算させます */
    height: auto;
  }
  .hero > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.0);
    /* ▼ 自動アニメーションの設定（20秒かけてゆっくり拡大・縮小をループ） */
    animation: heroZoom 5s infinite linear;
  }

  @keyframes heroZoom {
    0% {
      transform: scale(1.0); /* 最初は通常の大きさ（100%） */
    }
    100% {
      transform: scale(1.06); /* 20秒かけて少しだけ拡大（108%） */
    }
  }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,20,16,.30), rgba(16,20,16,.05) 85%);
}

.hero-copy {
  text-wrap: balance;
  word-break: auto-phrase;
  position: absolute;
  left: max(9%, calc((100vw - 1080px) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: 720px;
  width: 82%;
}

.eyebrow {
  display: block;
  font-size: clamp(25px, 1.5vw, 20px);
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  letter-spacing: .1em;
  color: #f7e2b8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 13px;
  line-height: 1.6;
}

.hero h1 {
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.7;
  letter-spacing: .12em;
  margin: 17px 0;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-copy p {
  font-size: 18px;
  letter-spacing: .14em;
  opacity: 0.95;
}

/* 縦書き筆文字「梵音寺」 */
.hero-vertical-brush {
  position: absolute;
  right: 8%;
  top: 12%;
  writing-mode: vertical-rl;
  font-family: 'Yuji Syuku', 'Klee One', 'Noto Serif JP', serif;
  font-size: clamp(45px, 5.5vw, 85px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.85);
  line-height: 1.3;
  transform: rotate(1deg);
}

.hero-vertical-brush ruby {
  ruby-position: over;
}

.hero-vertical-brush rt {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: normal;
  color: #f7e2b8;
  letter-spacing: 0.05em;
  padding-left: 6px;
}

.scroll {
  position: absolute;
  bottom: 20px;
  right: 5%;
  font-size: 10px;
  letter-spacing: .2em;
}

.scroll span {
  display: block;
  text-align: center;
  font-size: 20px;
}


/* ===================================
   4. 各セクションの共通デザイン
   =================================== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 115px 35px;
}

.section-title {
  display: flex;
  gap: 15px;
  align-items: center;
}

.section-title h2 {
  font-size: 25px;
  letter-spacing: .22em;
  margin: 0;
}

.section-title small,
.mini-en,
.feature-copy small {
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold);
}

.decor {
  color: var(--gold);
}


/* ===================================
   5. お知らせセクション
   =================================== */
.news {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 55px;
}

.news-list > div {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.news-list time {
  color: #8c8375;
  white-space: nowrap;
}

.news-list span {
  background: #eee9dd;
  color: #88764d;
  padding: 0 12px;
  white-space: nowrap;
}

.news-list p {
  margin: 0;
}


/* ===================================
   6. ご祈願・ご供養セクション（画像グリッド・内側白枠デザイン）
   =================================== */
   .grid-services-section {
    background: #ffffff;
  }
  
  .grid-services-wrap {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  /* グリッドレイアウト（2カラム設定） */
  .grid-services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
  }
  
  /* カード基本構造 */
  .grid-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
  
  /* 横幅いっぱいのカード（1幅） */
  .grid-card.wide {
    grid-column: 1 / -1;
    height: 380px;
  }
  
  /* 2コマ並びのカード（半幅） */
  .grid-card.half {
    grid-column: span 1;
    height: 280px;
  }
  
  /* 背景画像 */
  .grid-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  /* ホバー時に画像を少しだけ拡大 */
  .grid-card:hover img {
    transform: scale(1.04);
  }
  
  /* 暗めのグラデーションオーバーレイ（文字を読みやすくするため） */
  .grid-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* 全体を均一に少し暗く */
    transition: background 0.3s ease;
  }
  
  .grid-card:hover .grid-card-overlay {
    background: rgba(0, 0, 0, 0.45);
  }
  
  /* 内側の白い額縁線（添付画像のデザイン再現） */
  .grid-card::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8); /* 白い細線 */
    pointer-events: none;
    z-index: 2;
  }
  
  /* 中央の文字コンテンツ */
  .grid-card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
  }
  
  .grid-card-content h3 {
    font-size: 24px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    letter-spacing: .18em;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  
  /* スマホ対応（画面が狭くなったらすべて1列にする） */
  @media (max-width: 760px) {
    .grid-services-container {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  
    .grid-card.wide,
    .grid-card.half {
      grid-column: 1 / -1;
      height: 200px;
    }
  
    .grid-card-content h3 {
      font-size: 20px;
    }
  }

/* ===================================
   8. 特徴・想いセクション（阿字観瞑想）
   =================================== */
   .feature {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 90px 35px;
  }
  
  .feature-copy small {
    font-size: 12px;
    letter-spacing: .3em;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
  }
  
  .feature-copy h2 {
    font-size: 28px;
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--ink);
  }
  
  .feature-copy p {
    font-size: 15px;
    font-family: 'Noto Serif JP', serif;
    line-height: 2.1;
    color: #555;
  }
  
  .feature img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  /* スマホ対応 */
  @media (max-width: 760px) {
    .feature {
      grid-template-columns: 1fr;
      gap: 30px;
      padding: 60px 22px;
    }
  
    .feature img {
      height: 300px;
    }
  }
/* ===================================
   7. 梵音寺についてセクション
   =================================== */
.about {
  max-width: none;
  background: var(--pale);
  padding: 95px max(5%, calc((100vw - 1100px) / 2));
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 8%;
}

.intro-grid > img {
  height: 520px;
  width: 100%;
}

.intro-text {
  position: relative;
  /* 右側の縦書き文字が本文にかからないよう、右側に十分な余白(95px)を確保します */
  padding: 25px 110px 20px 0;
}

.vertical-label {
  position: absolute;
  /* 右端から少し内側へ配置し、完全に文字の重なりを防ぎます */
  right: 20px;
  top: 0;
  writing-mode: vertical-rl;
  letter-spacing: .4em;
  font-family: 'Noto Serif JP', serif;
  color: var(--gold);
  font-size: 28px;
}

.intro-text h2,
.feature h2 {
  font-size: clamp(20px, 2.2vw, 28px); 
  line-height: 1.8;
  letter-spacing: .15em;
  margin: 20px 0;
}

.intro-text p,
.feature p {
  font-size: 14px;
  line-height: 2.5;
}

.intro-text .intro-name {
  text-align: right;
  margin-top: 1em;
}
.text-link {
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding: 10px 20px 10px 0;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .2em;
}

.text-link span {
  padding-left: 35px;
}


/* ===================================
   8. 特徴・想いセクション
   =================================== */
.feature {
  max-width: none;
  background: #edeae1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
  padding: 85px max(8%, calc((100vw - 1050px) / 2));
}

.feature img {
  height: 460px;
  width: 100%;
  object-position: center 35%;
}


/* ===================================
   9. 境内のご案内セクション（4コマ）
   =================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 55px;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.gallery-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

/*.gallery-grid figcaption {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 20px;
  width: 90%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  letter-spacing: .18em;
  background: none;
}
*/


/* ==========================================
  10. アクセスセクション（美しいレイアウト構成版）
========================================== */
.access-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 50px !important;
  align-items: start !important;
  margin-top: 50px !important;
}

.access-info {
  width: 100% !important;
}

/* 上のグループ（基本情報） */
.info-group h3 {
  font-size: 24px !important;
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.access-line {
  border: none;
  border-top: 1px solid #76694f;
  margin: 12px 0 16px;
  width: 100%;
}

.info-group p {
  font-size: 15px !important; /* 文字サイズを少し大きく調整 */
  letter-spacing: .08em;
  margin: 6px 0;
  line-height: 1.7;
  color: var(--ink);
}

.info-group .tel strong {
  font-size: 22px !important;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: .05em;
}

/* 下のグループ（アクセス情報） */
.access-group {
  margin-top: 45px !important;
  border-top: 1px dashed var(--line, #ccc);
  padding-top: 30px;
}

.access-title {
  font-size: 20px !important;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  letter-spacing: .1em;
  margin-bottom: 20px;
  color: var(--ink);
}

.access-route-item {
  margin-bottom: 18px;
}

.route-heading {
  font-weight: 600 !important;
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-size: 15px !important;
  margin-bottom: 6px;
}

.route-desc {
  font-size: 14.5px !important; /* 文字サイズを少し大きくして読みやすく */
  margin: 4px 0;
  line-height: 1.6;
  color: #444 !important;
}

/* 右側マップエリア */
.access-map {
  width: 100% !important;
}

.access-map iframe {
  width: 100% !important;
  height: 400px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 4px;
}


/* ===================================
   11. 永代供養セクション
   =================================== */
.memorial {
  padding-top: 0;
  max-width: 1100px;
  margin: 0 auto 80px;
  width: 100%;
}

.memorial-card {
  background: #f7f5ef;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.memorial-text-col {
  padding: 24px 30px;
}

.memorial-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.memorial-icon {
  font-size: 22px;
}

.memorial-brand h2 {
  font-size: 21px;
  letter-spacing: .15em;
  margin: 0;
}

.memorial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-tag {
  background: #b5a47e;
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: .08em;
  font-weight: 300;
}

.memorial-img-col {
  height: 180px;
  overflow: hidden;
}

.memorial-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===================================
   12. フッター（一番下の黒いエリア）
   =================================== */
.footer-dark {
  background: #1c1a17;
  color: #e6e2d6;
  text-align: center;
  padding: 70px 20px 40px;
  position: relative;
  z-index: 10;
  font-family: 'Noto Serif JP', serif;
  width: 100%;
  clear: both;
  display: block;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand-area {
  margin-bottom: 35px;
}

.footer-sub-title {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: #a39882;
  margin-bottom: 5px;
}

.footer-main-title {
  font-size: 28px;
  letter-spacing: .25em;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 20px;
  font-size: 12px;
  letter-spacing: .1em;
  margin-bottom: 35px;
}

.footer-nav a:hover {
  color: #b5a47e;
}

.footer-contact-info {
  font-size: 12px;
  letter-spacing: .15em;
  color: #bfae90;
  margin-bottom: 35px;
  line-height: 1.8;
}

.footer-copy {
  border-top: 1px solid #332f2b;
  padding-top: 25px;
  font-size: 10px;
  letter-spacing: .15em;
  color: #8c8375;
  font-family: 'Noto Sans JP', sans-serif;
}

.back-to-top {
  position: absolute;
  right: 30px;
  bottom: 30px;
  background: #111;
  color: #d1c8b4;
  border: 1px solid #3d372f;
  padding: 10px 15px;
  font-size: 11px;
  letter-spacing: .1em;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: #2b2520;
  color: #fff;
}


/* ===================================
   13. モバイル（スマートフォン画面）専用のスタイル調整
   =================================== */
@media (max-width: 760px) {
  .header {
    height: 70px;
    padding: 0 22px;
  }

  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    font-size: 25px;
    color: #ffffff;          /* ← var(--ink) から白に変更 */
    padding: 8px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;    /* ← 追加 */
    padding: 25px;
    gap: 17px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  /* ↓ 追加：白背景のメニュー内では文字を濃い色にする */
  header.header nav a:not(.nav-contact) {
    color: var(--ink);
    font-size: 15px;
  }
  header.header nav a:not(.nav-contact):hover {
    color: var(--gold);
  }
  header.header .nav-contact {
    text-align: center;
  }
  .header nav.open {
    display: flex;
  }

  .hero {
    height: auto;
    aspect-ratio: 4 / 3; /* スマホで見やすい縦横比に変更 */
    max-height: none;
  }

  .hero > img {
    object-position: 57% center;
  }

  .hero-copy {
    left: 6%;
    right: 6%;
    width: 88%;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .08em;
  }

  .hero h1 {
    font-size: 20px;
    line-height: 1.6;
  }

  .hero-vertical-brush {
    right: 5%;
    top: 8%;
    font-size: 32px;
  }

  .section {
    padding: 75px 22px;
  }

  .news {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-list > div {
    flex-wrap: wrap;
    gap: 8px 15px;
  }

  .news-list p {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-wide {
    height: 260px !important;
  }

  .about {
    padding: 60px 22px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .intro-grid > img {
    height: 300px;
  }

  .intro-text {
    padding-left: 8px;
    padding-right: 20px;
  }

  .feature {
    grid-template-columns: 1fr;
    padding: 65px 22px;
  }

  .feature img {
    height: 320px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-grid figure {
    height: 220px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .memorial-card {
    grid-template-columns: 1fr;
  }

  .memorial-img-col {
    height: 180px;
  }

  .footer-nav {
    gap: 10px 12px;
  }

  .back-to-top {
    position: static;
    display: inline-block;
    margin-top: 25px;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .gallery-grid img {
    transition: none;
  }
}

/* ===== スマホ用ナビ(追加分・ファイルの最後に置く) ===== */
@media (max-width: 760px) {
  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    font-size: 25px;
    color: #ffffff;
    padding: 8px;
  }

  header.header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 25px;
    gap: 17px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  header.header nav.open {
    display: flex;
  }

  header.header nav a:not(.nav-contact) {
    color: var(--ink);
    font-size: 15px;
    text-align: center;
  }

  header.header .nav-contact {
    text-align: center;
  }
}

/* ===== 下層ページ共通：PAGE TOP ボタン（正円・右下に固定） ===== */
.sp-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;       /* 縦横を同じにして、必ず正円にする */
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #b5a273;
  color: #ffffff;
  font-size: 0;              /* HTML内の「↑」の文字は隠す */
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background .3s, transform .3s;
}

/* 白い三角 */
.sp-back-to-top::before {
  content: "";
  display: block;
  margin-bottom: 5px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 13px solid #ffffff;
}

/* 「PAGE」「TOP」の文字 */
.sp-back-to-top::after {
  content: "PAGE\A TOP";
  white-space: pre;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: .06em;
}

.sp-back-to-top:hover {
  background: #98825b;
  color: #ffffff;
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .sp-back-to-top {
    right: 14px;
    bottom: 16px;
    width: 68px;
    height: 68px;
  }
  .sp-back-to-top::before {
    margin-bottom: 4px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-bottom-width: 11px;
  }
  .sp-back-to-top::after {
    font-size: 12px;
  }
}

/* ===== 本文の最後に置く「ホームに戻る」ボタン ===== */
.sp-home-link {
  padding: 50px 20px 60px;
  text-align: center;
  background: #ffffff;
}
.sp-home-btn {
  display: inline-block;
  min-width: 240px;
  padding: 16px 40px;
  border: 1px solid var(--gold, #98825b);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink, #302d26);
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.sp-home-btn:hover {
  background: var(--gold, #98825b);
  color: #ffffff;
}
@media (max-width: 760px) {
  .sp-home-link { padding: 40px 20px 50px; }
  .sp-home-btn { display: block; min-width: 0; }
}

/* ===== トップ：永代供養バナーのリンク ===== */
.memorial-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.memorial-link .memorial-card {
  transition: box-shadow .3s, transform .3s;
}
.memorial-link:hover .memorial-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.memorial-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--gold, #98825b);
  border-bottom: 1px solid currentColor;
}

/* ===== トップページ スマホ表示の修正（ファイルの最後に置く） ===== */
@media (max-width: 760px) {

  /* ① 縦書き「梵音寺」：ヘッダーの下に下げて、1文字目が隠れないようにする */
  .hero-vertical-brush {
    top: 74px;
    right: 5%;
    font-size: 30px;
  }
  .hero-vertical-brush rt {
    font-size: 11px;
  }

  /* ② 「梵音寺について」：縦書きの見出しを横書きにして、本文と重ならないようにする */
  .vertical-label {
    position: static;
    display: block;
    writing-mode: horizontal-tb;
    margin-bottom: 6px;
    font-size: 20px;
    letter-spacing: .2em;
  }
  .intro-text {
    padding: 10px 4px 0;
  }
  .intro-text p {
    line-height: 2.1;
  }

  /* ③ アクセス・お問合せ：1列にして、見出しも折り返しを整える */
  .access-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-top: 30px !important;
  }
  .access-map iframe {
    height: 300px !important;
  }
  .section-title {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .section-title h2 {
    font-size: 22px;
    letter-spacing: .12em;
  }
  .section-title small {
    font-size: 12px;
    letter-spacing: .2em;
  }
  .info-group h3 {
    font-size: 21px !important;
  }
}

/* ===== セクション見出しを中央揃え（パソコン・スマホ共通／ファイルの最後に置く） ===== */
.section-title {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

/* ===== ヘッダー・フッターの印（曼荼羅）（ファイルの最後に置く） ===== */
header.header img.crest {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
}
.footer-crest {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}
@media (max-width: 760px) {
  header.header img.crest {
    width: 38px;
    height: 38px;
  }
}

/* TOPページの「アクセス詳細」リンクだけを目立たせる（.access-more-link を付けたリンクのみ） */
.access-more-link {
  font-weight: bold;
  color: #9b3b2c; /* 落ち着いた朱色 */
  border-bottom-color: #9b3b2c;
  transition: opacity 0.2s ease;
}
.access-more-link:hover {
  opacity: 0.7;
}
