/*
Theme Name: unjyoji-theme
Theme URI: https://unjyouji.jp/
Author: Aoki Consulting Co.,Ltd.
Description: 浄土真宗本願寺派 日晝山 雲乗寺 公式サイト専用オリジナルテーマ。水色の空と流れる雲を背景に、和色と明朝体で構成した明るく親しみやすいデザイン。
Version: 1.0.10
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: unjyoji-theme
*/

/* ============================================
   1. 基本設定(色・フォント)
   ============================================ */
:root {
  --ujr-sky: #d3eaf4;          /* ベース背景: 水色 */
  --ujr-ai: #1a3e63;           /* メイン: 藍色(濃い紺) */
  --ujr-ai-weak: rgba(26, 62, 99, 0.14);
  --ujr-aijiro: #edf6f8;       /* 藍白 */
  --ujr-fuji: #f1ecf7;         /* 藤色 */
  --ujr-byakuroku: #ebf4e6;    /* 白緑 */
  --ujr-sakura: #fbeff2;       /* 桜色 */
  --ujr-footer: #4193cb;       /* フッター: 明るい青 */
  --ujr-line: #06c755;         /* LINEグリーン */
  --ujr-text: #2e3a44;
  --ujr-text-weak: #5b6b78;
  --ujr-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --ujr-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--ujr-sans);
  color: var(--ujr-text);
  background: var(--ujr-sky);
  line-height: 1.9;
  font-size: 15px;
  overflow-wrap: break-word;
  padding-top: 68px; /* 固定ヘッダー分 */
}
img { max-width: 100%; height: auto; }
a { color: var(--ujr-ai); text-underline-offset: 3px; transition: opacity 0.25s ease, color 0.25s ease; }
a:hover { opacity: 0.72; }
::selection { background: var(--ujr-ai); color: #fff; }
html.ujr-loading, html.ujr-menu-open { overflow: hidden; }

.ujr-site { position: relative; z-index: 1; }
.ujr-container { max-width: 1080px; margin: 0 auto; }
.ujr-container--narrow { max-width: 780px; margin: 0 auto; }
.ujr-center { text-align: center; }

/* ============================================
   2. 背景の雲(全ページ共通・z-index注意)
   コンテンツは .ujr-site(z-index:1)の下、
   雲は z-index:0 で必ず背面に置く
   ============================================ */
.ujr-clouds { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* 白い雲を強めのぼかしで空に溶け込ませる(輪郭を出さず、かつ確実に見える濃さ) */
.ujr-cloud {
  position: absolute; left: 0; background: #fff; border-radius: 50%;
  filter: blur(8px);
}
.ujr-cloud::before, .ujr-cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.ujr-cloud::before { width: 55%; height: 130%; top: -60%; left: 12%; }
.ujr-cloud::after { width: 40%; height: 100%; top: -34%; right: 10%; }
.ujr-cloud.c1 { width: 460px; height: 110px; top: 12%; opacity: 1; animation: ujrDrift 40s linear -8s infinite; }
.ujr-cloud.c2 { width: 300px; height: 76px; top: 34%; opacity: 0.75; animation: ujrDrift 56s linear -30s infinite; }
.ujr-cloud.c3 { width: 580px; height: 130px; top: 58%; opacity: 0.9; animation: ujrDrift 47s linear -17s infinite; }
.ujr-cloud.c4 { width: 240px; height: 64px; top: 80%; opacity: 0.65; animation: ujrDrift 34s linear -29s infinite; }
@keyframes ujrDrift {
  from { transform: translateX(-640px); }
  to { transform: translateX(calc(100vw + 640px)); }
}

/* ============================================
   3. ローディング画面(家紋がふわっと浮かぶ)
   ============================================ */
.ujr-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(180deg, #e3f2f9 0%, #cbe6f2 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.ujr-loader.is-done { opacity: 0; visibility: hidden; }
.ujr-loader-crest { width: 86px; height: 86px; object-fit: contain; animation: ujrCrest 1.5s ease 0.1s both; }
.ujr-loader-name {
  font-family: var(--ujr-serif); color: var(--ujr-ai);
  font-size: 15px; letter-spacing: 0.32em; text-indent: 0.32em;
  animation: ujrCrest 1.5s ease 0.45s both;
}
@keyframes ujrCrest {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* ============================================
   4. ヘッダー
   ============================================ */
.ujr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filterは使わない: ヘッダー内のfixed要素(スマホメニュー)の基準がヘッダーになりレイアウトが壊れるため */
  border-bottom: 1px solid rgba(26, 62, 99, 0.08);
}
.ujr-header-inner {
  max-width: 1160px; margin: 0 auto; height: 68px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ujr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ujr-logo img { width: 38px; height: 38px; object-fit: contain; }
.ujr-logo-text {
  font-family: var(--ujr-serif); font-size: 17px; font-weight: 600;
  color: var(--ujr-ai); letter-spacing: 0.06em; line-height: 1.3; white-space: nowrap;
}
.ujr-nav ul { list-style: none; display: flex; gap: 26px; }
.ujr-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ujr-text); }
.ujr-nav a:hover { color: var(--ujr-ai); opacity: 1; text-decoration: underline; }
.ujr-burger {
  display: none; position: relative; z-index: 120;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
}
.ujr-burger span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ujr-ai); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.ujr-burger span:nth-child(1) { top: 15px; }
.ujr-burger span:nth-child(2) { top: 21px; }
.ujr-burger span:nth-child(3) { top: 27px; }
html.ujr-menu-open .ujr-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
html.ujr-menu-open .ujr-burger span:nth-child(2) { opacity: 0; }
html.ujr-menu-open .ujr-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* WordPress管理バー表示中のずれ防止 */
body.admin-bar .ujr-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ujr-header { top: 46px; } }

/* ============================================
   5. パンくずリスト・ページタイトル
   ============================================ */
.ujr-breadcrumb {
  max-width: 1080px; margin: 0 auto; padding: 18px 24px 0;
  font-size: 12.5px; color: var(--ujr-text-weak);
}
.ujr-breadcrumb a { color: var(--ujr-ai); text-decoration: none; }
.ujr-breadcrumb a:hover { text-decoration: underline; }
.ujr-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.ujr-pagehead { text-align: center; padding: 54px 24px 62px; }
.ujr-pagehead h1 {
  font-family: var(--ujr-serif); font-weight: 600; color: var(--ujr-ai);
  font-size: clamp(28px, 4vw, 38px); letter-spacing: 0.14em; text-indent: 0.14em;
}
.ujr-pagehead .en, .ujr-h2 .en {
  display: block; margin-top: 12px;
  font-family: var(--ujr-serif); font-weight: 300; font-size: 12px;
  letter-spacing: 0.48em; text-indent: 0.48em; color: rgba(26, 62, 99, 0.55);
}

/* ============================================
   6. セクション共通・見出し・和色背景
   ============================================ */
.ujr-section { position: relative; padding: 88px 24px; }
/* 和色背景は半透明にして、背後を流れる雲がヒーロー以外の全セクションで透けて見えるように */
.ujr-bg-aijiro { background: rgba(237, 246, 248, 0.72); }
.ujr-bg-fuji { background: rgba(241, 236, 247, 0.72); }
.ujr-bg-byakuroku { background: rgba(235, 244, 230, 0.72); }
.ujr-bg-sakura { background: rgba(251, 239, 242, 0.72); }
.ujr-bg-white { background: #fff; }
.ujr-h2 {
  text-align: center; font-family: var(--ujr-serif); font-weight: 600;
  color: var(--ujr-ai); font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: 0.14em; text-indent: 0.14em; margin-bottom: 44px;
}
.ujr-h3 {
  font-family: var(--ujr-serif); font-weight: 600; color: var(--ujr-ai);
  font-size: clamp(19px, 2.4vw, 23px); letter-spacing: 0.08em; margin-bottom: 18px;
}
.ujr-lead { text-align: center; line-height: 2.2; margin-bottom: 40px; }

/* スクロール連動フェードイン */
.ujr-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.ujr-reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   7. ボタン
   ============================================ */
.ujr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 34px; border-radius: 999px; border: 1px solid var(--ujr-ai);
  background: var(--ujr-ai); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer;
  box-shadow: 0 6px 18px rgba(26, 62, 99, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.ujr-btn:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 62, 99, 0.28); }
.ujr-btn--ghost { background: #fff; color: var(--ujr-ai); box-shadow: none; }
.ujr-btn--line { background: var(--ujr-line); border-color: var(--ujr-line); box-shadow: 0 6px 18px rgba(6, 199, 85, 0.3); }
.ujr-btn--insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(204, 35, 102, 0.32);
}
.ujr-btn .arrow { font-family: var(--ujr-sans); }

/* ============================================
   8. トップ: ヒーロー
   ============================================ */
.ujr-hero {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; /* 動画(1920×1080)と同じ比率にして見切れを防ぐ */
  height: auto; min-height: 420px; max-height: calc(100svh - 68px);
  overflow: hidden;
}
.ujr-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; /* 高さが足りない画面でも上端は切らない */ }
/* PC用/スマホ用の動画切り替え */
.ujr-hero-media--sp { display: none; }
@media (max-width: 760px) {
  .ujr-hero-media--pc { display: none; }
  .ujr-hero-media--sp { display: block; }
  .ujr-hero.has-sp-video { aspect-ratio: 9 / 16; } /* 縦動画は縦長で全面表示 */
}
.ujr-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 40, 66, 0.1) 0%, rgba(15, 40, 66, 0.32) 100%);
}
/* 寺名はSEO用にh1として残すが視覚的には非表示(動画をそのまま見せる) */
.ujr-hero-h1-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px;
}
.ujr-hero-title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: #fff; text-align: center; text-shadow: 0 2px 26px rgba(8, 34, 60, 0.55);
}
.ujr-hero-title .sect { font-size: 13px; letter-spacing: 0.42em; text-indent: 0.42em; font-weight: 500; }
.ujr-hero-title h1, .ujr-hero-title .name {
  font-family: var(--ujr-serif); font-weight: 600;
  font-size: clamp(32px, 5.4vw, 56px); letter-spacing: 0.18em; text-indent: 0.18em; line-height: 1.5;
}

/* ============================================
   9. トップ: 想い(MESSAGE)
   ============================================ */
.ujr-message {
  font-family: var(--ujr-serif); text-align: center;
  font-size: clamp(15px, 1.9vw, 17.5px); line-height: 1.8; letter-spacing: 0.1em;
}
.ujr-message p + p { margin-top: 0.8em; }
.ujr-sign { margin-top: 44px; text-align: center; font-family: var(--ujr-serif); font-size: 14px; letter-spacing: 0.14em; color: var(--ujr-text-weak); }
.ujr-sign strong { display: block; margin-top: 6px; font-size: 16px; color: var(--ujr-text); font-weight: 600; }

/* ============================================
   10. トップ: ご案内カード(GUIDE)
   ============================================ */
.ujr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ujr-card {
  background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(26, 62, 99, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ujr-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(26, 62, 99, 0.16); opacity: 1; }
.ujr-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ujr-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ujr-card-body h3 { font-family: var(--ujr-serif); font-size: 19px; font-weight: 600; color: var(--ujr-ai); letter-spacing: 0.06em; }
.ujr-card-body p { font-size: 13.5px; line-height: 1.95; color: var(--ujr-text); flex: 1; }
.ujr-card-more { font-size: 13px; font-weight: 600; color: var(--ujr-ai); }
.ujr-more-link { font-size: 14.5px; font-weight: 600; color: var(--ujr-ai); letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 6px; }

/* ============================================
   11. お知らせリスト(トップ・一覧共通)
   ============================================ */
.ujr-newslist {
  list-style: none; max-width: 780px; margin: 0 auto;
  background: #fff; border-radius: 16px; padding: 12px 32px;
  box-shadow: 0 10px 30px rgba(26, 62, 99, 0.08);
}
.ujr-newslist li { display: flex; gap: 22px; align-items: baseline; padding: 18px 2px; border-bottom: 1px dashed rgba(26, 62, 99, 0.22); }
.ujr-newslist li:last-child { border-bottom: 0; }
.ujr-newslist time { flex: 0 0 auto; min-width: 92px; font-size: 13px; color: var(--ujr-ai); font-weight: 600; letter-spacing: 0.04em; }
.ujr-newslist a { font-size: 15px; text-decoration: none; }
.ujr-newslist a:hover { text-decoration: underline; }
.ujr-newslist .empty { justify-content: center; color: var(--ujr-text-weak); font-size: 14px; }

/* ============================================
   12. アクセス(トップ・下層共通)
   ============================================ */
.ujr-access-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.ujr-map { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(26, 62, 99, 0.12); background: #fff; }
.ujr-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.ujr-access-info { font-size: 14.5px; line-height: 2.1; }
.ujr-access-info .name { font-family: var(--ujr-serif); font-size: 17px; font-weight: 600; color: var(--ujr-ai); margin-bottom: 8px; }
.ujr-access-note { list-style: none; margin: 14px 0 24px; }
.ujr-access-note li { padding-left: 1.2em; position: relative; }
.ujr-access-note li::before { content: "・"; position: absolute; left: 0; color: var(--ujr-ai); }

/* ============================================
   13. 電話誘導ボックス(共通パーツ)
   ============================================ */
.ujr-telbox {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--ujr-ai-weak); border-radius: 16px;
  padding: 34px 28px 32px; box-shadow: 0 10px 30px rgba(26, 62, 99, 0.08);
}
.ujr-telbox .lead { font-size: 14.5px; font-weight: 600; letter-spacing: 0.04em; }
.ujr-telbox .tel {
  display: inline-block; margin: 10px 0 4px;
  font-family: var(--ujr-serif); font-weight: 600; text-decoration: none;
  font-size: clamp(30px, 4.6vw, 40px); letter-spacing: 0.06em; color: var(--ujr-ai); line-height: 1.3;
}
.ujr-telbox .tel small { font-size: 0.45em; margin-right: 6px; vertical-align: 0.32em; letter-spacing: 0.14em; }
.ujr-telbox .note { font-size: 12.5px; color: var(--ujr-text-weak); }
.ujr-telbox .sub { display: block; margin-top: 14px; font-size: 13px; }

/* ============================================
   14. FAQ(開閉式アコーディオン)
   ============================================ */
.ujr-faq { max-width: 780px; margin: 0 auto; }
.ujr-faq details {
  background: #fff; border: 1px solid var(--ujr-ai-weak); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.ujr-faq summary {
  list-style: none; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 54px 18px 20px; cursor: pointer; position: relative;
  font-family: var(--ujr-serif); font-weight: 600; font-size: 15.5px; color: var(--ujr-ai); line-height: 1.7;
}
.ujr-faq summary::-webkit-details-marker { display: none; }
.ujr-faq summary::before {
  content: "Q"; flex: 0 0 26px; height: 26px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ujr-ai); color: #fff; border-radius: 50%;
  font-size: 13px; font-family: var(--ujr-serif);
}
.ujr-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 16px;
  font-size: 24px; font-weight: 300; color: var(--ujr-ai); font-family: var(--ujr-sans);
  transition: transform 0.3s ease;
}
.ujr-faq details[open] summary::after { transform: rotate(45deg); }
.ujr-faq .a { padding: 2px 24px 20px 60px; font-size: 14.5px; line-height: 2.05; }

/* ============================================
   15. 年間行事リスト
   ============================================ */
.ujr-events { max-width: 780px; margin: 0 auto; list-style: none; }
.ujr-events li { display: flex; gap: 20px; align-items: flex-start; padding: 18px 2px; border-bottom: 1px solid rgba(26, 62, 99, 0.13); }
.ujr-events .when {
  flex: 0 0 96px; margin-top: 3px; text-align: center;
  background: var(--ujr-ai); color: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 5px 6px; line-height: 1.5;
}
.ujr-events .what strong { display: block; font-family: var(--ujr-serif); font-size: 17px; font-weight: 600; color: var(--ujr-ai); letter-spacing: 0.05em; }
.ujr-events .what span { display: block; font-size: 13px; color: var(--ujr-text-weak); margin-top: 3px; }

/* ============================================
   16. テーブル・道順ステップ
   ============================================ */
.ujr-tablewrap { border: 1px solid var(--ujr-ai-weak); border-radius: 14px; overflow: hidden; background: #fff; }
.ujr-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ujr-table th {
  width: 150px; padding: 15px 18px; text-align: left; vertical-align: top;
  background: var(--ujr-aijiro); color: var(--ujr-ai);
  font-family: var(--ujr-serif); font-weight: 600; letter-spacing: 0.06em;
}
.ujr-table td { padding: 15px 18px; }
.ujr-table tr + tr th, .ujr-table tr + tr td { border-top: 1px solid rgba(26, 62, 99, 0.1); }
.ujr-steps { list-style: none; counter-reset: s; max-width: 780px; margin: 0 auto; }
.ujr-steps li {
  counter-increment: s; position: relative;
  padding: 15px 2px 15px 54px; border-bottom: 1px dashed rgba(26, 62, 99, 0.22); line-height: 1.9;
}
.ujr-steps li::before {
  content: counter(s); position: absolute; left: 2px; top: 14px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ujr-ai); color: #fff; border-radius: 50%;
  font-family: var(--ujr-serif); font-size: 15px;
}

/* ============================================
   17. フォーム(Contact Form 7 対応)
   ============================================ */
.ujr-form { max-width: 640px; margin: 0 auto; }
.ujr-form p { margin-bottom: 22px; }
.ujr-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ujr-ai); }
.ujr-form label .req { color: #c0392b; font-size: 11px; margin-left: 6px; }
.ujr-form input[type="text"], .ujr-form input[type="tel"], .ujr-form input[type="email"],
.ujr-form select, .ujr-form textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ujr-text);
  background: #fff; border: 1px solid #b4c6d4; border-radius: 10px; outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ujr-form input:focus, .ujr-form select:focus, .ujr-form textarea:focus {
  border-color: var(--ujr-ai); box-shadow: 0 0 0 3px rgba(26, 62, 99, 0.12);
}
.ujr-form textarea { min-height: 170px; resize: vertical; }
.ujr-form .submit { text-align: center; margin-top: 30px; }
.ujr-form input[type="submit"], .ujr-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 52px; border-radius: 999px; border: 0;
  background: var(--ujr-ai); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: 0.08em; cursor: pointer; box-shadow: 0 6px 18px rgba(26, 62, 99, 0.22);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ujr-form input[type="submit"]:hover, .ujr-form button[type="submit"]:hover { opacity: 0.85; transform: translateY(-2px); }
.ujr-form .wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 4px; }
.ujr-form .wpcf7-response-output { border: 1px solid var(--ujr-ai); border-radius: 10px; padding: 12px 16px; margin: 24px 0 0; font-size: 13.5px; }

/* ============================================
   18. 本文コンテンツ(ブロックエディタ出力)
   ============================================ */
.ujr-content h2 {
  font-family: var(--ujr-serif); font-weight: 600; color: var(--ujr-ai);
  font-size: clamp(21px, 2.6vw, 25px); letter-spacing: 0.1em; line-height: 1.6;
  margin: 64px 0 22px; padding-bottom: 12px; border-bottom: 2px solid rgba(26, 62, 99, 0.2);
}
.ujr-content > h2:first-child { margin-top: 0; }
.ujr-content h3 { font-family: var(--ujr-serif); font-weight: 600; color: var(--ujr-ai); font-size: 18px; letter-spacing: 0.06em; margin: 36px 0 12px; }
.ujr-content p { line-height: 2.15; margin-bottom: 1.5em; }
.ujr-content ul, .ujr-content ol { margin: 0 0 1.5em 1.4em; line-height: 2.05; }
.ujr-content img { border-radius: 14px; display: block; margin: 30px auto; box-shadow: 0 8px 26px rgba(26, 62, 99, 0.13); }
.ujr-content figure { margin: 30px auto; }
.ujr-content figure img { margin: 0 auto; }
.ujr-content figcaption { text-align: center; font-size: 12.5px; color: var(--ujr-text-weak); margin-top: 10px; }
.ujr-content strong { color: var(--ujr-ai); }
.ujr-content .ujr-fullbleed img { border-radius: 0; box-shadow: none; }

/* 全幅アイキャッチ(納骨堂ページ専用: 角丸なし) */
.ujr-fullbleed { width: 100vw; margin: 0 calc(50% - 50vw); }
.ujr-fullbleed img { display: block; width: 100%; height: min(58vh, 540px); object-fit: cover; border-radius: 0; }

/* 差し替え予定の仮画像枠 */
.ujr-placeholder {
  aspect-ratio: 16 / 7; border-radius: 14px; border: 1.5px dashed #93b3c6;
  background: repeating-linear-gradient(45deg, #eaf3f8 0 14px, #ddecf4 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: #52708a; font-family: monospace; font-size: 13px; letter-spacing: 0.08em;
  margin: 30px auto;
}

/* ============================================
   19. お知らせ記事(single)
   ============================================ */
.ujr-article { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 52px 56px; box-shadow: 0 10px 30px rgba(26, 62, 99, 0.08); }
.ujr-article-date { font-size: 13px; color: var(--ujr-ai); font-weight: 600; }
.ujr-article-title {
  font-family: var(--ujr-serif); font-weight: 600; color: var(--ujr-ai);
  font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.06em; line-height: 1.7;
  margin: 10px 0 34px; padding-bottom: 20px; border-bottom: 2px solid rgba(26, 62, 99, 0.2);
}
.ujr-article .ujr-content h2 { margin-top: 44px; font-size: 20px; }
.ujr-back { text-align: center; margin-top: 44px; }

/* 紹介ページ(住職・坊守・前坊守)のプロフィール画像 */
.ujr-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.ujr-profiles img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(26, 62, 99, 0.14); }
@media (max-width: 860px) { .ujr-profiles { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* フォトダイアリー: キャプション付き */
.ujr-diary .ph { background: #fff; border-radius: 14px; }
.ujr-diary figure.ph { margin: 0; }
.ujr-diary figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 14px 12px; font-size: 13px; color: var(--ujr-text);
}
.ujr-diary figcaption time { font-size: 11.5px; color: var(--ujr-text-weak); flex: 0 0 auto; }

/* お知らせ一覧のページ送り */
.ujr-site .navigation.pagination { margin-top: 36px; }
.ujr-site .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ujr-site .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 8px; border-radius: 50%;
  background: #fff; color: var(--ujr-ai); text-decoration: none;
  font-weight: 600; box-shadow: 0 4px 14px rgba(26, 62, 99, 0.12);
}
.ujr-site .page-numbers.current { background: var(--ujr-ai); color: #fff; }
.ujr-site .page-numbers.dots { background: none; box-shadow: none; }

/* ============================================
   19b. フォトギャラリー
   ============================================ */
.ujr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ujr-gallery .ph { overflow: hidden; border-radius: 14px; box-shadow: 0 8px 24px rgba(26, 62, 99, 0.12); }
.ujr-gallery img {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.5s ease;
}
.ujr-gallery .ph:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .ujr-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============================================
   20. SNSリンク
   ============================================ */
.ujr-sns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================
   21. フッター(明るい青)
   ============================================ */
.ujr-footer { background: rgba(65, 147, 203, 0.9); color: #fff; text-align: center; padding: 66px 24px 120px; }
.ujr-footer a { color: #fff; }
.ujr-footer .ujr-btn--ghost { color: var(--ujr-ai); }
.ujr-romaji { margin: 6px 0 34px; display: flex; flex-direction: column; gap: 18px; }
/* ふりがな形式: ローマ字を漢字の上に小さく、漢字は太く大きく */
.ujr-romaji-line { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ujr-romaji-rj {
  display: block; font-family: var(--ujr-serif); font-weight: 300;
  font-size: clamp(10px, 1.3vw, 12px); line-height: 1.6;
  letter-spacing: 0.12em; opacity: 0.85; transition: letter-spacing 1.6s ease;
}
.ujr-romaji-rj span { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 0.05s); }
.ujr-romaji-rj.is-visible { letter-spacing: 0.3em; }
.ujr-romaji-rj.is-visible span { opacity: 1; }
.ujr-romaji-kj {
  display: block; font-family: var(--ujr-serif); font-weight: 600;
  font-size: clamp(19px, 2.6vw, 26px); line-height: 1.5;
  letter-spacing: 0.22em; text-indent: 0.22em;
}
/* フッターのInstagramフィード埋め込み */
.ujr-insta-feed { max-width: 780px; margin: 0 auto 8px; }
.ujr-insta-feed h4 { font-size: 12px; letter-spacing: 0.3em; text-indent: 0.3em; font-weight: 500; opacity: 0.85; margin-bottom: 14px; }
.ujr-insta-feed .ujr-insta-note {
  font-size: 13.5px; background: rgba(255, 255, 255, 0.14);
  border: 1px dashed rgba(255, 255, 255, 0.5); border-radius: 12px; padding: 22px 18px;
}
#sb_instagram { border-radius: 12px; overflow: hidden; }

.ujr-footer-address { font-size: 14px; line-height: 2.2; }
.ujr-footer-address .tel-link { text-decoration: none; font-weight: 600; }
.ujr-footer-links { margin-top: 34px; }
.ujr-footer-links h4 { font-size: 12px; letter-spacing: 0.3em; text-indent: 0.3em; font-weight: 500; opacity: 0.85; margin-bottom: 10px; }
.ujr-footer-links ul { list-style: none; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-size: 13.5px; }
.ujr-copyright { margin-top: 40px; font-size: 12px; letter-spacing: 0.06em; opacity: 0.85; }

/* ============================================
   22. 画面右下の固定ボタン(全ページ共通)
   ============================================ */
.ujr-fixed {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
html.ujr-scroll-down .ujr-fixed { opacity: 0; transform: translateY(18px); pointer-events: none; }
.ujr-fab {
  display: flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 11px 20px; border-radius: 999px;
  background: var(--ujr-ai); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(26, 62, 99, 0.35);
}
.ujr-fab--line { background: var(--ujr-line); box-shadow: 0 8px 22px rgba(6, 199, 85, 0.35); }
.ujr-fab svg { flex: 0 0 auto; }

/* ============================================
   23. レスポンシブ
   ============================================ */
@media (max-width: 1120px) {
  .ujr-burger { display: block; }
  .ujr-nav {
    position: fixed; inset: 0; z-index: 110;
    display: flex; align-items: center; justify-content: center;
    background: rgba(211, 234, 244, 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  html.ujr-menu-open .ujr-nav { opacity: 1; visibility: visible; }
  .ujr-nav ul { flex-direction: column; text-align: center; gap: 8px; }
  .ujr-nav a {
    display: block; padding: 12px 20px; min-width: 240px;
    font-family: var(--ujr-serif); font-size: 19px; color: var(--ujr-ai); letter-spacing: 0.12em;
  }
  .ujr-access-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .ujr-section { padding: 64px 20px; }
  .ujr-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ujr-logo-text { font-size: 14.5px; }
  .ujr-newslist { padding: 6px 20px; }
  .ujr-newslist li { flex-direction: column; gap: 2px; }
  .ujr-article { padding: 36px 24px; border-radius: 14px; }
  .ujr-table th { width: 96px; padding: 13px 12px; }
  .ujr-table td { padding: 13px 12px; }
  .ujr-events .when { flex: 0 0 84px; font-size: 11.5px; }
  .ujr-fixed { flex-direction: row; right: 12px; bottom: 12px; gap: 8px; }
  .ujr-fab { padding: 10px 16px; font-size: 12.5px; min-height: 46px; }
  .ujr-footer { padding-bottom: 108px; }
  .ujr-fullbleed img { height: 300px; }
}

/* 動きを控えたい設定のユーザーへ配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ujr-cloud { animation: none; }
  .ujr-reveal { opacity: 1; transform: none; transition: none; }
  .ujr-romaji-rj, .ujr-romaji-rj span { transition: none; opacity: 1; letter-spacing: 0.26em; }
}

/* footer name emphasis: UNJYOUJI / 雲乗寺 を少し大きめに */
.ujr-footer .ujr-romaji-line:nth-child(5) .ujr-romaji-rj{ font-size: clamp(12px,1.6vw,15px); }
.ujr-footer .ujr-romaji-line:nth-child(6) .ujr-romaji-kj{ font-size: clamp(31px,4.4vw,42px); }

/* SP hero video: 実寸で横幅全体を表示（切り取り拡大を解除） */
@media (max-width: 760px){
  .ujr-hero.has-sp-video{ aspect-ratio: auto; height: auto; min-height: 0; max-height: none; }
  .ujr-hero.has-sp-video .ujr-hero-media--sp{ position: static; width: 100%; height: auto; object-fit: contain; }
}

/* footer line spacing: 名前の行間を詰める（日本語・ローマ字とも） */
.ujr-footer .ujr-romaji{ gap: 8px; }
.ujr-footer .ujr-romaji-rj{ line-height: 1.3; }
.ujr-footer .ujr-romaji-kj{ line-height: 1.25; }

/* footer romaji pair spacing: ローマ字と直下の漢字の行間を詰める */
.ujr-footer .ujr-romaji-line:nth-child(even){ margin-top: -8px; }

/* staff profiles: 3枚の画像を順番にスライドイン＋フェードイン */
@keyframes ujrStaffSlideIn { from { opacity:0; transform:translateX(-48px); } to { opacity:1; transform:translateX(0); } }
.ujr-profiles img{ opacity:0; }
.ujr-reveal.is-visible .ujr-profiles img{ animation:ujrStaffSlideIn 0.8s ease both; }
.ujr-reveal.is-visible .ujr-profiles img:nth-child(1){ animation-delay:0.2s; }
.ujr-reveal.is-visible .ujr-profiles img:nth-child(2){ animation-delay:0.7s; }
.ujr-reveal.is-visible .ujr-profiles img:nth-child(3){ animation-delay:1.2s; }
@media (prefers-reduced-motion: reduce){ .ujr-profiles img{ opacity:1; } .ujr-reveal.is-visible .ujr-profiles img{ animation:none; } }
