@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 法泉寺 追加CSS 全文（v63 クリーン版）
   v58→v59「白と墨」→v60-62「造形と色」の全変更を整理統合したもの
   ── 設計の要点 ──
   ・地は純白。本文は墨 #2B2723、罫は #DDD8CC 1px、角丸・影なし
   ・色は【ページ色システム】--pgc のRGBで管理。
     法座・仏事=香色 / 墓・アクセス=生成り / 寺院=藤鼠 / 問合せ=朱 / 記事=藤
   ・強弱：淡い面（帯・有機形）×濃い短帯・短線・朱の電話番号
   ・濃度は【色の強さ】変数で一括調整可
   ・歌・寺紋・寺号・慶讃ロゴ・全文言は不変 */

/* ===== 設計変数 ===== */
:root {
  --hsj-sec: clamp(96px, 12vh, 160px);
}
@media (max-width: 1023px) { :root {
  --hsj-sec: 88px;
  --hsj-creed-fs: clamp(11.5px, 3.2vw, 16px);
} }
/* ページ色（RGB） */
body:not(.home){
  --pgc: 185,166,127;
}
body.page-id-24{
  --pgc: 181,143,99;
}
body.page-id-26, body.page-id-28{--pgc:185,166,127}
body.page-id-22{
  --pgc: 150,132,170;
}
body.page-id-30{
  --pgc: 143,46,20;
}
body.home{--hsj-th:#FFFFFF;--hsj-band:#FFFFFF;--hsj-hover:#F7F5EF;--hsj-tbl:#FFFFFF}

/* ===== 基本 ===== */
body {
  background: #FFFFFF !important;
}
::selection{background:rgba(143,46,20,.14)}
@keyframes hsjPageIn{from{opacity:0}to{opacity:1}}
body{
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  color: var(--hsj-ink);
  line-height: 1.9;
  letter-spacing: .05em;
  animation: hsjPageIn .5s ease-out;
}

/* ===== レイアウト:全幅 ===== */
#container { max-width: none; margin: 0; background: transparent !important; box-shadow: none; }
#container #content-in { max-width: 1160px; margin: 0 auto; }
#header, #header-container, .header-container, .header-container-in,
.header, #navi, .navi, .navi-in, .navi-in > ul,
.wrap, .main-wrap, .main, .sidebar { background: transparent !important; box-shadow: none; }
#container .wrap { width: auto; max-width: 100%; }
#sidebar { display: none; }
.main { width: 100% !important; }

/* ===== 寺院名(共通) ===== */
.header-container-in.hlt-top-menu .tagline,
.tagline { display: block; color: var(--hsj-mut) !important; font-size: 16px; letter-spacing: .3em; margin: 0 0 6px; }
.logo-header .site-name { padding: 0 !important; margin: 0 !important; }
.site-name-text { font-size: 0 !important; letter-spacing: 0; }
.site-name-text::before { content: "明照山"; font-size: 25px; letter-spacing: .25em; color: var(--hsj-mut); margin-right: 16px; }
.site-name-text::after { content: "法泉寺"; font-size: 60px; letter-spacing: .25em; color: var(--hsj-ink); font-weight: 500; }

/* ===== PC(1024px以上):左固定サイドバー ===== */
:root {
  --hsj-crest-top: clamp(30px, 3.8vh, 38px);
  --hsj-crest: clamp(52px, 10.5vh, 110px);
  --hsj-namecol: calc(var(--hsj-namefont) * 8.8);
  --hsj-keisan: clamp(110px, 16vh, 180px);
}
@media (min-width: 1024px) {
  body::before {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--hsj-side);
  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid var(--hsj-line);
  z-index: 900;
  content: none !important;
}
  body { background: #FFFFFF !important; }
  #header { background: none !important; padding: 0 !important; }
  .header-in { position: fixed; top: 0; left: 0; width: var(--hsj-side); z-index: 901; display: block !important; min-height: auto !important; height: auto !important; margin: 0; padding: 0; }
  .header-in::before { content: ""; position: fixed; top: var(--hsj-crest-top); left: calc((var(--hsj-side) - var(--hsj-crest)) / 2); width: var(--hsj-crest); height: var(--hsj-crest); background: url('https://howsenji.com/wp-content/uploads/2026/07/fuji-clear.png') no-repeat center / contain; z-index: 902; }
  .tagline { display: none !important; }
  .logo-header {
  position: fixed !important;
  width: var(--hsj-side) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: center !important;
  align-items: flex-start !important;
}
  .logo-header::before {
  content: "";
  width: calc(var(--hsj-namecol) * .3);
  height: calc(var(--hsj-namecol) * .82);
  margin-top: 6px;
  background: url('https://howsenji.com/wp-content/uploads/2026/07/jodo_shinshu_honganjiha_vertical_transparent_v2.png') no-repeat top center / contain;
}
  .logo-header .site-name {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  flex: 0 0 auto;
  width: calc(var(--hsj-namecol) * .52);
  background: url('https://howsenji.com/wp-content/uploads/2026/07/meishozan_housenji_vertical_transparent.png') no-repeat top center / contain;
}
  .logo-header .site-name-text { display: none !important; }
    .navi-in > ul { display: block; padding: 0 30px; margin: 0; }
  .navi-in > ul li { width: auto; height: auto; float: none; border-bottom: 1px solid var(--hsj-line-soft); }
  .navi-in > ul li:first-child { border-top: 1px solid var(--hsj-line-soft); }
  .navi-in > ul > li > a { -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; display: block; height: auto !important; line-height: 1.5; padding: clamp(4px, .9vh, 11px) 0; text-align: center; font-size: clamp(11px, 1.4vh, 14px); letter-spacing: .22em; color: var(--hsj-ink) !important; }
  .navi-in > ul > li > a:hover { background: transparent !important; color: var(--hsj-acc) !important; }
  .navi-in::after {
  content: "〒728-0406\A広島県三次市君田町櫃田772\ATEL 0824-53-2647";
  position: fixed;
  left: 0;
  width: var(--hsj-side);
  letter-spacing: .04em;
  color: var(--hsj-mut);
  z-index: 901;
}
  .logo-header::after {
  position: fixed;
  background: url('https://howsenji.com/wp-content/uploads/2026/07/%E3%82%AB%E3%83%A9%E3%83%BC%E6%A8%AA%EF%BC%91-768x377.jpg') no-repeat center / contain;
}
  #content { margin-left: var(--hsj-side); }
  .footer { margin-left: var(--hsj-side); }
  #container #content-in { max-width: none; margin: 0; }
}
/* ナビ現在地（朱の短線） */
.navi-in > ul > li.current-menu-item > a,
.navi-in > ul > li.current_page_item > a{color:var(--hsj-ink) !important;font-weight:600}
.navi-in > ul > li.current-menu-item > a::after,
.navi-in > ul > li.current_page_item > a::after{content:'';display:block;width:16px;height:1px;background:var(--hsj-shu);margin:3px auto 0}

@media (min-width: 1024px) {
  body:not(.home) .article { max-width: 1680px; margin: 0 auto; padding-left: 60px; padding-right: 60px; box-sizing: border-box; }
  /* 文章系は約40字幅 */
  body:not(.home) .article .entry-content > p,
  body:not(.home) .article .entry-content > ul,
  body:not(.home) .article .entry-content > ol,
  body:not(.home) .article .entry-content > h3,
  body:not(.home) .article .entry-content > h4,
  body:not(.home) .article .entry-content > blockquote,
  body:not(.home) .article .entry-content > .toc,
  body:not(.home) .article .entry-content > details,
  body:not(.home) .article > header {
    max-width: var(--hsj-w-text);
    margin-left: auto;
    margin-right: auto;
  }
  /* 既定:ブロック類は従来幅で中央 */
  body:not(.home) .article .entry-content > figure,
  body:not(.home) .article .entry-content > .wp-block-table,
  body:not(.home) .article .entry-content > .wp-block-group,
  body:not(.home) .article .entry-content > .wp-block-columns,
  body:not(.home) .article .entry-content > table,
  body:not(.home) .article .entry-content > [class*="hsj-"] {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }
  /* 【全幅】 */
  body:not(.home) .article .entry-content > figure.wp-block-image,
  body:not(.home) .article .entry-content > .hsj-onegai,
  body:not(.home) .article .entry-content > .hsj-flow,
  body:not(.home) .article .entry-content > .hsj-wide { max-width: none; }
  /* 【表ブロックの個別幅】新しいブロックはここに1行足す */
  body:not(.home) .article .entry-content > .hsj-gaiyou { max-width: 700px; }
  body:not(.home) .article .entry-content > .hsj-rekidai { max-width: 820px; }
  body:not(.home) .article .entry-content > .hsj-kyosho { max-width: 900px; }
  body:not(.home) .article .entry-content > .hsj-houyou,
  body:not(.home) .article .entry-content > .hsj-fee { max-width: 820px; }
  body:not(.home) .article .entry-content > .hsj-ohl,
  body:not(.home) .article .entry-content > .hsj-yomi,
  body:not(.home) .article .entry-content > .hsj-kata,
  body:not(.home) .article .entry-content > .hsj-fee2,
  body:not(.home) .article .entry-content > .hsj-boti,
  body:not(.home) .article .entry-content > .hsj-prof,
  body:not(.home) .article .entry-content > .hsj-hyo { max-width: 820px; }
  body:not(.home) .article .entry-content > figure.wp-block-table { max-width: 860px; }
  /* 【狭幅】 */
  body:not(.home) .article .entry-content > .hsj-narrow { max-width: var(--hsj-w-text); margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) and (max-height: 669px) { .logo-header::after { content: none; } }

/* ===== タブレット以下(1023px以下) ===== */
@media (max-width: 1023px) {
  body { background: transparent !important; padding-top: 58px; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #FFFFFF; }
  .header-container-in.hlt-top-menu,
  #header, .header-in, .logo-header { width: 100% !important; max-width: 100% !important; }
  #header, .logo-header, .tagline, .site-name, .header-in { text-align: center !important; }
  .header-in { display: block !important; min-height: auto !important; }
  .logo-header { display: block !important; }
  .logo-header .site-name { display: inline-block; }
  .tagline { font-size: 0 !important; margin: 0 !important; }
  .site-name-text { display: block; width: min(380px, 88vw); height: 72px; margin: 0 auto; background: url('https://howsenji.com/wp-content/uploads/2026/07/meishozan_housenji_horizontal_transparent.png') no-repeat center / contain; }
  .site-name-text::before, .site-name-text::after { content: none; }
  #header::after {
  display: block;
  width: 200px;
  height: 98px;
  margin: 10px auto 0;
  background: url('https://howsenji.com/wp-content/uploads/2026/07/%E3%82%AB%E3%83%A9%E3%83%BC%E6%A8%AA%EF%BC%91-768x377.jpg') no-repeat center / contain;
  content: none !important;
}
  #navi { display: none; }
  #header {
  background: url('https://howsenji.com/wp-content/uploads/2026/07/fuji-clear.png') no-repeat center 20px / 56px auto !important;
}
  /* モバイル実機のヘッダー・固定バーは白に */
  #header, .header-container, .header-container-in, .hsj-headrow, .hsj-nameblock,
  .mobile-header-menu-buttons, .mobile-menu-buttons { background-color:#FFFFFF !important; background-image:none !important; }
  .mobile-header-menu-buttons{border-bottom:1px solid var(--hsj-line)}
  .mobile-menu-buttons .menu-button, .mobile-menu-buttons > li{background:transparent !important}
}
.hsj-mbar{background-color:#FFFFFF !important;border-bottom:1px solid var(--hsj-line) !important;box-shadow:none !important}
[class*="hsj-mbar"]:not(.hsj-mbar){background-color:transparent !important}
@media (max-width: 760px) {
  .site-name-text::before { font-size: 14px; margin-right: 11px; }
  .site-name-text::after { font-size: 27px; }
}
#navi-menu-content { width: 260px !important; max-width: 72vw !important; }
@media (hover: none) and (max-width: 1023px), (pointer: coarse) and (max-width: 1023px) {
  #navi { display: none !important; }
  .mobile-menu-buttons { display: flex !important; }
}

/* ===== スライドショー ===== */
/* サムネイル：控えめ・モバイルは横スクロール */

/* ===== メインビジュアル ===== */
/* 歌の下地（行ごとの白帯） */
/* 白抜き寺紋（写真スライド時のみ・PCのみ） */
/* スクロール合図 */
@keyframes hsjCue{0%{transform:translateY(-24px);opacity:0}35%{opacity:1}75%{opacity:1}100%{transform:translateY(10px);opacity:0}}

/* ===== 写真の体系（v63） =====
   既定: 右下アール48px＋トーン統一（彩度-6%）。縁ぼかしは廃止し class 指定制に
   ブロックの「追加CSSクラス」で選べる:
   .hsj-ph-maru  = 有機的な形（大きな石のような輪郭）
   .hsj-ph-en    = 正円（正方形寄りの写真向き）
   .hsj-ph-kado  = 右下アール大(72px)
   .hsj-ph-fade  = 旧来の縁ぼかし
   .hsj-ph-plain = 加工なしの直角 */
.article figure.wp-block-image img{
  -webkit-mask-image: none;
  mask-image: none;
}
.article figure.hsj-ph-maru img{border-radius:58% 42% 52% 48% / 46% 56% 44% 54% !important}
.article figure.hsj-ph-en img{border-radius:50% !important;aspect-ratio:1/1;object-fit:cover}
.article figure.hsj-ph-kado img{border-radius:0 0 72px 0 !important}
.article figure.hsj-ph-plain img{border-radius:0 !important;filter:none}
.article figure.hsj-ph-fade img{
  border-radius:0 !important;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* 各下層ページ冒頭の写真は既定で有機形（class指定で上書き可） */
body:not(.home) .article figure.wp-block-image { width: 100% !important; max-width: 100% !important; margin: 2.4em 0; }
body:not(.home) .article figure.wp-block-image img { width: 100%; height: auto; }
body:not(.home) .article p { margin: 1.5em 0; }
body:not(.home) .article ul, body:not(.home) .article ol { margin: 1.5em 0; }
body:not(.home) .article li { margin: .5em 0; }
body:not(.home) .article figure.wp-block-table { margin: 2.4em auto; }

/* ===== 下層：ページ色の帯と面 ===== */
body:not(.home) .entry-title {
  text-align: center; letter-spacing: .22em; font-family: "Noto Serif JP", serif;
  font-size: 2.1em; font-weight: 500;
  background: rgba(var(--pgc), var(--a-title));
  margin: 0 calc(50% - 50vw) 1.8em;
  padding: 1.5em 24px 1.6em;
  position: relative; z-index: 1;
}
body:not(.home) .entry-title::before{content:'';display:block;width:36px;height:4px;background:rgb(var(--pgc));margin:0 auto .85em}
body:not(.home) .article{position:relative}
body:not(.home) .article::before{content:'';position:absolute;top:-20px;right:2%;width:clamp(220px,26vw,430px);height:clamp(190px,22vw,370px);background:rgba(var(--pgc),var(--a-blob1));border-radius:58% 42% 52% 48% / 46% 56% 44% 54%;z-index:0;pointer-events:none}
body:not(.home) .article::after{content:'';position:absolute;bottom:6%;left:-4%;width:clamp(170px,18vw,320px);height:clamp(150px,16vw,280px);background:rgba(var(--pgc),var(--a-blob2));border-radius:45% 55% 60% 40% / 55% 45% 52% 48%;z-index:0;pointer-events:none}
body:not(.home) .entry-content{position:relative;z-index:1}
@media (max-width: 760px) {
  body:not(.home) .entry-title { font-size: 1.8em; padding:1.2em 16px 1.3em; }
}

/* ===== 見出し ===== */
body:not(.home) .article h2 {
  background: rgba(var(--pgc), var(--a-h2));
  margin: 4.2em calc(50% - 50vw) 1.8em;
  padding: 1em 24px;
  text-align: center; font-size: 1.65em; font-weight: 500; letter-spacing: .24em; color: var(--hsj-ink);
  position: relative;
}
body:not(.home) .article h2::after{content:'' !important;display:block !important;width:44px;height:2px;background:rgba(var(--pgc), .85);margin:.7em auto 0}
.home .article h2 { background: none; padding: .25em 0; margin: 4.2em 0 1.6em; text-align: center; font-size: 1.65em; font-weight: 500; letter-spacing: .24em; color: var(--hsj-ink); }
.home .article h2::after { content: none; }
.article h3 { border: none; border-bottom: 1px solid var(--hsj-line); padding: .2em 0 .55em; margin: 3em 0 1.1em; font-size: 1.2em; font-weight: 600; letter-spacing: .12em; }
@media (max-width: 760px) {
  body:not(.home) .article h2 { font-size: 1.45em; padding:.85em 16px; }
  .article h3 { font-size: 1.15em; margin: 2.4em 0 .9em; }
}
.article h3::first-letter {
  font-size: 1em;
  color: inherit;
}

/* ===== ページタイトル(トップ以外の共通・ホームは非表示) ===== */
.home .entry-title, .home .toc { display: none; }

/* ===== リンクとボタン ===== */
a { color: var(--hsj-acc); }
a:hover { color: var(--hsj-acc-deep); }
.article p > a:only-child { display: inline-block; padding: .1em .1em .35em; border: none; border-bottom: 1px solid var(--hsj-acc); border-radius: 0; color: var(--hsj-acc); letter-spacing: .1em; text-decoration: none; transition: color .25s ease; }
.article p > a:only-child:hover { background-color: transparent; color: var(--hsj-acc-deep); }

/* ===== 表 ===== */
.article table th { background-color: var(--hsj-th); }
.article table th, .article table td { border-color: var(--hsj-line); }
.article figure.wp-block-table th,
.article figure.wp-block-table td { border-left: none; border-right: none; border-top: none; border-bottom: 1px solid var(--hsj-line); background-clip: padding-box; }
.article figure.wp-block-table th { border-bottom: 2px solid var(--hsj-ink); background-color: var(--hsj-th); }
.article figure.wp-block-table table:has(tr > :nth-child(2):last-child) th:first-child,
.article figure.wp-block-table table:has(tr > :nth-child(2):last-child) td:first-child { width: 30%; white-space: nowrap; }
.page-id-24 figure.wp-block-table table th:first-child,
.page-id-24 figure.wp-block-table table td:first-child { width: 30%; white-space: nowrap; }
.article figure.wp-block-table tr:hover td,
.hsj-gy-table tr:hover td,.hsj-fee2-table tr:hover td,
.hsj-boti-table tr:hover td,.hsj-rekidai2-table tr:hover td,
.hsj-kyosho2-table tr:hover td,.hsj-gaiyou tr:hover td,
.hsj-houyou tr:hover td{background:var(--hsj-hover)}
body:not(.home) .article .hsj-rekidai th, body:not(.home) .article .hsj-rekidai td,
body:not(.home) .article .hsj-houyou th, body:not(.home) .article .hsj-houyou td,
body:not(.home) .article .hsj-fee th, body:not(.home) .article .hsj-fee td,
body:not(.home) .article figure.wp-block-table th,
body:not(.home) .article figure.wp-block-table td { text-align: center; vertical-align: middle; font-size: clamp(15px, .95vw, 17px); padding: .8em .8em; line-height: 1.8; }
body:not(.home) .article .hsj-kyosho table th, body:not(.home) .article .hsj-kyosho table td,
body:not(.home) .article .hsj-gaiyou table th, body:not(.home) .article .hsj-gaiyou table td { text-align: center !important; vertical-align: middle !important; }
body:not(.home) .article .hsj-kyosho table th *, body:not(.home) .article .hsj-kyosho table td *,
body:not(.home) .article .hsj-gaiyou table th *, body:not(.home) .article .hsj-gaiyou table td * { text-align: center !important; }
body:not(.home) .article .hsj-kyosho, body:not(.home) .article .hsj-gaiyou { text-align: center !important; }

/* ===== アコーディオン(detailsブロック) ===== */
.article details { border: 1px solid var(--hsj-line); border-radius: 0; background: var(--hsj-card); margin: 1.2em 0; padding: 0; overflow: hidden; }
.article details > summary { list-style: none; cursor: pointer; padding: 1em 3em 1em 1.3em; position: relative; font-size: 1.05em; letter-spacing: .08em; color: var(--hsj-ink); background: var(--hsj-band); }
.article details > summary::-webkit-details-marker { display: none; }
.article details > summary::after { content: ""; position: absolute; right: 1.3em; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--hsj-acc); border-bottom: 1.5px solid var(--hsj-acc); transform: translateY(-70%) rotate(45deg); transition: transform .3s ease; }
.article details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.article details > summary:hover { background: var(--hsj-hover); }
.article details > *:not(summary) { padding: 0 1.3em; }
.article details > *:last-child { padding-bottom: 1.2em; }
/* アコーディオン見出しの装飾打ち消し */
.article details.hsj-acc > summary h2.hsj-acc-ttl{ background: none !important; background-image: none !important; border: none !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; text-align: left !important; line-height: 1.5 !important; font-size: clamp(18px, 1.35vw, 21px) !important; letter-spacing: .14em !important; }
.article details.hsj-acc > summary h2.hsj-acc-ttl::before,
.article details.hsj-acc > summary h2.hsj-acc-ttl::after{ content: none !important; display: none !important; }
.article details.hsj-acc > summary{ padding: 1.15em 3.2em 1.15em 1.6em !important; }

/* ===== 目次・告知 ===== */
body:not(.home) .article .toc{ max-width: var(--hsj-w-text); background: var(--hsj-card); border: 1px solid var(--hsj-line); border-radius: 0; }
body:not(.home) .article .toc .toc-list ol, body:not(.home) .article .toc .toc-list ul{ display: none; }

/* ===== トップ:全幅セクション ===== */
.home .main { padding: 0 !important; }
.home .entry-content { margin: 0; }
.home .article { padding: 0; margin: 0; max-width: none; }

/* ===== トップ:新着3列(hsj-news-v1) ===== */
.hsj-nw-col { display: flex; flex-direction: column; }

/* ===== 問い合わせカード ===== */
.hsj-ct { max-width: 960px; margin: 0 auto; }
.hsj-ct-lead { text-align: center; margin: 0 0 28px; }
.hsj-ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.hsj-ct-card { background: #FFFFFF; border: 1px solid var(--hsj-line); border-radius: 0; padding: 30px 28px 30px; text-align: center; display: flex; flex-direction: column; }
.hsj-ct-title { font-size: 17px; letter-spacing: .15em; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hsj-acc); }
.hsj-ct-tel { margin: 4px 0 12px; }
.article .hsj-ct .hsj-ct-tel > a { display: inline-block; border: none; border-radius: 0; padding: 0; background: transparent; font-size: 30px; letter-spacing: .05em; color: var(--hsj-shu); text-decoration: none; }
.article .hsj-ct .hsj-ct-tel > a:hover { background: transparent; opacity:.85; }
.hsj-ct-note { font-size: 14px; line-height: 1.9; color: var(--hsj-mut); margin: 0 0 8px; text-align: left; }
.hsj-ct-btnwrap { margin-top: auto; padding-top: 8px; }
.article .hsj-ct a.hsj-ct-btn { display: inline-block; background: transparent; color: var(--hsj-acc) !important; border: 1px solid var(--hsj-acc); border-radius: 0; padding: 12px 30px; letter-spacing: .12em; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.article .hsj-ct a.hsj-ct-btn:hover { background: var(--hsj-acc); color: #FFFFFF !important; }
@media (max-width: 760px) { .hsj-ct-grid { grid-template-columns: 1fr; gap: 16px; } .hsj-ct-lead br { display: none; } }

/* ===== 旧構成用（新着カラム・冒頭ブロック） ===== */
.home .wp-block-column { position: relative; display:flex; flex-direction:column; }
.home .wp-block-column > .wp-block-heading { border: none; border-bottom: 1px solid var(--hsj-ink); padding: 0 0 12px; margin: 0 0 16px; font-size: 16px; letter-spacing: .3em; position: relative; }
.home .wp-block-column > .wp-block-heading::before { content: none; }
.home .wp-block-column > p:has(> a:only-child) { position: absolute; top: -4px; right: 0; margin: 0; }
.home .wp-block-column > p > a:only-child { display: inline-block; background: transparent; color: var(--hsj-acc) !important; border: none; border-bottom: 1px solid var(--hsj-acc); border-radius: 0; padding: 2px 2px 4px; font-size: 13px; letter-spacing: .15em; text-decoration: none; }
.home .wp-block-column > p > a:only-child:hover { background: transparent; color: var(--hsj-acc-deep) !important; }
.home .entry-content .wp-block-columns { max-width: none !important; width: 100%; }
.home .entry-content > .wp-block-columns { padding: 0 20px; }
@media (min-width: 1024px) { .home .entry-content > .wp-block-columns { max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 48px; } }
.home .wp-block-columns { align-items: stretch; }
.home .wp-block-column > .wp-block-latest-posts { flex: 1 1 auto; }
.home .wp-block-latest-posts { background: transparent; border: none; border-radius: 0; padding: 8px 0 0; list-style: none; width: 100%; margin: 0 0 16px; }
.home .wp-block-latest-posts li { display: flex; flex-direction: column-reverse; align-items: flex-start; border-bottom: 1px solid var(--hsj-line-soft); padding: 16px 0; margin: 0; }
.home .wp-block-latest-posts li:last-child { border-bottom: none; }
.home .wp-block-latest-posts:not(:has(li))::before { content: "記事はまだありません"; display: block; font-size: 14px; color: var(--hsj-mut); letter-spacing: .05em; padding: 6px 0; }
.home .wp-block-latest-posts a { font-size: 15px; text-decoration: none; }
.home .wp-block-latest-posts .wp-block-latest-posts__post-date { font-size: 12px; color: var(--hsj-mut); letter-spacing: .05em; }

/* ===== 記事一覧(/blog/) ===== */
.list{max-width:900px;margin:0 auto}
a.entry-card-wrap{display:block;margin:0;padding:34px 8px;border-bottom:1px solid var(--hsj-line-soft);text-decoration:none}
a.entry-card-wrap:first-of-type{border-top:1px solid var(--hsj-line-soft)}
a.entry-card-wrap:hover{background:rgba(var(--pgc), .08)}
.entry-card{display:flex;flex-wrap:wrap;gap:30px;align-items:flex-start;position:relative}
.entry-card-thumb{flex:0 0 190px;width:190px !important;margin:0 !important;float:none !important}
.entry-card-thumb img{border-radius:0 0 34px 0 !important;filter:saturate(.85);display:block}
.cat-label{background:#FFFFFF !important;border:1px solid var(--hsj-line) !important;color:var(--hsj-mut) !important;font-size:10.5px !important;letter-spacing:.14em;border-radius:0 !important;padding:2px 9px !important;opacity:.95}
.category-6-post .cat-label{color:var(--hsj-fuji) !important;border-color:var(--hsj-fuji) !important}
.category-5-post .cat-label{color:var(--hsj-shu) !important;border-color:var(--hsj-shu) !important}
.entry-card-content{flex:1 1 0 !important;min-width:0;margin:0 !important;width:auto !important}
.entry-card-title{font-size:17.5px !important;font-weight:500 !important;letter-spacing:.06em;line-height:1.7;margin:0 0 10px !important;color:var(--hsj-ink)}
a.entry-card-wrap:hover .entry-card-title{color:var(--hsj-acc)}
.entry-card-snippet{font-size:13px !important;line-height:1.9 !important;color:var(--hsj-mut) !important;margin:0 0 12px !important}
.entry-card .post-date{position:static !important;flex:1 1 100%;margin:10px 0 0 220px;font-size:12px;color:#9A937F;letter-spacing:.06em;text-align:left}
.entry-card .post-date i, .entry-card .post-date .fa{display:none}
@media (max-width:760px){.entry-card .post-date{margin-left:0}.entry-card-thumb{flex-basis:130px;width:130px !important}}
.pagination{margin-top:48px}
.pagination .page-numbers{border-radius:0;border:1px solid var(--hsj-line);color:var(--hsj-acc);background:#FFF}
.pagination .page-numbers.current{background:var(--hsj-ink);border-color:var(--hsj-ink);color:#FFF}

/* ===== フッター ===== */
.footer { background: #FFFFFF !important; border-top: 1px solid var(--hsj-line); position:relative; overflow:hidden; }
.footer::after{content:'';position:absolute;right:-46px;bottom:-70px;width:340px;height:340px;background:url('https://howsenji.com/wp-content/uploads/2026/07/fuji-clear.png') center/contain no-repeat;filter:grayscale(1);opacity:.05;pointer-events:none}
.footer, .footer a { color: #4A443B; }
.footer, .footer-in, .footer .footer-widgets, .footer .textwidget,
.footer aside { color: #4A443B !important; }
.footer-bottom-logo { display: none; }
.footer .site-logo-image { display: none; }
#container .footer-in { max-width: 1080px; margin: 0 auto; padding-top: 32px; }
@media (min-width: 1024px) {
  .footer .footer-left, .footer .footer-center, .footer .footer-right { text-align: center; }
  .footer .footer-left > *, .footer .footer-center > *, .footer .footer-right > * { display: inline-block; text-align: left; vertical-align: top; width: auto; }
}
.hsj-ft, .hsj-ft-nav { font-size: 14px; line-height: 1.9; color: #4A443B !important; }
.hsj-ft-name { font-size: 17px; letter-spacing: .12em; margin-bottom: 10px; color: var(--hsj-ink) !important; }
.hsj-ft-addr { margin-bottom: 6px; }
.hsj-ft-tel a { font-size: 20px; letter-spacing: .06em; color: var(--hsj-ink) !important; text-decoration: none; }
.hsj-ft-nav { list-style: none; margin: 0; padding: 0; }
.hsj-ft-nav li { padding: 2px 0 2px 1em; position: relative; }
.hsj-ft-nav li::before { content: "・"; position: absolute; left: 0; }
.hsj-ft-nav a { color: #4A443B !important; text-decoration: none; }
.hsj-ft-nav a:hover { text-decoration: underline; }
.hsj-ft-lead { margin-bottom: 12px; }
.hsj-ft-btn { display: inline-block; background: transparent; color: var(--hsj-acc) !important; border: 1px solid var(--hsj-acc); padding: 10px 22px; border-radius: 0; text-decoration: none; letter-spacing: .08em; transition: background-color .25s ease, color .25s ease; }
.hsj-ft-btn:hover { opacity: 1; background: var(--hsj-acc) !important; color: #FFFFFF !important; }
.hsj-ft-m { text-align: center; }
.hsj-ft-m .hsj-ft-tel { margin-bottom: 14px; }
.hsj-ft-m .hsj-ft-tel a { font-size: 22px; }
.hsj-ft-nav-m { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 16px; }
.hsj-ft-nav-m li { padding: 0; }
.hsj-ft-nav-m li::before { content: none; }
.hsj-ft-nav-m a { font-size: 13px; }
.hsj-ft-legal{ margin: 1.8em 0 0; font-size: .78em; letter-spacing: .08em; }
.hsj-ft-legal a{ color: var(--hsj-mut) !important; text-decoration: none; transition: color .3s ease; }
.hsj-ft-legal a:hover{ color: var(--hsj-ink) !important; }
.footer-bottom, .footer-bottom a, .footer .copyright,
.footer .footer-bottom-content, .footer-bottom .footer-bottom-content { color: var(--hsj-mut) !important; }

/* ===== 非表示・その他 ===== */
.breadcrumb { display: none; }
.page .date-tags { display: none; }
.post-author, .author-info { display: none; }
.page .sns-share, .page .sns-follow { display: none; }
@media (max-width: 760px) { .article p.has-text-align-center { text-align: left; } }
.go-to-top-button{background:#2B2723 !important;color:#FFFFFF !important;border-radius:50% !important;box-shadow:none !important;opacity:.9}
.go-to-top-button:hover{background:var(--hsj-acc) !important;opacity:1}

/* ===== フェードイン(hsj-fade-v5) ===== */
.hsj-js .hsj-fi { opacity: 0; transform: translateY(28px); transition: none; }
.hsj-js.hsj-fi-ready .hsj-fi { transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.3,1) !important; }
.hsj-js .hsj-fi.hsj-fi-in { opacity: 1; transform: none; }

/* ===== hsj-motion-v3 (2026-11-22 夜) トップの演出：すべてスクロール位置に合わせて動く（秒数で動かさない） ここから =====
   ・「見えている所」＝ヘッダーの下端（--hsj-hd）から下の固定ボタンの上端（スマホ。高さ --hsj-fb）まで。どちらも本文末尾の hsj2-motion-v3 が実際に測って書く（hsj-center-v1・2026-11-24）。
   ・文字・写真・カード・線画・歌の行：見えている所の下端に入ってから（50px 下・透明）、進んだ分だけ濃くなり上がり、要素の真ん中が見えている所の上下の真ん中に来たときに
     濃くなりきる（背の高いものは、上端がヘッダーの下 24px に来たときのほうが早ければそこで）。
     上へ抜けるときは、進んだ分だけ薄くなり 30px 上がって消える（hsj-exit-v1 を hsj-center-v1 でヘッダー基準に）。消えきるのは上端がヘッダーの下端の 30px 下に来たとき
     （＝ヘッダーの裏へ見えたまま入らない）。見えている所の半分より背の高いものだけは、下端が見えている所の真ん中の 30px 下に来たとき。
     消え始めはその「見えている所の高さ×12%」手前（濃くなりきる前には消え始めない）。途中で止めれば途中のまま、上へ戻せば逆にまた現れる。
   ・見出し（英字の行→日本語の行）・歌の行・並んだカードや写真は、範囲を少しずつずらして1つずつ現れる（遅れの秒数ではなく、スクロール量のずれ）。
     ずれは --hsm-a（画面の高さの％。その半分だけ後ろへずらす）。本文末尾の hsj2-motion-v3 が要素ごとに書き込む。
   ・トップ画 → 新着 → お知らせ：下へスクロールした量に合わせて、本堂の写真が文字ごと白（広い画面は生成り）へ溶け、そのすぐ下の「新着」の区切り（.hsj2-shin。トップ画には重ねない）の
     カードが下から現れる（PC は画面の45%分、スマホは15%分で写真が溶けきる。スマホはトップの文字が下にあるため早めに溶かし、新着・お知らせの枠は文字が溶けきってから濃くなる＝重ならない）。
     新着カード・法座案内・お知らせの枠は、写真の下側に重ねて置き（hsj-shin-v2）、写真が溶けてから現れる（.hsm-s）。濃くなりきるのは、ほかと同じく
     カードの真ん中が見えている所の真ん中に来たとき（hsj-center-v1）。そこまでの「画面の高さ×20%」ぶんで濃くなる。消え方はほかと同じ。
   ・景色の対：区間（画面の約2.2倍の長さ）に留まるあいだ、前の2枚をしばらく見せ、区間の36〜62%（右・下は46〜72%）で後の2枚が重なって溶ける。そのあと、留まりの終わる120px手前から
     列ごと薄くなり、留まりが終わって上へ動き出した写真の上端がヘッダーの下端に届くときに消えきる（hsj-pairfit-v1・2026-11-24。ヘッダーの裏へ見えたまま入らない）。写真は 1.00→1.05 にわずかに寄る。
     写真は本文の幅（最大1120px・左右に余白・角丸）に収めた 4:3 の枠で、留まる枠の上下中央。枠の上下の空きは前後の区切りとの間が今までと同じ（前後の区切りの余白だけ）になるよう
     区間の上下の margin で詰める（大きさは画面の幅と高さ、ヘッダー・下の固定ボタンの高さで決まる）。
   ・境内の1枚：本文の幅（最大1120px・角丸 18px）で、高さは見えている所の半分まで（縦横比 21:9／スマホ 4:3 はそのまま）。
     ほかと同じ範囲で、9割の大きさ・透明から等倍へ（真ん中を軸に）。上へ抜けるときもほかと同じく消える。高さは最初から確保（CLSなし）。
   ・ことばの淡い窓：窓（地・枠・歌の区切り線）は1行目の文字と同じときに開き始め、行は少しずつずれて現れる（中身のない枠だけが先に見えない）。
     窓・区切り線・歌の行は、窓の位置で一緒に消える。
   ・地色（ごく薄い生成り #FDFBF7。色は @keyframes hsj2-tint の1か所だけ）・上端の細い線もスクロール連動。
   ・対応ブラウザ（Chrome・Edge・Safari 26 など）は CSS の animation-timeline: view()。非対応（Firefox など）は .hsj2 に .hsm-fb を付け、
     同じ @keyframes を止めたまま、スクロール量から計算した位置（--hsm-di 等の負の animation-delay）を書き込む。スクロールの合図1つ＋必要なときだけの requestAnimationFrame、
     動きをなめらかにする追従（1コマ12%）が追いついたら止まる。画面外の要素は IntersectionObserver で計算から外す。
   ・端末の「視差効果を減らす」「アニメーション効果オフ」でも動かす（2026-11-22 19:31 の判断）。止めるのは ?nomotion（html.hsj-nomotion。確認用）だけ。JS が動かないときは何も隠さない。
   ・動かすのは opacity と transform 系（translate / scale）だけ（地色だけ background-color）。レイアウトは動かない。
   ・属性セレクタ・論理積の記号は使わない。 */
html body .article .hsj2 .hsj2-uta-in::before {
  content: ""; position: absolute; z-index: -1; inset: -36px -60px 92px; pointer-events: none;
  background: #FBF8F2; border: 1px solid #EFE8DC; border-radius: 4px;
}
@media (max-width: 600px) { html body .article .hsj2 .hsj2-uta-in::before { inset: -24px -22px 86px; } }
/* 景色の対：完成形（動きなし）は 2×2 で並べる */
html body .article .hsj2 .hsj2-pair { position: relative; padding: clamp(40px, 6vw, 72px) 20px; background-color: #FFFFFF; }
html body .article .hsj2 .hsj2-pair-mark { position: absolute; top: 45%; left: 0; width: 1px; height: 1px; pointer-events: none; }
html body .article .hsj2 .hsj2-pair-pin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); max-width: 1120px; margin: 0 auto; }
html body .article .hsj2 .hsj2-pair-col { display: grid; gap: clamp(12px, 2vw, 24px); position: relative; }
html body .article .hsj2 .hsj2-pair figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; }
html body .article .hsj2 .hsj2-pair img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
html body .article .hsj2 .hsj2-pair figcaption {
  position: absolute; top: clamp(18px, 2.6vw, 32px); right: clamp(18px, 2.6vw, 32px); margin: 0; padding: .9em .55em .5em; border-radius: 6px;
  writing-mode: vertical-rl; font-family: var(--f-wa); font-size: clamp(14px, 1.4vw, 17px); line-height: 1; letter-spacing: .42em; color: #FFFFFF;
  background-color: rgba(40,34,28,.34); text-shadow: 0 1px 6px rgba(40,34,28,.5); opacity: 1;
}
/* 写真で見る法泉寺：境内の1枚。本文の幅（最大1120px・角丸）で、高さは見えている所（ヘッダーと下の固定ボタンの間）の半分まで。高さは縦横比で先に確保（hsj-center-v1） */
html body .article .hsj2 .hsj2-gal-wide { width: min(100%, 1120px, calc((100vh - var(--hsj-hd) - var(--hsj-fb)) / 2 * 21 / 9)); max-width: none; margin: 0 auto 28px; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 18px; }
html body .article .hsj2 .hsj2-gal-wide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; border-radius: 0; }
@media (max-width: 834px) { html body .article .hsj2 .hsj2-gal-wide { width: min(100%, calc((100vh - var(--hsj-hd) - var(--hsj-fb)) / 2 * 4 / 3)); aspect-ratio: 4 / 3; } }
/* ?nomotion：すべて止めて完成形（確認用） */
html.hsj-nomotion body .article .hsj2 *, html.hsj-nomotion body .article .hsj2 *::before, html.hsj-nomotion body .article .hsj2 *::after { animation: none !important; transition: none !important; }
/* 動き（スクロール位置に合わせて）。.hsm-on は本文末尾の JS が付ける（JS が動かないときは何も隠れない） */
html body .article .hsj2 .hsm-t {
  animation-name: hsm-in, hsm-out; animation-duration: 1s, 1s; animation-timing-function: linear, linear; animation-fill-mode: both, forwards;
}
html body .article .hsj2 .hsm-t.hsm-d {
  animation-name: hsm-fade, hsm-out, hsj2-float; animation-duration: 1s, 1s, 1s; animation-timing-function: linear, linear, linear; animation-fill-mode: both, forwards, both;
}
html body .article .hsj2 .hsj2-uta-art { --hsm-o: .55; }
/* トップ画 → お知らせ：下へスクロールした量に合わせて溶ける（PC は画面の45%分、スマホは15%分）。お知らせはその間に下から入ってくる。
   スクロール0では必ず不透明（LCPを守る） */
html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-osh, html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-shin { background-color: transparent; }
html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-uta { background-color: transparent; box-shadow: none; }
html body .article .hsj2.hsm-x .hsj2-hero { background-color: #FFFFFF; }
html body .article .hsj2.hsm-x .hsj2-hero .hsj2-in { --hsm-a: 0; --hsm-b: 45; animation: hsj2-hero-fade 1s linear both; }
@media (min-width: 1400px) { html body .article .hsj2.hsm-x .hsj2-hero { background-color: #FBF8F2; } }
/* 新着の区切り（hsj-shin-v2）：写真が溶けたあとヘッダーのすぐ下（約60px）にカードが来るよう、区切りを上へ引き上げて写真の下側に重ねておく
   （動きのあるときだけ。?nomotion・JS なしでは普通に写真の下に並ぶ）。カードはスクロール量（scroll(root)）で現れる：
   PC は画面の40〜60%（写真は45%で溶けきる）、スマホは15〜38%（写真は15%で溶けきる）＝文字とは重ならない。
   現れる前は visibility: hidden（写真の上で見えないカードが押されない）。区切り自体はタップを通す。上端の近くで消えるのはほかと同じ（view()）。
   引き上げ量＝写真の下端 − カードの最終位置 − 画面の高さ×範囲の終わり。最終位置は、カードの真ん中が見えている所の真ん中（hsj-center-v1。カードの高さは約110px として、
   今までの「ヘッダー＋約60px」より（見えている所の高さ÷2 − 110px）下）。濃くなりきる瞬間そのものは view() の範囲で決まるので、カードの高さが違ってもずれない。
   --hsm-a / --hsm-b（差＝濃くなるまでのスクロール量）は JS が .hsm-x を付ける前に読むので .hsm-x は付けない */
html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-shin { margin-top: calc(89px - 40vh + (100vh - var(--hsj-hd) - var(--hsj-fb)) / 2 - 110px); }
html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-shin, html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-osh { pointer-events: none; }
html body .article .hsj2.hsm-x .hsj2-shin-box > *, html body .article .hsj2.hsm-x .hsj2-osh-box { pointer-events: auto; }
html body .article .hsj2 .hsj2-shin-box > * { --hsm-a: 40; --hsm-b: 60; }
html body .article .hsj2 .hsj2-osh .hsj2-osh-box { --hsm-a: 50; --hsm-b: 70; }
html body .article .hsj2 .hsm-t.hsm-s { animation-name: hsj2-shin-in, hsm-out; }
@media (max-width: 834px) {
  html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-shin { margin-top: calc(172px - 62vh + (100vh - var(--hsj-hd) - var(--hsj-fb)) / 2 - 110px); margin-top: calc(172px - 62svh + (100svh - var(--hsj-hd) - var(--hsj-fb)) / 2 - 110px); }
  html body .article .hsj2 .hsj2-shin-box > * { --hsm-a: 15; --hsm-b: 38; }
  html body .article .hsj2 .hsj2-osh .hsj2-osh-box { --hsm-a: 26; --hsm-b: 48; }
}
/* 背の低いスマホ：写真は最低 500px（画面の高さ − 184px より高い）なので、写真の下端は固定の位置 */
@media (max-width: 834px) and (max-height: 684px) {
  html body .article .hsj2.hsm-x .hsj2-stage > .hsj2-shin { margin-top: calc(38vh - 535px + (100vh - var(--hsj-hd) - var(--hsj-fb)) / 2 - 110px); margin-top: calc(38svh - 535px + (100svh - var(--hsj-hd) - var(--hsj-fb)) / 2 - 110px); }
}
@media (max-width: 834px) {
  html body .article .hsj2.hsm-x .hsj2-hero .hsj2-in { --hsm-b: 15; }
}
/* 景色の対：区間のあいだ、ヘッダーの下端から下の固定ボタン（スマホ）の上端までの「見えている所」に留め、写真はその上下中央（hsj-pairfit-v1・2026-11-24）。
   ヘッダーの下端 --hsj-hd・固定ボタンの高さ --hsj-fb は本文末尾の hsj2-motion-v3 が実際に測って .hsj2 に書く（文字の大きさの設定などで高さが変わっても見切れない）。
   測る前の値は PC 53px／タブレット 58px／スマホ 58px＋69px。スマホの高さは 100svh（アドレスバーが出ているときの高さ）で取る。
   写真は 4:3 のまま、見えている所の上下に最低 32px（スマホ 24px）空く大きさまで。区間の長さは画面の約2.2倍 */
html body .article .hsj2 { --hsj-hd: 53px; --hsj-fb: 0px;
  /* hsj-center-v1：範囲の部品（view() の cover の位置。100% はその要素の範囲全体）。--hsj-v＝見えている所の高さ、--hsj-mid＝要素の真ん中が見えている所の真ん中、
     --hsj-xe＝消えきる位置（上端がヘッダーの30px下。背の高いものは下端が真ん中の30px下）、--hsj-xs＝背の高さによらず上端基準、--hsj-xd＝消えるのにかけるスクロール量 */
  --hsj-v: calc(100vh - var(--hsj-hd) - var(--hsj-fb)); --hsj-mid: calc(50% + (var(--hsj-fb) - var(--hsj-hd)) / 2);
  --hsj-xs: calc(100vh - var(--hsj-hd) - 30px); --hsj-xe: max(calc(100vh - var(--hsj-hd) - 30px), calc(100% - var(--hsj-hd) - var(--hsj-v) / 2 - 30px)); --hsj-xd: calc(var(--hsj-v) * .12); }
@media (max-width: 1023px) { html body .article .hsj2 { --hsj-hd: 58px; } }
@media (max-width: 834px) { html body .article .hsj2 { --hsj-fb: 69px; } }
html body .article .hsj2.hsm-x .hsj2-pair { view-timeline: --hsj2-pair block; height: calc(225vh - var(--hsj-hd) - var(--hsj-fb)); padding: 0; background-color: transparent;
  margin: calc(0px - (100vh - var(--hsj-hd) - var(--hsj-fb) - min((min(100vw, 1216px) - 2 * clamp(20px, 4vw, 48px) - 24px) * 3 / 8, 100vh - var(--hsj-hd) - var(--hsj-fb) - 64px)) / 2) 0; }
html body .article .hsj2.hsm-x .hsj2-pair-pin { position: sticky; top: var(--hsj-hd); height: calc(100vh - var(--hsj-hd) - var(--hsj-fb)); max-width: 1216px; box-sizing: border-box; padding: 0 clamp(20px, 4vw, 48px); align-content: center; justify-items: center; gap: 24px; }
html body .article .hsj2.hsm-x .hsj2-pair-col { display: block; width: min(100%, calc((100vh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 4 / 3)); overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; animation: hsj2-fadein 1s linear reverse both; }
html body .article .hsj2.hsm-x .hsj2-pair figure { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
html body .article .hsj2.hsm-x .hsj2-pair-a.hsm-t { animation-name: hsm-in; }
html body .article .hsj2.hsm-x .hsj2-pair-b { --hsm-a: 36; --hsm-b: 62; animation: hsj2-fadein 1s linear both; }
html body .article .hsj2.hsm-x .hsj2-pair-col + .hsj2-pair-col .hsj2-pair-b { --hsm-a: 46; --hsm-b: 72; }
html body .article .hsj2.hsm-x .hsj2-pair img { --hsm-a: 0; --hsm-b: 100; animation: hsj2-breathe 1s linear both; }
@media (max-width: 834px) {
  html body .article .hsj2.hsm-x .hsj2-pair { height: calc(215vh - var(--hsj-hd) - var(--hsj-fb)); height: calc(215svh - var(--hsj-hd) - var(--hsj-fb));
    margin: calc(0px - (100vh - var(--hsj-hd) - var(--hsj-fb) - 16px - min(100vw - 40px, (100vh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3) * 3 / 2) / 2) 0; margin: calc(0px - (100svh - var(--hsj-hd) - var(--hsj-fb) - 16px - min(100vw - 40px, (100svh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3) * 3 / 2) / 2) 0; }
  html body .article .hsj2.hsm-x .hsj2-pair-pin { height: calc(100vh - var(--hsj-hd) - var(--hsj-fb)); height: calc(100svh - var(--hsj-hd) - var(--hsj-fb)); grid-template-columns: 1fr; padding: 0 20px; gap: 16px; }
  html body .article .hsj2.hsm-x .hsj2-pair-col { width: min(100%, calc((100vh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3)); width: min(100%, calc((100svh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3)); }
}
/* 境内の1枚：9割の大きさ・透明から等倍へ。真ん中を軸に（scale のみ＝高さは最初から確保） */
html body .article .hsj2.hsm-x .hsj2-gal-wide { view-timeline: --hsj2-gw block; transform-origin: 50% 50%; --hsm-a: 0; --hsm-b: 50; animation: hsj2-widen 1s linear both, hsm-out 1s linear forwards; }
html body .article .hsj2.hsm-x .hsj2-gal-wide img { --hsm-a: 0; --hsm-b: 50; animation: hsj2-settle 1s linear both; }
/* ことばの淡い窓：窓・歌の区切り線は1行目の文字と同じ範囲で開く（中身のない枠を先に見せない）。歌の行は .hsm-t で少しずつずれて現れ、窓と一緒に消える。
   区切り線（縦書きでは縦の線）は本文の border の代わりに ::before で描き、窓と同じに動かす */
html body .article .hsj2.hsm-x .hsj2-uta-in { view-timeline: --hsj2-uta block; --hsm-a: 0; --hsm-b: 28; }
html body .article .hsj2.hsm-x .hsj2-uta-in::before { animation: hsj2-window 1s linear both, hsm-out 1s linear forwards; }
html body .article .hsj2.hsm-x .hsj2-uta-poem { position: relative; border-block-start-color: transparent; }
html body .article .hsj2.hsm-x .hsj2-uta-poem::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; block-size: 0; border-block-start: 1px solid var(--c-rule); pointer-events: none;
  animation: hsj2-fadein 1s linear both, hsm-out 1s linear forwards; }
/* 対応ブラウザ：CSS のスクロール連動 */
@supports (animation-timeline: view()) {
  /* hsj-center-v1：--hsm-e＝濃くなりきる位置（その要素の --hsm-a で少し後ろへ）。窓は --hsm-eu（ずれなし） */
  html body .article .hsj2 .hsm-t, html body .article .hsj2 .hsj2-gal-wide { --hsm-e: min(calc(var(--hsj-mid) + var(--hsm-a, 0) * .5vh), calc(100vh - var(--hsj-hd) - 24px)); }
  html body .article .hsj2 .hsj2-uta-in { --hsm-eu: min(calc(var(--hsj-mid) + var(--hsm-a, 0) * .5vh), calc(100vh - var(--hsj-hd) - 24px)); --hsm-e: min(calc(var(--hsj-mid) + var(--hsm-a, 0) * .5vh), calc(100vh - var(--hsj-hd) - 24px)); }
  html body .article .hsj2 .hsm-t { animation-timeline: view(), view(); animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e), cover max(calc(var(--hsj-xe) - var(--hsj-xd)), var(--hsm-e)) cover var(--hsj-xe); }
  html body .article .hsj2 .hsm-t.hsm-d { animation-timeline: view(), view(), view(); animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e), cover max(calc(var(--hsj-xe) - var(--hsj-xd)), var(--hsm-e)) cover var(--hsj-xe), cover 0% cover 100%; }
  html body .article .hsj2.hsm-x .hsj2-uta-in .hsm-t { animation-timeline: view(), --hsj2-uta; animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e), cover max(calc(var(--hsj-xs) - var(--hsj-xd)), var(--hsm-eu)) cover var(--hsj-xs); }
  /* 写真（.ph・住職の写真）は背が高くても、上端がヘッダーの30px下に来るまでに消えきる（ヘッダーの裏へ見えたまま入らない） */
  html body .article .hsj2 img.ph.hsm-t, html body .article .hsj2 figure.portrait.hsm-t { animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e), cover max(calc(var(--hsj-xs) - var(--hsj-xd)), var(--hsm-e)) cover var(--hsj-xs); }
  html body .article .hsj2.hsm-x .hsj2-hero .hsj2-in { animation-timeline: scroll(root); animation-range: calc(var(--hsm-a) * 1vh) calc(var(--hsm-b) * 1vh); }
  /* 新着・お知らせの枠：写真が溶けてから、濃くなりきる位置（ずれなし）の「画面の高さ×(--hsm-b − --hsm-a)%」手前から濃くなる */
  html body .article .hsj2 .hsm-t.hsm-s { --hsm-e: min(var(--hsj-mid), calc(100vh - var(--hsj-hd) - 24px)); animation-timeline: view(), view();
    animation-range: cover calc(var(--hsm-e) - (var(--hsm-b, 60) - var(--hsm-a, 40)) * 1vh) cover var(--hsm-e), cover max(calc(var(--hsj-xe) - var(--hsj-xd)), var(--hsm-e)) cover var(--hsj-xe); }
  /* 景色の対：前の2枚は、留まる枠（sticky）の中にあるため区間そのものの位置で現れ、区間の上端がヘッダーの下端に来た（枠が留まり始めた）ときに濃くなりきる。
     列ごと消えるのは、区間の下端が「ヘッダーの下端＋枠の高さ＋120px」（留まりの終わる120px手前）から「ヘッダーの下端＋（枠の高さ＋写真の高さ）÷2」（動き出した写真の上端がヘッダーの下端）に来るあいだ */
  html body .article .hsj2.hsm-x .hsj2-pair-a.hsm-t { animation-timeline: --hsj2-pair; animation-range: cover calc(45vh + var(--hsj-fb) + 24px) cover calc(100vh - var(--hsj-hd)); }
  html body .article .hsj2.hsm-x .hsj2-pair-col { animation-timeline: --hsj2-pair;
    animation-range: cover calc(100% - var(--hsj-hd) - (100vh - var(--hsj-hd) - var(--hsj-fb)) - 120px) cover calc(100% - var(--hsj-hd) - (100vh - var(--hsj-hd) - var(--hsj-fb) + min((min(100vw, 1216px) - 2 * clamp(20px, 4vw, 48px) - 24px) * 3 / 8, 100vh - var(--hsj-hd) - var(--hsj-fb) - 64px)) / 2); }
  @media (max-width: 834px) {
    html body .article .hsj2.hsm-x .hsj2-pair-col {
      animation-range: cover calc(100% - var(--hsj-hd) - (100vh - var(--hsj-hd) - var(--hsj-fb)) - 120px) cover calc(100% - var(--hsj-hd) - (100vh - var(--hsj-hd) - var(--hsj-fb) + 16px + min(100vw - 40px, (100vh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3) * 3 / 2) / 2);
      animation-range: cover calc(100% - var(--hsj-hd) - (100svh - var(--hsj-hd) - var(--hsj-fb)) - 120px) cover calc(100% - var(--hsj-hd) - (100svh - var(--hsj-hd) - var(--hsj-fb) + 16px + min(100vw - 40px, (100svh - var(--hsj-hd) - var(--hsj-fb) - 64px) * 2 / 3) * 3 / 2) / 2); }
  }
  html body .article .hsj2.hsm-x .hsj2-pair-b { animation-timeline: --hsj2-pair; animation-range: contain calc(var(--hsm-a) * 1%) contain calc(var(--hsm-b) * 1%); }
  html body .article .hsj2.hsm-x .hsj2-pair img { animation-timeline: --hsj2-pair; animation-range: contain 0% contain 100%; }
  html body .article .hsj2.hsm-x .hsj2-gal-wide { animation-timeline: --hsj2-gw, --hsj2-gw; animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e), cover max(calc(var(--hsj-xe) - var(--hsj-xd)), var(--hsm-e)) cover var(--hsj-xe); }
  html body .article .hsj2.hsm-x .hsj2-gal-wide img { animation-timeline: --hsj2-gw; animation-range: cover calc(var(--hsj-fb) + 40px + var(--hsm-a, 0) * .5vh) cover var(--hsm-e); }
  html body .article .hsj2.hsm-x .hsj2-uta-in::before, html body .article .hsj2.hsm-x .hsj2-uta-poem::before { animation-timeline: --hsj2-uta, --hsj2-uta;
    animation-range: cover calc(var(--hsj-fb) + 40px) cover var(--hsm-eu), cover max(calc(var(--hsj-xs) - var(--hsj-xd)), var(--hsm-eu)) cover var(--hsj-xs); }
  /* 地色：色のない区切りが画面の中ほどにある間だけ、ごく薄い生成りへ */
  html body .article .hsj2 > .hsj2-sec:not(.is-white):not(.hsj2-grave):not(.hsj2-contact),
  html body .article .hsj2 > .hsj2-values { animation: hsj2-tint linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  /* 上端の細い線（読んだ位置・トップだけ）。本文は #main の重なり順の中にあってヘッダーの下に隠れるため、ヘッダー自身の疑似要素に描く
     （PC：#header-container、スマホ：上部バー .hsj-mbar。どちらも ::after は未使用）。2px だけで、押す操作は下へ通す。非対応ブラウザでは出さない */
  @media (min-width: 1024px) {
    html:not(.hsj-nomotion) body.home #header-container::after {
      content: ""; position: absolute; z-index: 5; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none;
      background-color: #866535; opacity: .5; transform-origin: 0 50%; transform: scaleX(0);
      animation: hsj2-progress linear both; animation-timeline: scroll(root);
    }
  }
  @media (max-width: 1023px) {
    html:not(.hsj-nomotion) body.home .hsj-mbar::after {
      content: ""; position: absolute; z-index: 5; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none;
      background-color: #866535; opacity: .5; transform-origin: 0 50%; transform: scaleX(0);
      animation: hsj2-progress linear both; animation-timeline: scroll(root);
    }
  }
}
/* 非対応ブラウザ（.hsm-fb）：同じ @keyframes を止めたまま、JS がスクロール量から出した位置（負の遅れ）を書き込む。
   --hsm-do が 1s（正）のときは「まだ消え始めていない」＝消える動きは効かない */
html body .article .hsj2.hsm-fb .hsm-on { animation-play-state: paused !important; animation-delay: var(--hsm-di, 0s), var(--hsm-do, 1s), var(--hsm-dc, 0s) !important; }
html body .article .hsj2.hsm-fb .hsj2-uta-in::before, html body .article .hsj2.hsm-fb .hsj2-uta-poem::before { animation-play-state: paused !important; animation-delay: var(--hsm-di, 0s), var(--hsm-do, 1s) !important; }
@keyframes hsm-in { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes hsj2-shin-in { from { opacity: 0; translate: 0 50px; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
@keyframes hsm-fade { from { opacity: 0; } to { opacity: var(--hsm-o, 1); } }
@keyframes hsm-out { from { opacity: var(--hsm-o, 1); translate: 0 0; } to { opacity: 0; translate: 0 -30px; } }
@keyframes hsj2-hero-fade { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -40px; } }
@keyframes hsj2-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes hsj2-widen { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes hsj2-settle { from { scale: 1.15; } to { scale: 1; } }
@keyframes hsj2-window { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes hsj2-float { from { translate: 0 36px; } to { translate: 0 -36px; } }
@keyframes hsj2-breathe { from { scale: 1; } to { scale: 1.05; } }
@keyframes hsj2-tint { 0%, 100% { background-color: #FFFFFF; } 30%, 70% { background-color: #FDFBF7; } }
@keyframes hsj2-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* /hsj-motion-v3 */

/* ===== トップ:スプラッシュ初期幕(hsj-splash-v8とセット) ===== */
html:has(> body.home)::after { content: ""; position: fixed; inset: 0; z-index: 2147482998; background: #FFFFFF; pointer-events: none; animation: hsjVeil 5s linear forwards; }
@keyframes hsjVeil { 0%, 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ===== 折りたたみセクション（グループブロック用） ===== */
.article .hsj-foldwrap{ max-width: 900px; margin: 2.4em auto; padding: 0 0 10px; border: 1px solid var(--hsj-line); border-radius: 0; background: #FFFFFF; box-sizing: border-box; }
.article .hsj-foldwrap > *{ max-width: 820px; margin-left: auto; margin-right: auto; }
.article .hsj-foldwrap .hsj-ck{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.article .hsj-foldwrap label.hsj-bar{ display: block; position: relative; cursor: pointer; max-width: none; margin: 0; padding: 1.15em 3.2em 1.15em 1.6em; background: var(--hsj-band); border-bottom: 1px solid var(--hsj-line); border-radius: 0; transition: background .3s ease; }
.article .hsj-foldwrap label.hsj-bar:hover{ background: var(--hsj-hover); }
.article .hsj-foldwrap label.hsj-bar::after{ content: ""; position: absolute; right: 1.6em; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid var(--hsj-acc); border-bottom: 1.5px solid var(--hsj-acc); transform: translateY(-70%) rotate(45deg); transition: transform .3s ease; }
.article .hsj-foldwrap .hsj-ck:checked ~ label.hsj-bar::after{ transform: translateY(-30%) rotate(-135deg); }
.article .hsj-foldwrap .hsj-ck:not(:checked) ~ *:not(label.hsj-bar){ display: none; }
.article .hsj-foldwrap .hsj-ck:checked ~ *:not(label.hsj-bar){ margin-top: 1.8em; }
.article .hsj-bar-ttl{ display: block; font-size: clamp(18px, 1.35vw, 21px); font-weight: 600; letter-spacing: .14em; color: var(--hsj-ink); line-height: 1.5; }
.article .hsj-bar-sub{ display: block; margin-top: .45em; font-size: clamp(12px, .9vw, 14px); letter-spacing: .06em; color: var(--hsj-mut); }
.article .hsj-foldwrap .toc{ display: none; }
@media (max-width: 767px){ .article .hsj-foldwrap label.hsj-bar{ padding: 1em 2.8em 1em 1.2em; } }

/* ===== ヘッダー組み替え(v50)・モバイル ===== */
@media (max-width: 1023px) {
    #header {
  padding: 88px 16px 20px;
  position: relative;
  background-image: none !important;
  padding-top: clamp(14px, 4vw, 24px) !important;
  padding-bottom: clamp(14px, 4vw, 24px) !important;
}
  .hsj-nameblock, #header-in > .logo { display: none !important; }
  .hsj-headrow { display: block; text-align: center; }
  #hsj-creed-side, #header-in > .tagline::before { text-align: center; font-family: "Noto Serif JP", serif; font-weight: 500; color: var(--hsj-ink); }
  #hsj-creed-side p, #header-in > .tagline::before { margin: 0; font-size: var(--hsj-creed-fs); line-height: 1.95; letter-spacing: .04em; }
  /* フッター用コード⑤が #hsj-creed-side を作るまでの間、同じ一文を同じ大きさで先に出しておく（⑤の文言を変えたらここも合わせる） */
  #header-in > .tagline::before { content: "六百七十余年、念仏の響きに満ちた聞法の道場です。"; }
  #hsj-creed-side .l2 { margin-top: .45em; color: var(--hsj-acc); }
    .hsj-mbar-keisan { display: block; margin-left: auto; margin-right: clamp(8px, 3vw, 20px); height: clamp(26px, 8vw, 38px); width: calc(clamp(26px, 8vw, 38px) * 2.035); background: url('https://howsenji.com/wp-content/uploads/2026/07/%E3%82%AB%E3%83%A9%E3%83%BC%E6%A8%AA%EF%BC%91-768x377.jpg') no-repeat center / contain; flex: 0 0 auto; }
}
@media (max-width: 359px) { .hsj-mbar-keisan { display: none !important; } }
@media (min-width: 1024px) {
  .hsj-crest-el, #hsj-creed-side, .hsj-mbar-keisan { display: none !important; }
  .hsj-headrow, .hsj-nameblock { display: block; }
}

/* ===== v64 写真手法：ページ別レパートリー（右下アール一辺倒を撤去） ===== */
.article figure.wp-block-image img{
  border-radius: 0;
  filter: saturate(.93);
}
body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type:not(.hsj-ph-plain):not(.hsj-ph-fade):not(.hsj-ph-kado):not(.hsj-ph-en) img{ border-radius:0; }

/* A 裁ち落とし：墓地ページ先頭 */
body.page-id-26 .article .entry-content > figure.wp-block-image:first-of-type{ margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important; width:100vw!important; max-width:100vw!important; }
body.page-id-26 .article .entry-content > figure.wp-block-image:first-of-type img{ width:100%!important; height:46vh; object-fit:cover; border-radius:0!important; filter:saturate(.9) contrast(1.02); }
/* C スケール対比：以降の墓地写真 */
body.page-id-26 .article .entry-content > figure.wp-block-image:not(:first-of-type){ width:88%; margin:10px auto 10px 0; }
body.page-id-26 .article .entry-content > figure.wp-block-image:nth-of-type(even){ width:58%; margin:10px 0 10px auto; }

/* B 余白額装＋細罫：永代合同墓 */
body.page-id-24 .article figure.wp-block-image{ width:64%; margin:60px auto 40px; border-bottom:1px solid var(--hsj-line); padding-bottom:14px; }
body.page-id-24 .article figure.wp-block-image img{ border-radius:0; }

/* D 縁ぼかし＋E 正円：とみ教え */
body.page-id-22 .article .entry-content > figure.wp-block-image:first-of-type img{ border-radius:0; -webkit-mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent); mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent); -webkit-mask-composite:source-in; mask-composite:intersect; }
.article figure.hsj-prof-photo{
  text-align: center;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
.article figure.hsj-prof-photo img{
  aspect-ratio: 1/1;
  max-width: 240px;
  width: 200px !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* F トーン統一＋弁柄一点：アクセス */
body.page-id-28 .article figure.wp-block-image img{ filter:grayscale(.32) sepia(.10) saturate(.85) contrast(1.03); border-radius:0; }
body.page-id-28 .article figure.wp-block-image{ border-left:3px solid var(--hsj-shu); padding-left:16px; }

@media (max-width:760px){
  body.page-id-26 .article .entry-content > figure.wp-block-image:not(:first-of-type),
  body.page-id-26 .article .entry-content > figure.wp-block-image:nth-of-type(even){ width:92%!important; margin:12px auto!important; }
  body.page-id-24 .article figure.wp-block-image{ width:90%; }
  body.page-id-26 .article .entry-content > figure.wp-block-image:first-of-type img{ height:34vh; }
}

/* v64.1 hoen B額装を強制（テーマ幅に勝つ） */
body.page-id-24 .article .entry-content figure.wp-block-image{ width:min(64%,700px)!important; max-width:700px!important; margin:60px auto 40px!important; float:none!important; }
body.page-id-24 .article .entry-content figure.wp-block-image img{ width:100%!important; height:auto; }

/* ===== v65 写真の寸法を全ページ共通化（違いは仕上げのみ） =====
   型は3つだけ：①リード帯＝全幅・同一高さ ②単写真＝同一カラム幅 ③2枚組＝同一行幅
   ページごとの寸法差（v64の88%/58%/64%）は撤去。ぼかし・トーン・罫だけで差を出す */
:root{
  --ph-col: min(72%, 760px);
  --ph-row: min(92%, 1000px);
  --ph-gap: 24px;
}

/* ① リード帯：全サブページ共通（先頭の1枚） */
body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type{
  float: none !important;
  padding: 0 !important;
  width: min(100%, var(--ph-max)) !important;
  max-width: var(--ph-max) !important;
  margin: 56px auto !important;
}
/* ② 単写真：全ページ同一カラム幅 */
body:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type){
  width: var(--ph-col) !important;
  max-width: var(--ph-col) !important;
  margin: 56px auto !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type) img{ width:100% !important; height:auto !important; }
/* ③ 2枚組：全ページ同一行幅・等分 */
/* 人物の正円だけは役割が異なるため対象外（サイズ固定） */

/* ===== v65.1 寸法統一の修正：入れ子（アコーディオン内）でも同寸に =====
   基準を固定値 760px に。順序は「単写真 → 2枚組 → リード帯」で後勝ち */
:root{
  --ph-max: 760px;
}

/* ① 単写真：どの入れ子でも最大760px・中央 */
body:not(.home) .article .entry-content figure.wp-block-image{
  width:min(100%, var(--ph-max)) !important; max-width:var(--ph-max) !important;
  margin:56px auto !important; float:none !important;
}
body:not(.home) .article .entry-content figure.wp-block-image img{
  width: 100% !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  overflow: hidden;
  object-fit: fill !important;
  height: auto !important;
  border-radius: 30% 24% 28% 22% / 24% 30% 22% 28% !important;
}

/* ② 2枚組：行の合計も760pxに揃える */
body:not(.home) .article .entry-content .wp-block-group:has(figure.wp-block-image){
  width: min(100%, var(--ph-max)) !important;
  max-width: var(--ph-max) !important;
  margin: 56px auto !important;
  gap: 16px !important;
  align-items: flex-start !important;
}
body:not(.home) .article .entry-content .wp-block-group figure.wp-block-image{
  width:auto !important; max-width:none !important; flex:1 1 0 !important; margin:0 !important;
}

/* ③ リード帯：本文直下の先頭だけ全幅（最後に書いて上書き） */

/* 人物円は対象外 */

@media (max-width:760px){
    body:not(.home) .article .entry-content .wp-block-group:has(figure.wp-block-image){ flex-wrap:wrap !important; }
  body:not(.home) .article .entry-content .wp-block-group figure.wp-block-image{ flex:1 1 100% !important; }
}

/* ===== v65.2 寸法の完全一致（vh依存と罫による目減りを解消） ===== */
:root{
  --ph-lead-h: 380px;
}
@media (max-width:760px){ :root{
  --ph-col: 92%;
  --ph-row: 92%;
  --ph-gap: 14px;
  --ph-max: 92vw;
  --ph-lead-h: 240px;
} }
/* アクセス：弁柄罫を各写真から外し、行全体に付ける（画像幅を削らない） */
body.page-id-28 .article .entry-content figure.wp-block-image{ border-left:0 !important; padding-left:0 !important; }

/* ===== v66 善称寺型：手描き風クリップ／左右交互／有機形／広い行間 =====
   寸法は v65 の統一型（帯380px・単写真760px・2枚組760px）を変えない。
   形と配置と行間だけを変える */

/* ① 写真の輪郭を手描き風に（角丸ではなく不定形） */
body:not(.home) .article .entry-content figure.wp-block-image:nth-of-type(even) img,
body:not(.home) .article .entry-content .wp-block-group figure.wp-block-image:nth-child(even) img{
  -webkit-clip-path: url(#hsjframe2);
  clip-path: url(#hsjframe2);
  border-radius: 24% 30% 22% 28% / 30% 24% 28% 22% !important;
}
/* リード帯は全幅のまま切り抜かない（帯の意味が消えるため） */
body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type img{
  -webkit-clip-path: none !important;
  clip-path: none !important;
  width: 100% !important;
  height: auto !important;
  object-fit: fill !important;
  border-radius: 30% 24% 28% 22% / 24% 30% 22% 28% !important;
}

/* ② 左右交互（ジグザグ）。寸法は同一のまま位置だけ入れ替える */
body:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type):nth-of-type(even){
  margin-left:auto !important; margin-right:0 !important;
}

/* ③ 本文の行間を広く（善称寺2.65／現行2.1 → 2.45） */
body:not(.home) .article .entry-content p{ line-height:2.45; }

/* ④ ボタン・バッジを有機形に */
.article .wp-block-button__link, a.hsj-btn{
  padding: 15px 44px !important;
  border-radius: 26px 20px 28px 18px / 20px 28px 18px 26px !important;
}
.article .wp-block-button__link:hover{
  border-radius:52% 48% 55% 45% / 44% 58% 42% 56% !important;
}

/* ⑤ 生成りの帯（アコーディオン見出し等の面）を有機形に寄せる */
.hsj-acc > summary{ border-radius:34px 30px 32px 28px / 28px 34px 30px 32px; }

@media (max-width:760px){
  body:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type),
  body:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type):nth-of-type(even){
    margin-left:auto !important; margin-right:auto !important;
  }
}

/* ===== v66.1 手描き風フレームを純CSSで（SVGはテーマに除去されるため不使用） =====
   角を左右非対称にずらし、手で描いた枠のゆらぎを出す。寸法は変えない */
/* リード帯は矩形のまま（帯の意味を保つ） */
/* 人物の正円は維持 */

/* ===== v67 切り抜き全廃：写真は原寸比のまま。統一するのは「幅」だけ =====
   v65のリード帯（高さ380px固定・cover）とv65の2枚組（4:3 cover）は
   被写体（石碑の文字など）を切るため撤去。幅760pxの統一は維持する */

/* リード帯をやめ、他と同じ幅・原寸比に */
/* 2枚組も原寸比。高さ固定・cover をやめる */
body:not(.home) .article .entry-content .wp-block-group figure.wp-block-image img{
  aspect-ratio:auto !important; object-fit:fill !important; height:auto !important; width:100% !important;
}
/* 念のため全figureで切り抜きを無効化 */
/* 人物の正円のみ、顔を中心に円へ収めるため cover を維持 */
/* 2枚組は上端をそろえる（縦横比が違っても崩れないように） */

/* ===== v68 メニュー・カード・罫線を善称寺型に揃える ===== */

/* ① アクセスの弁柄の縦罫を撤去（写真が有機形になり、直線が浮くため） */
body.page-id-28 .article .entry-content .wp-block-group:has(figure.wp-block-image){
  border-left:0 !important; padding-left:0 !important;
  width:min(100%, var(--ph-max)) !important; max-width:var(--ph-max) !important;
}

/* ② トップのカード画像：右下72pxアールを廃し、手描き風の枠に（左右で振り分け） */
/* カードは上端をそろえ、左右で高さを変えて律動を出す（善称寺の非対称） */

/* ③ サイドバーメニュー：直線の区切りをやめ、有機形の当たりに */
#navi .menu-header li{ border-top:0 !important; border-bottom:0 !important; }
#navi .menu-header li > a{
  display:block; margin:3px 10px; padding:11px 12px !important;
  border-radius:22px 26px 20px 28px / 26px 20px 28px 22px;
  transition:background-color .35s ease, color .35s ease, border-radius .45s ease;
}
#navi .menu-header li > a:hover{
  background:rgba(181,143,99,.16);
  border-radius:28px 20px 26px 22px / 20px 28px 22px 26px;
}
/* 現在地は弁柄の小さな印で示す（下線ではなく） */
#navi .menu-header li.current-menu-item > a,
#navi .menu-header li.current_page_item > a{
  background:rgba(143,46,20,.09); color:var(--hsj-shu) !important; position:relative;
}
#navi .menu-header li.current-menu-item > a::before,
#navi .menu-header li.current_page_item > a::before{
  content:''; position:absolute; left:2px; top:50%; transform:translateY(-50%);
  width:7px; height:7px; background:var(--hsj-shu);
  border-radius:56% 44% 47% 53% / 52% 58% 42% 48%;
}
/* 下線の名残を消す */
#navi .menu-header li > a::after{ display:none !important; }

/* 写真：真の有機形に切り抜く */
/* 見出し：番号を有機形のバッジで */
/* 「詳しく見る」を弁柄の有機形ボタンに */

/* ===== v69-B メニューを役割別に色分け（善称寺の階層） =====
   1 ホーム / 2 とみ教え / 3 法座・仏事 / 4 永代合同墓・墓地 / 5 法話・作法
   6 お問い合わせ（主導線＝弁柄） / 7 アクセス（副導線＝藤鼠） */
#navi .menu-pc{
  padding: 0 10px;
  margin-bottom: 0 !important;
}
#navi .menu-pc > li{ border:0 !important; }
#navi .menu-pc > li > a{
  display: block;
  border-radius: 22px 26px 20px 28px / 26px 20px 28px 22px;
  transition: background-color .35s ease, color .3s ease, border-radius .5s ease;
  padding: 9px 12px !important;
  margin: 3px 0 !important;
}

/* 2〜5＝寺のご案内。生成りの面で一群に見せる */
#navi .menu-pc > li:nth-child(n+2):nth-child(-n+5) > a{
  background:rgba(247,243,233,.9);
  border-radius:24px 20px 26px 18px / 20px 26px 18px 24px;
}
#navi .menu-pc > li:nth-child(n+2):nth-child(-n+5) > a:hover{
  background:rgba(181,143,99,.22);
  border-radius:20px 26px 18px 24px / 26px 20px 24px 18px;
}
/* 6 お問い合わせ＝主導線（弁柄ベタ） */
#navi .menu-pc > li:nth-child(6) > a{
  background: var(--hsj-shu) !important;
  color: #fff !important;
  border-radius: 46% 54% 44% 56% / 56% 46% 54% 44%;
}
#navi .menu-pc > li:nth-child(6) > a .item-label{ color:#fff !important; }
#navi .menu-pc > li:nth-child(6) > a:hover{
  background:#7A2711 !important; border-radius:54% 46% 56% 44% / 44% 56% 46% 54%;
}
/* 7 アクセス＝副導線（藤鼠ベタ） */
#navi .menu-pc > li:nth-child(7) > a{
  background:var(--hsj-fuji) !important; color:#fff !important;
  border-radius:46% 54% 44% 56% / 56% 46% 54% 44%;
}
#navi .menu-pc > li:nth-child(7) > a .item-label{ color:#fff !important; }
#navi .menu-pc > li:nth-child(7) > a:hover{
  background:#7A6B8C !important; border-radius:54% 46% 56% 44% / 44% 56% 46% 54%;
}
/* 1 ホームは文字だけ（控えめ） */
#navi .menu-pc > li:nth-child(1) > a{ background:transparent; }
#navi .menu-pc > li:nth-child(1) > a:hover{ background:rgba(181,143,99,.14); }
/* 現在地：色ベタの項目は印を出さない */
#navi .menu-pc > li.current-menu-item > a,
#navi .menu-pc > li.current_page_item > a{
  background:rgba(143,46,20,.10); color:var(--hsj-shu) !important;
}
#navi .menu-pc > li:nth-child(6).current-menu-item > a,
#navi .menu-pc > li:nth-child(6).current_page_item > a{ background:var(--hsj-shu) !important; }
#navi .menu-pc > li:nth-child(7).current-menu-item > a,
#navi .menu-pc > li:nth-child(7).current_page_item > a{ background:var(--hsj-fuji) !important; }
#navi .menu-pc > li.current-menu-item > a::before,
#navi .menu-pc > li.current_page_item > a::before{ display:none !important; }

/* ===== v69.1 形の是正（楕円になりすぎ）＋左右交互の並び順を明示 ===== */
/* 並び順：奇数=文左・写真右／偶数=写真左・文右 */

/* 写真：楕円ではなく「角が不揃いな矩形」に戻す（善称寺の実物に近い） */
@media (max-width:760px){
  body:not(.home) .article .entry-content figure.wp-block-image img,
  body:not(.home) .article .entry-content figure.wp-block-image:nth-of-type(even) img{
    border-radius:26% 22% 24% 20% / 22% 26% 20% 24% !important;
  }
}

/* ボタン・メニュー：楕円をやめ、角の不揃いな矩形に */
#navi .menu-pc > li:nth-child(6) > a,
#navi .menu-pc > li:nth-child(7) > a{
  border-radius:24px 18px 26px 16px / 18px 26px 16px 24px !important;
}
#navi .menu-pc > li:nth-child(6) > a:hover,
#navi .menu-pc > li:nth-child(7) > a:hover{
  border-radius:18px 26px 16px 24px / 26px 18px 24px 16px !important;
}
/* 番号バッジは小さいので円寄りのままでよいが少しだけ整える */

/* v69.2 メニュー下の余白（慶讃ロゴとの間） */

/* ===== v69.3 モバイル復旧＋サイドバーの余白調整 =====
   v69.1の!important指定がメディアクエリより後に来て上書きしていたため、
   ここで最後に上書きし直す */

/* サイドバー：ボタンと慶讃ロゴが接するのを解消（寺号まわりの余白も詰める） */
#navi .menu-pc > li:nth-child(7){ margin-bottom:0 !important; }
#navi{
  margin-top: 8px !important;
  padding-bottom: 0 !important;
}

/* v69.4 ネビ直下（慶讃ロゴ）との干渉を解消 */

/* v69.5 #naviはposition:fixedのため下余白が効かない。ボタン自体を詰めて慶讃ロゴとの干渉を解消 */
#navi .menu-pc > li:nth-child(6) > a{
  margin-top: 10px !important;
}
#navi .menu-pc > li > a .item-label{ font-size:12px; letter-spacing:.14em; }

/* ===== v70 PCサイドバーの高さ可変化（重なりの解消） =====
   画面高から 寺紋・メニュー・下端（慶讃ロゴ＋住所）を引いた残りを寺号に割り当てる。
   メニュー項目数を変えたら --m-count を直すこと */
@media (min-width: 1024px) {
  :root{
    --hsj-crest-top: clamp(16px, 2.6vh, 34px);
    --hsj-crest: clamp(40px, 8vh, 100px);
    --sb-gap1: clamp(4px, 1vh, 14px);
    --sb-gap2: clamp(8px, 1.6vh, 22px);

    --m-count: 7;
    --m-fs: clamp(10.5px, 1.35vh, 13px);
    --m-py: clamp(5px, 1.05vh, 12px);
    --m-gap: clamp(2px, .5vh, 6px);
    --m-sep: clamp(6px, 1.2vh, 16px);
    --m-item: calc(var(--m-py) * 2 + var(--m-fs) * 1.5);
    --sb-menu-h: calc(var(--m-item) * var(--m-count) + var(--m-gap) * (var(--m-count) - 1) + var(--m-sep));

    --sb-addr-fs: clamp(9px, 1.2vh, 11px);
    --sb-addr-h: calc(var(--sb-addr-fs) * 1.8 * 3);
    --sb-addr-b: clamp(10px, 1.6vh, 20px);
    --hsj-keisan: clamp(84px, 13vh, 170px);
    --sb-keisan-h: calc(var(--hsj-keisan) / 2.035);
    --sb-keisan-b: calc(var(--sb-addr-b) + var(--sb-addr-h) + clamp(6px, 1.2vh, 16px));
    --sb-foot: calc(var(--sb-keisan-b) + var(--sb-keisan-h) + clamp(8px, 1.6vh, 20px));

    --sb-avail: calc(100vh - var(--hsj-crest-top) - var(--hsj-crest) - var(--sb-gap1) - var(--sb-gap2) - var(--sb-menu-h) - var(--sb-foot));
    --sb-namecap: min(340px, calc((var(--hsj-side) - 24px) / .82));
    --hsj-namecol: clamp(72px, var(--sb-avail), var(--sb-namecap));
    --sb-slack: max(0px, calc(var(--sb-avail) - var(--sb-namecap)));
  }

  /* 寺号（寸法は namecol から自動追従。ずらし量も比例に） */
  .logo-header{
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 902 !important;
  top: calc(var(--hsj-crest-top) + var(--hsj-crest) + var(--sb-gap1)) !important;
  height: var(--hsj-namecol) !important;
  gap: calc(var(--hsj-namecol) * .03) !important;
}
  .logo-header::before{
  flex: 0 0 auto;
  transform: translateX(calc(var(--hsj-namecol) * -.0625));
}
  .logo-header .site-name{
  top: auto !important;
  left: auto !important;
  height: var(--hsj-namecol) !important;
  transform: translateX(calc(var(--hsj-namecol) * .0625)) !important;
}

  /* メニュー：高さを式どおりに確定させる（margin相殺を避けflexのgapで間隔） */
  #navi{
  position: fixed;
  left: 0;
  width: var(--hsj-side);
  z-index: 901;
  top: calc(var(--hsj-crest-top) + var(--hsj-crest) + var(--sb-gap1) + var(--hsj-namecol) + var(--sb-gap2) + var(--sb-slack) * .5);
  margin-top: 0 !important;
}
  #navi .menu-pc{
    display: flex !important; flex-direction: column; gap: var(--m-gap);
    margin: 0 !important; padding: 0 clamp(10px, 1vw, 22px) !important;
  }
  #navi .menu-pc > li{ margin: 0 !important; }
  #navi .menu-pc > li > a{
    font-size: var(--m-fs) !important; line-height: 1.5 !important;
    padding: var(--m-py) clamp(8px, .8vw, 14px) !important; margin: 0 !important;
  }
  #navi .menu-pc > li > a .item-label{ font-size: 1em !important; }
  #navi .menu-pc > li:nth-child(6){ margin-top: var(--m-sep) !important; }
  #navi .menu-pc > li:nth-child(6) > a{ margin-top: 0 !important; }

  /* 下端 */
  .logo-header::after{
  z-index: 901;
  content: "" !important;
  left: calc((var(--hsj-side) - var(--hsj-keisan)) / 2);
  bottom: var(--sb-keisan-b);
  width: var(--hsj-keisan);
  height: var(--sb-keisan-h);
}
  .navi-in::after{
  white-space: pre;
  text-align: center;
  bottom: var(--sb-addr-b);
  font-size: var(--sb-addr-fs);
  line-height: 1.8;
}
}

/* ===== v70 モバイルの見出しを可変サイズに（改行を避ける） =====
   ①まずCSSで画面幅に連動させる ②収まらない分はJSが1行に収まるまで縮める（footerコード） */
@media (max-width:900px){
  .entry-title,
  .article h1.entry-title{
    font-size:clamp(17px, 5.4vw, 27px) !important;
    line-height:1.5 !important; letter-spacing:.06em !important;
  }
  .article h2.wp-block-heading{
  line-height: 1.5 !important;
}
  .article h3.wp-block-heading, .article h3.hsj-heading{
    font-size:clamp(14px, 4.1vw, 19px) !important;
    line-height:1.55 !important; letter-spacing:.04em !important;
  }
  .hsj-acc-ttl, .hsj-ohl-boxttl{
    font-size:clamp(13.5px, 3.9vw, 18px) !important; letter-spacing:.04em !important;
  }
      /* JSが1行化した見出しがはみ出さないよう保険 */
  .hsj-fit{ white-space:nowrap; overflow:hidden; text-overflow:clip; }
}

/* v70.1 長い見出し向けにもう一段縮める（360px幅で折り返していた2件の対策） */
@media (max-width:900px){
  .article h2.wp-block-heading{
  font-size: clamp(13.5px, 4.05vw, 22px) !important;
  letter-spacing: .02em !important;
}
  .hsj-ohl-boxttl, .hsj-acc-ttl{ font-size:clamp(12.5px, 3.55vw, 18px) !important; letter-spacing:.01em !important; }
  }
@media (max-width:400px){
  .entry-title, .article h1.entry-title{ font-size:clamp(16px, 5.0vw, 24px) !important; letter-spacing:.03em !important; }
}

/* v70.2 入れ子Qの見出し幅を稼ぐ（モバイル） */
@media (max-width:900px){
  .hsj-acc-in{ padding-left:12px !important; padding-right:12px !important; }
  .hsj-ohl-accin{ padding-left:12px !important; padding-right:12px !important; }
  }

/* v70.3 最長の設問（22字）も入るよう最終調整 */
@media (max-width:900px){
  .hsj-fq-q > summary{ padding-left:8px !important; padding-right:22px !important; font-size:clamp(10.5px, 3.1vw, 17px) !important; letter-spacing:0 !important; }
}
@media (min-width:901px){
  .hsj-fq-q > summary{ letter-spacing:.02em; }
}

/* ===== v71 写真で見る法泉寺（とみ教えページのギャラリー） ===== */
.hsj-gal{ max-width:1080px; margin:96px auto 72px; padding:0 24px; }
.hsj-gal-h{
  font-size: clamp(17px,1.5vw,22px);
  font-weight: 600;
  color: var(--hsj-shu);
  text-align: center;
  margin-bottom: 10px;
}
.hsj-gal-h::after{ content:''; display:block; width:28px; height:1px; background:var(--hsj-shu); margin:14px auto 0; }
.hsj-gal-lead{ text-align:center; font-size:14px; color:var(--hsj-mut,#6E6656); margin:14px 0 40px !important; line-height:2; }
.hsj-gal-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.hsj-gal-i{
  margin: 0 !important;
  width: auto !important;
}
.hsj-gal-i img{ width:100% !important; aspect-ratio:4/3; object-fit:cover; display:block; filter:saturate(.94);
  border-radius:30% 24% 28% 22% / 24% 30% 22% 28% !important; transition:border-radius .8s ease; }
.hsj-gal-i:nth-child(even) img{ border-radius:24% 30% 22% 28% / 30% 24% 28% 22% !important; }
.hsj-gal-i:hover img{ border-radius:26% 30% 24% 28% / 28% 24% 30% 22% !important; }
.hsj-gal-i figcaption{ text-align:center; margin-top:12px; }
.hsj-gal-t{ display:block; font-size:14px; letter-spacing:.06em; color:var(--hsj-ink); }
.hsj-gal-s{ display:block; font-size:11.5px; letter-spacing:.12em; color:var(--hsj-kou); margin-top:4px; }
@media (max-width:900px){
  .hsj-gal{ margin:64px auto 48px; padding:0 16px; }
  .hsj-gal-grid{
  grid-template-columns: repeat(2,1fr);
}
  .hsj-gal-t{ font-size:12.5px; }
  .hsj-gal-s{ font-size:10.5px; }
}

/* ===== v72 納骨のようす（お墓ページの5枚列） ===== */
.hsj-nk{ max-width:820px; margin:8px auto 40px; }
.hsj-nk-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.hsj-nk-i{
  margin: 0 !important;
}
.hsj-nk-i img{ width:100% !important; aspect-ratio:4/3; object-fit:cover; display:block; filter:saturate(.94);
  border-radius:30% 24% 28% 22% / 24% 30% 22% 28% !important; transition:border-radius .8s ease; }
.hsj-nk-i:nth-child(even) img{ border-radius:24% 30% 22% 28% / 30% 24% 28% 22% !important; }
.hsj-nk-i:hover img{ border-radius:26% 30% 24% 28% / 28% 24% 30% 22% !important; }
.hsj-nk-i figcaption{ text-align:center; margin-top:10px; }
.hsj-nk-t{ display:block; font-size:13.5px; letter-spacing:.06em; color:var(--hsj-ink); }
.hsj-nk-s{ display:block; font-size:11px; letter-spacing:.08em; color:var(--hsj-kou); margin-top:3px; line-height:1.7; }
@media (max-width:900px){
    .hsj-nk-t{ font-size:12px; }
  .hsj-nk-s{ font-size:10px; }
}

/* ===== v73 ギャラリーの最終行を中央寄せに ===== */
.hsj-nk-grid, .hsj-gal-grid{ display:flex !important; flex-wrap:wrap; justify-content:center; }
.hsj-nk-grid{
  gap: 22px 18px !important;
}
.hsj-gal-grid{
  gap: 28px 24px !important;
}
.hsj-nk-i{
  width: auto !important;
  flex: 0 0 calc((100% - 36px)/3);
  max-width: calc((100% - 36px)/3) !important;
}
.hsj-gal-i{
  flex: 0 0 calc((100% - 48px)/3);
  max-width: calc((100% - 48px)/3) !important;
}
@media (max-width:900px){
  .hsj-nk-grid{
  grid-template-columns: repeat(2,1fr);
  gap: 16px 12px !important;
}
  .hsj-gal-grid{
  gap: 20px 14px !important;
}
  .hsj-nk-i{ flex:0 0 calc((100% - 12px)/2); max-width:calc((100% - 12px)/2) !important; }
  .hsj-gal-i{ flex:0 0 calc((100% - 14px)/2); max-width:calc((100% - 14px)/2) !important; }
}

/* v74.1 切り抜きの白地を強制（既存の transparent を上書き） */

/* ===== v75 十九世住職の歌（とみ教えページ） ===== */
.hsj-uta{ max-width:820px; margin:44px auto 56px !important; padding:38px 32px 34px; text-align:center;
  background:var(--hsj-nari,#F7F3E9);
  border-radius:34px 26px 38px 24px / 26px 36px 22px 40px; }
.hsj-uta-body{ margin:0 !important; padding:0 !important; border:0 !important; background:none !important; }
.hsj-uta .hsj-uta-l{ display:block; font-size:clamp(17px,1.6vw,23px); line-height:2.2; letter-spacing:.16em; color:var(--hsj-ink); }
.hsj-uta .hsj-uta-in2{ margin-top:2px; }
.hsj-uta-cap{ display:block; margin-top:18px; font-size:12.5px; letter-spacing:.14em; color:var(--hsj-kou); }
.hsj-uta-note{ margin:22px auto 0 !important; max-width:34em; font-size:13.5px !important; line-height:2.1 !important; color:var(--hsj-mut,#6E6656); text-align:left; }
@media (max-width:900px){
  .hsj-uta{ padding:28px 20px 26px; margin:32px auto 40px !important; }
  .hsj-uta .hsj-uta-l{ font-size:15px; line-height:2.1; letter-spacing:.1em; }
  .hsj-uta-note{ font-size:12.5px !important; }
}

/* ===== v76 本文と見出しで書体を変える =====
   本文＝明朝（Noto Serif JP）のまま／見出し・ラベル・ボタン＝ゴシック（Noto Sans JP）
   →字面が軽くなり、白地とのコントラストで明るい印象になる */
.entry-title, .article h1, .article h2, .article h3, .article h4, .hsj-acc-ttl, .hsj-ohl-boxttl, .hsj-fq-q > summary, .hsj-fq-ttl, .hsj-gal-h, .hsj-gal-t, .hsj-gal-s, .hsj-nk-t, .hsj-nk-s, .hsj-uta-cap, .sechead h2, .sechead h3, #navi .menu-pc > li > a .item-label, .article .wp-block-button__link, a.hsj-btn, .hsj-ohl-cardttl, .hsj-ohl-spec dt, .hsj-kata-ttl, .hsj-kata-unitttl{
  font-family: var(--hsj-sans) !important;
  font-weight: 500;
}
/* 見出しはゴシックだと詰まって見えるので、字間を少し広げる */
.article h2, .article h3, .entry-title{ letter-spacing:.08em; }
.hsj-gal-h{
  letter-spacing: .1em;
}
/* 歌・寺号・ヒーローの一文は明朝のまま（和の顔） */
.hsj-uta .hsj-uta-l, .logo-header, .site-name-text{
  font-family: "Noto Serif JP", serif !important;
}

/* v76.1 見出しをしっぽり明朝へ（ゴシックは撤回） */

/* v76.2 見出しをメイリオへ
   Windows専用のため、MacはHiragino Sans、その他はNoto Sans JPで代替する */

/* v77.1 縦書き3行を切り抜きの中央へ（左寄せにしたことで左側の余白が目立つため） */

/* ===== v78 信条の重複を解消（モバイル） =====
   ヘッダー内 #hsj-creed-side にも同じ一文が出ており、
   ヒーローの切り抜きと二重になっていたのでヘッダー側の2行目を隠す。
   1行目（六百七十余年〜）は残す。 */
#hsj-creed-side .l2{ display:none !important; }

/* ===== v79 主要導線（法縁・お墓・寺院情報）を中央揃えに =====
   見出しだけ中央で、ラベル・説明・ボタンが左寄せのままだったため揃える。PC・モバイル共通 */

/* hsj-guide-v1 記事末と/about/の案内 */
.article .entry-content > .hsj-guide{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:920px;margin:4em auto 1.5em;padding-top:2.4em;border-top:1px solid #DDD3BF}
.article .hsj-guide .hsj-guide-card{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #DDD3BF;border-radius:10px;background:#fff;color:#3B342B;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.article .hsj-guide .hsj-guide-card:hover{border-color:#8A6A4A;box-shadow:0 4px 14px rgba(59,52,43,.10)}
.hsj-guide-ph{flex:0 0 96px;height:96px;border-radius:8px;background-size:cover;background-position:center}
.hsj-guide-tx{display:flex;flex-direction:column;gap:4px;min-width:0}
.hsj-guide-en{font-size:12px;letter-spacing:.3em;color:#8A7A66}
.hsj-guide-t{font-size:17px;font-weight:600;line-height:1.5}
.hsj-guide-t::after{content:" →"}
.hsj-guide-d{font-size:13.5px;line-height:1.6;color:#5A5046}
@media (max-width:767px){
.article .entry-content > .hsj-guide{grid-template-columns:1fr;gap:12px;margin-top:3em;padding-top:2em}
.hsj-guide-ph{flex-basis:76px;height:76px}
.hsj-guide-t{font-size:15px}
}

/* hsj-postfig-v1 記事本文の図は中央に置き、端を切らない */
body.single-post:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type),
body.single-post:not(.home) .article .entry-content figure.wp-block-image:not(:first-of-type):nth-of-type(2n){margin-left:auto !important;margin-right:auto !important}
body.single-post:not(.home) .article .entry-content figure.wp-block-image img,
body.single-post:not(.home) .article .entry-content figure.wp-block-image:first-of-type img,
body.single-post:not(.home) .article .entry-content figure.wp-block-image:nth-of-type(2n) img{border-radius:12px !important}

/* hsj-postnext-off-v1 記事下の法座の囲みは案内カードに一本化 */
.article .hsj-post-next{display:none}
.article .widget-single-content-bottom:has(.hsj-post-next){display:none}

/* hsj-guide-ohaka-v1 /ohaka/の詳しいご案内は見出しの直下に置くので区切り線を省く */
.article .entry-content > .hsj-guide.hsj-guide-ohaka{border-top:0;padding-top:0;margin-top:1.5em}

/* ===== ブログ v2（hsj-blog-v2 / 2026-10-20）一覧・記事ページの再設計 ===== */

/* 自動で足されたメニュー項目（仏事の手引き）はメニューに出さない。入口は一覧上部に置く */
html body li#menu-item-1186{display:none !important}

/* --- 一覧の見出し（index-top ウィジェット hsj-bloghead） --- */
.hsj-bloghead{max-width:1180px;margin:0 auto 40px;text-align:center}
.hsj-bloghead-title{font-size:clamp(26px,2.4vw,34px);font-weight:500;letter-spacing:.18em;color:var(--hsj-ink);margin:8px 0 14px;line-height:1.5}
.hsj-bloghead-lead{font-size:15px;color:var(--hsj-mut);letter-spacing:.08em;margin:0 0 30px}
body.archive .hsj-bloghead-title, body.archive .hsj-bloghead-lead{display:none}
a.hsj-tebiki-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 26px;max-width:860px;margin:0 auto;padding:22px 30px;border:1px solid var(--hsj-line);border-radius:6px;background:#FBFAF6;text-decoration:none;color:var(--hsj-ink);text-align:left;transition:border-color .2s ease,background-color .2s ease}
a.hsj-tebiki-card:hover{border-color:var(--hsj-acc);background:#F6F2EA}
.hsj-tebiki-k{grid-row:1/3;font-size:12px;letter-spacing:.2em;color:var(--hsj-acc);border:1px solid var(--hsj-acc);padding:6px 12px;white-space:nowrap}
.hsj-tebiki-t{font-size:19px;font-weight:600;letter-spacing:.14em}
.hsj-tebiki-d{grid-column:2;font-size:13.5px;color:var(--hsj-mut);letter-spacing:.04em;line-height:1.8}
.hsj-tebiki-arrow{grid-column:3;grid-row:1/3;font-size:20px;color:var(--hsj-acc)}
@media (max-width:600px){
  a.hsj-tebiki-card{grid-template-columns:1fr auto;padding:18px 18px}
  .hsj-tebiki-k{grid-row:auto;grid-column:1/-1;justify-self:start}
  .hsj-tebiki-d{grid-column:1}
  .hsj-tebiki-arrow{grid-column:2;grid-row:2/4}
}

/* --- 記事一覧をカードの格子に --- */
:is(body.blog,body.archive) #list.list{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:60px 36px}
:is(body.blog,body.archive) #list > *:not(a.entry-card-wrap){grid-column:1/-1}
:is(body.blog,body.archive) #list > a.entry-card-wrap{padding:0 !important;margin:0 !important;border:0 !important;background:none !important}
:is(body.blog,body.archive) #list .entry-card{display:block !important}
:is(body.blog,body.archive) #list .entry-card-thumb{position:relative;width:100% !important;flex:none !important;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#FBFAF6;border:1px solid var(--hsj-line-soft);box-sizing:border-box;margin:0 0 18px !important}
:is(body.blog,body.archive) #list .entry-card-thumb img{width:100%;height:100%;object-fit:cover;border-radius:0 !important;filter:none;transition:transform .7s ease}
:is(body.blog,body.archive) #list a.entry-card-wrap:hover .entry-card-thumb img{transform:scale(1.04)}
:is(body.blog,body.archive) #list .cat-label{position:absolute;top:12px;left:12px;right:auto;bottom:auto;margin:0;background:rgba(255,255,255,.95) !important}
:is(body.blog,body.archive) #list .entry-card-content{padding:0 2px}
:is(body.blog,body.archive) #list .entry-card-title{font-size:17px !important;line-height:1.75;margin:0 0 8px !important}
:is(body.blog,body.archive) #list .entry-card-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 10px !important}
:is(body.blog,body.archive) #list .entry-card-meta{position:static;margin:0;padding:0}
:is(body.blog,body.archive) #list .entry-card .post-date{margin:0 !important;font-size:12px}
:is(body.blog,body.archive) #list .entry-card-categorys{display:none}

/* 1ページ目の先頭の記事は大きく */
body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type{grid-column:1/-1;padding-bottom:56px !important;border-bottom:1px solid var(--hsj-line-soft) !important}
body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card{display:grid !important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:52px;align-items:center}
body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-thumb{margin:0 !important}
body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-title{font-size:clamp(21px,1.8vw,26px) !important;line-height:1.6;margin:0 0 16px !important}
body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-snippet{-webkit-line-clamp:4;font-size:14.5px !important;line-height:2 !important;margin:0 0 16px !important}

@media (max-width:1023px){
  :is(body.blog,body.archive) #list.list{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 24px}
  body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card{gap:28px}
}
@media (max-width:600px){
  :is(body.blog,body.archive) #list.list{grid-template-columns:minmax(0,1fr);gap:44px}
  body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type{padding-bottom:44px !important}
  body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card{display:block !important}
  body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-thumb{margin:0 0 18px !important}
  body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-snippet{-webkit-line-clamp:3}
}
:is(body.blog,body.archive) .pagination{justify-content:center;margin-top:64px}

/* --- 記事ページ --- */
/* 挿絵（アイキャッチ）を本文の前に出す */
body.single-post .eye-catch-wrap.display-none{display:block !important;max-width:760px;margin:0 auto 52px}
body.single-post .eye-catch{margin:0}
body.single-post .eye-catch img{display:block;width:100%;height:auto;border-radius:6px}
@media (max-width:600px){body.single-post .eye-catch-wrap.display-none{margin-bottom:28px}}
/* 関連記事（縦型カード3列） */
body.single-post .related-entry-heading{text-align:center;letter-spacing:.2em;font-weight:500}
body.single-post .related-list{max-width:1000px;margin-left:auto;margin-right:auto}
body.single-post .related-entry-card-thumb img{border-radius:6px;filter:none}
body.single-post .related-entry-card-title{font-size:15px !important;line-height:1.7}
body.single-post .related-entry-card-snippet{display:none}
/* タグ */
body.single-post .entry-categories-tags{margin:2.4em 0 0}
body.single-post .tag-link{border:1px solid var(--hsj-line);border-radius:999px;background:#FFF;color:var(--hsj-mut);font-size:12.5px;padding:3px 12px}
body.single-post .tag-link:hover{border-color:var(--hsj-acc);color:var(--hsj-acc)}
/* 前後の記事 */
body.single-post .pager-post-navi{max-width:1000px;margin-left:auto;margin-right:auto}
/* 署名：本文の直後、案内カードの上に出す（案内カード hsj-guide はスクリプトで本文末に入る） */
body.single-post .article .entry-content > .hsj-guide{border-top:0;padding-top:0;margin-top:3.2em}
body.single-post .article .entry-content > .hsj-guide::before{content:"明照山 法泉寺　第二十一世住職　釋龍臣";grid-column:1/-1;text-align:right;font-size:15px;letter-spacing:.12em;color:#4A423A;padding-bottom:2.2em;margin-bottom:.8em;border-bottom:1px solid #DDD3BF}
/* 分類・タグの一覧の見出し */
body.archive .archive-title{text-align:center;font-weight:500;letter-spacing:.18em;margin:8px 0 28px}
body.archive .archive-title .fa, body.archive .archive-title [class*="fa-"]{display:none}

/* =====================================================================
   ▼▼▼ hsj-header-v1 ここから（2026-10-28）▼▼▼
   左の縦メニューをやめて、上部に横型ヘッダーを置く（全ページ共通）
   ・PC（1024px以上）：Cocoonの #header-container を「寺紋＋寺号ロゴ＋丸い横メニュー＋電話」の横一列にし、
     画面上部に固定。スクロールすると細いバーに縮む
   ・スマホ（1023px以下）：今の上部固定バー .hsj-mbar（フッター用コード④）をそのまま使い、大きなヘッダーは隠す
   ・広い画面（1400px以上）：左右の余白に淡い線画の飾り（本文の後ろ側。本文には重ならない）
   元に戻すときは、この「ここから」〜「ここまで」を丸ごと削除する
   ===================================================================== */

/* --- 0. 固定ヘッダーが効くように（overflow:hidden は sticky を止めるため clip に） --- */
html, body { overflow-x: clip !important; }

/* --- 1. 旧・左縦列の残りをすべて消す --- */
:root {
  --hsj-ink: #2B2723;
  --hsj-mut: #6E6656;
  --hsj-line: #DDD8CC;
  --hsj-line-soft: #EFECE4;
  --hsj-acc: #6F5137;
  --hsj-acc-deep: #5C4430;
  --hsj-shu: #8F2E14;
  --hsj-fuji: #8A7A9E;
  --hsj-kou: #B58F63;
  --hsj-card: #FFFFFF;
  --hsj-sec-sp: 72px;
  --hsj-w-text: 720px;
  --a-title: .24;
  --a-h2: .16;
  --a-band: .13;
  --a-th: .18;
  --a-hover: .24;
  --a-blob1: .3;
  --a-blob2: .16;
  --hsj-namefont: clamp(20px, 3.5vh, 42px);
  --hsj-hero-edge: 3%;
  --hsj-sans: "Meiryo", "メイリオ", "Hiragino Sans", "Noto Sans JP", sans-serif !important;
  --hsj-side: 0px;
}
@media (min-width: 1024px) {
    html body #header-container .header-in::before,
  html body #header-container .logo-header::before,
  html body #header-container .logo-header::after,
  html body #header-container #navi .navi-in::after { content: none !important; display: none !important; background: none !important; }
  html body #content, html body .footer, html body #footer { margin-left: 0 !important; }
  html body #container #content-in { max-width: none; margin: 0; }
}
@media (min-width: 1024px) { .hsj-crest-el, #hsj-creed-side { display: none !important; } }

/* --- 2. PC：横型ヘッダー --- */
@property --hsj-k { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes hsj-shrink { from { --hsj-k: 0; } to { --hsj-k: 1; } }
@media (min-width: 1024px) {
    html body #header-container.is-compact { --hsj-k: 1; }
  body.admin-bar #header-container { top: 32px; }
  html body #header-container .header-container-in {
    display: flex !important; align-items: center; justify-content: space-between; gap: 20px;
    width: auto !important; max-width: 1240px !important; margin: 0 auto; box-sizing: border-box;
    padding: calc(14px - var(--hsj-k) * 8px) 24px;
  }
  html body #header-container #header { position: static; padding: 0 !important; margin: 0; background: none !important; flex: 0 0 auto; width: auto !important; }
  /* 寺紋＋（宗派名／寺号）の2段組み。フッター用コード⑤が作る .hsj-headrow / .hsj-nameblock の箱は無視して並べる */
  html body #header-container .header-in {
    position: static !important; width: auto !important; max-width: none !important; margin: 0; padding: 0;
    display: grid !important; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; align-content: center;
    column-gap: calc(12px - var(--hsj-k) * 3px); min-height: 0 !important;
  }
  html body #header-container .hsj-headrow, html body #header-container .hsj-nameblock { display: contents !important; }
  html body #header-container .header-in::before {
    content: "" !important; display: block !important; position: static !important; grid-row: 1 / 3; grid-column: 1;
    width: calc(52px - var(--hsj-k) * 18px); height: auto; aspect-ratio: 519 / 534;
    background: url('https://howsenji.com/wp-content/uploads/2026/07/fuji-clear.png') no-repeat center / contain !important;
  }
  html body #header-container .tagline {
  display: block !important;
  grid-column: 2;
  align-self: end;
  margin: 0 0 calc(5px - var(--hsj-k) * 5px) !important;
  padding: 0;
  font-size: 11.5px !important;
  line-height: 1;
  letter-spacing: .28em;
  color: #6B6158 !important;
  max-height: calc(14px - var(--hsj-k) * 14px);
  height: auto !important;
}
  /* 寺号は横書きロゴ画像（1334x568。筆跡は上から約9〜55%）を背景で切り出す */
  html body #header-container .logo-header {
    --nh: calc(64px - var(--hsj-k) * 18px);
    position: static !important; grid-column: 2; align-self: start; display: block !important;
    width: auto !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; z-index: auto !important;
  }
    html body #header-container .logo-header .site-name-text {
  background: none !important;
}
  html body #header-container .site-name-text::before, html body #header-container .site-name-text::after { content: none !important; }
  /* 横メニュー（丸いボタン型） */
  html body #header-container #navi { position: static !important; width: auto !important; flex: 1 1 auto; margin: 0; background: none !important; display: block !important; top: auto !important; z-index: auto !important; }
  html body #header-container #navi .navi-in { width: auto !important; max-width: none !important; margin: 0; padding: 0; }
  html body #header-container #navi .navi-in > ul.menu-pc { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: flex-end; align-items: center; gap: 2px; padding: 0 !important; margin: 0; }
  html body #header-container #navi .navi-in > ul.menu-mobile { display: none !important; }
  html body #header-container #navi .navi-in > ul > li { width: auto !important; height: auto !important; float: none; border: 0 !important; margin: 0 !important; padding: 0 !important; }
  html body #header-container #navi .navi-in > ul > li > a {
    display: block !important; height: auto !important; width: auto; padding: .5em .62em !important;     font-family: inherit; font-weight: 700; font-size: 14px !important; line-height: 1.4 !important; letter-spacing: .03em !important;
    color: #3A332C !important; text-align: center; white-space: nowrap; background: transparent !important; transition: background .2s, color .2s;
    margin: 0 !important; border-radius: 999px !important; box-shadow: none !important;
  }
  html body #header-container #navi .navi-in > ul > li > a .item-label, html body #header-container #navi .navi-in > ul > li > a .caption-wrap { overflow: visible; width: auto; font: inherit !important; letter-spacing: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important; }
  html body #header-container #navi .navi-in > ul > li > a:hover,
  html body #header-container #navi .navi-in > ul > li.current-menu-item > a,
  html body #header-container #navi .navi-in > ul > li.current_page_item > a { background: #F6EFE3 !important; color: #A2472A !important; }
  html body #header-container #navi .navi-in > ul > li > a::after { content: none !important; }
  html body #header-container #navi .navi-in > ul > li.menu-contact > a { background: #A2472A !important; color: #FFFFFF !important; padding: .5em 1.05em !important; margin-left: 6px !important; }
  html body #header-container #navi .navi-in > ul > li.menu-contact > a:hover { background: #86391F !important; }
  /* 電話（フッター用コード⑥が差し込む .hsj-htel）。1361px以上だけ表示 */
  html body #header-container .hsj-htel { display: none; }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) {
    html body #header-container { animation: hsj-shrink linear both; animation-timeline: scroll(root block); animation-range: 0 120px; }
  }
}
@media (min-width: 1024px) and (max-width: 1240px) {
  html body #header-container #navi .navi-in > ul > li > a { font-size: 13px !important; padding: .45em .5em !important; letter-spacing: .02em !important; }
  html body #header-container #navi .navi-in > ul > li.menu-contact > a { padding: .45em .9em !important; margin-left: 2px !important; }
  html body #header-container .tagline { display: none !important; }
  html body #header-container .logo-header { grid-row: 1 / 3; align-self: center; }
  html body #header-container .header-container-in { gap: 12px; padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  html body #header-container .logo-header { --nh: calc(50px - var(--hsj-k) * 10px); }
  html body #header-container #navi .navi-in > ul > li > a { font-size: 12px !important; padding: .45em .4em !important; letter-spacing: 0 !important; }
  html body #header-container #navi .navi-in > ul > li.menu-contact > a { padding: .45em .8em !important; }
}
@media (min-width: 1361px) {
  html body #header-container .header-container-in { max-width: 1360px !important; }
  html body #header-container .hsj-htel {
    display: block; flex: 0 0 auto; text-decoration: none; text-align: right; line-height: 1.2;
    color: #A2472A !important; font-weight: 700; letter-spacing: .04em; font-size: calc(19px - var(--hsj-k) * 2px);
  }
  html body #header-container .hsj-htel small {
    display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: #6B6158;
    max-height: calc(16px - var(--hsj-k) * 16px); opacity: calc(1 - var(--hsj-k) * 1.4); overflow: hidden;
  }
}

/* --- 3. スマホ・タブレット（1023px以下）：上部固定バー .hsj-mbar（フッター用コード④）はそのまま。
   その下に、今まで通り全ページで信条の一文（#hsj-creed-side .l1「六百七十余年、…」）を出す。
   Cocoonの横メニューと電話（⑥）は出さない（メニューは右上の「メニュー」から） --- */
@media (max-width: 1023px) {
  html body #header-container #navi, html body #header-container .hsj-htel { display: none !important; }
  html body #header-container {
  background: #FFFFFF !important;
}
  html body #header-container #hsj-creed-side, html body #header-container #header-in > .tagline::before { display: block !important; padding: 0 16px; }
  html body #header-container #hsj-creed-side .l1, html body #header-container #header-in > .tagline::before { font-family: "Shippori Mincho", "Noto Serif JP", serif; letter-spacing: .08em; }
}

/* --- 4. 広い画面の左右余白の飾り（1400px以上・本文1200pxの外側だけ・本文の後ろ側） --- */
@media (min-width: 1400px) {
  html::before, body::before {
    content: "" !important; display: block; position: fixed; top: 0; bottom: 0; z-index: -1; pointer-events: none;
    width: calc((100vw - 1200px) / 2) !important; height: auto !important; background-color: transparent !important; border: 0 !important; background-repeat: no-repeat; opacity: .5;
  }
  /* 左：雲と小鳥（上）＋松（下） */
  html::before {
    left: 0 !important; right: auto !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 230' fill='none' stroke='%238C7B6B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 62c-10 0-15-12-6-17 0-11 13-15 20-8 5-11 23-11 26 2 10-2 16 9 9 16 2 7-4 9-9 7z' fill='%23F6EFE3'/%3E%3Cpath d='M92 132c-8 0-11-9-4-13 1-8 11-10 15-5 4-8 18-7 19 2 8-1 12 7 6 12 1 5-3 6-7 5z' fill='%23EEF3E6'/%3E%3Cpath d='M104 30c4-4 8-4 11 0 3-4 7-4 11 0'/%3E%3Cpath d='M128 54c3-3 6-3 8 0 2-3 5-3 8 0'/%3E%3Cpath d='M86 76c3-3 6-3 8 0 2-3 5-3 8 0'/%3E%3Cpath d='M40 196c8-6 18-6 22 4-9 2-17 1-22-4z' fill='%23EEF3E6'/%3E%3Cpath d='M40 196c9 1 15 3 22 4'/%3E%3C/svg%3E"),
      url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-pine.png");
    background-position: center 150px, 18px calc(100% - 24px);
    background-size: min(170px, calc((100vw - 1200px) / 2 - 48px)) auto, min(170px, calc((100vw - 1200px) / 2 - 40px)) auto;
  }
  /* 右：桜の枝（上）＋花びらと蓮（下） */
  body::before {
    left: auto !important; right: 0 !important;
    background-image:
      url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 260' stroke='%238C7B6B' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 30c6-8 16-6 16 2-6 6-12 6-16-2z' fill='%23F7E9E4'/%3E%3Cpath d='M118 88c8-4 15 2 12 9-7 2-12-1-12-9z' fill='%23F7E9E4'/%3E%3Cpath d='M44 140c10-10 26-8 28 4-10 6-21 5-28-4z' fill='%23EEF3E6'/%3E%3Cpath d='M44 140c10 2 19 3 28 4' fill='none'/%3E%3Cpath d='M104 196c6-7 15-5 15 2-5 5-11 5-15-2z' fill='%23F7E9E4'/%3E%3Cpath d='M30 232c18-14 42-14 60 0 18-14 42-14 60 0' fill='none'/%3E%3Cpath d='M70 226c0-14 10-24 20-28 10 4 20 14 20 28-6 5-34 5-40 0z' fill='%23F7E9E4'/%3E%3Cpath d='M90 198v28' fill='none'/%3E%3C/svg%3E");
    background-position: right 130px, center calc(100% - 120px);
    background-size: min(170px, calc((100vw - 1200px) / 2 - 24px)) auto, min(170px, calc((100vw - 1200px) / 2 - 48px)) auto;
  }
}
/* --- 5. 新しいホーム（固定ページ1218）にはスプラッシュが無いので、白い幕(html::after)を出さない --- */
html:has(> body.home .hsj2)::after { content: none !important; animation: none !important; }

/* --- 6. フッターの慶讃法要バナー（フッター左／フッター（モバイル用）ウィジェットの .hsj-ft-keisan）
   旧PC左列の下にあったものをフッターへ移設 --- */
.hsj-ft-keisan { margin: 18px 0 0 !important; }
.hsj-ft-keisan img { display: block; width: 190px; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(140,123,107,.18); }
.hsj-ft-m .hsj-ft-keisan img { margin: 4px auto 0; width: 200px; }

/* =====================================================================
   hsj-inner-v1：下層ページ共通（トップ 1218 と同じ配色・書体）
   子テーマ style.css の末尾（child-append の後）に追記。戻すときはこのブロックを丸ごと消す。
   書体は「ヘッド用コード」に Google Fonts の <link> を1行（apply-inner.md）。
   対象: 固定ページ（トップ以外）、/blog/、投稿、カテゴリー一覧。トップ(.home)には効かない。
   ===================================================================== */
body:not(.home){
  --hsj-th: rgba(var(--pgc), var(--a-th));
  --hsj-band: rgba(var(--pgc), var(--a-band));
  --hsj-hover: rgba(var(--pgc), var(--a-hover));
  --hsj-tbl: #FFFFFF;
  --c3-base: #FBF8F2;
  --c3-band: #F4EEE2;
  --c3-ink: #3A332C;
  --c3-mut: #6B6158;
  --c3-line: #8C7B6B;
  --c3-rule: #E7E0D4;
  --c3-shu: #A2472A;
  --c3-fuji: #9C8DB4;
  --c3-kou: #C8A878;
  --c3-kou-p: #F3EADB;
  --f3-round: "Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;
  --f3-body: "Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  --f3-wa: "Shippori Mincho","Noto Serif JP",serif;
  --hsj3-k: "";
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png");
}
/* ページごとの見出し上の英字と、帯の右の線画（人物は住職ではない一般の線画のみ） */
body.page-id-22{
  --hsj3-k: "ABOUT";
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png");
}
body.page-id-24{
  --hsj3-k: "HOZA & BUTSUJI";
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-family-gassho.png");
}
body.page-id-26{
  --hsj3-k: "GRAVES";
}
body.page-id-1157{
  --hsj3-k: "EITAI GODOBO";
}
body.page-id-1158{
  --hsj3-k: "BOCHI";
}
body.page-id-1159{
  --hsj3-k: "KAISO";
}
body.page-id-1185{ --hsj3-k:"GUIDE"; --hsj3-art:url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-elders.png"); }
body.page-id-28{ --hsj3-k:"ACCESS"; --hsj3-art:url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-family.png"); }
body.page-id-30{
  --hsj3-k: "CONTACT";
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png");
}
body.page-id-799{ --hsj3-k:"PRIVACY POLICY"; }
body.single{
  --pgc: 138,122,158;
  --hsj3-k: "DHARMA TALK";
}
body.single.categoryid-5{ --hsj3-k:"INFORMATION"; }
body.single.categoryid-7{ --hsj3-k:"MANNERS"; }

/* ---------- 1. 空白の原因対策：下層はフェードインをやめる（見出し・写真が「出るまで真っ白」をなくす） ---------- */
html.hsj-js body:not(.home) .hsj-fi, html body:not(.home) .hsj-fi{ opacity:1 !important; transform:none !important; transition:none !important; }
/* 旧デザインの楕円の面を消す */
html body:not(.home) .article::before, html body:not(.home) .article::after{ content:none !important; display:none !important; }
/* 余白の重なりを詰める（#content 24 + #main 36 → 0） */
html body:not(.home) #content{ margin-top:0 !important; overflow-x:clip; }   /* 帯の左右のはみ出しで横スクロールが出ないように */
html body:not(.home) #main{ padding-top:0 !important; background:transparent; }
html body:not(.home){
  background: var(--c3-base) !important;
}
@media (max-width:1023px){ html body:not(.home)::before{ background:var(--c3-base) !important; } }   /* 旧CSSの白い固定の下地（1023px以下）も生成りに */
html body:not(.home) .article .date-tags{ display:none; }   /* 固定ページの日付は出さない（投稿は下で表示） */
html body.single .article .date-tags{ display:flex; justify-content:center; gap:14px; margin:-30px 0 26px; font-family:var(--f3-round); font-size:14px; color:var(--c3-mut); }

/* ---------- 2. タイトル帯（紫などの色帯 → 生成りの帯＋淡い線画） ---------- */
/* 全幅の帯は「影で左右に伸ばして clip-path で切る」方式（見出しの親が中央にないため 50vw 方式はずれる） */
html body:not(.home) .article h1.entry-title, html body.archive h1.archive-title{
  position:relative; isolation:isolate; overflow:visible !important; width:auto !important; max-width:none !important;
  margin:0 !important; padding:clamp(52px,6vw,84px) 24px clamp(64px,7vw,96px) !important;
  background:var(--c3-band) !important; border:0 !important; border-radius:0 !important;
  box-shadow:0 0 0 100vmax var(--c3-band) !important; clip-path:inset(0 -100vmax);
  text-align:center !important; color:var(--c3-ink) !important;
  font-family:var(--f3-round) !important; font-weight:700 !important; font-size:clamp(26px,3vw,38px) !important; line-height:1.5 !important; letter-spacing:.14em !important;
}
html body:not(.home) .article h1.entry-title::before, html body.archive h1.archive-title::before{
  content:var(--hsj3-k) !important; display:block !important; position:static !important; width:auto !important; height:auto !important; background:none !important; margin:0 0 .7em !important; border:0 !important;
  font-family:var(--f3-round); font-weight:500; font-size:12px; letter-spacing:.32em; color:var(--c3-kou); line-height:1.4;
}
/* 線画の層：左右に 100vmax はみ出させ、木と線画は画面の内側（本文幅の端）に置く */
html body:not(.home) .article h1.entry-title::after, html body.archive h1.archive-title::after{
  content: "" !important;
  opacity: .55;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  background: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-tree.png") no-repeat left calc(100vmax - 40px) bottom -6px / auto 82%,
    var(--hsj3-art) no-repeat right calc(100vmax - 40px) bottom 4px / auto 66%,
    url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") repeat-x center bottom -10px / auto 46px !important;
}
html body:not(.home) .article .entry-header{ margin:0 !important; padding:0 !important; width:auto !important; max-width:none !important; }
html body:not(.home) .article .eye-catch-wrap{ margin-top:28px; }
@media screen and (max-width:834px){
  html body:not(.home) .article h1.entry-title, html body.archive h1.archive-title{ padding:40px 16px 54px !important; font-size:clamp(21px,6vw,27px) !important; letter-spacing:.08em !important; }
  html body:not(.home) .article h1.entry-title::before, html body.archive h1.archive-title::before{ font-size:10.5px; letter-spacing:.26em; }
  html body:not(.home) .article h1.entry-title::after, html body.archive h1.archive-title::after{ opacity:.42;
    background:
      url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-tree.png") no-repeat left calc(100vmax - 30px) bottom -4px / auto 70%,
      var(--hsj3-art) no-repeat right calc(100vmax - 26px) bottom 2px / auto 52%,
      url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") repeat-x center bottom -8px / auto 32px !important; }
}

/* ---------- 3. パンくず（本文先頭の nav.hsj3-crumb。帯の直下に小さく） ---------- */
html body:not(.home) .article .hsj3-crumb{ max-width:1080px; margin:14px auto 0; padding:0 4px; font-family:var(--f3-round); font-size:13px; color:var(--c3-mut); letter-spacing:.04em; }
html body:not(.home) .article .hsj3-crumb ol{ display:flex; flex-wrap:wrap; gap:4px 0; margin:0 !important; padding:0 !important; list-style:none; }
html body:not(.home) .article .hsj3-crumb li{ margin:0 !important; padding:0; display:flex; align-items:center; }
html body:not(.home) .article .hsj3-crumb li + li::before{ content:"›"; margin:0 .6em; color:var(--c3-kou); }
html body:not(.home) .article .hsj3-crumb a{ color:var(--c3-mut) !important; text-decoration:none; border-bottom:1px solid var(--c3-rule); }
html body:not(.home) .article .hsj3-crumb a:hover{ color:var(--c3-shu) !important; }
html body:not(.home) .article .hsj3-crumb [aria-current]{ color:var(--c3-ink); }
/* 本文にパンくずがあるページでは、Cocoonのメイン下のパンくず（ホームのみ）は出さない */
html body:has(.hsj3-crumb) #breadcrumb{ display:none; }

/* ---------- 4. 本文の地（書体・行間・幅） ---------- */
html body:not(.home) .article .entry-content{ margin-top:0 !important; padding-top:clamp(28px,3.5vw,44px); font-family:var(--f3-body); color:var(--c3-ink); }
html body:not(.home) .article .entry-content p, html body:not(.home) .article .entry-content li, html body:not(.home) .article .entry-content td{ font-family:var(--f3-body); }
html body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type{
  margin-top: 8px !important;
  width: auto !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body:not(.home) .article .entry-content figure.wp-block-image{ margin:28px auto !important; max-width:1040px; }
html body:not(.home) .article .entry-content figure.wp-block-image img{ border-radius:24px; }
/* 最初の写真は大きくしすぎない（以前は 1024幅で約507px） */
html body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type img{ width:100% !important; aspect-ratio:21/9; object-fit:cover; max-height:440px; border-radius:24px !important; -webkit-mask-image:none !important; mask-image:none !important; }
@media screen and (max-width:640px){ html body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type img{ aspect-ratio:3/2; border-radius:18px !important; } }
/* 本文の写真は角丸にそろえる（旧CSSの有機形・ぼかしの縁はやめる） */
html body:not(.home) .article .entry-content figure img{ -webkit-mask-image:none !important; mask-image:none !important; }
html body:not(.home) .article .entry-content figure.wp-block-image img, html body:not(.home) .article .entry-content .hsj3-pair img{ border-radius:24px !important; }
/* 写真2枚の横並び（旧：グループブロックの横並び。godobo・access） */
html body:not(.home) .article .hsj3-pair{ display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:1040px; margin:8px auto 28px; }
html body:not(.home) .article .hsj3-pair > figure{ margin:0 !important; width:auto !important; max-width:none !important; }
html body:not(.home) .article .hsj3-pair img{ width:100% !important; height:100% !important; aspect-ratio:4/3; object-fit:cover; max-height:none !important; }
@media screen and (max-width:640px){ html body:not(.home) .article .hsj3-pair{ gap:8px; } html body:not(.home) .article .hsj3-pair img{ border-radius:16px !important; } }
/* 改葬の手続き（/ohaka/kaiso/。インラインの青い装飾をやめてクラスに） */
html body:not(.home) .article .hsj3-kaiso{ max-width:860px; margin:0 auto; }
html body:not(.home) .article .hsj3-box{ background:#fff; border:1.5px solid var(--c3-rule); border-radius:22px; padding:20px clamp(16px,3vw,28px); margin:18px 0; }
html body:not(.home) .article .hsj3-box .hsj3-box-t{ font-family:var(--f3-round); font-weight:700; font-size:17px; color:#7A5B36; margin:0 0 .5em !important; }
html body:not(.home) .article .hsj3-box p{ margin:.45em 0 !important; }
html body:not(.home) .article .hsj3-small{ font-size:14px !important; color:var(--c3-mut) !important; margin:.4em 0 0 !important; line-height:1.85 !important; }
html body:not(.home) .article .hsj3-note{ max-width:860px; margin:28px auto 0 !important; font-size:14px; color:var(--c3-mut); text-align:center; }
/* リード文（各ページ冒頭の既存の文） */
html body:not(.home) .article .hsj-abt-lead, html body:not(.home) .article .hsj-gyo-lead, html body:not(.home) .article .hsj3-lead{
  font-family:var(--f3-body) !important; font-size:clamp(16px,1.15vw,18px) !important; line-height:2.05 !important; color:var(--c3-ink) !important; }
html body:not(.home) .article .hsj-gyo, html body:not(.home) .article .hsj-abt{ max-width:820px; margin-left:auto !important; margin-right:auto !important; }

/* ---------- 5. 見出し（全幅の色帯 → 中央の見出し＋手描きの波線） ---------- */
html body:not(.home) .article .entry-content h2{
  background:none !important; border:0 !important; box-shadow:none !important;
  margin:clamp(56px,6vw,84px) auto 26px !important; padding:0 !important; max-width:none;
  text-align:center; text-wrap:balance; font-family:var(--f3-wa) !important; font-weight:600 !important; font-size:clamp(23px,2.4vw,30px) !important; line-height:1.5 !important; letter-spacing:.08em !important; color:var(--c3-ink) !important;
}
html body:not(.home) .article .entry-content h2::before{ content:none !important; display:none !important; }
html body:not(.home) .article .entry-content h2::after{
  content:"" !important; display:block !important; width:64px !important; height:10px !important; margin:12px auto 0 !important; background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'><path d='M2 6 C10 1 18 9 26 5 S42 1 50 5 S60 8 62 4' fill='none' stroke='%23C8A878' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat center/contain !important; border:0 !important;
}
html body:not(.home) .article .entry-content h3{
  border:0 !important; background:none !important; padding:0 0 0 14px !important; margin:2.2em 0 .8em !important;
  border-left:4px solid var(--c3-kou) !important; border-radius:0;
  font-family:var(--f3-round) !important; font-weight:700 !important; font-size:clamp(17px,1.5vw,20px) !important; letter-spacing:.06em !important; line-height:1.55 !important; color:var(--c3-ink) !important;
}
html body:not(.home) .article .entry-content h3::before, html body:not(.home) .article .entry-content h3::after{ content:none !important; }
@media screen and (max-width:834px){
  html body:not(.home) .article .entry-content h2{ font-size:clamp(20px,5.6vw,24px) !important; margin-top:52px !important; }
}

/* ---------- 6. 既存の部品をトップと同じ顔に（文言・構造は変えない） ---------- */
/* アコーディオン（年間の法座／仏事のご案内 など） */
html body:not(.home) .article details.hsj-acc{ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; box-shadow:none !important; margin:20px auto !important; overflow:hidden; }
html body:not(.home) .article details.hsj-acc > summary{ background:#fff !important; padding:22px 56px 22px 26px !important; border:0 !important; }
html body:not(.home) .article details.hsj-acc[open] > summary{ border-bottom:1.5px dashed var(--c3-rule) !important; }
html body:not(.home) .article .hsj-acc-ttl{ font-family:var(--f3-round) !important; font-weight:700 !important; color:var(--c3-ink) !important; }
html body:not(.home) .article .hsj-acc-sub{ font-family:var(--f3-body) !important; color:var(--c3-mut) !important; }
/* そのほかの折りたたみ（hsj-mos / hsj-ofuse / hsj-kaiki / hsj-hyo / hsj-ohl-acc / 〜-more）も同じ白い角丸に */
html body:not(.home) .article details:is(.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more){ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; box-shadow:none !important; overflow:hidden; }
html body:not(.home) .article details:is(.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more) > summary{ background:#fff !important; font-family:var(--f3-round) !important; }
html body:not(.home) .article details:is(.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more) > summary:hover{ background:var(--c3-base) !important; }
html body:not(.home) .article details:is(.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo,.hsj-ohl-acc)[open] > summary{ border-bottom:1.5px dashed var(--c3-rule) !important; }
/* よくある質問 */
html body:not(.home) .article .hsj-fq{ background:var(--c3-base) !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; }
html body:not(.home) .article .hsj-fq-ttl{ font-family:var(--f3-round) !important; font-weight:700 !important; color:var(--c3-ink) !important; }
html body:not(.home) .article details.hsj-fq-q{ background:#fff !important; border:1px solid var(--c3-rule) !important; border-radius:14px !important; }
html body:not(.home) .article details.hsj-fq-q > summary{ font-family:var(--f3-round) !important; font-weight:700 !important; color:var(--c3-ink) !important; }
/* 表 */
html body:not(.home) .article .entry-content table th{ background:var(--c3-band) !important; color:var(--c3-ink) !important; font-family:var(--f3-round) !important; font-weight:700 !important; }
html body:not(.home) .article .entry-content table td, html body:not(.home) .article .entry-content table th{ border-color:var(--c3-rule) !important; }
/* 次回の法座の帯（/hoen/。中身と hsjHozaList はそのまま） */
html body:not(.home) .article .hsj-next{ background:transparent !important; border:0 !important; box-shadow:none !important; max-width:1000px !important; }
html body:not(.home) .article .hsj-next .hsj-next-in{ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; box-shadow:none !important; }
/* リンクの色・ボタン */
html body:not(.home) .article .entry-content a{ color:var(--c3-shu); }
html body:not(.home) .article .entry-content .wp-block-button__link, html body:not(.home) .article a.hsj-btn{ background:var(--c3-shu) !important; color:#fff !important; border-radius:999px !important; font-family:var(--f3-round) !important; font-weight:700 !important; border:0 !important; }
/* about：ご挨拶の写真（住職の実写はそのまま）・歌・ページ内目次 */
html body:not(.home) .article .hsj-jump a{ border-radius:999px !important; font-family:var(--f3-round) !important; }
html body:not(.home) .article .hsj-prof img, html body:not(.home) .article .hsj-abtais img{ border-radius:20px !important; }
html body:not(.home) .article .hsj-uta{ background:var(--c3-band) !important; border-radius:24px !important; }
/* お墓のページの写真カード・手順 */
html body:not(.home) .article .hsj-ohl-card, html body:not(.home) .article .hsj-guide a, html body:not(.home) .article .hsj-step{ border-radius:20px !important; border-color:var(--c3-rule) !important; }
html body:not(.home) .article .hsj-num{ background:var(--c3-kou) !important; color:#fff !important; }
/* 合同墓・墓地の追記ブロック：紺青のキーカラーを墨茶に（--hsj-accent は各ページの style の変数） */
html body:not(.home) .article .hsj-ohaka{ --hsj-accent:#7A5B36 !important; --hsj-accent-tint:rgba(200,168,120,.12) !important; --hsj-accent-line:rgba(140,123,107,.35) !important; --hsj-text:var(--c3-ink) !important; font-family:var(--f3-body) !important; }
html body:not(.home) .article .hsj-ohaka .hsj-step-title{ font-family:var(--f3-round) !important; }
/* 末尾の関連ページ（hsj3-rel） */
html body:not(.home) .article .hsj3-rel{ max-width:960px; margin:28px auto 0; }
html body:not(.home) .article ul.hsj3-rel-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 !important; padding:0 !important; list-style:none; }
html body:not(.home) .article ul.hsj3-rel-list li{ margin:0 !important; padding:0 !important; list-style:none; }
html body:not(.home) .article ul.hsj3-rel-list li::before{ content:none !important; }
html body:not(.home) .article ul.hsj3-rel-list a{ display:flex; align-items:center; justify-content:space-between; gap:8px; height:100%; padding:16px 20px; background:#fff; border:1.5px solid var(--c3-rule); border-radius:18px; font-family:var(--f3-round); font-weight:700; font-size:15px; color:var(--c3-ink) !important; text-decoration:none !important; }
html body:not(.home) .article ul.hsj3-rel-list a::after{ content:"→"; color:var(--c3-shu); }
html body:not(.home) .article ul.hsj3-rel-list a:hover{ border-color:var(--c3-kou); }
@media screen and (max-width:640px){ html body:not(.home) .article ul.hsj3-rel-list{ grid-template-columns:1fr; gap:8px; } }
/* お問い合わせの3枚（hsj-ct） */
html body:not(.home) .article .hsj-ct a, html body:not(.home) .article .hsj-ct > div{ border-radius:22px !important; }

/* ---------- 7. 新しい部品（hsj3-*） ---------- */
/* 7a. はじめて法座にお参りの方へ（/hoen/。トップから移した4枚。2列でコンパクトに） */
html body:not(.home) .article .hsj3-first{ max-width:960px; margin:40px auto 8px; padding:28px clamp(18px,3vw,34px) 24px; background:#fff; border:1.5px solid var(--c3-rule); border-radius:26px; scroll-margin-top:90px; }
html body:not(.home) .article .hsj3-first-h{ display:flex; align-items:center; gap:14px; margin:0 0 18px; }
html body:not(.home) .article .hsj3-first-h img{ width:54px; height:auto; }
html body:not(.home) .article .hsj3-first-h .en{ display:block; font-family:var(--f3-round); font-size:11px; letter-spacing:.3em; color:var(--c3-kou); }
html body:not(.home) .article .hsj3-first-h p{ margin:0 !important; font-family:var(--f3-round); font-weight:700; font-size:clamp(18px,1.7vw,21px); letter-spacing:.08em; color:var(--c3-ink); }
html body:not(.home) .article ul.hsj3-first-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px 18px; margin:0 !important; padding:0 !important; list-style:none; }
html body:not(.home) .article ul.hsj3-first-list li{ display:grid; grid-template-columns:44px 1fr; column-gap:12px; align-items:start; margin:0 !important; padding:14px 16px; background:var(--c3-base); border-radius:16px; list-style:none; }
html body:not(.home) .article ul.hsj3-first-list img{ width:44px; height:44px; object-fit:contain; grid-row:1 / span 2; margin:2px 0 0; }
html body:not(.home) .article ul.hsj3-first-list .t{ display:block; font-family:var(--f3-round); font-weight:700; font-size:16px; color:var(--c3-ink); line-height:1.5; }
html body:not(.home) .article ul.hsj3-first-list .d{ display:block; font-size:14.5px; line-height:1.75; color:var(--c3-mut); }
html body:not(.home) .article .hsj3-first-more{ margin:14px 0 0 !important; text-align:right; font-family:var(--f3-round); font-weight:700; font-size:14px; }
html body:not(.home) .article .hsj3-first-more a{ text-decoration:none; }
/* 見出しは h2（文書の構造用）だが、本文の大見出しの飾り（中央・波線）は付けない */
html body:not(.home) .article .entry-content .hsj3-first h2.hsj3-first-ttl{ margin:0 !important; text-align:left !important; font-family:var(--f3-round) !important; font-weight:700 !important; font-size:clamp(18px,1.7vw,21px) !important; letter-spacing:.08em !important; line-height:1.5 !important; }
html body:not(.home) .article .entry-content .hsj3-first h2.hsj3-first-ttl::after{ content:none !important; display:none !important; }
@media screen and (max-width:640px){
  html body:not(.home) .article .hsj3-first{ padding:20px 14px 16px; border-radius:20px; margin-top:28px; }
  html body:not(.home) .article ul.hsj3-first-list{ grid-template-columns:1fr; gap:8px; }
  html body:not(.home) .article ul.hsj3-first-list li{ grid-template-columns:34px 1fr; padding:10px 12px; }
  html body:not(.home) .article ul.hsj3-first-list img{ width:34px; height:34px; }
  html body:not(.home) .article ul.hsj3-first-list .t{ font-size:15px; }
  html body:not(.home) .article ul.hsj3-first-list .d{ font-size:13.5px; line-height:1.65; }
}
/* 7b. 子ページ・関連ページへの案内カード（/hoen/ → 仏事の手引き など） */
html body:not(.home) .article a.hsj3-link{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:4px 18px; max-width:960px; margin:28px auto !important;
  padding:20px 26px; background:var(--c3-band); border:1.5px solid var(--c3-rule); border-radius:22px; color:var(--c3-ink) !important; text-decoration:none !important; transition:background .2s ease, border-color .2s ease; }
html body:not(.home) .article a.hsj3-link:hover{ background:#fff; border-color:var(--c3-kou); }
html body:not(.home) .article a.hsj3-link img{ width:56px; height:56px; object-fit:contain; grid-row:1 / span 2; }
html body:not(.home) .article a.hsj3-link .k{ font-family:var(--f3-round); font-size:12px; letter-spacing:.14em; color:#7A5B36; }
html body:not(.home) .article a.hsj3-link .t{ grid-column:2; font-family:var(--f3-round); font-weight:700; font-size:clamp(17px,1.6vw,20px); letter-spacing:.06em; }
html body:not(.home) .article a.hsj3-link .d{ grid-column:2; font-size:14px; color:var(--c3-mut); line-height:1.7; }
html body:not(.home) .article a.hsj3-link .arrow{ grid-column:3; grid-row:1 / span 3; font-size:22px; color:var(--c3-shu); }
@media screen and (max-width:640px){ html body:not(.home) .article a.hsj3-link{ padding:16px 16px; gap:2px 12px; } html body:not(.home) .article a.hsj3-link img{ width:42px; height:42px; } }
/* 7c. ページ末の相談の帯（各ページ共通） */
html body:not(.home) .article .hsj3-cta{ max-width:960px; margin:clamp(56px,6vw,84px) auto 12px; padding:30px clamp(18px,4vw,44px); background:var(--c3-band); border-radius:28px; text-align:center; position:relative; }
html body:not(.home) .article .hsj3-cta img.ic{ width:64px; height:auto; margin:0 auto 6px; display:block; }
html body:not(.home) .article .entry-content .hsj3-cta h2{ margin:0 0 .4em !important; font-size:clamp(19px,1.9vw,23px) !important; }
html body:not(.home) .article .entry-content .hsj3-cta h2::after{ margin-top:8px !important; }
html body:not(.home) .article .hsj3-cta .t{ font-family:var(--f3-round); font-weight:700; font-size:clamp(18px,1.8vw,22px); letter-spacing:.08em; margin:0 0 .3em !important; color:var(--c3-ink); }
html body:not(.home) .article .hsj3-cta .d{ margin:0 0 1em !important; color:var(--c3-mut); font-size:15px; line-height:1.8; }
html body:not(.home) .article .hsj3-cta .btns{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 12px; margin:0 !important; }
html body:not(.home) .article .hsj3-cta .btns a{ display:inline-flex; align-items:center; gap:.4em; padding:.75em 1.6em; border-radius:999px; font-family:var(--f3-round); font-weight:700; font-size:15px; text-decoration:none !important; background:#fff; color:var(--c3-ink) !important; border:1.5px solid var(--c3-rule); }
html body:not(.home) .article .hsj3-cta .btns a.is-main{ background:var(--c3-shu); color:#fff !important; border-color:var(--c3-shu); }
@media screen and (max-width:640px){ html body:not(.home) .article .hsj3-cta{ border-radius:20px; padding:24px 14px; } html body:not(.home) .article .hsj3-cta .btns a{ flex:1 1 100%; justify-content:center; } }

/* ---------- 8. /blog/・カテゴリー一覧・投稿 ---------- */
html body.blog .hsj-bloghead{ background:var(--c3-band); box-shadow:0 0 0 100vmax var(--c3-band); clip-path:inset(0 -100vmax); margin:0 0 28px !important; padding:clamp(44px,5vw,72px) 24px clamp(48px,5vw,64px); text-align:center; position:relative; isolation:isolate; }
html body.blog .hsj-bloghead::after{
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-tree.png") no-repeat left max(3vw, calc(50% - 600px)) bottom -6px / auto 70%,
    url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png") no-repeat right max(3vw, calc(50% - 600px)) top 10px / auto 52%,
    url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") repeat-x center bottom -10px / auto 40px;
}
html body.blog .hsj-bloghead-title{ font-family:var(--f3-round) !important; font-weight:700 !important; font-size:clamp(25px,2.8vw,36px) !important; letter-spacing:.14em !important; color:var(--c3-ink) !important; margin:0 0 .4em !important; background:none !important; padding:0 !important; }
html body.blog .hsj-bloghead-title::before{ content:"DHARMA TALKS & INFORMATION"; display:block; font-size:12px; font-weight:500; letter-spacing:.3em; color:var(--c3-kou); margin-bottom:.7em; }
html body.blog .hsj-bloghead-lead{ font-family:var(--f3-body) !important; color:var(--c3-mut) !important; margin:0 auto 1.2em !important; }
html body.blog .widget-index-top{ max-width:1180px; margin-left:auto !important; margin-right:auto !important; }   /* 見出しの箱が左寄せになっていたのを中央に */
html body.blog .hsj-bloghead .hsj-tebiki-card{ margin-left:auto !important; margin-right:auto !important; }
html body.blog .hsj-tebiki-card{ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; color:var(--c3-ink) !important; }
html body.blog .hsj-tebiki-card .hsj-tebiki-t{ font-family:var(--f3-round) !important; font-weight:700 !important; }
html body.blog .hsj-tebiki-card .hsj-tebiki-arrow{ color:var(--c3-shu) !important; }
html body.blog #list a.entry-card-wrap, html body.archive:not(.category-5) #list a.entry-card-wrap{ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:20px !important; box-shadow:none !important; overflow:hidden; }
html body.blog #list a.entry-card-wrap:hover, html body.archive #list a.entry-card-wrap:hover{ border-color:var(--c3-kou) !important; background:#fff !important; }
html body.blog #list .entry-card-title, html body.archive #list .entry-card-title{ font-family:var(--f3-round) !important; font-weight:700 !important; color:var(--c3-ink) !important; }
html body.blog #list .entry-card-snippet, html body.archive #list .entry-card-snippet{ font-family:var(--f3-body) !important; color:var(--c3-mut) !important; }
html body.blog #list .cat-label, html body.archive #list .cat-label{ background:var(--c3-kou-p) !important; color:#7A5B36 !important; border:0 !important; border-radius:999px !important; font-family:var(--f3-round) !important; font-weight:700; }
html body.single .article .eye-catch img{ border-radius:24px; }
html body.single .article .entry-content{ max-width:780px; margin-left:auto !important; margin-right:auto !important; }
html body.single .article .entry-content p{ line-height:2.05; }

/* ---------- 9. フッターの小項目（仏事の手引き は 法座・仏事 の下に字下げ） ---------- */
#footer .hsj-ft-sub{ padding-left:1.1em !important; font-size:.92em; opacity:.9; }
#footer .hsj-ft-sub::before{ content:"└ "; opacity:.55; }
@media (prefers-reduced-motion: reduce){ html body:not(.home) .article a.hsj3-link{ transition:none; } }

/* ---------- 10. 方式B（既存ブロックはそのまま）用の追加 ---------- */
/* 10a. お墓の4ページ：見出し「見学・お申し込みのお問い合わせ」と文の下に置いた連絡ボタン */
html body:not(.home) .article .hsj3-cta.is-btns{ margin:6px auto 12px; padding:18px clamp(14px,3vw,28px); border-radius:22px; }
/* 10b. 合同墓・墓地・改葬の末尾の関連ページ（既存の箇条書きブロックを、CSSだけで横並びのカードに。文言・リンクはそのまま） */
html body.page-id-1157 .article .entry-content > ul.wp-block-list,
html body.page-id-1158 .article .entry-content > ul.wp-block-list,
html body.page-id-1159 .article .entry-content > ul.wp-block-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:960px; margin:28px auto 0 !important; padding:0 !important; list-style:none; }
html body.page-id-1157 .article .entry-content > ul.wp-block-list > li,
html body.page-id-1158 .article .entry-content > ul.wp-block-list > li,
html body.page-id-1159 .article .entry-content > ul.wp-block-list > li{ margin:0 !important; padding:0 !important; list-style:none; }
html body.page-id-1157 .article .entry-content > ul.wp-block-list > li::before,
html body.page-id-1158 .article .entry-content > ul.wp-block-list > li::before,
html body.page-id-1159 .article .entry-content > ul.wp-block-list > li::before{ content:none !important; }
html body.page-id-1157 .article .entry-content > ul.wp-block-list > li > a,
html body.page-id-1158 .article .entry-content > ul.wp-block-list > li > a,
html body.page-id-1159 .article .entry-content > ul.wp-block-list > li > a{ display:flex; align-items:center; justify-content:space-between; gap:8px; height:100%; padding:16px 20px; background:#fff; border:1.5px solid var(--c3-rule); border-radius:18px; font-family:var(--f3-round); font-weight:700; font-size:15px; color:var(--c3-ink) !important; text-decoration:none !important; }
html body.page-id-1157 .article .entry-content > ul.wp-block-list > li > a::after,
html body.page-id-1158 .article .entry-content > ul.wp-block-list > li > a::after,
html body.page-id-1159 .article .entry-content > ul.wp-block-list > li > a::after{ content:"→"; color:var(--c3-shu); }
html body.page-id-1157 .article .entry-content > ul.wp-block-list > li > a:hover,
html body.page-id-1158 .article .entry-content > ul.wp-block-list > li > a:hover,
html body.page-id-1159 .article .entry-content > ul.wp-block-list > li > a:hover{ border-color:var(--c3-kou); }
@media screen and (max-width:640px){
  html body.page-id-1157 .article .entry-content > ul.wp-block-list,
  html body.page-id-1158 .article .entry-content > ul.wp-block-list,
  html body.page-id-1159 .article .entry-content > ul.wp-block-list{ grid-template-columns:1fr; gap:8px; }
}
/* 10c. 改葬の手続き（#hsj-kaiso-v3）：ブロック内のインラインの紺色・明朝を、CSSだけでサイトの配色に（文言・HTMLはそのまま） */
html body:not(.home) .article #hsj-kaiso-v3{ font-family:var(--f3-body) !important; color:var(--c3-ink) !important; max-width:860px; margin:1.5em auto !important; }
html body:not(.home) .article #hsj-kaiso-v3 > p[style*="border-left:5px"]{ font-family:var(--f3-wa) !important; color:var(--c3-ink) !important; border-left:4px solid var(--c3-kou) !important; font-size:clamp(19px,1.9vw,23px) !important; padding:.1em 0 .1em .7em !important; }
html body:not(.home) .article #hsj-kaiso-v3 > div[style*="rgba(25,68,142"]{ background:#fff !important; border:1.5px solid var(--c3-rule) !important; border-radius:22px !important; padding:20px clamp(16px,3vw,28px) !important; margin:18px 0 !important; }
html body:not(.home) .article #hsj-kaiso-v3 p[style*="color:#19448e"]{ color:#7A5B36 !important; font-family:var(--f3-round) !important; font-weight:700 !important; }
html body:not(.home) .article #hsj-kaiso-v3 p[style*="color:#333"]{ color:var(--c3-ink) !important; }
html body:not(.home) .article #hsj-kaiso-v3 p[style*="color:#555"]{ color:var(--c3-mut) !important; font-size:14px !important; line-height:1.85 !important; }
html body:not(.home) .article #hsj-kaiso-v3 a[style*="#19448e"]{ color:var(--c3-shu) !important; }

/* ===== hsj-arch-v1：カテゴリー「お知らせ」一覧（/category/お知らせ/）を、トップのお知らせと同じ「日付・ラベル・題名」の並びに
   子テーマ style.css（child-append）の末尾に追記。戻すときはこのブロックを消すだけ。 ===== */
html body.category-5{ --o-ink:#3A332C; --o-mut:#6B6158; --o-rule:#E7E0D4; --o-shu:#A2472A; --o-kou:#C8A878; }
html body.category-5 #main{ background:#FBF8F2; border-radius:22px; padding:32px clamp(16px,4vw,48px) 40px !important; }
html body.category-5 h1.archive-title{ font-family:"Zen Maru Gothic",sans-serif; font-weight:700; font-size:clamp(24px,2.4vw,30px); letter-spacing:.14em; color:var(--o-ink);
  background:none !important; border:0 !important; padding:0 0 .2em !important; margin:0 0 .3em !important; text-align:center; }
html body.category-5 h1.archive-title::before{ content:"INFORMATION"; display:block; font-size:12px; letter-spacing:.3em; color:var(--o-kou); font-weight:500; margin-bottom:.4em; }
html body.category-5 h1.archive-title .fa{ display:none; }
/* 一覧の上の「法話・作法・お知らせ」見出しと手引き案内は、この一覧では出さない（/blog/ では従来どおり） */
html body.category-5 .widget-index-top .hsj-bloghead{ display:none; }
html body.category-5 #list{ max-width:860px !important; margin:24px auto 0 !important; background:#fff; border:1.5px solid var(--o-rule) !important; border-radius:22px; padding:8px 28px; display:block !important; }
html body.category-5 #list a.entry-card-wrap{ display:block !important; width:auto !important; margin:0 !important; padding:18px 4px !important; border:0 !important; border-bottom:1px solid #F1ECE3 !important;
  border-radius:0 !important; background:none !important; box-shadow:none !important; color:var(--o-ink); opacity:1 !important; transform:none !important; }
html body.category-5 #list a.entry-card-wrap:last-child{ border-bottom:0 !important; }
html body.category-5 #list .entry-card{ display:grid !important; grid-template-columns:7em auto 1fr 120px !important; column-gap:14px !important; row-gap:4px !important; align-items:baseline !important; }
html body.category-5 #list .entry-card-content, html body.category-5 #list .entry-card-meta, html body.category-5 #list .entry-card-info{ display:contents !important; }
html body.category-5 #list .post-date{ grid-column:1 !important; grid-row:1 !important; font-family:"Zen Maru Gothic",sans-serif; font-size:15px; color:var(--o-mut); white-space:nowrap; }
html body.category-5 #list .post-date .fa, html body.category-5 #list .post-update, html body.category-5 #list .cat-label{ display:none !important; }
html body.category-5 #list .entry-card-categorys{ display:block !important; grid-column:2 !important; grid-row:1 !important; align-self:center !important; }
html body.category-5 #list .entry-category{ display:inline-block !important; font-family:"Zen Maru Gothic",sans-serif; font-weight:700; font-size:12px; letter-spacing:.08em; color:#7A5B36 !important;
  background:#F3EADB !important; border:0 !important; border-radius:999px; padding:.18em .9em; }
html body.category-5 #list .entry-card-title{ grid-column:3 !important; grid-row:1 !important; font-size:17px !important; font-weight:600; line-height:1.6; margin:0 !important; color:var(--o-ink); }
html body.category-5 #list .entry-card-snippet{ grid-column:3 !important; grid-row:2 !important; font-size:14px; line-height:1.75; color:var(--o-mut); margin:0 !important; display:-webkit-box !important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
html body.category-5 #list .entry-card-thumb{ grid-column:4 !important; grid-row:1 / span 2 !important; width:120px !important; margin:0 !important; float:none !important; align-self:center !important; }
html body.category-5 #list .entry-card-thumb img{ width:120px !important; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:10px; }
html body.category-5 #list .entry-card-thumb img.no-image{ opacity:.35; }
html body.category-5 #list a.entry-card-wrap:hover .entry-card-title{ color:var(--o-shu); }
html body.category-5 .hsj-fi{ opacity:1 !important; transform:none !important; }
@media screen and (max-width:834px){
  html body.category-5 #main{ border-radius:0; padding:24px 12px 32px !important; }
  html body.category-5 #list{ padding:4px 16px; border-radius:18px; }
  html body.category-5 #list .entry-card{ grid-template-columns:auto 1fr 88px !important; column-gap:10px !important; }
  html body.category-5 #list .entry-card-categorys{ grid-column:2 !important; }
  html body.category-5 #list .entry-card-title{ grid-column:1 / span 2 !important; grid-row:2 !important; font-size:15.5px !important; }
  html body.category-5 #list .entry-card-snippet{ display:none !important; }
  html body.category-5 #list .entry-card-thumb{ grid-column:3 !important; grid-row:1 / span 2 !important; width:88px !important; }
  html body.category-5 #list .entry-card-thumb img{ width:88px !important; }
}
/* 「明照山　法泉寺」の間の全角スペースだけを0.3文字幅に縮める極小フォント（全角スペース1字のみ・288バイト） */
@font-face { font-family: "hsjgap"; src: url(data:font/woff2;base64,d09GMgABAAAAAAEgAAoAAAAAAnAAAADYAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAoYNgE2AiQDCAsGAAQgBV0HKhvSAUieB7atYr1hGg2Ewbu8YFk/4vnnD/Xc91/GpG2JT6rWsBrzAkALUi6I24bJZgnGZrLJg/yI4XgEk82DCAmtAcLI/+nk+Ps8whaQBIFhW2ChJphAIJDHmDI4treVyYbvZKJZAp8ZL16MN4h+AF5sYWDXDXa0C7QWXvyPww4BUKARNCaABqGTFcvlEgjC9dc+Cn95jF/4mUV6wdISQ4Ew3ktuYCkAgLIkNwSlBRQAANoHATFFQJmZGtILsbbpqmydLZaKL6N2wIRFCddM6trEkdDLv2186QAA) format("woff2"); unicode-range: U+3000; font-display: block; }
/* PC（1024px以上）：Cocoonのサイト名の文字（明照山　法泉寺）をそのまま見せる。画像は外す */
@media (min-width: 1024px) {
  html body #header-container .logo-header .site-name {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  text-decoration: none !important;
}
  html body #header-container .logo-header .site-name-text {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: nowrap !important;
  font-family: "hsjgap", "Klee One", "Zen Maru Gothic",sans-serif !important;
  font-weight: 600 !important;
  font-size: calc(27px - var(--hsj-k) * 7px) !important;
  line-height: 1.2 !important;
  letter-spacing: .12em !important;
  color: #3A332C !important;
}
  html body #header-container .tagline {
  opacity: calc(1 - var(--hsj-k) * 1.4);
  overflow: hidden;
  background: none !important;
  font-family: "Klee One", "Zen Maru Gothic",sans-serif !important;
}
}
@media (min-width: 1024px) and (max-width: 1100px) {
  html body #header-container .logo-header .site-name-text { font-size: calc(22px - var(--hsj-k) * 3px) !important; letter-spacing: .06em !important; }
}
/* スマホ（1023px以下）：上部バー（フッター用コード④）の寺号画像を文字に */
@media (max-width: 1023px) {
  .hsj-mbar .hsj-mbar-name {
    background: none !important; width: auto !important; height: auto !important;
    display: flex !important; flex-direction: column; justify-content: center; gap: 3px;
  }
  .hsj-mbar .hsj-mbar-name::after {
    content: "明照山\3000法泉寺"; display: block; white-space: nowrap; line-height: 1;
    font-family: "hsjgap", "Klee One", "Zen Maru Gothic",sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .06em; color: #3A332C;
  }
}
@media (max-width: 359px) { .hsj-mbar .hsj-mbar-name::after { font-size: 18px; letter-spacing: .02em; } }
/* （任意）スマホの寺号の上に小さく「浄土真宗本願寺派」 */
@media (max-width: 1023px) {
  .hsj-mbar .hsj-mbar-name::before {
    content: "浄土真宗本願寺派"; display: block; white-space: nowrap; line-height: 1;
    font-family: "Klee One", "Zen Maru Gothic",sans-serif; font-size: 9.5px; letter-spacing: .24em; color: #6B6158;
  }
}
/* ===== hsj-menufix-v1 (2026-10-28) =====
   トップ(1218)本文CSSの「body:has(.hsj2) .mobile-footer-menu-buttons{display:none!important}」が
   スライドメニュー本体 #navi-menu-content を含む ul ごと消していたため、上部バーの「メニュー」が開かなかった。
   ul は表示に戻す（高さ0・中のボタンはフッターコード④で非表示のまま）。 */
@media (max-width: 1023px){
  html body:has(.hsj2) .mobile-footer-menu-buttons{ display:flex !important; }
}
/* ===== hsj-drawer-v1 (2026-10-28) ここから =====
   スマホのメニュー引き出し（上部バー「メニュー」で開く #navi-menu-content）を新デザインに。
   生成り地・Zen Maru Gothic・朱の小さな点・現在地の強調・あじさい／草の挿絵。
   1023px以下のみ。PCには一切かからない。下部の連絡先は フッターコード④-2 hsj-drawer-foot-v1 で追加（無くても崩れない）。 */
@media (max-width: 1023px){
  html body .mobile-menu-buttons #navi-menu-content{
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  width: min(84vw, 340px) !important;
  max-width: 340px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow-x: hidden !important;
  background: #FBF6EC !important;
  color: #3A332C;
  border-radius: 18px 0 0 0;
  box-shadow: -14px 0 34px rgba(58, 51, 44, .16), -1px 0 0 rgba(58, 51, 44, .06);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif !important;
  text-align: left;
  -webkit-transform: translateX(108%) !important;
  transform: translateX(108%) !important;
  visibility: hidden;
  transition: transform .42s cubic-bezier(.22, .8, .3, 1), visibility 0s linear .42s !important;
  top: 58px !important;
  bottom: auto !important;
  height: calc(100dvh - 58px) !important;
  max-height: calc(100dvh - 58px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-content{
    -webkit-transform: translateX(0) !important; transform: translateX(0) !important;
    visibility: visible;
    transition: transform .42s cubic-bezier(.22, .8, .3, 1), visibility 0s linear 0s !important;
  }
  /* 薄暗い幕（タップで閉じる＝Cocoon標準の label#navi-menu-close） */
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-close{
  animation: hsjDrawerDim .32s ease both;
}
  @keyframes hsjDrawerDim{ from{ opacity: 0; } to{ opacity: 1; } }
  html:has(#navi-menu-input:checked){ overflow: hidden; }

  /* 見出し「ご案内」＋あじさい */
  html body .mobile-menu-buttons #navi-menu-content::before{
  content: "ご案内";
  display: block;
  flex: 0 0 auto;
  margin: 0 18px 0 22px;
  background: radial-gradient(circle, #A2472A 0 3px, transparent 3.5px) left 2px bottom 15px / 8px 8px no-repeat;
}

  /* 項目リスト */
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer{
  margin: 0;
  flex: 0 0 auto;
}
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li{
    display: block; margin: 0; padding: 0; list-style: none;
    border-bottom: 1px solid rgba(58, 51, 44, .08);
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li:last-child{ border-bottom: 0; }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a{
  display: flex;
  align-items: center;
  padding: 6px 34px 6px 26px;
  border-radius: 12px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif !important;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: .08em;
  color: #3A332C !important;
  text-decoration: none !important;
  background: transparent;
  -webkit-tap-highlight-color: rgba(162, 71, 42, .10);
  transition: background-color .2s ease, color .2s ease;
}
  /* 左の朱の小さな点 */
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a::before{
    content: ""; position: absolute; left: 10px; top: 50%;
    width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: #A2472A; opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
  }
  /* 右の小さな山形 */
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a::after{
    content: ""; position: absolute; right: 16px; top: 50%;
    width: 7px; height: 7px; margin-top: -4px;
    border-top: 1.5px solid #B5A99B; border-right: 1.5px solid #B5A99B;
    transform: rotate(45deg);
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a:hover,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a:active{
    background: rgba(162, 71, 42, .06);
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a:focus-visible{
    outline: 2px solid #A2472A; outline-offset: -2px;
  }
  /* 現在地（トップの「はじめての方へ」＝/#first は除く） */
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-item:not(.menu-item-home) > a,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-page-ancestor > a,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-ancestor > a,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-parent > a{
    background: rgba(162, 71, 42, .08);
    color: #86391F !important; font-weight: 700;
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-item:not(.menu-item-home) > a::before,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-page-ancestor > a::before,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-ancestor > a::before,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-parent > a::before{
    opacity: 1; transform: scale(1.35);
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-menu-item:not(.menu-item-home) > a::after,
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer li.current-page-ancestor > a::after{
    border-color: #A2472A;
  }
  /* 子項目（メニューに子を足したとき用） */
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer .sub-menu{
    list-style: none; margin: -4px 0 8px; padding: 0 0 0 18px;
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer .sub-menu li{ border-bottom: 0; }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer .sub-menu a{
    min-height: 44px; font-size: 15px; color: #5E554B !important;
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer .sub-menu a::before{
    width: 8px; height: 1.5px; margin-top: -1px; border-radius: 1px; opacity: .45;
  }

  /* 下部の連絡先（フッターコード④-2 で追加される .hsj-dfoot） */
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot{
  margin: 14px 18px 0;
  padding: 18px 4px 6px;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  color: #3A332C;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot-name{
    display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
    font-family: "Klee One", "Zen Maru Gothic", sans-serif; font-weight: 600;
    font-size: 17px; letter-spacing: .1em; line-height: 1.3; color: #3A332C;
  }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot-name::before{
    content: ""; flex: 0 0 auto; width: 22px; height: 22px;
    background: url("https://howsenji.com/wp-content/uploads/2026/07/fuji-clear.png") no-repeat center / contain;
  }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot-addr{
  margin: 0 0 14px;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a{
  display: flex;
  margin: 0 0 10px;
  padding: 8px 14px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  line-height: 1.3;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a:active{ transform: scale(.98); }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a:focus-visible{ outline: 2px solid #3A332C; outline-offset: 2px; }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a.hsj-dfoot-tel{
    background: #A2472A; color: #FFFDF8 !important; box-shadow: 0 3px 10px rgba(162, 71, 42, .22);
  }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a.hsj-dfoot-tel:hover{ background: #86391F; }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a.hsj-dfoot-tel::before{
    content: ""; width: 18px; height: 18px; flex: 0 0 auto;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDF8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h3.2l1.6 4.3-2 1.3a11 11 0 0 0 5.1 5.1l1.3-2 4.3 1.6V17a2.5 2.5 0 0 1-2.7 2.5C9.6 19 5 14.4 4.5 6.2A2.5 2.5 0 0 1 5 3.5z'/%3E%3C/svg%3E");
  }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a.hsj-dfoot-form{
    background: #FFFDF8; color: #86391F !important; border: 1.5px solid rgba(162, 71, 42, .55);
  }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a.hsj-dfoot-form:hover{ background: #FFF6EE; }
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot small{
    display: block; margin: 2px 0 0; text-align: center; font-size: 11.5px; color: #8A7F73; letter-spacing: .04em;
  }

  /* いちばん下に草の線画 */
  html body .mobile-menu-buttons #navi-menu-content::after{
  content: "";
  display: block;
  flex: 0 0 auto;
  margin-top: auto;
  background: none;
  min-height: 40px;
}
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-content::after{
    background: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") center bottom 4px / 128% auto no-repeat;
    opacity: .9;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce){
  html body .mobile-menu-buttons #navi-menu-content,
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-content{ transition: none !important; }
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-close{ animation: none; }
}
/* ===== hsj-mbar-cream-v1 (2026-10-28) ここから =====
   スマホの上部バー .hsj-mbar と、その下の帯（「六百七十余年、念仏の響きに…」= ⑤ hsj-headrow の #hsj-creed-side を包む #header-container 一式）を
   メニュー引き出し（hsj-drawer-v1）と同じ生成り #FBF6EC に。線はやわらかい暖色。慶讃ロゴの白地は乗算でなじませる。
   1023px以下のみ。PCのヘッダーはもともと生成りに近い白(#FFFDF8)なので触らない。 */
@media (max-width: 1023px){
  html body .hsj-mbar{
  border-bottom: 1px solid #E8DDCB !important;
}
  html body #header-container,
  html body #header-container-in,
  html body #header,
  html body .header-in,
  html body .hsj-headrow,
  html body .hsj-nameblock,
  html body .mobile-header-menu-buttons{
    background-color: #FBF6EC !important;
  }
  html body #header-container{
  position: relative;
  border-bottom: 1px solid #ECE3D4 !important;
}
  html body .mobile-header-menu-buttons{ border-bottom-color: #ECE3D4 !important; }
  /* 慶讃ロゴ（白地のJPG）を生成りになじませる：白を乗算で消し、画像の縁の細い灰色の枠は5%拡大で外に逃がす */
  html body .hsj-mbar .hsj-mbar-keisan{
  mix-blend-mode: multiply;
  background-size: 106% auto !important;
  background-position: center !important;
  height: var(--hsj-mk) !important;
  width: calc(var(--hsj-mk) * 2.037) !important;
  margin: 0 0 0 auto !important;
}
}
/* ===== hsj-spbar-cream-v1 ここから（スマホ下部の 電話する・アクセス・相談フォーム のバーを生成りに） ===== */
@media screen and (max-width: 834px){
  html body .article nav.hsj2-sp-bar{ background: rgba(251,246,236,.97) !important; border-top: 1px solid #E8DDCB !important; box-shadow: 0 -2px 10px rgba(58,51,44,.05); }
}
/* ===== hsj-spbar-all-v1 (2026-10-28) ここから =====
   トップ以外のページにも、スマホ下部の「電話する／アクセス／相談フォーム」バーを表示（834px以下）。
   バー本体は フッター用コードの hsj-spbar-all-v1 が body の最後に追加（トップは本文に nav.hsj2-sp-bar があるので追加しない）。
   見た目はトップの .hsj2-sp-bar ＋ hsj-spbar-cream-v1 と同じ。メニューを開いている間は隠す。PCでは出ない。 */
html body > nav.hsj-spbar-all{ display: none; }
@media screen and (max-width: 834px){
  html body > nav.hsj-spbar-all{
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    margin: 0; box-sizing: border-box;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 236, .97);
    border-top: 1px solid #E8DDCB;
    box-shadow: 0 -2px 10px rgba(58, 51, 44, .05);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
    transition: opacity .25s ease, visibility .25s ease;
  }
  html body > nav.hsj-spbar-all a{
    display: block; text-align: center;
    font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
    font-weight: 700; font-size: 12.5px; line-height: 1.4; letter-spacing: normal;
    color: #3A332C; text-decoration: none; padding: 6px 0; border: 0; background: none;
    -webkit-tap-highlight-color: rgba(162, 71, 42, .10);
  }
  html body > nav.hsj-spbar-all a span{ display: block; font-size: 19px; }
  html body > nav.hsj-spbar-all a.tel{ background: #A2472A; color: #FFFFFF; border-radius: 12px; }
  html body > nav.hsj-spbar-all a:focus-visible{ outline: 2px solid #A2472A; outline-offset: 2px; }
  html body > nav.hsj-spbar-all a.tel:focus-visible{ outline-color: #3A332C; }
  /* フッター最下部（コピーライト等）がバーに隠れないよう余白を足す */
  html body.hsj-spbar-on .footer{ padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
  html body.hsj-spbar-on .go-to-top{ bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  /* メニュー（引き出し）を開いている間は隠す */
  html:has(#navi-menu-input:checked) body > nav.hsj-spbar-all{ opacity: 0; visibility: hidden; }
}
/* ===== hsj-footer-cream-v1 (2026-10-28) ここから =====
   フッター（全ページ・スマホ／PC）を新しい生成りの配色に。ページ地より一段深い生成り #F5EEE1＋上端に草の線画。
   寺号は Klee One、メニュー・ボタンは Zen Maru Gothic、お問い合わせボタンは朱の角丸、慶讃ロゴは乗算で白地を消す。 */
html body #footer.footer{
  padding-top: 34px;
}
html body #footer.footer::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px;
  background: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") center top / auto 46px repeat-x;
  opacity: .75; pointer-events: none;
}
html body #footer.footer::after{ filter: grayscale(1) sepia(.3); opacity: .05; }
html body #footer,
html body #footer .footer-in,
html body #footer .footer-widgets,
html body #footer .textwidget,
html body #footer aside,
html body #footer .hsj-ft,
html body #footer .hsj-ft-nav{ color: #4E463D !important; }
html body #footer .hsj-ft{ font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; }
html body #footer .hsj-ft-name{
  font-family: "Klee One", "Zen Maru Gothic", sans-serif; font-weight: 600;
  font-size: 18px; line-height: 1.6; letter-spacing: .12em; color: #3A332C !important;
}
html body #footer .hsj-ft-addr{ font-size: 13.5px; letter-spacing: .04em; color: #6B6158 !important; }
html body #footer .hsj-ft-tel a{
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; letter-spacing: .08em; color: #3A332C !important;
}
html body #footer .hsj-ft-lead{ color: #6B6158 !important; }
html body #footer a.hsj-ft-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 30px; box-sizing: border-box;
  background: #A2472A !important; color: #FFFDF8 !important;
  border: 0 !important; border-radius: 999px !important;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .08em;
  box-shadow: 0 3px 10px rgba(162, 71, 42, .2);
  text-decoration: none !important;
  transition: background-color .2s ease, transform .15s ease;
}
html body #footer a.hsj-ft-btn::after{
  content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
html body #footer a.hsj-ft-btn:hover{ background: #86391F !important; color: #FFFDF8 !important; }
html body #footer a.hsj-ft-btn:active{ transform: scale(.98); }
html body #footer a.hsj-ft-btn:focus-visible{ outline: 2px solid #3A332C; outline-offset: 3px; }
html body #footer .hsj-ft-nav a{
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; font-weight: 500;
  color: #3A332C !important; letter-spacing: .04em;
}
html body #footer .hsj-ft-nav a:hover{ color: #A2472A !important; text-decoration: none; }
html body #footer .hsj-ft-nav li::before{ color: #C9A08C; }
html body #footer .hsj-ft-nav-m a{ display: inline-block; padding: 6px 2px; font-size: 13.5px; }
/* スマホの横並びメニューでは「└」が行頭に浮くので消す（PCの字下げはそのまま） */
html body #footer .hsj-ft-nav-m .hsj-ft-sub{ padding-left: 0 !important; }
html body #footer .hsj-ft-nav-m .hsj-ft-sub::before{ content: none; }
html body #footer .hsj-ft-keisan img{
  mix-blend-mode: multiply; box-shadow: none !important; border-radius: 0 !important;
  clip-path: inset(3.2% 1.8%);
}
html body #footer .hsj-ft-legal a{ color: #8A7F73 !important; }
html body #footer .hsj-ft-legal a:hover{ color: #3A332C !important; }
html body #footer .footer-bottom,
html body #footer .footer-bottom a,
html body #footer .copyright{ color: #8A7F73 !important; font-family: "Zen Maru Gothic", sans-serif; letter-spacing: .06em; }
@media (max-width: 834px){
  html body #footer.footer{ padding-top: 30px; }
  html body #footer.footer::before{ height: 38px; background-size: auto 38px; }
  html body #footer .hsj-ft-m .hsj-ft-tel a{ font-size: 23px; }
}
/* ===== hsj-inner-hero-illust-v1 (2026-10-28) ここから =====
   下層の固定ページで、本文の最初の写真（.entry-content 直下の最初の figure.wp-block-image）に、
   トップのヒーローと同じ淡い線画（木・松・あじさい・親子・草）を写真の縁に重ねる。本文は変更なし（CSSの ::before/::after のみ）。
   ページごとの組み合わせ: about＝木＋あじさい／hoen＝木＋親子／ohaka・bochi＝松＋あじさい／godobo＝2枚組の左の写真に松＋草／その他のページ（アクセス・改葬・手引き・お問い合わせなど、冒頭に写真が無いページ）は対象外。
   投稿（アイキャッチ自体が挿絵のものが多い）とトップは対象外。 */
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child{
  position: relative; overflow: visible;
}
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type{ margin-bottom: 64px !important; }
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::after,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::after{
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  background-repeat: no-repeat;
}
/* 左：木（既定） */
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before{
  left: -46px;
  bottom: -40px;
  background-size: contain;
  background-position: left bottom;
}
/* 右：草（既定）。写真の下端に沿って淡く */
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::after,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::after{
  right: -16px; bottom: -22px; left: 26%;
  height: clamp(40px, 4.4vw, 56px);
  background-image: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png");
  background-size: auto 100%; background-position: right bottom; background-repeat: repeat-x;
  opacity: .9;
}
/* about：木＋あじさい */
html body.page:not(.home).page-id-22 .article .entry-content > figure.wp-block-image:first-of-type::after{
  left: auto;
  right: -34px;
  bottom: -40px;
  height: auto;
  background-size: contain;
  background-repeat: no-repeat;
}
/* hoen：木＋親子 */
html body.page:not(.home).page-id-24 .article .entry-content > figure.wp-block-image:first-of-type::after{
  left: auto; right: -20px; bottom: -44px;
  width: clamp(92px, 9.5vw, 128px); height: auto; aspect-ratio: 420 / 644;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-family.png");
  background-size: contain; background-repeat: no-repeat; opacity: 1;
}
/* お墓のページ（ohaka・bochi・godobo）：左は松 */
html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before{
  width: clamp(96px, 10vw, 136px);
  left: -40px;
  bottom: -36px;
}
/* ohaka・bochi：右にあじさい */
html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::after,
html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::after{
  left: auto;
  right: -30px;
  bottom: -38px;
  height: auto;
  background-size: contain;
  background-repeat: no-repeat;
}
/* 木はトップと同じくゆっくり揺れる */
@media (prefers-reduced-motion: no-preference){
  html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::before{
    animation: hsjInIllSway 6s ease-in-out infinite alternate;
  }
}
@keyframes hsjInIllSway{ from{ transform: rotate(-1.2deg); } to{ transform: rotate(1.2deg); } }
/* スマホ：小さく、画面からはみ出さない位置に */
@media (max-width: 760px){
  html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type,
  html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child{
    margin-bottom: 48px !important;
  }
  html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::before,
  html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before{
    left: -10px; bottom: -26px; width: 70px;
  }
  html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::before,
  html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::before,
  html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before{
    width: 64px; left: -8px; bottom: -22px;
  }
  html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::after,
  html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::after{
    right: -6px; bottom: -14px; left: 30%; height: 30px;
  }
  html body.page:not(.home).page-id-22 .article .entry-content > figure.wp-block-image:first-of-type::after,
  html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::after,
  html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::after{
    left: auto; right: -8px; bottom: -24px; width: 104px; height: auto;
  }
  html body.page:not(.home).page-id-24 .article .entry-content > figure.wp-block-image:first-of-type::after{
    left: auto; right: -4px; bottom: -28px; width: 58px; height: auto;
  }
}
/* ===== hsj-drawer-fit-v1 (2026-10-28) ここから =====
   スマホのメニュー引き出しが、下にツールバーのあるブラウザ（Android の Brave など）で画面下に隠れる対策。
   高さを「実際に見えている画面の高さ（100dvh、未対応なら100vh）− 上のバー58px」に合わせ、はみ出す分は引き出しの中でスクロールできるようにする。
   あわせて行と見出しを少し詰め、390×740程度の画面なら「相談フォーム」と下の草までスクロールなしで収まるようにする。 */
@media (max-width: 1023px){
    html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-close{
  display: block !important;
  top: 58px !important;
  background: rgba(58, 51, 44, .34) !important;
  opacity: 1 !important;
  z-index: 9994 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  height: calc(100dvh - 58px) !important;
  bottom: auto !important;
}
  html body .mobile-menu-buttons #navi-menu-content::before{
  position: relative;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .32em;
  color: #7A6F64;
  border-bottom: 1px solid rgba(58, 51, 44, .1);
  padding: 16px 0 10px 16px;
}
  html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-content::before{
    background:
      radial-gradient(circle, #A2472A 0 3px, transparent 3.5px) left 2px bottom 13px / 8px 8px no-repeat,
      url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ajisai.png") right 0 bottom 4px / auto 38px no-repeat;
  }
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer{
  list-style: none;
  padding: 4px 12px 2px;
}
  html body .mobile-menu-buttons #navi-menu-content .menu-drawer a{
  position: relative;
  min-height: 47px;
  padding-top: 4px;
  padding-bottom: 4px;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot{
  flex: 0 0 auto;
  border-top: 1px solid rgba(58, 51, 44, .1);
  text-align: left;
  margin-top: 8px;
  padding-top: 12px;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot-addr{
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: #7A6F64;
  margin-bottom: 10px;
}
  html body .mobile-menu-buttons #navi-menu-content .hsj-dfoot a{
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .15s ease;
  min-height: 48px;
  margin-bottom: 8px;
}
  }
/* ===== hsj-card-pad-v1 (2026-10-28) ここから =====
   ブログ一覧（/blog/）とカテゴリー一覧（法話・作法）の角丸カードで、題名・抜粋・日付がカードの縁に接していたのを、
   文字の部分にだけ内側の余白を付けて読みやすく。写真（サムネイル）は今まで通りカードの端まで。
   お知らせ一覧（category-5、日付とラベルの行形式）は対象外。 */
html body.blog #list a.entry-card-wrap .entry-card-content,
html body.archive:not(.category-5) #list a.entry-card-wrap .entry-card-content{
  padding: 16px 18px 18px !important; box-sizing: border-box;
}
html body.blog #list a.entry-card-wrap .entry-card-snippet,
html body.archive:not(.category-5) #list a.entry-card-wrap .entry-card-snippet{ margin-bottom: 12px !important; }
@media (max-width: 480px){
  html body.blog #list a.entry-card-wrap .entry-card-content,
  html body.archive:not(.category-5) #list a.entry-card-wrap .entry-card-content{ padding: 14px 16px 16px !important; }
}
/* ===== hsj-hero-ratio-fix-v1 (2026-10-28) ここから =====
   下層ページの最初の写真が横に引き伸ばされていた不具合の修正。
   原因：hsj-inner-v1 の「aspect-ratio:21/9（スマホ3/2）＋max-height:440px＋object-fit:cover」が、
   以前の v67 の「object-fit:fill !important」に cover を打ち消され、21:9 の枠に写真が押し込まれていた。
   写真は元の縦横比のまま（切り抜き・引き伸ばしなし）。線画（::before/::after）はそのまま。人物の正円写真は対象外。 */
html body:not(.home) .article .entry-content > figure.wp-block-image:first-of-type:not(.hsj-prof-photo):not(.hsj-ph-en) img,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child img{
  aspect-ratio: auto !important; height: auto !important; max-height: none !important;
  width: 100% !important; object-fit: fill !important;
}
/* ===== hsj-align-fix-v1 (2026-10-28) ここから =====
   折りたたみカードの見出しが左に寄り、下の中身（表・本文）と中心がずれていた不具合の修正。
   原因：hsj-inner-v1 の「html body:not(.home) .article .entry-content h2」（margin 上 56〜84px!important・波線 ::after を中央に表示）が、
   折りたたみ見出し h2.hsj-acc-ttl 用の「margin:0・左寄せ・波線なし」の指定に勝ち、上に大きな空き＋左寄せの題＋中央の波線になっていた。
   さらに details.hsj-acc だけ幅の上限がなく（本文幅いっぱい）、下の表や他のカード（820px）より広かった。
   対策：カードの幅を他のカードと同じ 820px・中央に。題と副題は中央、左右の余白を同じにして、右の山形（開閉の印）はそのまま。
   文言・構造・色・写真の縦横比は変えない。何も隠さない。 */
html body:not(.home) .article .entry-content details.hsj-acc{
  box-sizing: border-box !important; width: 100% !important; max-width: 820px !important;
  margin-left: auto !important; margin-right: auto !important;
}
html body:not(.home) .article .entry-content details.hsj-acc > summary{
  padding: 22px 56px !important; text-align: center !important;
}
html body:not(.home) .article .entry-content details.hsj-acc > summary > .hsj-acc-ttl{
  display: block !important; margin: 0 auto !important; padding: 0 !important;
  text-align: center !important; line-height: 1.5 !important;
}
html body:not(.home) .article .entry-content details.hsj-acc > summary > h2.hsj-acc-ttl::after{
  margin: 10px auto 0 !important;
}
html body:not(.home) .article .entry-content details.hsj-acc > summary > .hsj-acc-sub{
  display: block !important; margin: 8px auto 0 !important; text-align: center !important;
}
/* 同じ形の折りたたみ（表白・お墓の建立・骨壺・懇志）も、題を中央に、左右の余白を同じに */
html body:not(.home) .article .entry-content details.hsj-hyo > summary,
html body:not(.home) .article .entry-content details.hsj-boti-more > summary,
html body:not(.home) .article .entry-content details.hsj-kata-more > summary,
html body:not(.home) .article .entry-content details.hsj-fee2-more > summary{
  padding-left: 3.2em !important; padding-right: 3.2em !important; text-align: center !important;
}
html body:not(.home) .article .entry-content details.hsj-hyo > summary > .hsj-hyo-ttl,
html body:not(.home) .article .entry-content details.hsj-hyo > summary > .hsj-hyo-sub{
  display: block !important; text-align: center !important;
}
/* 永代合同墓・墓地の折りたたみ：題はもとから中央だが、右だけ広い余白で 13px 左にずれていた */
html body:not(.home) .article .entry-content details.hsj-ohl-acc > summary{
  padding-left: 3.4em !important; padding-right: 3.4em !important;
}
@media (max-width: 600px){
  html body:not(.home) .article .entry-content details.hsj-acc > summary{ padding: 18px 44px !important; }
  html body:not(.home) .article .entry-content details.hsj-hyo > summary,
  html body:not(.home) .article .entry-content details.hsj-boti-more > summary,
  html body:not(.home) .article .entry-content details.hsj-kata-more > summary,
  html body:not(.home) .article .entry-content details.hsj-fee2-more > summary,
  html body:not(.home) .article .entry-content details.hsj-ohl-acc > summary{ padding-left: 2.8em !important; padding-right: 2.8em !important; }
}
/* ===== hsj-balance-fix-v1 (2026-10-28) ここから ===== */
/* 1. トップ：はじめての方へ・GRAVES の導入文（hsj2-lead）を中央に。
      「.hsj2 p{margin:0 0 1em}」が「.hsj2-lead{margin:0 auto}」に勝ち、文の箱が左に寄っていた */
html body .article .hsj2 p.hsj2-lead{ margin-left:auto !important; margin-right:auto !important; }

/* 2. トップ：はじめての方へ の合掌の家族の絵を、右上の隅から見出しの下・中央へ（縦横比はそのまま） */
html body .article .hsj2 #first .hsj2-in{ display:flex; flex-direction:column; }
html body .article .hsj2 #first .hsj2-head{ order:1; margin-bottom:22px; }
html body .article .hsj2 #first img.hsj2-first-ill{ order:2; position:static !important; display:block !important; align-self:center; width:150px !important; max-width:40%; height:auto !important; margin:0 auto 24px !important; }
html body .article .hsj2 #first p.hsj2-lead{ order:3; }
html body .article .hsj2 #first p.hsj2-first-note{ order:4; }
@media screen and (max-width:834px){
  html body .article .hsj2 #first .hsj2-head{ margin-bottom:18px; }
  html body .article .hsj2 #first img.hsj2-first-ill{ width:120px !important; margin-bottom:18px !important; }
}

/* 3. トップ：お問い合わせの注記の行末（「す。」だけが次の行に落ちる）を整える */
html body .article .hsj2-contact-box p.small{ max-width:34em; margin-left:auto; margin-right:auto; text-wrap:balance; }

/* 4. 法話・お知らせ一覧：先頭の大きいカードの下に残っていた空き（56px）をなくし、写真と文を箱の中で上下に釣り合わせる */
html body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type{ padding-bottom:0 !important; }
html body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card{ height:auto !important; }
html body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-content{ padding-right:32px; }
@media (max-width:600px){
  html body.blog:not(.paged) #list > a.entry-card-wrap:first-of-type .entry-card-content{ padding:0 18px 20px; }
}

/* 6. お問い合わせ：カードの下の個人情報の一文が、カードに接して左寄せだったので、間をあけて中央に */
html body.page-id-30 .article .entry-content{ text-align:center; }
html body.page-id-30 .article .entry-content > .hsj3-crumb{ text-align:left; }
html body.page-id-30 .article .entry-content > .hsj-ct{ margin-bottom:32px; }

/* hsj-blogcard-nodomain-v1 start */
.blogcard-site,.internal-blogcard-site,.external-blogcard-site{display:none !important}
.blogcard-footer{justify-content:flex-end}

/* hsj-adminbar-offset-v1 start */
@media (max-width: 1023px){
  html body.admin-bar #wpadminbar{ position: fixed; }
  html body.admin-bar .hsj-mbar{ top: 46px; }
  html body.admin-bar .mobile-menu-buttons #navi-menu-content{ top: 104px !important; }
}
/* hsj-guide-talk-v1 start */
/* 住職の吹き出し案内（.hsj-guide-talk）。既存の .hsj-guide（案内カード）とは別の部品。
   画像は HTML の img 1か所だけ。縦横比は画像のまま（height:auto）。
   v8：住職は右、吹き出しは左（住職は向かって左の手＝右手を上げて案内）。HTML も「吹き出し → 住職」の順。
   --hsjt-w：住職の幅／--hsjt-hand：上げた手のひらの高さ÷住職の幅（v8 は 0.280×1123/556 ≒ 0.566。差し替え時はここだけ調整）
   --hsjt-palmx：手のひらの横位置÷住職の幅（v8 は 0.104。スマホの下向きしっぽの位置に使う） */
html body .article .entry-content .hsj-guide-talk{
  --hsjt-w:160px; --hsjt-hand:.566; --hsjt-palmx:.104; --hsjt-tail:30px;
  display:flex; flex-direction:row; justify-content:center; align-items:flex-start;
  gap:20px; box-sizing:border-box; width:100%; max-width:760px;
  margin:2.6em auto 3em; padding:0 8px;
}
html body .article .entry-content .hsj-guide-talk-fig{
  flex:0 0 var(--hsjt-w); width:var(--hsjt-w); margin:0; padding:0; text-align:center;
}
html body .article .entry-content .hsj-guide-talk-fig img{
  display:block; width:100% !important; max-width:100%; height:auto !important;
  aspect-ratio:auto !important; object-fit:contain; border-radius:0 !important; box-shadow:none; margin:0 auto;
  -webkit-mask-image:none !important; mask-image:none !important;
}
html body .article .entry-content .hsj-guide-talk-name{
  margin:.5em 0 0; font-family:"Zen Maru Gothic",sans-serif; font-size:13px; line-height:1.4;
  letter-spacing:.18em; color:#6B6158; text-align:center;
}
html body .article .entry-content .hsj-guide-talk-bubble{
  position:relative; flex:1 1 auto; min-width:0; max-width:500px; box-sizing:border-box;
  margin-top:calc(var(--hsjt-w) * var(--hsjt-hand) - var(--hsjt-tail) - 8px);
  padding:22px 28px; background:#FFFDF8; border:1px solid #C8A878; border-radius:26px;
  box-shadow:0 6px 18px rgba(58,51,44,.06);
}
/* しっぽ：吹き出しの右辺から、住職の上げた手のひらへ */
html body .article .entry-content .hsj-guide-talk-bubble::before{
  content:""; position:absolute; right:-9px; left:auto; top:var(--hsjt-tail); width:16px; height:16px;
  background:#FFFDF8; border-right:1px solid #C8A878; border-top:1px solid #C8A878;
  border-top-right-radius:4px; transform:rotate(45deg); box-sizing:border-box;
}
html body .article .entry-content .hsj-guide-talk-bubble p{
  margin:0; padding:0; font-family:"Zen Maru Gothic",sans-serif; font-weight:500;
  font-size:16px; line-height:1.95; letter-spacing:.04em; color:#3A332C; text-align:left;
}
html body .article .entry-content .hsj-guide-talk-bubble p + p{ margin-top:.5em; }
html body .article .entry-content .hsj-guide-talk-bubble strong{ color:#A2472A; font-weight:700; background:none; white-space:nowrap; }
@media screen and (max-width:640px){
  html body .article .entry-content .hsj-guide-talk{ --hsjt-w:108px; --hsjt-tail:24px; gap:14px; margin:2em auto 2.4em; padding:0; }
  html body .article .entry-content .hsj-guide-talk-bubble{ padding:16px 18px; border-radius:20px; }
  html body .article .entry-content .hsj-guide-talk-bubble::before{ right:-7px; width:12px; height:12px; }
  html body .article .entry-content .hsj-guide-talk-bubble p{ font-size:14.5px; line-height:1.85; letter-spacing:.02em; }
  html body .article .entry-content .hsj-guide-talk-name{ font-size:11.5px; letter-spacing:.12em; }
}
/* スマホ（〜480px）：吹き出しを上、住職をその下の中央に。しっぽは下向きで、住職の上げた手のひらの真上へ */
@media screen and (max-width:480px){
  html body .article .entry-content .hsj-guide-talk{ --hsjt-w:104px; flex-direction:column; align-items:center; gap:12px; }
  html body .article .entry-content .hsj-guide-talk-bubble{ flex:0 0 auto; width:100%; max-width:440px; margin-top:0; }
  html body .article .entry-content .hsj-guide-talk-bubble::before{
    right:auto; left:calc(50% - var(--hsjt-w) / 2 + var(--hsjt-w) * var(--hsjt-palmx) - 6px);
    top:auto; bottom:-7px; transform:rotate(135deg);
  }
}

/* hsj-guide-talk-v2 start */
/* 追記のみ（v1 ブロックは変更しない）。style.css の末尾、hsj-guide-talk-v1 の後ろに貼る。
   1) .hsj-guide-talk.is-gassho：合掌の住職（gassho-v7）用の幅・しっぽ位置
   2) 法話・お知らせ（/blog/ 記事一覧）用：記事一覧トップのウィジェット（.widget-index-top、見出し帯 .hsj-bloghead の下）でも
      v1 と同じ見た目になるよう、v1 の規則を body.blog .widget-index-top 用に複製（v1 は .article .entry-content 内だけに効くため）。
      このウィジェットはカテゴリー等の一覧にも出るので、/blog/ 以外では隠す */

/* 合掌の住職（gassho-v7, 439×1140）：<div class="hsj-guide-talk is-gassho">
   顔の大きさを talk-v8 と揃える幅（頭の幅 talk 174/556・gassho 162/439 → 160px×0.848 ≒ 136px）。
   しっぽは胸の上（合わせた手の先・肩の高さ）へ：y = 0.235×1140 = 268px → ÷幅439 = 0.610。スマホの下向きしっぽは顔の真上（横 0.5）。 */
html body .article .entry-content .hsj-guide-talk.is-gassho,
html body.blog .widget-index-top .hsj-guide-talk.is-gassho{
  gap: 14px;
}
@media screen and (max-width:640px){
html body .article .entry-content .hsj-guide-talk.is-gassho,
html body.blog .widget-index-top .hsj-guide-talk.is-gassho{
  gap: 10px;
}
}

/* --- /blog/ 記事一覧トップ（ウィジェット）用の v1 複製 --- */
html body.blog .widget-index-top .hsj-guide-talk{
  --hsjt-w:160px; --hsjt-hand:.566; --hsjt-palmx:.104; --hsjt-tail:30px;
  display:flex; flex-direction:row; justify-content:center; align-items:flex-start;
  gap:20px; box-sizing:border-box; width:100%; max-width:760px;
  margin:2.6em auto 3em; padding:0 8px;
}
html body.blog .widget-index-top .hsj-guide-talk-fig{
  flex:0 0 var(--hsjt-w); width:var(--hsjt-w); margin:0; padding:0; text-align:center;
}
html body.blog .widget-index-top .hsj-guide-talk-fig img{
  display:block; width:100% !important; max-width:100%; height:auto !important;
  aspect-ratio:auto !important; object-fit:contain; border-radius:0 !important; box-shadow:none; margin:0 auto;
  -webkit-mask-image:none !important; mask-image:none !important;
}
html body.blog .widget-index-top .hsj-guide-talk-name{
  margin:.5em 0 0; font-family:"Zen Maru Gothic",sans-serif; font-size:13px; line-height:1.4;
  letter-spacing:.18em; color:#6B6158; text-align:center;
}
html body.blog .widget-index-top .hsj-guide-talk-bubble{
  position:relative; flex:1 1 auto; min-width:0; max-width:500px; box-sizing:border-box;
  margin-top:calc(var(--hsjt-w) * var(--hsjt-hand) - var(--hsjt-tail) - 8px);
  padding:22px 28px; background:#FFFDF8; border:1px solid #C8A878; border-radius:26px;
  box-shadow:0 6px 18px rgba(58,51,44,.06);
}
/* しっぽ：吹き出しの右辺から、住職の上げた手のひらへ */
html body.blog .widget-index-top .hsj-guide-talk-bubble::before{
  content:""; position:absolute; right:-9px; left:auto; top:var(--hsjt-tail); width:16px; height:16px;
  background:#FFFDF8; border-right:1px solid #C8A878; border-top:1px solid #C8A878;
  border-top-right-radius:4px; transform:rotate(45deg); box-sizing:border-box;
}
html body.blog .widget-index-top .hsj-guide-talk-bubble p{
  margin:0; padding:0; font-family:"Zen Maru Gothic",sans-serif; font-weight:500;
  font-size:16px; line-height:1.95; letter-spacing:.04em; color:#3A332C; text-align:left;
}
html body.blog .widget-index-top .hsj-guide-talk-bubble p + p{ margin-top:.5em; }
html body.blog .widget-index-top .hsj-guide-talk-bubble strong{ color:#A2472A; font-weight:700; background:none; white-space:nowrap; }
@media screen and (max-width:640px){
  html body.blog .widget-index-top .hsj-guide-talk{ --hsjt-w:108px; --hsjt-tail:24px; gap:14px; margin:2em auto 2.4em; padding:0; }
  html body.blog .widget-index-top .hsj-guide-talk-bubble{ padding:16px 18px; border-radius:20px; }
  html body.blog .widget-index-top .hsj-guide-talk-bubble::before{ right:-7px; width:12px; height:12px; }
  html body.blog .widget-index-top .hsj-guide-talk-bubble p{ font-size:14.5px; line-height:1.85; letter-spacing:.02em; }
  html body.blog .widget-index-top .hsj-guide-talk-name{ font-size:11.5px; letter-spacing:.12em; }
}
/* スマホ（〜480px）：吹き出しを上、住職をその下の中央に。しっぽは下向きで、住職の上げた手のひらの真上へ */
@media screen and (max-width:480px){
  html body.blog .widget-index-top .hsj-guide-talk{ --hsjt-w:104px; flex-direction:column; align-items:center; gap:12px; }
  html body.blog .widget-index-top .hsj-guide-talk-bubble{ flex:0 0 auto; width:100%; max-width:440px; margin-top:0; }
  html body.blog .widget-index-top .hsj-guide-talk-bubble::before{
    right:auto; left:calc(50% - var(--hsjt-w) / 2 + var(--hsjt-w) * var(--hsjt-palmx) - 6px);
    top:auto; bottom:-7px; transform:rotate(135deg);
  }
}
html body:not(.blog) .widget-index-top .hsj-guide-talk{ display:none !important; }

/* ===== hsj-godobo-flow-v1 (2026-10-29) ここから ===== */
/* 永代合同墓のご案内（固定ページ1157）：PC幅で本文・記名石・写真・流れを、
   「納骨の形」「懇志のご案内」と同じ820pxの中央の列にそろえる。
   スマホ（1023px以下）は変更なし。写真の縦横比は変えない（幅だけ縮める）。 */
@media screen and (min-width: 1024px) {
  html body.page-id-1157 .article .entry-content > p,
  html body.page-id-1157 .article .entry-content > .hsj-nk,
  html body.page-id-1157 .article .entry-content > .hsj-note,
  html body.page-id-1157 .article .entry-content > .hsj-ohaka {
    box-sizing: border-box;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== hsj-ohaka-flow-v1 (2026-10-29) ここから ===== */
/* 墓地のご案内（固定ページ1158）・墓じまい・改葬の手続き（固定ページ1159）：
   hsj-godobo-flow-v1（1157）と同じく、PC幅（1024px以上）で本文の段落と「流れ」（hsj-ohaka）を
   820pxの中央の列にそろえる（改葬ページは手続きの囲み #hsj-kaiso-v3 も 860px→820px）。スマホ・タブレット（1023px以下）は変更なし。写真は対象外（縦横比も変えない）。 */
@media screen and (min-width: 1024px) {
  html body.page-id-1158 .article .entry-content > p,
  html body.page-id-1158 .article .entry-content > .hsj-ohaka,
  html body.page-id-1159 .article .entry-content > p,
  html body.page-id-1159 .article .entry-content > #hsj-kaiso-v3 {
    box-sizing: border-box;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== hsj-topphoto-v1 (2026-10-29・承認済み) ここから =====
   下層の固定ページの先頭の写真を、PC・タブレット幅（768px以上）で最大 720px・中央に縮める。
   ・法泉寺とみ教え（22）・法座・仏事（24）・永代合同墓・墓地（26）・墓地のご案内（1158）：
     本文直下の最初の写真（いまは本文幅いっぱいの 1040px）→ 最大 720px。
   ・永代合同墓のご案内（1157）：先頭の写真2枚組のグループ（いまは 760px）→ 720px（2枚とも原寸比のまま等分に縮む）。
   縦横比は変えない：幅の上限だけを付ける。画像は既存の width:100%・height:auto・object-fit:fill・aspect-ratio:auto のまま
   （切り抜き・object-fit・aspect-ratio の変更なし）。写真の縁の線画（hsj-inner-hero-illust-v1）は写真に付いて動く。
   トップページ・投稿・スマホ（767px以下）は変更なし。 */
@media screen and (min-width: 768px) {
  html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type,
  html body.page.page-id-1157 .article .entry-content > .wp-block-group:first-of-type {
    box-sizing: border-box;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ===== hsj-guide-talk-v3 案B（吹き出しの右下の角に重ねる） (2026-10-29・承認済み) ここから =====
   住職の絵を「胸から上」だけ小さく見せる（HTMLは変えない。v1・v2 の後ろに追記して上書き）。
   切り抜き：.hsj-guide-talk-fig を overflow:hidden にし、画像の下側を負の margin で枠の外へ出すだけ。
   画像は width:100%・height:auto のまま（縦横比そのまま、拡大縮小のみ、object-fit・aspect-ratio の変更なし）。
   念珠は切らない：talk-v8（556×1123）は左手に下げた念珠の房の下端が y=834 → 0〜860px を表示（77%）。
   　　　　　　　　 gassho-v7（439×1140）は合わせた手に掛けた念珠の最下の玉が y=501 → 0〜530px を表示（46%）。
   --hsjt-cut＝隠す高さ÷画像の幅（talk 0.473／gassho 1.3895）、--hsjt-ar＝見せる高さ÷画像の幅（talk 1.5468／gassho 1.2073）。
   お名前「法泉寺 住職」は切り口の上に重ね、背景色（#FBF8F2）で下側を隠す。 */
html body .article .entry-content .hsj-guide-talk-fig img,
html body.blog .widget-index-top .hsj-guide-talk-fig img{ margin:0 auto calc(var(--hsjt-w) * var(--hsjt-cut) * -1) !important; }
html body .article .entry-content .hsj-guide-talk-name,
html body.blog .widget-index-top .hsj-guide-talk-name{ position:relative; z-index:1; margin:0 !important; padding:.3em 0 0; background:var(--hsjt-bg); }
html body .article .entry-content .hsj-guide-talk,
html body.blog .widget-index-top .hsj-guide-talk{
  --hsjt-cut: 0.473;
  --hsjt-ar: 1.5468;
  --hsjt-bg: #FBF8F2;
  --hsjt-w: 120px;
  display: block !important;
  position: relative;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-right: calc(var(--hsjt-w) * .55) !important;
  padding-bottom: 1.9em !important;
}
html body .article .entry-content .hsj-guide-talk.is-gassho,
html body.blog .widget-index-top .hsj-guide-talk.is-gassho{
  --hsjt-hand: .610;
  --hsjt-palmx: .5;
  --hsjt-cut: 1.3895;
  --hsjt-ar: 1.2073;
  --hsjt-w: 102px;
}
html body .article .entry-content .hsj-guide-talk-bubble,
html body.blog .widget-index-top .hsj-guide-talk-bubble{ max-width:none !important; width:auto !important; margin-top:0 !important; min-height:calc(var(--hsjt-w) * var(--hsjt-ar) * .72); padding-right:calc(var(--hsjt-w) * .45 + 22px) !important; }
html body .article .entry-content .hsj-guide-talk-bubble::before,
html body.blog .widget-index-top .hsj-guide-talk-bubble::before{ display:none !important; }
html body .article .entry-content .hsj-guide-talk-fig,
html body.blog .widget-index-top .hsj-guide-talk-fig{
  overflow: hidden;
  box-sizing: border-box;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: var(--hsjt-w) !important;
  margin: 0 !important;
}
/* 角に重ねるので、切り口は吹き出しの下辺にそろえる：お名前の帯ぶん（1.9em）だけ下へ出す */
@media screen and (max-width:640px){
html body .article .entry-content .hsj-guide-talk,
html body.blog .widget-index-top .hsj-guide-talk{ --hsjt-w:84px; }
html body .article .entry-content .hsj-guide-talk.is-gassho,
html body.blog .widget-index-top .hsj-guide-talk.is-gassho{
  --hsjt-w: 72px;
}
}
@media screen and (max-width:480px){
html body .article .entry-content .hsj-guide-talk,
html body.blog .widget-index-top .hsj-guide-talk{ --hsjt-w:76px; padding-right:calc(var(--hsjt-w) * .5) !important; }
html body .article .entry-content .hsj-guide-talk.is-gassho,
html body.blog .widget-index-top .hsj-guide-talk.is-gassho{
  gap: 12px;
  --hsjt-w: 64px;
}
html body .article .entry-content .hsj-guide-talk-bubble,
html body.blog .widget-index-top .hsj-guide-talk-bubble{ padding-right:calc(var(--hsjt-w) * .5 + 14px) !important; }
html body .article .entry-content .hsj-guide-talk-name,
html body.blog .widget-index-top .hsj-guide-talk-name{ font-size:10.5px; letter-spacing:.06em; }
}
/* ===== hsj-nobreadcrumb-v1 (2026-10-29) パンくずを画面上だけ非表示（構造化データはHTMLに残す） ここから ===== */
#breadcrumb.breadcrumb{display:none !important;}
html body .article .hsj3-crumb{display:none !important;}
@media (min-width:1024px){
  html body #header-container #navi .navi-in > ul.menu-pc > li{ position:relative !important; }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu{
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: auto !important;
  height: auto !important;
  margin: 8px 0 0 !important;
  padding: 8px !important;
  list-style: none;
  background: #FFFDF8 !important;
  border: 1px solid #E8DDCB !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(58,51,44,.10) !important;
  z-index: 950;
  min-width: 12em !important;
}
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu::before{
    content:""; position:absolute; left:0; right:0; top:-10px; height:10px;
  }
  html body #header-container #navi .navi-in > ul.menu-pc > li:hover > .sub-menu,
  html body #header-container #navi .navi-in > ul.menu-pc > li:focus-within > .sub-menu{ display:block !important; }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li{
    float:none !important; width:auto !important; height:auto !important; margin:0 !important; padding:0 !important; border:0 !important; background:none !important;
  }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a{
    display:block !important; width:auto !important; height:auto !important; margin:0 !important; padding:.55em 1.2em !important;
    border-radius:999px !important; background:transparent !important; box-shadow:none !important; text-align:center;
    font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif !important; font-weight:700 !important; font-size:13.5px !important;
    line-height:1.5 !important; letter-spacing:.03em !important; white-space:nowrap; color:#3A332C !important;
  }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a .caption-wrap,
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a .item-label{
    width:auto !important; height:auto !important; margin:0 !important; padding:0 !important; overflow:visible; font:inherit !important; color:inherit !important; letter-spacing:inherit !important;
  }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a:hover,
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li.current-menu-item > a{ background:#F6EFE3 !important; color:#A2472A !important; }
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a::after,
  html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li > a::before{ content:none !important; }
  /* /hoen/sogi/ を見ているときは、親「法座・仏事・葬儀」も現在地の色に */
  html body #header-container #navi .navi-in > ul.menu-pc > li.current-menu-ancestor > a,
  html body #header-container #navi .navi-in > ul.menu-pc > li.current-menu-parent > a{ background:#F6EFE3 !important; color:#A2472A !important; }
}

html body:not(.home) .article .entry-content .hsj-fq{
  --qa-ink:#2B2723; --qa-acc:#6F5137; --qa-line:#DDD8CC; --qa-bg:#F6EFE3; --qa-mut:#6E6656; --qa-kou:#C8A878;
  max-width:820px; box-sizing:border-box; margin:2.6em auto 1.4em !important;
  padding:30px clamp(14px,3.2vw,34px) 20px !important;
  background:var(--qa-bg) !important; border:1.5px solid var(--qa-line) !important; border-radius:26px !important;
  box-shadow:none !important;
}
/* 見出し：上に蓮の線画、下に短い波線 */
html body:not(.home) .article .entry-content .hsj-fq > .hsj-fq-ttl{
  margin:0 0 20px !important; padding:0 !important; border:0 !important; text-align:center;
  font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif !important; font-weight:700 !important;
  font-size:clamp(17px,1.7vw,20px) !important; line-height:1.55 !important; letter-spacing:.1em !important; color:var(--qa-ink) !important;
}
html body:not(.home) .article .entry-content .hsj-fq > .hsj-fq-ttl::before{
  content:""; display:block; width:40px; height:26px; margin:0 auto 6px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' fill='none' stroke='%23B58F63' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 3c-4 4-5 10-0 16 5-6 4-12 0-16z' fill='%23F3EADB'/><path d='M19 19c-5-1-10-5-11-11 5 0 9 4 11 11z'/><path d='M21 19c5-1 10-5 11-11-5 0-9 4-11 11z'/><path d='M18 20c-6 1-12-1-15-5 5-2 11 0 15 5z'/><path d='M22 20c6 1 12-1 15-5-5-2-11 0-15 5z'/><path d='M6 23h28'/></svg>") no-repeat center/contain;
}
html body:not(.home) .article .entry-content .hsj-fq > .hsj-fq-ttl::after{
  content:""; display:block; width:56px; height:9px; margin:8px auto 0;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'><path d='M2 6 C10 1 18 9 26 5 S42 1 50 5 S60 8 62 4' fill='none' stroke='%23C8A878' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat center/contain;
}
/* 質問カード */
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q{
  margin:0 0 12px !important; padding:0 !important; overflow:hidden;
  background:#FFFFFF !important; border:1px solid var(--qa-line) !important; border-radius:18px !important;
  box-shadow:0 1px 0 rgba(111,81,55,.06) !important; transition:border-color .2s ease, box-shadow .2s ease;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q:last-child{ margin-bottom:6px !important; }
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q[open]{ border-color:#CDBFA6 !important; box-shadow:0 3px 12px rgba(111,81,55,.08) !important; }
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary{
  position:relative; display:block; list-style:none; cursor:pointer; margin:0 !important;
  padding:15px 46px 15px 62px !important; min-height:32px; background:transparent !important; border:0 !important;
  font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif !important; font-weight:700 !important;
  font-size:clamp(15px,1.15vw,16.5px) !important; line-height:1.7 !important; letter-spacing:.04em !important;
  color:var(--qa-ink) !important; white-space:normal !important; text-wrap:pretty; word-break:auto-phrase;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::-webkit-details-marker{ display:none; }
@media (hover:hover){
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary:hover{ background:#FBF8F2 !important; }
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::before{
  content:"Q" !important; position:absolute !important; left:16px !important; top:14px !important; right:auto !important;
  display:block !important; width:32px !important; height:32px !important; margin:0 !important; border-radius:50% !important;
  background:var(--qa-acc) !important; color:#FFFFFF !important; border:0 !important;
  font-family:"Zen Maru Gothic",sans-serif !important; font-weight:700 !important; font-size:15px !important; line-height:32px !important; letter-spacing:0 !important; text-align:center !important;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::after{
  content:"" !important; position:absolute !important; right:20px !important; left:auto !important; top:50% !important;
  width:9px !important; height:9px !important; margin:0 !important; background:none !important; border:0 !important;
  border-right:1.6px solid var(--qa-acc) !important; border-bottom:1.6px solid var(--qa-acc) !important; border-radius:0 !important;
  transform:translateY(-70%) rotate(45deg) !important; transition:transform .25s ease !important;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q[open] > summary::after{ transform:translateY(-30%) rotate(-135deg) !important; }
/* 答え */
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > p.hsj-fq-a{
  position:relative; margin:0 18px !important; padding:0 0 12px 46px !important;
  font-family:inherit; font-weight:400 !important; font-size:clamp(14.5px,1.05vw,15.5px) !important; line-height:1.95 !important; letter-spacing:.03em !important;
  color:var(--qa-ink) !important;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary + p.hsj-fq-a{
  margin-top:0 !important; padding-top:14px !important; border-top:1px dashed var(--qa-line) !important;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > p.hsj-fq-a:last-child{ padding-bottom:18px !important; }
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary + p.hsj-fq-a::before{
  content:"A"; position:absolute; left:-2px; top:13px; width:30px; height:30px; box-sizing:border-box; border-radius:50%;
  border:1.5px solid var(--qa-kou); background:#FBF6EC; color:var(--qa-acc);
  font-family:"Zen Maru Gothic",sans-serif; font-weight:700; font-size:14px; line-height:27px; letter-spacing:0; text-align:center;
}
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > p.hsj-fq-a a{ color:#A2472A !important; }
/* /ohaka/：「よくあるお問い合わせ」の開閉枠の中では、外枠を二重にしない（地色だけ残す） */
html body:not(.home) .article .entry-content .hsj-ohl-accin > .hsj-fq{ margin:.4em auto .6em !important; }
/* スマホ */
@media (max-width:767px){
  html body:not(.home) .article .entry-content .hsj-fq{ padding:24px 12px 14px !important; border-radius:22px !important; margin-left:auto !important; margin-right:auto !important; }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q{ border-radius:16px !important; margin-bottom:10px !important; }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary{
    padding:13px 36px 13px 52px !important; font-size:15px !important; line-height:1.65 !important; letter-spacing:.02em !important;
  }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::before{ left:12px !important; top:12px !important; width:30px !important; height:30px !important; line-height:30px !important; font-size:14px !important; }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::after{ right:15px !important; }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > p.hsj-fq-a{ margin:0 12px !important; padding-left:40px !important; font-size:14.5px !important; line-height:1.9 !important; }
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary + p.hsj-fq-a::before{ left:0; width:28px; height:28px; line-height:25px; font-size:13px; }
}
@media (max-width:767px){
  /* 開閉枠（/hoen/ の年間の法座・ご法事、/ohaka/ のよくあるお問い合わせ）の中では幅が狭いので、外枠の余白を詰める */
  html body:not(.home) .article .entry-content :is(.hsj-acc-in,.hsj-ohl-accin) > .hsj-fq{ padding:20px 8px 10px !important; border-radius:18px !important; }
  html body:not(.home) .article .entry-content :is(.hsj-acc-in,.hsj-ohl-accin) > .hsj-fq details.hsj-fq-q > summary{ padding-left:48px !important; padding-right:32px !important; }
  html body:not(.home) .article .entry-content :is(.hsj-acc-in,.hsj-ohl-accin) > .hsj-fq details.hsj-fq-q > summary::before{ left:10px !important; }
  html body:not(.home) .article .entry-content :is(.hsj-acc-in,.hsj-ohl-accin) > .hsj-fq details.hsj-fq-q > p.hsj-fq-a{ margin:0 10px !important; padding-left:36px !important; }
}
@media (prefers-reduced-motion:reduce){
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q,
  html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary::after{ transition:none !important; }
}
/* ===== hsj-firstletter-v1 (2026-10-29) 見出し1文字目の太さをそろえる。トップの大見出しだけ1文字目を少し大きく ここから ===== */
.article h3::first-letter{
  font-weight: inherit !important;
}
.home .hsj2-row h3::first-letter{font-size:1.2em !important;}

/* --- スマホ・タブレット（1023px以下）：上部バーで 慶讃マーク＋中期計画ロゴ を一組にして、寺号とメニューボタンの間の中央に --- */
@media (max-width: 1023px) {
  html body .hsj-mbar {
  background-color: #FBF6EC !important;
  box-shadow: 0 1px 6px rgba(58, 51, 44, .05) !important;
  --hsj-mk: clamp(22px, calc(32.9vw - 99px), 38px);
}
    html body .hsj-mbar .hsj-mbar-chuuki,
  html body .hsj-mbar .hsj-mbar-chuuki-link {
    display: block; flex: 0 0 auto; margin: 0 auto 0 calc(6px - 12px) !important;
  }
  html body .hsj-mbar .hsj-mbar-chuuki {
    height: var(--hsj-mk) !important; width: auto !important; max-width: none !important; aspect-ratio: auto;
  }
  html body .hsj-mbar .hsj-mbar-chuuki-link .hsj-mbar-chuuki { margin: 0 !important; }
}
/* 359px以下は今まで通り慶讃マークを出さない（幅が足りない）。中期計画ロゴも出さない */
@media (max-width: 359px) {
  html body .hsj-mbar .hsj-mbar-chuuki, html body .hsj-mbar .hsj-mbar-chuuki-link { display: none !important; }
}

/* --- PC（1024px以上）：何も変えない。上部バーはPCでは出ないが、念のためロゴも隠す --- */
@media (min-width: 1024px) {
  html body .hsj-mbar .hsj-mbar-chuuki, html body .hsj-mbar .hsj-mbar-chuuki-link { display: none !important; }
}
/* ===== hsj-hajimete-center-v1 (2026-10-29) ここから =====
   はじめての方へ（固定ページ1274 /hajimete/）だけの中央そろえ。body.page-id-1274 で限定。
   原因：Cocoon の目次は「本文の最初の h2 の直前」に自動で入る。このページの最初の h2 は
   白いカード（.hsj3-first）の見出し行（.hsj3-first-h ＝ 絵＋文字の横並び・左寄せ）の中にあるため、
   目次がその見出し行の中（ラベルと h2 の間）に入り、絵だけが左に取り残され、全体が左に寄って見えた。
   「ご用件からさがす」の箇条書きは幅720pxの列いっぱいの左寄せで、文字が短いため左に寄って見えた。
   方針：(1) 見出し行を縦並び・中央に（絵→ラベル→見出し）。(2) 目次はこのページだけ非表示（案A）。
   (3) 箇条書きは中身の幅の白いカードにして中央に置き、中の文字は左そろえ。
   画像は幅だけ指定・height:auto（縦横比はそのまま）。文字の書体・色はサイトの変数のまま。
   ログイン中かどうかに関係しない規則のみ（管理者と訪問者で同じ見た目）。 */

/* 1) カード上部：絵・ラベル・見出しを縦に並べて中央に */
html body.page-id-1274 .article .entry-content .hsj3-first-h{
  flex-direction:column; align-items:center; justify-content:center; gap:10px;
  margin:0 auto 22px; text-align:center;
}
html body.page-id-1274 .article .entry-content .hsj3-first-h > img{
  display:block; width:64px !important; max-width:100%; height:auto !important; aspect-ratio:auto !important;
  object-fit:contain; margin:0 auto;
}
html body.page-id-1274 .article .entry-content .hsj3-first-h > div{
  display:flex; flex-direction:column; align-items:center; width:100%; min-width:0; text-align:center;
}
/* 字間 .3em の右側の余りを左にも足して、目で見た中心を合わせる */
html body.page-id-1274 .article .entry-content .hsj3-first-h .en{ order:1; text-align:center; padding-left:.3em; margin:0 0 4px; }
html body.page-id-1274:not(.home) .article .entry-content .hsj3-first h2.hsj3-first-ttl{ order:2; text-align:center !important; }
html body.page-id-1274 .article .entry-content .hsj3-first .hsj3-first-more{ text-align:center; }

/* 2) 目次：案A（推奨）このページだけ非表示（見出しが2つだけのため） */
html body.page-id-1274 .article .entry-content .hsj3-first .toc{ display:none !important; }

/* 3) 「ご用件からさがす」：中身の幅の白いカードにして中央へ。文字は左そろえ */
html body.page-id-1274 .article .entry-content > ul.wp-block-list{
  box-sizing:border-box; width:fit-content; max-width:min(860px,100%);
  margin:0 auto 2em !important; padding:14px 34px 14px 30px !important;
  background:#fff; border:1.5px solid var(--c3-rule); border-radius:22px;
  list-style:none; text-align:left;
}
html body.page-id-1274 .article .entry-content > ul.wp-block-list > li{
  position:relative; margin:0 !important; padding:.6em 0 .6em 1.25em !important;
  list-style:none; line-height:1.75; text-align:left;
}
html body.page-id-1274 .article .entry-content > ul.wp-block-list > li + li{ border-top:1px dashed var(--c3-rule); }
html body.page-id-1274 .article .entry-content > ul.wp-block-list > li::marker{ content:none; }
html body.page-id-1274 .article .entry-content > ul.wp-block-list > li::before{
  content:"" !important; position:absolute; left:0; top:calc(.6em + .875em - 3px);
  width:6px; height:6px; border-radius:50%; background:var(--c3-kou);
}
@media screen and (max-width:640px){
  html body.page-id-1274 .article .entry-content .hsj3-first-h > img{ width:56px !important; }
  html body.page-id-1274 .article .entry-content > ul.wp-block-list{ width:auto; max-width:100%; padding:8px 18px 8px 16px !important; border-radius:18px; }
  html body.page-id-1274 .article .entry-content > ul.wp-block-list > li{ font-size:15px; }
}

/* ===== hsj-card-align-v1 (2026-10-29) ここから =====
   バッジ＋見出し＋本文＋「… →」リンクのカード（.hsj2-card。いまはトップページの「お墓のこと」の
   永代合同墓／墓地（境内墓所）の2枚）を、サイト全体で次のそろえ方にする。
   ・バッジと見出し：中央　・本文：左そろえ（読みやすさのため）
   ・「… →」リンク：カードの右下。横に並んだカード同士でリンクの高さをそろえる（縦の flex ＋ margin-top:auto）
   元の規則はトップページ本文の <style>（html body .article .hsj2-card …）にあるため、
   .hsj2-two > .hsj2-card と1段くわしく書いて上書きする（!important は使わない）。
   見出しの文字の大きさ・太さ・色は変えない（そろえ方だけ）。画像は扱わない。
   /hajimete/ の4枚（.hsj3-first-list の絵＋文字のカード）や /ohaka/ の .hsj-ohl-card には当たらない。 */
html body .article .hsj2-two > .hsj2-card{
  display:flex; flex-direction:column; align-items:stretch; box-sizing:border-box; height:100%;
}
html body .article .hsj2-two > .hsj2-card > .badge{ align-self:center; text-align:center; }
html body .article .hsj2-two > .hsj2-card > h3{ text-align:center; }
html body .article .hsj2-two > .hsj2-card > p.for{ text-align:left; }
html body .article .hsj2-two > .hsj2-card > a:last-child{
  margin-top:auto; align-self:flex-end; text-align:right; padding-top:.4em;
}
/* .hsj2-card が .hsj2-two の外で使われた場合も同じそろえ方に（並び替えの高さ合わせは不要なので height は付けない） */
html body .article .hsj2-card:not(.hsj2-two > *){ display:flex; flex-direction:column; }
html body .article .hsj2-card:not(.hsj2-two > *) > .badge{ align-self:center; }
html body .article .hsj2-card:not(.hsj2-two > *) > h3{ text-align:center; }
html body .article .hsj2-card:not(.hsj2-two > *) > p.for{ text-align:left; }
html body .article .hsj2-card:not(.hsj2-two > *) > a:last-child{ margin-top:auto; align-self:flex-end; text-align:right; }
/* ===== hsj-lead-center-v1 (2026-10-29) ここから =====
   中央の見出しの直下（または箱・カードのあと次の見出しの直前）にある、短いリード文を中央にそろえる。
   長い本文は左そろえのまま（文字数は CSS では測れないため、見出し直後の短いものだけ
   .hsj-lead-c を付ける。橋渡しの短い段落はセレクタで拾う）。
   スマホでも短いリードは中央のまま（1〜2行程度）。約2行を超えるものだけ
   .hsj-lead-c--soft を付け、600px以下では左そろえに戻す。
   見出しの大きさ・太さ・色は変えない。管理者と訪問者で同じ見た目。 */

/* 1) 明示クラス（ページ本文に hsj-lead-c を付けた短いリード） */
html body:not(.home) .article .entry-content > p.hsj-lead-c{
  text-align:center;
}

/* 2) 箱・ブログカードなどのあと、次の見出し（または末尾の案内帯）の直前にある橋渡しの段落
   調査時点では該当がすべて短い1行（/hoen/sogi/ の案内、/tebiki/ の参照文）だけ。
   長い本文がこの位置に来た場合は .hsj-lead-left を付けて外す。 */
html body:not(.home) .article .entry-content > :not(p):not(h2):not(h3):not(style):not(script) + p:has(+ :is(h2, h3, section)):not(.hsj-lead-left):not(.has-text-align-left){
  text-align:center;
}

/* 3) やや長いリード（約2行超）は、狭い画面だけ左そろえに戻す */
@media screen and (max-width:600px){
  html body:not(.home) .article .entry-content > p.hsj-lead-c.hsj-lead-c--soft{
    text-align:left;
  }
}
html body .article img.yl-ill{
  position: absolute; z-index: 3; display: block;
  height: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}

/* --- Y3 トップ「法座」1段目：PC は文字の列の右下（ボタンの右の余白）、スマホは写真の右下の角（左下の松と対） --- */
html body.home .article #hoji .hsj2-row img.yl-y3-pc{ right: 40px; bottom: 10px; width: clamp(100px, 11vw, 140px); }
html body.home .article #hoji .hsj2-row-ph img.yl-y3-sp{ display: none; }
@media (max-width: 1099px){
  html body.home .article #hoji .hsj2-row img.yl-y3-pc{ display: none; }
  html body.home .article #hoji .hsj2-row-ph img.yl-y3-sp{ display: block; right: -6px; bottom: -20px; width: 104px; }
}

/* --- Y6 トップ 中間の相談帯：スマホは帯の右下（PC は厳守版のため出さない。帯の余白は元のまま） --- */
html body.home .article .hsj2-band{ position: relative; }
html body.home .article .hsj2-band img.yl-y6{ left: 26px; bottom: -6px; width: 48px; }
@media (max-width: 834px){
  html body.home .article .hsj2-band img.yl-y6{ left: auto; right: -6px; bottom: -6px; width: 36px; }
}

/* --- Y4 トップ「アクセス」の山並み：手前の道を、右のお寺へ向かって歩く（画像は左右反転済み。PC は厳守版のため出さない） --- */
html body.home .article #access .hsj2-in img.yl-y4{ left: 24%; bottom: -10px; width: 140px; }
@media (max-width: 834px){
  html body.home .article #access .hsj2-in img.yl-y4{ left: 18%; bottom: -14px; width: 76px; }
}

/* --- Y1 about「浄土真宗のみ教え」：最初の囲みの上の線に立つ（見出しの右） --- */
html body.page-id-22 .article .hsj-oshie{ position: relative; }
html body.page-id-22 .article .hsj-oshie > img.yl-y1{ right: 20px; bottom: 100%; width: 36px; }
@media (min-width: 641px){
  html body.page-id-22 .article .hsj-oshie > img.yl-y1{ right: 28px; width: 40px; }
}
@media (min-width: 1024px){
  html body.page-id-22 .article .hsj-oshie > img.yl-y1{ width: 46px; }
}

/* --- Y2 ohaka「見学・お申し込みのお問い合わせ」の連絡帯：PC は帯の左端に立つ、スマホは帯の上の線の右 --- */
html body.page-id-26 .article .hsj3-cta.is-btns > img.yl-y2{ left: 52px; bottom: -4px; width: 100px; }
@media (max-width: 999px){
  html body.page-id-26 .article .hsj3-cta.is-btns > img.yl-y2{ left: auto; right: 10px; bottom: calc(100% - 10px); width: 54px; }
}

/* --- Y5 tebiki「仏事のご相談」・Y4 hajimete「わからないことは、お気軽に」：PC は帯の中の左下、スマホは帯の上の線の右 --- */
html body.page-id-1185 .article .hsj3-cta > img.yl-y5{ left: 44px; bottom: 14px; width: 110px; }
html body.page-id-1274 .article .hsj3-cta > img.yl-y4b{ left: 36px; bottom: 14px; width: 110px; }
@media (max-width: 999px){
  html body.page-id-1185 .article .hsj3-cta > img.yl-y5{ left: auto; right: 18px; bottom: calc(100% - 12px); width: 52px; }
  html body.page-id-1274 .article .hsj3-cta > img.yl-y4b{ left: auto; right: 16px; bottom: calc(100% - 14px); width: 70px; }
}
@media (min-width: 641px) and (max-width: 999px){
  html body.page-id-1185 .article .hsj3-cta > img.yl-y5{ right: 24px; bottom: 12px; width: 72px; }
  html body.page-id-1274 .article .hsj3-cta > img.yl-y4b{ right: 24px; bottom: 12px; width: 96px; }
}
/* --- 厳守版：PC（835px〜）のトップでは Y6（相談帯）と Y4（アクセス）を出さない（スマホは上のまま。/hajimete/ の Y4 は yl-y4b で別） --- */
@media (min-width: 835px){
  html body.home .article .hsj2-band img.yl-y6,
  html body.home .article #access .hsj2-in img.yl-y4{ display: none; }
}

html body a.hsj-tebiki-card{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:10px; padding:26px 30px 18px;
}
html body a.hsj-tebiki-card > .hsj-tebiki-k{ align-self:center; }
html body a.hsj-tebiki-card > .hsj-tebiki-t,
html body a.hsj-tebiki-card > .hsj-tebiki-d{ text-align:center; max-width:100%; word-break:auto-phrase; }
html body a.hsj-tebiki-card > .hsj-tebiki-arrow{ align-self:flex-end; margin-top:-6px; line-height:1; }
@media screen and (max-width:600px){
  html body a.hsj-tebiki-card{ padding:22px 18px 14px; gap:8px; }
}
/* ===== hsj-subnav-multi-v1 (2026-11-01) ここから =====
   ヘッダーメニューの子項目が2つ以上になったときの整え（hsj-subnav-v1 の追補）。
   PC（1024px以上）：子項目を縦に並べ、項目のあいだに細い区切り。右端の親でも画面の外にはみ出さない幅に。
   スマホの引き出しメニュー（hsj-drawer-v1）は既に子項目を字下げで常に表示するため変更なし。
   /hoen/ の見出し（#nenkan / #butsuji）へ飛んだとき、上に余白を取る。 */
@media (min-width:1024px){
    html body #header-container #navi .navi-in > ul.menu-pc > li > .sub-menu > li + li{ border-top:1px solid #F0E8DA !important; }
  html body #header-container #navi .navi-in > ul.menu-pc > li:nth-last-child(-n+3) > .sub-menu{ left:auto !important; right:0 !important; transform:none; }
}
html body .article #nenkan, html body .article #butsuji{ scroll-margin-top:90px; }
html body #navi-menu-content .menu-drawer.hsj-dacc-on > li.hsj-dacc{ position:relative; }
html body #navi-menu-content .menu-drawer.hsj-dacc-on > li.hsj-dacc > .sub-menu{ display:none; }
html body #navi-menu-content .menu-drawer.hsj-dacc-on > li.hsj-dacc.is-open > .sub-menu{ display:block; }
html body .mobile-menu-buttons #navi-menu-content .menu-drawer.hsj-dacc-on > li.hsj-dacc > a{ padding-right:64px; }
html body .mobile-menu-buttons #navi-menu-content .menu-drawer.hsj-dacc-on > li.hsj-dacc > a::after{ content:none; }
html body #navi-menu-content .menu-drawer .hsj-dacc-btn{
  position:absolute; right:4px; top:4px; width:46px; height:44px; margin:0; padding:0;
  border:0; border-left:1px solid rgba(58,51,44,.10); border-radius:0 12px 12px 0; background:transparent; cursor:pointer;
  -webkit-tap-highlight-color: rgba(162,71,42,.10);
}
html body #navi-menu-content .menu-drawer .hsj-dacc-btn::before{
  content:""; position:absolute; left:50%; top:50%; width:8px; height:8px; margin:-6px 0 0 -4px;
  border-right:1.8px solid #A2472A; border-bottom:1.8px solid #A2472A; transform:rotate(45deg); transition:transform .2s ease, margin .2s ease;
}
html body #navi-menu-content .menu-drawer li.is-open > .hsj-dacc-btn::before{ transform:rotate(-135deg); margin-top:-2px; }
html body #navi-menu-content .menu-drawer .hsj-dacc-btn:focus-visible{ outline:2px solid #A2472A; outline-offset:-2px; }
@media (prefers-reduced-motion: reduce){ html body #navi-menu-content .menu-drawer .hsj-dacc-btn::before{ transition:none; } }

/* ===== hsj-bg-white-v1 (案・2026-11-01) 共通：地の色を白に ===== */
html body{
  background: #FFFFFF !important;
}
html body .hsj2, html body .article .hsj2{ --c-base:#FFFFFF; background:#FFFFFF !important; }
:root, html body{ --c3-base:#FFFFFF; }
html body #header-container, html body #header-container-in, html body #header, html body #header-in, html body .hsj-headrow{ background:#FFFFFF !important; }
@media (min-width:1024px){ html body #header-container{
  --hsj-k: 0;
  position: sticky;
  top: 0;
  z-index: 900;
  -webkit-backdrop-filter: blur(calc(var(--hsj-k) * 10px));
  backdrop-filter: blur(calc(var(--hsj-k) * 10px));
  border-bottom: 1px solid rgba(140,123,107, calc(.14 + var(--hsj-k) * .1));
  box-shadow: 0 calc(var(--hsj-k) * 4px) calc(var(--hsj-k) * 16px) rgba(58,51,44, calc(var(--hsj-k) * .08)) !important;
  transition: --hsj-k .25s ease;
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  background: rgba(255,255,255,.96) !important;
} }
html body .hsj-mbar, html body #navi-menu-content{ background:#FFFFFF !important; }
html body nav.hsj-spbar-all, html body nav.hsj2-sp-bar{ background:rgba(255,255,255,.97) !important; }
html body .hsj-guide-talk-name, html body .article .entry-content li{ background-color:transparent !important; }
/* ---- A：白い地＋白いカード（細い枠とやわらかい影） ---- */
html body .article .hsj2-grave, html body .article .hsj2-contact, html body .article .hsj2-map{ background:#FFFFFF !important; }
html body .article .hsj2-grave, html body .article .hsj2-contact{ border-top:1px solid #EEE8DE; border-bottom:1px solid #EEE8DE; }
html body .hsj-bloghead, html body.blog .hsj-bloghead{ background:#FFFFFF !important; box-shadow:0 0 0 100vmax #FFFFFF !important; border-bottom:1px solid #EEE8DE; }
html body:not(.home) .entry-title{ background:#FFFFFF !important; box-shadow:0 0 0 100vmax #FFFFFF !important; }
html body .hsj-fq, html body .article a.hsj3-link, html body .hsj3-cta, html body a.hsj-tebiki-card, html body .hsj-guide-talk-bubble, html body .hsj2 .hsj2-card{
  background:#FFFFFF !important; border:1px solid #E9E2D6 !important; box-shadow:0 2px 12px rgba(58,51,44,.07) !important; }
html body .article th{ background:#F8F5EF !important; }
html body #footer{ background:#FFFFFF !important; border-top:1px solid #EEE8DE; }

/* ===== hsj-bg-white-fix-v1 (2026-11-01) ここから =====
   hsj-bg-white-v1 の「:root, html body{--c3-base:#FFFFFF}」が、hsj-inner-v1 の body:not(.home){--c3-base:#FBF8F2}（詳細度が高い）に負けて下層ページが生成りのまま。白に上書き。 */
html body:not(.home){
  --c3-base: #FFFFFF;
}

/* =====================================================================
   hsj-hero-full-v1（2026-11-22）トップ画：本堂の写真を全幅で（旧 hsj-hero-corners-v1 の1.と、旧スライドショーのトップ画を置き換え）
   ・写真は画面に止まり（sticky）、下の「新着」「お知らせ」「ことば」（.hsj2-stage の中）が上に重なってくる。.hsj2-stage を出たら普通に流れる。
   ・写真は最初から見えている（透明から始めない＝LCPを守る）。ゆっくり寄るだけ。文字は読み込み時に1行ずつ透明から現れる。
   ・下へスクロールした量に合わせて、写真ごと白へ溶けて次の場面（お知らせ）に切り替わる（hsj-motion-v3 の hsj2-hero-fade）。
   ・「新着」カード（new_list の最新1件）と「法座」案内（hsj2-hero-ann-v1。期間内だけ）はトップ画に重ねず、すぐ下の単独の区切り .hsj2-shin に置く（hsj-shin-v1）。
   ・四隅に季節の線画（下の変数だけ差し替える）。上の2隅は .hsj2-in の疑似要素、下の2隅（鐘楼・蓮）は旧トップ画の木・あじさいの枠（空の span）に背景で描く。
     線画は文字に重ねない。スクロールに合わせてわずかに漂う（translate のみ）。
   ・動かすのは transform / translate / opacity だけ。属性セレクタ・論理積の記号は使わない。
   ===================================================================== */
html body .article .hsj2 .hsj2-hero {
  --hc-tl: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-momiji-branch.png"); --hc-tl-ar: 720/711;
  --hc-tr: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-ochiba.png");        --hc-tr-ar: 633/720;
  --hc-bl: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-shoro.png");         --hc-bl-ar: 641/720;
  --hc-br: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hasu.png");          --hc-br-ar: 720/603;
  --hsj2-hd: 83px;   /* PCのヘッダーの高さ（読み込み時）。写真の高さ＝画面の高さ − これ */
  --hsj2-st: 48px;   /* 写真が止まる位置（スクロールで縮んだヘッダーの高さ。1024px 幅で約48px、1280px 幅で約53px） */
  position: sticky; top: var(--hsj2-st); z-index: 0;
  height: calc(100vh - var(--hsj2-hd)); height: calc(100svh - var(--hsj2-hd)); min-height: 520px;
  padding: 0; margin: 0; overflow: hidden;
}
html body .article .hsj2 .hsj2-hero .hsj2-in { position: relative; height: 100%; max-width: none; margin: 0; container-type: inline-size; }
/* 写真：全面。白のグラデーションで明るく、文字の読みやすさを保つ */
html body .article .hsj2 .hsj2-hero-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
html body .article .hsj2 .hsj2-hero-photo > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; border-radius: 0; }
html body .article .hsj2 .hsj2-hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 30%, rgba(255,255,255,0) 60%),
              linear-gradient(0deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 24%);
}
/* ことば：左の中ほど */
html body .article .hsj2 .hsj2-hero .hsj2-hero-copy {
  position: absolute; z-index: 3; left: clamp(24px, 7vw, 112px); top: 50%; transform: translateY(-50%);
  width: auto; max-width: min(580px, 54%); margin: 0; padding: 0; background: none; backdrop-filter: none; border-radius: 0; text-align: left;
}
html body .article .hsj2 .hsj2-hero-copy .wa { display: block; font-family: var(--f-wa); font-size: 15px; letter-spacing: .3em; color: var(--c-mut); margin: 0 0 1.1em; }
html body .article .hsj2 .hsj2-hero-copy h1 { font-family: var(--f-wa); font-weight: 600; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.55; letter-spacing: .16em; color: var(--c-ink); margin: 0 0 .6em; padding: 0; border: 0; background: none; }
html body .article .hsj2 .hsj2-hero-copy h1 span { display: block; }
html body .article .hsj2 .hsj2-hero-copy p { font-size: 16px; line-height: 2; color: var(--c-mut); margin: 0 0 1.8em; }
html body .article .hsj2 .hsj2-hero-copy .hsj2-btns { justify-content: flex-start; }
/* 新着・法座のカード（hsj-shin-v1）：トップ画には重ねず、トップ画のすぐ下の単独の区切り .hsj2-shin に置く（お知らせの前）。
   白（広い画面は生成り）の地に、中央寄せの横長のカード。スマホは左右に余白を取った全幅。現れ方は hsj-motion-v3 の .hsm-t（ほかのカードと同じ）。 */
html body .article .hsj2 .hsj2-shin { position: relative; z-index: 1; padding: 56px 20px clamp(8px, 1.5vw, 16px); background-color: #FFFFFF; }
html body .article .hsj2 .hsj2-shin .hsj2-in { max-width: none; margin: 0; padding: 0; }
html body .article .hsj2 .hsj2-shin-box { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 880px; margin: 0 auto; }
html body .article .hsj2 .hsj2-hero-new, html body .article .hsj2 a.hsj2-hero-ann-link {
  display: flex; align-items: center; gap: 18px; padding: 18px 28px 18px 22px; border-radius: 18px;
  background: #FFFFFF; border: 1.5px solid var(--c-rule); box-shadow: 0 10px 32px rgba(58,51,44,.08);
  color: var(--c-ink) !important; text-decoration: none !important;
}
html body .article .hsj2 .hsj2-hero-new .lb, html body .article .hsj2 a.hsj2-hero-ann-link .lb {
  flex: 0 0 auto; padding: 6px 14px 6px 16px; border-radius: 999px; background: var(--c-kou); color: #FFFFFF;
  font-family: var(--f-round); font-size: 14px; font-weight: 700; letter-spacing: .2em; line-height: 1.3;
}
html body .article .hsj2 a.hsj2-hero-ann-link .lb { background: var(--c-shu); }
html body .article .hsj2 a.hsj2-hero-ann-link .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.55; }
html body .article .hsj2 a.hsj2-hero-ann-link b { font-family: var(--f-wa); font-weight: 600; font-size: 18px; }
html body .article .hsj2 a.hsj2-hero-ann-link small { font-size: 14px; color: var(--c-mut); }
html body .article .hsj2 .hsj2-hero-new .widget-entry-cards { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
html body .article .hsj2 .hsj2-hero-new a.widget-entry-card-link { display: block; padding: 0; margin: 0; color: inherit !important; text-decoration: none !important; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-thumb { flex: 0 0 128px; width: 128px; height: 72px; margin: 0; float: none; border-radius: 10px; overflow: hidden; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-content { min-width: 0; margin: 0; padding: 0; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-title {
  font-family: var(--f-wa); font-weight: 600; font-size: 19px; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal;
}
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-meta { margin: 4px 0 0; padding: 0; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-date { font-size: 14px; color: var(--c-mut); }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-date .fa { display: none; }
html body .article .hsj2 .hsj2-hero-new .widget-entry-card-post-date { font-size: inherit; color: inherit; padding: 0; letter-spacing: .04em; }
html body .article .hsj2 .hsj2-hero-new a.widget-entry-card-link:hover .widget-entry-card-title { color: var(--c-shu); }
/* 右下：親子の線画 */
html body .article .hsj2 .hsj2-hero .hsj2-ill-family { position: absolute; z-index: 2; right: 3%; bottom: 0; top: auto; left: auto; width: clamp(90px, 9cqi, 140px); height: auto; }
/* 上の2隅：季節の線画（.hsj2-in の疑似要素） */
html body .article .hsj2 .hsj2-hero .hsj2-in::before,
html body .article .hsj2 .hsj2-hero .hsj2-in::after {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  background: no-repeat center / contain;
}
html body .article .hsj2 .hsj2-hero .hsj2-in::before {
  background-image: var(--hc-tl); aspect-ratio: var(--hc-tl-ar);
  width: clamp(60px, 9cqi, 130px); left: -10px; top: -8px; transform: scaleX(-1);
}
html body .article .hsj2 .hsj2-hero .hsj2-in::after {
  background-image: var(--hc-tr); aspect-ratio: var(--hc-tr-ar);
  width: clamp(48px, 8cqi, 110px); right: 2%; top: 10px; opacity: .92;
}
/* 下の2隅：左下＝鐘楼、右下寄り＝蓮。空の span に背景で描く（鐘楼・蓮の PNG は「大切にしていること」「法座」でも使っていて、同じ画像を共有する）。
   幅と縦横比は CSS で決まるので、画像の読み込みで周りが動かない（CLSなし）。 */
html body .article .hsj2 .hsj2-hero .hsj2-ill-tree,
html body .article .hsj2 .hsj2-hero .hsj2-ill-flower {
  display: block; position: absolute; z-index: 2; top: auto; left: auto; right: auto; height: auto; max-width: none; pointer-events: none;
  background: no-repeat center bottom / contain;
}
html body .article .hsj2 .hsj2-hero .hsj2-ill-tree {
  background-image: var(--hc-bl); aspect-ratio: var(--hc-bl-ar);
  width: clamp(76px, 8.5cqi, 124px); left: clamp(10px, 2cqi, 30px); bottom: 10px;
}
html body .article .hsj2 .hsj2-hero .hsj2-ill-flower {
  background-image: var(--hc-br); aspect-ratio: var(--hc-br-ar);
  width: clamp(64px, 7cqi, 104px); bottom: clamp(18px, 4vh, 40px);
  right: calc(3% + clamp(90px, 9cqi, 140px) + 14px + min(420px, 40cqi) + 14px); /* 位置は v5 のまま（新着カードは下の .hsj2-shin へ移したが、線画の場所は変えない） */
}
/* 画面の低いPC：ことばの下の余白が狭いので鐘楼を小さく。さらに低いときは出さない（文字に重ねない） */
@media (min-width: 835px) and (max-height: 780px) {
  html body .article .hsj2 .hsj2-hero .hsj2-ill-tree { width: clamp(60px, 5.6cqi, 76px); bottom: 6px; }
}
@media (min-width: 835px) and (max-height: 680px) {
  html body .article .hsj2 .hsj2-hero .hsj2-ill-tree { display: none; }
}
/* 「お知らせ」「ことば」は写真の上に重なる（白で覆う）。余白から写真が透けないよう、ことばの上の余白は内側の余白に置き換える */
html body .article .hsj2 .hsj2-stage { position: relative; }
html body .article .hsj2 .hsj2-stage > .hsj2-osh { position: relative; z-index: 1; background-color: #FFFFFF; }
html body .article .hsj2 .hsj2-stage > .hsj2-uta {
  z-index: 1; margin-top: 0; padding-top: calc(8px + clamp(40px, 6vw, 72px));
  background-color: #FFFFFF; box-shadow: 0 0 0 100vmax #FFFFFF; clip-path: inset(0 -100vmax);
}
@media (min-width: 1400px) {
  html body .article .hsj2 .hsj2-stage > .hsj2-osh, html body .article .hsj2 .hsj2-stage > .hsj2-shin { background-color: #FBF8F2; }
  html body .article .hsj2 .hsj2-stage > .hsj2-uta { background-color: #FBF8F2; box-shadow: 0 0 0 100vmax #FBF8F2; }
}
/* 動き：読み込み時。文字は1行ずつ透明からはっきり現れる（約0.35秒ずつ）。写真は透明から始めない（LCPを守る）・ゆっくり寄るだけ。
   端末の「視差効果を減らす」設定でも動かす（2026-11-22 19:31 の判断）。止めるのは ?nomotion（確認用）だけ */
html body .article .hsj2 .hsj2-hero-photo > img { animation: hsj2-kenburns 8s cubic-bezier(.19,1,.22,1) both; }
html body .article .hsj2 .hsj2-hero-copy .wa { animation: hsj2-up 1.2s .2s cubic-bezier(.46,.1,.29,1) both; }
html body .article .hsj2 .hsj2-hero-copy h1 span:nth-child(2) { animation: hsj2-up 1.2s .55s cubic-bezier(.46,.1,.29,1) both; }
html body .article .hsj2 .hsj2-hero-copy h1 span:nth-child(3) { animation: hsj2-up 1.2s .9s cubic-bezier(.46,.1,.29,1) both; }
html body .article .hsj2 .hsj2-hero-copy p { animation: hsj2-up 1.2s 1.25s cubic-bezier(.46,.1,.29,1) both; }
html body .article .hsj2 .hsj2-hero-copy .hsj2-btns { animation: hsj2-up 1.2s 1.6s cubic-bezier(.46,.1,.29,1) both; }
html body .article .hsj2 .hsj2-hero .hsj2-in::after { animation: hsj3-drift 7s ease-in-out infinite alternate; }
/* スクロール連動（対応ブラウザ）：下へ進むほど写真がわずかに寄る（1.00→1.05）。線画はゆっくり上へ漂う（translate のみ）。
   次の場面への切り替え（写真が白へ溶ける）もスクロール量に合わせる（style.css の hsj-motion-v3 の hsj2-hero-fade） */
@supports (animation-timeline: scroll()) {
  html body .article .hsj2 .hsj2-hero-photo { animation: hsj2-hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  html body .article .hsj2 .hsj2-hero .hsj2-ill-tree { animation: hsj2-ill-drift-l linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  html body .article .hsj2 .hsj2-hero .hsj2-ill-flower { animation: hsj2-ill-drift-r linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}
@keyframes hsj2-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes hsj2-up { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }
@keyframes hsj2-hero-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes hsj2-ill-drift-l { from { translate: 0 0; } to { translate: -10px -36px; } }
@keyframes hsj2-ill-drift-r { from { translate: 0 0; } to { translate: 8px -24px; } }
@keyframes hsj3-drift { from { translate: 0 0; rotate: 0deg; } to { translate: -3px 4px; rotate: -4deg; } }
/* スマホ：写真は縦長に切り抜き、ことばは下寄せ・中央。下の固定バー（約69px）とメニュー帯（58px）を除いた高さ */
@media (max-width: 834px) {
  html body .article .hsj2 .hsj2-hero { --hsj2-st: 58px; height: calc(100vh - 184px); height: calc(100svh - 184px); min-height: 500px; }
  html body .article .hsj2 .hsj2-hero-photo > img { object-position: 62% 40%; }
  html body .article .hsj2 .hsj2-hero-photo::after { background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 44%, rgba(255,255,255,0) 72%); }
  html body .article .hsj2 .hsj2-hero .hsj2-hero-copy { left: 16px; right: 16px; top: auto; bottom: 84px; transform: none; max-width: none; text-align: center; }
  html body .article .hsj2 .hsj2-hero-copy .wa { font-size: 12.5px; letter-spacing: .2em; margin-bottom: .5em; }
  html body .article .hsj2 .hsj2-hero-copy h1 { font-size: 28px; letter-spacing: .12em; margin-bottom: .35em; }
  html body .article .hsj2 .hsj2-hero-copy p { font-size: 14px; line-height: 1.85; margin-bottom: 1em; }
  /* 新着の区切り：左右の余白を取った全幅のカード。題名はスマホで2行に収め、「令和8年」の途中では折らない */
  html body .article .hsj2 .hsj2-shin { padding: 28px 12px 4px; }
  html body .article .hsj2 .hsj2-shin-box { gap: 10px; }
  html body .article .hsj2 .hsj2-hero-new, html body .article .hsj2 a.hsj2-hero-ann-link { gap: 10px; padding: 14px 14px 14px 12px; border-radius: 16px; }
  html body .article .hsj2 .hsj2-hero-new .lb, html body .article .hsj2 a.hsj2-hero-ann-link .lb { font-size: 13px; padding: 5px 11px 5px 13px; }
  html body .article .hsj2 .hsj2-hero-new .widget-entry-card { gap: 8px; }
  html body .article .hsj2 .hsj2-hero-new .widget-entry-card-thumb { flex-basis: clamp(44px, calc(30vw - 52px), 84px); width: clamp(44px, calc(30vw - 52px), 84px); height: clamp(30px, calc(20vw - 35px), 56px); }
  html body .article .hsj2 .hsj2-hero-new .widget-entry-card-title {
    font-size: clamp(14px, calc(3.2vw + 3.8px), 15px); line-height: 1.5; letter-spacing: .02em;
    word-break: normal; word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; text-wrap: balance; text-wrap: pretty;
  }
  html body .article .hsj2 .hsj2-hero-new .widget-entry-card-date { font-size: 13px; }
  html body .article .hsj2 a.hsj2-hero-ann-link b { font-size: 16px; }
  html body .article .hsj2 a.hsj2-hero-ann-link small { font-size: 13px; }
  html body .article .hsj2 .hsj2-hero .hsj2-ill-family { display: none; }
  /* 下の隅は文字で埋まるため、鐘楼・蓮は写真と白のさかい目の左右の端に小さく（寺名の行の両脇） */
  html body .article .hsj2 .hsj2-hero .hsj2-ill-tree { width: min(15cqi, 76px); left: 6px; bottom: 300px; }
  html body .article .hsj2 .hsj2-hero .hsj2-ill-flower { width: min(14cqi, 70px); right: 6px; bottom: 300px; }
  html body .article .hsj2 .hsj2-hero .hsj2-in::before { width: 15cqi; left: -8px; top: -6px; }
  html body .article .hsj2 .hsj2-hero .hsj2-in::after { width: 12cqi; right: 4px; top: 6px; }
}

/* 季節の差し替え例（使うときは上の変数ブロックの値と入れ替える）
   春・永代経：  --hc-tl: sakura-branch(既存 hsj2-sakura-branch.png 380/415) / --hc-br: hasu
   夏・お盆：    --hc-tr: ochiba（青もみじ等） / --hc-br: hasu（盆提灯は使わない）
   秋・お彼岸：  --hc-br: higanbana(519/720)
   秋・報恩講：  （既定）momiji-branch / ochiba / shoro / hasu
   冬・君田の雪：--hc-tl: yuki-nanten(720/706) / --hc-tr: なし(none) */

/* ===== hsj-hero-corners-v1（2026-11-01）の続き：仮置き線画の差し替え ===== */
/* ---------- 2. 仮置き線画の差し替え ---------- */
/* トップ「大切にしていること」アイコン：木→本堂、あじさい→蓮 */
html body .article .hsj2 .hsj2-values-list li:nth-child(3) img,
html body .article .hsj2 .hsj2-values-list li:nth-child(4) img {
  object-position: -9999px 0; background: no-repeat center / contain; }
html body .article .hsj2 .hsj2-values-list li:nth-child(3) img { background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hondo.png"); }
html body .article .hsj2 .hsj2-values-list li:nth-child(4) img { background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hasu.png"); }
/* トップ「法座・ご法事」写真左下：松→鐘楼 */
html body .article .hsj2 .hsj2-row-ph img.hsj2-ill.tl {
  object-position: -9999px 0; background: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-shoro.png") no-repeat center bottom / contain;
  aspect-ratio: 641/720; height: auto; }

/* 固定ページ見出し帯：左の木→本堂（右の線画は各ページの --hsj3-art） */
html body:not(.home) .article h1.entry-title::after, html body.archive h1.archive-title::after {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -100vmax !important;
  right: -100vmax !important;
  z-index: -1;
  pointer-events: none;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hondo.png"), var(--hsj3-art), url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png") !important;
  background-size: auto 62%, auto 52%, auto 32px !important;
}
html body.blog .hsj-bloghead::after {
  inset: 0;
  opacity: .5;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hondo.png"), url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-sakura-branch.png"), url("https://howsenji.com/wp-content/uploads/2026/10/hsj2-ground.png");
  background-size: auto 60%, auto 52%, auto 40px;
}
/* お墓系の帯の右：あじさい→ページに合った線画 */
body.page-id-26   {
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-kouro.png");
}   /* お墓：香炉と菊 */
body.page-id-1157 {
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hasu.png");
}    /* 永代合同墓：蓮 */
body.page-id-1158 {
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-kouro.png");
}   /* 墓地：香炉と菊 */
body.page-id-1159 {
  --hsj3-art: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-nenju.png");
}   /* 改葬：念珠 */

/* 本文先頭写真の左下（木・松）と右下（あじさい） */
html body.page:not(.home):is(.page-id-22,.page-id-24,.page-id-26,.page-id-1158) .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before {
  transform-origin: 50% 100%;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-shoro.png") !important;
  aspect-ratio: 641/720 !important;
  width: clamp(84px, 9vw, 124px) !important;
}
html body.page:not(.home).page-id-22 .article .entry-content > figure.wp-block-image:first-of-type::after {
  opacity: 1;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-sanmon.png");
  aspect-ratio: 720/513;
  width: clamp(130px, 14vw, 190px);
}   /* お寺について：山門 */
html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::after,
html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::after {
  opacity: 1;
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hasu.png");
  aspect-ratio: 720/603;
  width: clamp(120px, 13vw, 180px);
}      /* お墓：蓮 */
html body.page:not(.home).page-id-26 .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page:not(.home).page-id-1158 .article .entry-content > figure.wp-block-image:first-of-type::before,
html body.page-id-1157 .article .entry-content > .wp-block-group:first-of-type > figure.wp-block-image:first-child::before {
  background-image: url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-kouro.png") !important;
  aspect-ratio: 629/681 !important;
}               /* お墓系左下：香炉 */

/* ワイド画面の左余白（雲＋松）→ 雲＋鐘楼 */
html::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 230' fill='none' stroke='%238C7B6B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 62c-10 0-15-12-6-17 0-11 13-15 20-8 5-11 23-11 26 2 10-2 16 9 9 16 2 7-4 9-9 7z' fill='%23F6EFE3'/%3E%3Cpath d='M92 132c-8 0-11-9-4-13 1-8 11-10 15-5 4-8 18-7 19 2 8-1 12 7 6 12 1 5-3 6-7 5z' fill='%23EEF3E6'/%3E%3Cpath d='M104 30c4-4 8-4 11 0 3-4 7-4 11 0'/%3E%3Cpath d='M128 54c3-3 6-3 8 0 2-3 5-3 8 0'/%3E%3Cpath d='M86 76c3-3 6-3 8 0 2-3 5-3 8 0'/%3E%3Cpath d='M40 196c8-6 18-6 22 4-9 2-17 1-22-4z' fill='%23EEF3E6'/%3E%3Cpath d='M40 196c9 1 15 3 22 4'/%3E%3C/svg%3E"), url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-shoro.png") !important; }

/* スマホメニュー右下：あじさい→蓮 */
html body .mobile-menu-buttons #navi-menu-input:checked ~ #navi-menu-content::before {
  background-image: radial-gradient(circle, #A2472A 0 3px, transparent 3.5px), url("https://howsenji.com/wp-content/uploads/2026/11/hsj3-hasu.png") !important; }
/* /hsj-hero-corners-v1 */

/* ===== hsj-linebreak-v1 (2026-11-01) : 日本語の自然な改行 =====
   - Chrome/Edge 119+ : word-break:auto-phrase（BudouX相当の文節改行。html lang="ja" が前提）
   - Safari/iOS : auto-phrase 非対応 → 本文側の <wbr> と「wbr を含む要素だけ keep-all」で文節改行
   - 長い本文段落（.entry-content p 一般）には適用しない
   - 属性セレクタ・&& 不使用 */

/* 1) 見出し：文節改行＋行長のバランス */
html body .article .entry-content h1,
html body .article .entry-content h2,
html body .article .entry-content h3,
html body .article .entry-content h4,
html body .article .entry-content h5,
html body .article h1.entry-title,
html body .article .hsj-step-title,
html body .article .hsj-val-title,
html body .article .hsj-ohl-boxttl,
html body .article .hsj-ohl-cardttl,
html body .article .hsj-fq-ttl,
html body .article .hsj-acc-ttl,
html body .article .hsj3-first-ttl,
html body .article .hsj-heading,
html body .article .hsj-sg-ttl,
html body .article .hsj-ofuse-ttl,
html body .article .hsj-note-title,
html body .article .hsj-mos-ttl,
html body .article .hsj-kata-ttl,
html body .article .hsj-kata-unitttl,
html body .article .hsj-kaiki-ttl,
html body .article .hsj-hyo-ttl,
html body .article .hsj-fee2-ttl,
html body .article .hsj-fee2-exttl,
html body .article .hsj-guide-t,
html body .article .hsj2-osh-hd,
html body a.hsj-tebiki-card .hsj-tebiki-t{
  word-break: auto-phrase;
  text-wrap: balance;
}

/* 2) リード・カード本文・吹き出し・ヒーロー・ボタン：文節改行＋末尾の孤立文字防止 */
html body .article .hsj2-lead,
html body .article .hsj2-hero-copy p,
html body .article .hsj2-hero-copy .wa,
html body .article .hsj2-values-list p,
html body .article .hsj2-card p,
html body .article .hsj2-news .t,
html body .article .hsj2-bubble p,
html body .article .hsj2-note,
html body .article .hsj2-first-note,
html body .article .hsj2-btn,
html body .article .hsj3-cta,
html body .article .hsj-lead-c,
html body .article .hsj-ohl-lead,
html body .article .hsj-ohl-cardlead,
html body .article .hsj-gyo-lead,
html body .article .hsj-sg-lead,
html body .article .hsj-oshie-lead,
html body .article .hsj-mos-lead,
html body .article .hsj-gal-lead,
html body .article .hsj-fee2-lead,
html body .article .hsj-boti-lead,
html body .article .hsj-abt-lead,
html body .article .hsj-acc-sub,
html body .article .hsj-fee2-sub,
html body .article .hsj-kaiki-sub,
html body .article .hsj-hyo-sub,
html body .article .hsj-ofuse-sub,
html body .article .hsj-boti-sub,
html body .article .hsj-guide-d,
html body .article .hsj-guide-tx,
html body .article .hsj-guide-talk-bubble,
html body .article figcaption,
html body .article .wp-block-button__link{
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 3) iPhone/Safari 対策：本文に <wbr> を入れた要素だけ、和文の任意改行を止めて <wbr> で折る。
      はみ出し防止に overflow-wrap:anywhere を併用（:has は Safari 15.4+ / Chrome 105+） */
html body .article .entry-content :is(h1,h2,h3,h4,h5,p,li,a,div,span,figcaption,dt,dd):has(> wbr){
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html body .article .entry-content :is(h1,h2,h3,h4,h5):has(> wbr){ text-wrap: balance; }
/* 句ごとに折り返しを禁止したい箇所用（<span class="hsj-nb">） */
html body .article .hsj-nb{ display: inline-block; }

/* ===== hsj-footer-white-v1 (2026-11-01) ここから =====
   フッター背景を白に（hsj-footer-cream-v1 の #footer.footer を上書き）。フッターメニューは親項目のみ表示。 */
html body #footer.footer{
  background: #FFFFFF !important;
  border-top: 1px solid #E9E2D6 !important;
}
html body #footer .hsj-ft-nav li.hsj-ft-sub{ display:none !important; }

/* ===== hsj-sp-herobtn-v1 (2026-11-01) ここから =====
   スマホのヒーロー「はじめての方へ」ボタンを画面幅いっぱいにせず、PCと同程度の大きさで中央に。 */
@media (max-width:834px){
  html body .hsj2-hero-copy .hsj2-btns{ justify-content:center !important; }
  html body .hsj2-hero-copy .hsj2-btns .hsj2-btn{ width:auto !important; flex:0 0 auto !important; align-self:center !important; min-width:0 !important; max-width:none !important; }
}

/* ===== hsj-jushoku-cap-v1 (2026-11-01) 住職の絵とお名前「法泉寺 住職」の重なりを直す ここから =====
   原因：hsj-guide-talk-v3 は、絵の下側を負の margin でお名前の帯の下に入れ、帯の背景色で隠して「胸から上」を見せる作り。
   　　　hsj-bg-white-v1 の「.hsj-guide-talk-name{ background-color:transparent !important }」で帯が透明になり、
   　　　法衣の裾が文字の後ろに透けて見えていた。
   対策：お名前の帯だけ、地の色（白）でふたたび塗る。絵の大きさ・縦横比・切り抜き位置は変えない。 */
html body .article .entry-content .hsj-guide-talk .hsj-guide-talk-fig > .hsj-guide-talk-name,
html body.blog .widget-index-top .hsj-guide-talk .hsj-guide-talk-fig > .hsj-guide-talk-name{
  position:relative; z-index:1;
  background-color:#FFFFFF !important;
  padding-top:.35em;
}

/* ===== hsj-linebreak-v2 (2026-11-03) ここから : 改行の追加調整 =====
   - 属性セレクタ・論理積の記号は使わない。管理者表示でも同じ（body.logged-in で分けない）。
   - 戻すときはこのブロックを丸ごと削除。 */

/* 1) /blog/ などのページ送り：画面には出ない読み上げ用の「次へ」「前へ」を1行に（見た目は変わらない） */
html body .pagination .screen-reader-text{ white-space: nowrap; }

/* 2) 記事カード（一覧・関連記事・新着）のタイトル：文節で折り、行の長さをそろえる */
html body .entry-card-title,
html body .related-entry-card-title,
html body .new-entry-card-title,
html body .popular-entry-card-title{
  word-break: auto-phrase;
  text-wrap: balance;
}

/* 3) hsj-sp-table-v1 (2026-11-24) スマホの表がはみ出さないようにする。
   3列の懇志表と4列の年中法座表は、幅が狭いときだけ行ごとのカードにする。
   歴代住職・教章の min-width による横スクロールをやめ、本文幅に収める。
   ご葬儀の見出しや年回法要の「日／目」のように、行末に1字だけ残る改行を避ける。
   投稿「広島県三次市で永代供養をお考えの方へ」（1153・.hsj-kon）も同じカードにする。
   PC（768px以上）の見た目は変えない。戻すときはこのブロックを丸ごと削除し、
   以前の 400px での見出し余白・字間の調整だけを戻せばよい。 */
@media (max-width: 767px){
  /* --- 1. 合同墓の懇志表・お墓案内の懇志表：行ごとのカード --- */
  html body .article .hsj-fee2-scroll,
  html body .article .hsj-ohl-feescroll{
    overflow: visible !important;
  }
  html body .article table.hsj-fee2-table,
  html body .article table.hsj-ohl-feetbl,
  html body .article table.hsj-kon{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }
  html body .article table.hsj-fee2-table colgroup,
  html body .article table.hsj-ohl-feetbl colgroup,
  html body .article table.hsj-kon colgroup{
    display: none !important;
  }
  html body .article table.hsj-fee2-table > tbody > tr:first-child,
  html body .article table.hsj-ohl-feetbl > thead,
  html body .article table.hsj-kon > thead{
    display: none !important;
  }
  html body .article table.hsj-fee2-table > tbody,
  html body .article table.hsj-ohl-feetbl > tbody,
  html body .article table.hsj-kon > tbody{
    display: block !important;
    width: 100% !important;
  }
  html body .article table.hsj-fee2-table > tbody > tr,
  html body .article table.hsj-ohl-feetbl > tbody > tr,
  html body .article table.hsj-kon > tbody > tr{
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 1.15em !important;
    padding: 0 0 .85em !important;
    border: none !important;
    border-bottom: 1px solid var(--hsj-line, #DDD8CC) !important;
    background: transparent !important;
  }
  html body .article table.hsj-fee2-table > tbody > tr:last-child,
  html body .article table.hsj-ohl-feetbl > tbody > tr:last-child,
  html body .article table.hsj-kon > tbody > tr:last-child{
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  html body:not(.home) .article .entry-content table.hsj-fee2-table th,
  html body:not(.home) .article .entry-content table.hsj-fee2-table td,
  html body:not(.home) .article .entry-content table.hsj-ohl-feetbl th,
  html body:not(.home) .article .entry-content table.hsj-kon th,
  html body:not(.home) .article .entry-content table.hsj-ohl-feetbl td,
  html body:not(.home) .article .entry-content table.hsj-kon td{
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: left !important;
    vertical-align: top !important;
    padding: .2em 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    letter-spacing: .04em !important;
  }
  html body .article table.hsj-fee2-table td.hsj-fee2-left,
  html body .article table.hsj-ohl-feetbl tbody th,
  html body .article table.hsj-kon tbody th{
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: .06em !important;
    color: var(--hsj-acc, #6F5137) !important;
    padding: .15em 0 .45em !important;
  }
  html body .article table.hsj-ohl-feetbl .hsj-ohl-feecat{
    display: block !important;
    margin: 0 0 .15em !important;
  }
  html body .article table.hsj-ohl-feetbl tbody th .hsj-nb,
  html body .article table.hsj-kon tbody th .hsj-nb{
    display: block;
  }
  html body .article table.hsj-fee2-table td:nth-child(2)::before,
  html body .article table.hsj-ohl-feetbl tbody td:nth-child(2)::before,
  html body .article table.hsj-kon tbody td:nth-child(2)::before{
    content: "法泉寺の門徒の方";
    display: block;
    margin: .45em 0 .1em;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--hsj-mut, #6E6656);
  }
  html body .article table.hsj-fee2-table td:nth-child(3)::before,
  html body .article table.hsj-ohl-feetbl tbody td:nth-child(3)::before,
  html body .article table.hsj-kon tbody td:nth-child(3)::before{
    content: "法泉寺の門徒以外の方";
    display: block;
    margin: .45em 0 .1em;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--hsj-mut, #6E6656);
  }
  /* 個別安置懇志のように金額が1つだけの行は、列の見出しを出さない */
  html body .article table.hsj-fee2-table td:nth-child(2):last-child::before{
    content: none;
  }
  html body .article table.hsj-fee2-table .hsj-nb,
  html body .article table.hsj-ohl-feetbl .hsj-nb,
  html body .article table.hsj-kon .hsj-nb{
    display: inline-block;
  }

  /* --- 2. 年中法座（4列）も行ごとのカード --- */
  html body .article .hsj-gy-scroll{
    overflow: visible !important;
  }
  html body .article table.hsj-gy-table{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .article table.hsj-gy-table colgroup,
  html body .article table.hsj-gy-table thead{
    display: none !important;
  }
  html body .article table.hsj-gy-table tbody,
  html body .article table.hsj-gy-table tr,
  html body .article table.hsj-gy-table td{
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body .article table.hsj-gy-table tr{
    margin: 0 0 1.2em !important;
    padding: 0 0 .9em !important;
    border-bottom: 1px solid var(--hsj-line, #DDD8CC) !important;
  }
  html body .article table.hsj-gy-table tr:last-child{
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  html body .article table.hsj-gy-table td{
    white-space: normal !important;
    text-align: left !important;
    padding: .2em 0 !important;
    border: none !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  html body .article table.hsj-gy-table td::before{
    display: block;
    margin: 0 0 .1em;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--hsj-mut, #6E6656);
  }
  html body .article table.hsj-gy-table td:nth-child(1)::before{ content: "時期"; }
  html body .article table.hsj-gy-table td:nth-child(2)::before{ content: "法座"; }
  html body .article table.hsj-gy-table td:nth-child(3)::before{ content: "お勤めの時間"; }
  html body .article table.hsj-gy-table td:nth-child(4)::before{ content: "内容"; }
  html body .article table.hsj-gy-table td:nth-child(1){
    font-weight: 700 !important;
    color: var(--hsj-acc, #6F5137) !important;
    font-size: 16px !important;
    letter-spacing: .08em !important;
    padding-bottom: .35em !important;
  }

  /* --- 3. 歴代住職・教章：min-width を外して本文幅に収める --- */
  html body .article .hsj-rekidai2-scroll,
  html body .article .hsj-kyosho2-scroll,
  html body .article .hsj-boti-scroll{
    overflow: visible !important;
  }
  html body .article table.hsj-rekidai2-table,
  html body .article table.hsj-kyosho2-table{
    min-width: 0 !important;
    width: 100% !important;
  }
  html body .article table.hsj-rekidai2-table th,
  html body .article table.hsj-rekidai2-table td,
  html body .article table.hsj-kyosho2-table th,
  html body .article table.hsj-kyosho2-table td{
    padding-left: .5em !important;
    padding-right: .5em !important;
    white-space: normal !important;
    word-break: auto-phrase;
    text-wrap: pretty;
  }
  html body .article table.hsj-rekidai2-table th:first-child,
  html body .article table.hsj-rekidai2-table td:first-child,
  html body .article table.hsj-rekidai2-table tbody th{
    white-space: nowrap !important;
    word-break: keep-all;
  }

  /* --- 4. 年回法要・ご逝去後の表：孤立した1字を避ける --- */
  html body .article .hsj-houyou th,
  html body .article .hsj-houyou td{
    padding: 8px 6px !important;
    font-size: 13.5px !important;
    word-break: auto-phrase;
    text-wrap: pretty;
    line-break: strict;
  }

  /* --- 5. ご葬儀の役割表：見出しが「い」だけで改行しないように。本文も文節で折る --- */
  html body .article table.hsj-sg-table:not(.hsj-ks-role) thead th{
    letter-spacing: .04em !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    word-break: keep-all;
    text-wrap: pretty;
  }
  html body .article table.hsj-sg-table:not(.hsj-ks-role) td{
    word-break: auto-phrase;
    text-wrap: pretty;
    line-break: strict;
  }

  /* --- 6. お墓案内の懇志枠：内側の左右余白を少し詰めて本文に近づける --- */
  html body .article .hsj-ohl-fee{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* 墓地の懇志表の小さな説明（法泉寺門徒の方／有縁の方／お参り・御供・整備等） */
@media (max-width: 400px){
  html body .article .hsj-boti-table th{
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  html body .article .hsj-boti-table th .hsj-boti-small{ letter-spacing: 0 !important; }
}

/* 4) 文節ごとのリンク（はじめての方へ「ご用件からさがす」など）：リンク内の hsj-nb はリンクの色・下線を保つ */
html body .article .entry-content a .hsj-nb{ text-decoration: inherit; }

/* ===== hsj-spbar-icon-v1 (2026-11-03) ここから : スマホ下部バー「アクセス」の記号（⌖）が□になる端末があるため、CSSの地図ピンに置き換える =====
   - 対象：トップ本文の nav.hsj2-sp-bar と、フッター（モバイル用）ウィジェットが作る nav.hsj-spbar-all の、どちらも2番目のボタン。
   - 本文・ウィジェットの文字（⌖）は残したまま、文字を見えなくしてピンを描く（色は文字色＝隣の ☎ ✉ と同じ）。
   - 大きさは隣の記号（font-size:19px の行）に合わせて 19px 四方。戻すときはこのブロックを丸ごと削除。 */
@media (max-width: 1023px){
  html body nav.hsj2-sp-bar a:nth-child(2) span,
  html body > nav.hsj-spbar-all a:nth-child(2) span{
    font-size: 0 !important;
    line-height: 0 !important;
    height: 26.6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  html body nav.hsj2-sp-bar a:nth-child(2) span::before,
  html body > nav.hsj-spbar-all a:nth-child(2) span::before{
    content: "";
    display: block;
    width: 19px;
    height: 19px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
/* ===== hsj-motion-v2 (2026-11-09) ここから =====
   操作したことが目と手に伝わる動き（v1 を置き換え）。
   ・ボタン：マウスを乗せると少し浮いて影、矢印が右へ。押すと沈む。
   ・全体がリンクのカード（.hsj3-link / .hsj-guide-card / .hsj-tebiki-card / 記事一覧）：浮いて影・枠色、矢印が右へ。押すと戻る。
   ・開閉（FAQ・アコーディオン）：開くときに高さと透明度がなめらかに変わる（対応ブラウザのみ。非対応は今まで通り瞬時に開閉）。
   ・押した瞬間の色（タッチ）／キーボードの枠。
   ・浮く・矢印の動きはマウス操作の端末だけ（スマホで浮いたまま残らない）。OSの「視差効果を減らす」では動かさない。
   文字・写真・価格・配置・中央そろえは変えない。transition: all は使わない。 */

/* 0. 共通の動きの速さ */
html body{
  --hsj-mo-ease: cubic-bezier(.2,.8,.2,1);
  --hsj-mo-fast: .14s;
  --hsj-mo-mid: .26s;
}

/* 1. ボタン：トップ .hsj2-btn と内側ページのご相談ボタン .hsj3-cta */
html body .article a.hsj2-btn,
html body:not(.home) .article .hsj3-cta .btns a{
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
              transform var(--hsj-mo-mid) var(--hsj-mo-ease), box-shadow var(--hsj-mo-mid) var(--hsj-mo-ease);
}
html body .article a.hsj2-btn::after{ display:inline-block; transition: transform var(--hsj-mo-mid) var(--hsj-mo-ease); }
@media (hover: hover) and (pointer: fine){
  html body .article a.hsj2-btn:hover,
  html body:not(.home) .article .hsj3-cta .btns a:hover{ transform: translateY(-2px); box-shadow: 0 8px 18px rgba(162,71,42,.20); }
  html body .article a.hsj2-btn:hover::after{ transform: translateX(4px); }
}
@media (hover: none), (pointer: coarse){
  html body .article a.hsj2-btn:hover{ transform: none; }
}
html body .article a.hsj2-btn:active,
html body:not(.home) .article .hsj3-cta .btns a:active{
  transform: translateY(1px) scale(.97); box-shadow: 0 2px 6px rgba(162,71,42,.18); transition-duration: var(--hsj-mo-fast);
}

/* 2. 全体がリンクのカード（中身にリンクが入っているだけの .hsj2-card などは対象外） */
html body:not(.home) .article a.hsj3-link,
html body .article .hsj-guide a.hsj-guide-card,
html body a.hsj-tebiki-card{
  transition: background-color .2s ease, border-color .2s ease,
              transform var(--hsj-mo-mid) var(--hsj-mo-ease), box-shadow var(--hsj-mo-mid) var(--hsj-mo-ease) !important;
}
html body:not(.home) .article a.hsj3-link .arrow,
html body a.hsj-tebiki-card > .hsj-tebiki-arrow{ display:inline-block; transition: transform var(--hsj-mo-mid) var(--hsj-mo-ease); }
@media (hover: hover) and (pointer: fine){
  html body:not(.home) .article a.hsj3-link:hover,
  html body .article .hsj-guide a.hsj-guide-card:hover,
  html body a.hsj-tebiki-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58,51,44,.12) !important; }
  html body:not(.home) .article a.hsj3-link:hover .arrow,
  html body a.hsj-tebiki-card:hover > .hsj-tebiki-arrow{ transform: translateX(5px); }
}
html body:not(.home) .article a.hsj3-link:active,
html body .article .hsj-guide a.hsj-guide-card:active,
html body a.hsj-tebiki-card:active{
  transform: translateY(0) scale(.99); box-shadow: 0 2px 8px rgba(58,51,44,.08) !important; transition-duration: var(--hsj-mo-fast) !important;
}

/* 3. 記事一覧のカード（/blog/・カテゴリー）：既存の写真の拡大はそのまま。押すと少し沈む */
html body a.entry-card-wrap{ transition: background-color .2s ease, transform var(--hsj-mo-fast) var(--hsj-mo-ease); }
html body a.entry-card-wrap:active{ transform: scale(.99); }

/* 4. スマホ下の固定バー：バーは動かさず、押したボタンだけ薄く */
html body > nav.hsj-spbar-all a{ transition: opacity var(--hsj-mo-fast) ease; }
html body > nav.hsj-spbar-all a:active{ opacity: .7; }

/* 5. FAQ・アコーディオン
   5a. 押した瞬間の地色（既存の hover と同じ #FBF8F2。既存が !important のため同じ書き方で1段くわしく） */
html body:not(.home) .article .entry-content .hsj-fq details.hsj-fq-q > summary:active,
html body:not(.home) .article details.hsj-acc > summary:active{ background:#FBF8F2 !important; }
/* 5b. 開閉のなめらかな高さ・透明度（::details-content と interpolate-size に対応するブラウザだけ。
       非対応ブラウザでは指定ごと無視され、今まで通り瞬時に開閉。中身は検索・印刷でも従来どおり） */
@supports selector(::details-content) and (interpolate-size: allow-keywords){
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo){ interpolate-size: allow-keywords; }
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo)::details-content{
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .32s var(--hsj-mo-ease), opacity .24s ease, content-visibility .32s allow-discrete;
  }
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo)[open]::details-content{
    block-size: auto; opacity: 1;
  }
  /* 5c. キーボードで開閉したとき（見出しにキーボードの枠が出ている間）と、ページ内のリンクから開いたとき（.hsj-noanim）は、
         高さのアニメーションをせず瞬時に開閉する。開いている途中は中身の高さが0のため、すぐ Tab を押すと中の質問を飛ばしてしまうのを防ぐ */
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo):has(> summary:focus-visible)::details-content,
  html body .article details.hsj-noanim::details-content{ transition: none; }
}

/* 5d. 高さのアニメーションに対応しないが ::details-content には対応するブラウザ（MDN：Safari 18.4 以降・iPhone の Safari・Firefox 143 以降）向け：
       開いたとき、中身が透明度と 6px の移動でなめらかに現れる（0.26 秒）。高さは瞬時。閉じるときは瞬時。
       開いた状態の値は常に「見える・ずれなし」なので、あとからキーボードの枠が外れても・.hsj-noanim が外れても、動きは繰り返さない。
       キーボードで開いたとき・ページ内リンクから開いたときは動かさない。どちらにも対応しない古いブラウザは従来どおり瞬時 */
@supports selector(::details-content) and (not (interpolate-size: allow-keywords)){
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo)::details-content{ opacity: 0; translate: 0 -6px; transition: none; }
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo)[open]::details-content{ opacity: 1; translate: 0 0; transition: opacity .26s ease, translate .26s var(--hsj-mo-ease), content-visibility .26s allow-discrete; }
  html body .article details:is(.hsj-acc,.hsj-fq-q,.hsj-ohl-acc,.hsj-boti-more,.hsj-fee2-more,.hsj-kata-more,.hsj-mos,.hsj-ofuse,.hsj-kaiki,.hsj-hyo)[open]:has(> summary:focus-visible)::details-content,
  html body .article details.hsj-noanim[open]::details-content{ transition: none; }
}

/* 6. トップ「法話・作法」の「一覧 →」：マウスを乗せたとき下線 */
@media (hover: hover){ html body .article .hsj2-news a.hsj2-news-more:hover{ text-decoration: underline; text-underline-offset: 3px; } }

/* 7. キーボード操作の枠（個別の指定がない本文中のリンク・開閉見出し・ボタンだけに効く弱い指定） */
html body .article :where(a, summary, button):focus-visible{ outline: 2px solid #A2472A; outline-offset: 3px; }
/* 7b. 開閉の見出し（summary）：外側の枠は、角丸の箱（overflow:hidden）に切り取られて見えなくなるため、内側に描く。
       既存の !important 指定にも負けないよう、details > summary で1段くわしく。開閉の矢印（::after）はそのまま */
html body .article details > summary:focus-visible{
  outline: 2px solid #A2472A !important; outline-offset: -4px !important;
  box-shadow: inset 0 0 0 4px rgba(162,71,42,.12) !important;
}

/* 8. OSの「視差効果を減らす」：動き・高さアニメーションを止める（色の変化と枠は残す） */
@media (prefers-reduced-motion: reduce){
  html body .article a.hsj2-btn, html body .article a.hsj2-btn::after, html body:not(.home) .article .hsj3-cta .btns a,
  html body:not(.home) .article a.hsj3-link, html body:not(.home) .article a.hsj3-link .arrow,
  html body .article .hsj-guide a.hsj-guide-card, html body a.hsj-tebiki-card, html body a.hsj-tebiki-card > .hsj-tebiki-arrow,
  html body a.entry-card-wrap, html body > nav.hsj-spbar-all a{ transition: none !important; transform: none !important; }
  html body .article details::details-content{ transition: none !important; }
  /* 開閉の矢印の回転（各ページ・テーマの summary::after / ::before）も、動かさず向きだけ切り替える */
  html body .article details > summary::after,
  html body .article details > summary::before{ transition: none !important; }
}

@media (min-width: 1024px){
  /* 全項目：下に ▽ 用の帯。上をわずかに詰めて見た目のバランスを取る。左右は既存ルールのまま */
  html body #header-container #navi .navi-in > ul.menu-pc > li > a{
    padding-top: .42em !important;
    padding-bottom: calc(.28em + 11px) !important;
  }
  /* 子のある項目の ▽：ラベルの下・左右中央 */
  html body #header-container #navi .navi-in > ul.menu-pc > li.menu-item-has-children > a > .has-icon{
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 2px !important;
    height: auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateX(-50%);
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: .65;
    pointer-events: none;
  }
}
@media (min-width: 1024px) and (max-width: 1240px){
  html body #header-container #navi .navi-in > ul.menu-pc > li > a{
    padding-top: .38em !important;
    padding-bottom: calc(.22em + 11px) !important;
  }
}