/*
Theme Name: 法楽寺（Lightning 子テーマ）
Template: lightning
Description: 播州犬寺 法楽寺のための子テーマ。スマホ最優先。
Version: 0.2.7
Text Domain: lightning-houraku
*/

:root {
	--hr-sumi: #1f1d1a;
	--hr-sumi2: #2b2723;
	--hr-kinari: #f6f2ea;
	--hr-kinari2: #ece5d8;
	--hr-kincha: #a8834a;
	--hr-kincha-text: #7a5e2f;
	--hr-kincha-light: #d9c7a3;
	--hr-line: #d8cfbf;
	--hr-muted: #5f574c;
	--hr-mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
	--hr-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
	--hr-head-h: 64px;
	--hr-bar-h: 64px;
	--hr-gutter: 24px;
	--vk-color-primary: #7a5e2f;
	--vk-color-primary-dark: #5f4924;
}

/* ---------- 全体 ---------- */
html { scroll-padding-top: 80px; }
/* ログイン中はページ内リンクの飛び先も管理バーの分だけ下げる */
:root:has(body.admin-bar) { scroll-padding-top: 126px; }
@media (min-width: 783px) { :root:has(body.admin-bar) { scroll-padding-top: 112px; } }
body {
	background: var(--hr-kinari);
	color: var(--hr-sumi);
	font-family: var(--hr-sans);
	font-size: 16px;
	line-height: 1.85;
	-webkit-text-size-adjust: 100%;
}
a { color: var(--hr-kincha-text); }
a:hover, a:focus { color: var(--hr-sumi); }
:focus-visible { outline: 2px solid var(--hr-kincha); outline-offset: 2px; }
.hr-menu-open, .hr-menu-open body { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--hr-mincho); font-weight: 700; letter-spacing: 0.08em; }

/* Lightning 標準のスマホメニューは使わない */
.vk-mobile-nav-menu-btn, .vk-mobile-nav { display: none !important; }

/* ---------- ヘッダー（下層では生成りの帯、トップの写真の上では透明） ---------- */
/* Lightning が body に overflow-x:hidden を付けるため sticky が効かない。全ページ fixed にして、下層は本文を頭の高さだけ下げる */
body:not(.home) { padding-top: var(--hr-head-h); }
.hr-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--hr-head-h); padding: 6px 8px 6px 20px;
	background: var(--hr-kinari); color: var(--hr-sumi);
	border-bottom: 1px solid var(--hr-line);
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.hr-header--over { background: transparent; color: var(--hr-kinari); border-bottom-color: transparent; }
.hr-header--over.is-solid { background: var(--hr-kinari); color: var(--hr-sumi); border-bottom-color: var(--hr-line); }
/* ログイン中の管理バーの分だけ下げる。スマホ幅では管理バーがスクロールで消える仕様なので、消えないよう固定して隙間が出ないようにする */
.admin-bar .hr-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .hr-header { top: 32px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
/* 横向きのスマホでは管理バーの項目が 2 段に折り返してメニューに重なるので、1 段分だけ見せる */
@media (max-width: 782px) and (max-height: 500px) { #wpadminbar { height: 46px; overflow: hidden; } }
@media (min-width: 783px) and (max-height: 500px) { #wpadminbar { height: 32px; overflow: hidden; } }
.admin-bar .hr-menu { top: 46px; }
@media (min-width: 783px) { .admin-bar .hr-menu { top: 32px; } }
.hr-header__logo { margin: 0; font-family: var(--hr-mincho); font-size: 18px; letter-spacing: 0.2em; line-height: 1.3; }
.hr-header__logo a { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.hr-header__logo small { font-size: 12px; letter-spacing: 0.3em; opacity: 0.85; }
.hr-header__logo-img { display: block; width: auto; max-width: 200px; height: auto; max-height: 44px; }
.hr-header__logo a { min-height: 44px; justify-content: center; }
.hr-header--over:not(.is-solid) { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
/* PC 用の横並びメニュー（1100px 以上で表示。それ未満は 2 段に折れるので出さない） */
.hr-pcnav { display: none; }
@media (min-width: 1100px) {
	.hr-pcnav { display: block; margin-left: auto; margin-right: 8px; min-width: 0; overflow: hidden; }
	.hr-pcnav ul { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
	.hr-pcnav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: inherit; text-decoration: none; font-family: var(--hr-mincho); font-size: 15px; letter-spacing: 0.12em; }
	.hr-pcnav a:hover { color: var(--hr-kincha-text); }
	.hr-header--over:not(.is-solid) .hr-pcnav a:hover { color: var(--hr-kincha-light); }
}
.hr-menu-btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 56px; height: 52px; padding: 0; border: 0; border-radius: 0;
	background: transparent; color: inherit; cursor: pointer;
}
.hr-menu-btn__lines { display: flex; flex-direction: column; gap: 7px; width: 28px; }
.hr-menu-btn__lines i { display: block; height: 1px; background: currentColor; }
.hr-menu-btn__lines i:last-child { width: 70%; margin-left: auto; }
.hr-menu-btn__label { font-size: 12px; letter-spacing: 0.1em; line-height: 1.2; }

/* ---------- 全画面メニュー ---------- */
.hr-menu {
	position: fixed; inset: 0; z-index: 100;
	display: flex; flex-direction: column;
	background: var(--hr-kinari); color: var(--hr-sumi);
	overflow-y: auto;
}
.hr-menu[hidden] { display: none; }
.hr-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 20px; min-height: var(--hr-head-h); border-bottom: 1px solid var(--hr-line); }
.hr-menu__name { font-family: var(--hr-mincho); letter-spacing: 0.2em; }
.hr-menu-close { width: 52px; height: 52px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.hr-menu__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px var(--hr-gutter) 8px; }
.hr-menu__list { list-style: none; margin: 8px 0 0; padding: 0 var(--hr-gutter); }
.hr-menu__list li { border-bottom: 1px solid var(--hr-line); }
.hr-menu__list a {
	display: flex; align-items: center; min-height: 64px;
	color: var(--hr-sumi); text-decoration: none;
	font-family: var(--hr-mincho); font-size: 22px; letter-spacing: 0.16em;
}
.hr-menu__list a:hover { color: var(--hr-kincha-text); }
.hr-menu__foot { margin-top: auto; padding: 32px var(--hr-gutter) 40px; font-size: 15px; color: var(--hr-muted); }
.hr-menu__foot p { margin: 0; }

/* 大きなボタン（アクセス・電話） */
.hr-bigbtn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 60px; padding: 0 12px;
	background: var(--hr-sumi); color: var(--hr-kinari); text-decoration: none;
	font-size: 17px; letter-spacing: 0.12em;
}
.hr-bigbtn:hover, .hr-bigbtn:focus { background: var(--hr-kincha-text); color: var(--hr-kinari); }

/* ---------- 画面下の固定ボタン（HOURAKU_FIXED_BAR が true のときだけ出る） ---------- */
body:has(.hr-bar) { padding-bottom: calc(var(--hr-bar-h) + env(safe-area-inset-bottom)); }
.hr-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	height: calc(var(--hr-bar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--hr-sumi); border-top: 1px solid var(--hr-kincha);
}
.hr-bar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	color: var(--hr-kinari); text-decoration: none; font-size: 12px; letter-spacing: 0.05em;
}
.hr-bar a:hover { color: var(--hr-kincha-light); background: var(--hr-sumi2); }

/* ---------- フッター ---------- */
.hr-footer { background: var(--hr-sumi); color: #e8dfd0; padding: 40px var(--hr-gutter) 48px; }
.hr-footer p { margin: 0 0 16px; }
.hr-footer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 48px; }
.hr-footer .hr-bigbtn { background: transparent; border: 1px solid var(--hr-kincha); }
.hr-footer .hr-bigbtn:hover { background: var(--hr-kincha); color: var(--hr-sumi); }
.hr-footer__name { font-family: var(--hr-mincho); font-size: 24px; letter-spacing: 0.2em; color: var(--hr-kinari); line-height: 1.4; }
.hr-footer__name small { display: block; font-size: 12px; letter-spacing: 0.3em; color: var(--hr-kincha-light); }
.hr-footer__sub { font-size: 15px; color: var(--hr-kincha-light); }
.hr-footer__addr { font-size: 15px; }
.hr-footer a { color: var(--hr-kinari); }
.hr-footer__addr a { display: inline-block; padding: 10px 0; }
.hr-footer__sns { display: flex; flex-wrap: wrap; gap: 0 28px; }
.hr-footer__sns a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; letter-spacing: 0.08em; }
.hr-footer__sns svg { color: var(--hr-kincha-light); }
.hr-footer__sns a:hover { color: var(--hr-kincha-light); }
.hr-footer__copy { color: #b5aa98; margin-bottom: 0 !important; }

/* ---------- トップ共通 ---------- */
.hr-front { display: block; }
.hr-sec { padding: 80px var(--hr-gutter); }
.hr-label {
	margin: 0 0 10px; font-family: var(--hr-sans); font-size: 13px; font-weight: 500;
	letter-spacing: 0.32em; color: var(--hr-kincha-text);
}
.hr-label--light { color: var(--hr-kincha-light); }
.hr-h2 {
	margin: 0 0 36px; font-family: var(--hr-mincho); font-size: clamp(24px, 7vw, 30px); font-weight: 500; letter-spacing: 0.14em; line-height: 1.5;
	border: 0; padding: 0; background: none; color: inherit;
}
.hr-h2::before, .hr-h2::after { display: none !important; }
.hr-h2--sub { font-size: 26px; margin-bottom: 28px; }
.hr-link {
	display: inline-flex; align-items: center; gap: 16px; min-height: 48px; margin-top: 24px;
	color: var(--hr-sumi); text-decoration: none; font-size: 16px; letter-spacing: 0.12em;
}
.hr-link::after { content: '→'; font-size: 15px; line-height: 1; transition: transform 0.3s ease; }
.hr-link:hover { color: var(--hr-kincha-text); }
.hr-link:hover::after { transform: translateX(4px); }
.hr-link--light { color: var(--hr-kinari); }
.hr-link--light:hover { color: var(--hr-kincha-light); }
.hr-more {
	display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 48px; margin-top: 8px;
	font-size: 15px; color: var(--hr-kincha-text); text-decoration: none; letter-spacing: 0.08em;
}
.hr-more::after { content: '→'; }
.hr-more:hover { text-decoration: underline; }
.hr-facts { margin: 0; }
.hr-facts > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--hr-line); }
.hr-facts > div:last-child { border-bottom: 1px solid var(--hr-line); }
.hr-facts dt { font-family: var(--hr-mincho); color: var(--hr-kincha-text); font-weight: 500; }
.hr-facts dd { margin: 0; }
.hr-facts--wide > div { grid-template-columns: 6.5em minmax(0, 1fr); }
.hr-note { margin: 16px 0 0; font-size: 15px; color: var(--hr-muted); }

/* スクロールで静かに表示（JS が動き、動きを減らす設定でないときだけ） */
.hr-js-reveal .hr-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hr-js-reveal .hr-reveal.is-in { opacity: 1; transform: none; }

/* ① メインビジュアル */
.hr-hero {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-start;
	min-height: 100vh; min-height: max(100svh, 680px); /* 低い画面（横向き・小さい端末）でも文字が重ならない高さを確保 */
	padding: 96px var(--hr-gutter) 32px;
	background: var(--hr-sumi2); color: var(--hr-kinari);
}
.hr-hero__slides { position: absolute; inset: 0; }
.hr-hero__slide {
	position: absolute; inset: 0;
	background: 50% 50% / cover no-repeat;
	opacity: 0; transform: scale(1.0);
	transition: opacity 2.4s ease, transform 9s linear;
}
.hr-hero__slide.is-active { opacity: 1; transform: scale(1.06); }
.hr-hero::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(rgba(20, 18, 16, 0.45), rgba(20, 18, 16, 0.1) 30%, rgba(20, 18, 16, 0.15) 55%, rgba(20, 18, 16, 0.7));
}
.hr-hero > :not(.hr-hero__slides) { position: relative; z-index: 1; }
.hr-hero__text {
	align-self: flex-end; margin: 8px 0 32px;
	display: flex; flex-direction: row-reverse; gap: 14px;
}
.hr-hero__title {
	margin: 0; writing-mode: vertical-rl;
	font-family: var(--hr-mincho); font-weight: 500; font-size: clamp(30px, min(11.5vw, 7.5vh), 64px); letter-spacing: 0.3em; line-height: 1.2;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hr-hero__sub {
	margin: 0; writing-mode: vertical-rl;
	font-family: var(--hr-mincho); font-size: 16px; letter-spacing: 0.28em; color: #f1e4c8;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.hr-hero__poem {
	margin: auto 0 20px; /* 上の余白を自動にして、寺名の下・画面の下端に寄せる */ font-family: var(--hr-mincho); font-size: 16px; line-height: 2; letter-spacing: 0.12em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.hr-hero__poem span { white-space: nowrap; }
@media (max-width: 374px) { .hr-hero__poem { font-size: 15px; letter-spacing: 0.06em; } }
.hr-hero__place {
	margin: 0; padding-top: 16px;
}
.hr-hero__text + .hr-hero__place { margin-top: auto; }
.hr-hero__place { border-top: 1px solid rgba(246, 242, 234, 0.5);
	font-size: 14px; letter-spacing: 0.12em; color: #f1ebe0; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
}

/* ② お知らせ・鐘音 */
.hr-posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hr-line); }
.hr-posts li { margin: 0; border-bottom: 1px solid var(--hr-line); }
.hr-posts a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; color: var(--hr-sumi); text-decoration: none; }
.hr-posts a:hover .hr-posts__title { color: var(--hr-kincha-text); text-decoration: underline; }
.hr-posts time { font-size: 14px; color: var(--hr-muted); letter-spacing: 0.06em; }
.hr-posts__title { font-size: 17px; line-height: 1.6; }
.hr-news__blog { margin-top: 72px; }

/* インスタグラムの案内（鐘音の下。金茶の細い線で上下を区切る） */
.hr-insta-wrap { padding: 0 var(--hr-gutter) 80px; margin-top: -40px; }
.hr-insta {
	display: flex; align-items: center; gap: 18px; padding: 22px 4px;
	border-top: 1px solid var(--hr-kincha); border-bottom: 1px solid var(--hr-kincha);
	color: var(--hr-sumi); text-decoration: none;
}
.hr-insta__icon { flex: none; color: var(--hr-kincha-text); }
.hr-insta__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hr-insta__label { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; color: var(--hr-kincha-text); }
.hr-insta__text { font-family: var(--hr-mincho); font-size: 17px; letter-spacing: 0.08em; line-height: 1.6; }
.hr-insta__text > span { display: inline-block; }
.hr-insta__handle { font-size: 14px; color: var(--hr-muted); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.hr-insta__arrow { margin-left: auto; flex: none; color: var(--hr-kincha-text); transition: transform 0.3s ease; }
.hr-insta:hover .hr-insta__text { color: var(--hr-kincha-text); }
.hr-insta:hover .hr-insta__arrow { transform: translateX(4px); }

/* ③ 播州犬寺物語（スマホは写真の下に文、広い画面は写真の上に文を重ねる） */
.hr-story { position: relative; display: flex; flex-direction: column; color: var(--hr-kinari); background: var(--hr-sumi); overflow: hidden; }
.hr-story__bg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.hr-story__body { position: relative; z-index: 1; padding: 48px var(--hr-gutter) 64px; }
.hr-story__title { font-size: 34px; letter-spacing: 0.22em; margin-bottom: 12px; }
.hr-story__tagline { margin: 0 0 20px; font-size: 15px; letter-spacing: 0.1em; color: var(--hr-kincha-light); }
.hr-story__lead { margin: 0; font-family: var(--hr-mincho); font-size: 17px; line-height: 2.1; color: #f1ebe0; }

/* ④ 法楽寺について */
.hr-about__img { margin: 0 calc(var(--hr-gutter) * -1) 28px; }
.hr-about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hr-about__text { margin: 0 0 24px; }

/* ⑤ 境内散策（大小の写真を交互にずらす） */
.hr-grounds { background: var(--hr-kinari2); }
.hr-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.hr-gallery__item { margin: 0; }
.hr-gallery__item:nth-child(even) { margin-top: 56px; }
.hr-gallery__item a { display: flex; flex-direction: column; color: var(--hr-sumi); text-decoration: none; }
.hr-gallery__img { display: block; overflow: hidden; background: var(--hr-line); }
.hr-gallery__img img { width: 100%; display: block; object-fit: cover; transition: transform 0.8s ease; }
.hr-gallery__item.is-tall img { aspect-ratio: 3 / 4; }
.hr-gallery__item.is-small img { aspect-ratio: 1 / 1; }
.hr-gallery__item a:hover img { transform: scale(1.04); }
.hr-gallery__name { margin-top: 12px; font-family: var(--hr-mincho); font-size: 20px; letter-spacing: 0.18em; }
.hr-gallery__note { font-size: 13px; color: var(--hr-muted); line-height: 1.6; margin-top: 2px; }

/* ⑥ 年間行事（大きな月の数字＋縦のタイムライン） */
.hr-timeline { list-style: none; margin: 0 0 0 4px; padding: 0; border-left: 1px solid var(--hr-kincha); }
.hr-timeline li { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 0 0 36px 24px; margin: 0; }
.hr-timeline li:last-child { padding-bottom: 4px; }
.hr-timeline li::before { content: ''; position: absolute; left: -4px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--hr-kincha); }
.hr-timeline__month { flex: 0 0 76px; font-family: var(--hr-mincho); font-size: 16px; line-height: 1; white-space: nowrap; }
.hr-timeline__month b { font-size: 44px; font-weight: 500; margin-right: 2px; letter-spacing: 0; }
.hr-timeline__items { padding-top: 11px; font-size: 17px; line-height: 1.9; }

/* ⑦ アクセス */
.hr-access__addr { margin: 0 0 20px; font-size: 17px; }
.hr-access__form { margin-top: 72px; }
.hr-access__form .hr-h2--sub { margin-bottom: 20px; }
.hr-access__tel { margin: 0; font-size: 17px; }
.hr-access__tel a { display: inline-block; padding: 8px 0; color: var(--hr-sumi); text-decoration: none; letter-spacing: 0.04em; }
.hr-bigbtn--form { display: inline-flex; min-width: 260px; margin-top: 16px; padding: 0 28px; }

/* ---------- 広い画面 ---------- */
@media (min-width: 768px) {
	:root { --hr-gutter: max(32px, calc((100% - 880px) / 2)); }
	.hr-sec { padding-top: 120px; padding-bottom: 120px; }
	.hr-insta-wrap { padding-bottom: 120px; margin-top: -48px; }
	.hr-insta { gap: 24px; padding: 26px 8px; }
	.hr-insta__text { font-size: 19px; }
	.hr-header, .hr-menu__head { padding-left: 32px; padding-right: 24px; }
	.hr-hero { padding-left: 10vw; padding-right: 10vw; min-height: max(100svh, 760px); }
	.hr-hero__text { margin-top: 24px; }
	.hr-about__img { margin-left: 0; margin-right: 0; }
	.hr-gallery { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
	.hr-gallery__item:nth-child(even) { margin-top: 0; }
	.hr-gallery__item:nth-child(3n+2) { margin-top: 64px; }
}
@media (min-width: 960px) {
	/* 物語: 左に写真、右に墨地の文（二匹の犬像を文字で隠さない） */
	.hr-story { flex-direction: row; align-items: stretch; min-height: 600px; }
	.hr-story__bg { flex: 0 0 58%; width: 58%; height: auto; aspect-ratio: auto; object-position: 50% 50%; }
	.hr-story__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 64px 48px 64px 56px; }
}
@media (min-width: 1100px) {
	.hr-story__body { padding-left: 80px; padding-right: 64px; }
	.hr-story__lead { max-width: 24em; }
}

@media (min-width: 960px) {
	/* お知らせと鐘音を左右に */
	.hr-news { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; }
	.hr-news__blog { margin-top: 0; }
	/* 法楽寺について: 写真と文を左右に */
	.hr-about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
	.hr-about__img { margin-bottom: 0; }
	.hr-about__img img { aspect-ratio: 4 / 3; }
	/* 年間行事: 月を横に並べる */
	.hr-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-left: 0; border-left: 0; border-top: 1px solid var(--hr-kincha); }
	.hr-timeline li { flex-direction: column; gap: 12px; padding: 28px 0 0; }
	.hr-timeline li::before { left: 0; top: -4px; }
	.hr-timeline__month { flex: none; }
	.hr-timeline__items { padding-top: 0; }
	/* アクセスとお問い合わせを左右に */
	.hr-access { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; }
	.hr-access > .hr-label, .hr-access > .hr-h2, .hr-access > .hr-access__addr, .hr-access > .hr-facts, .hr-access > .hr-note, .hr-access > .hr-link { grid-column: 1; }
	.hr-access__form { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
}

/* ---------- 下層ページ ---------- */
.page-header {
	background: var(--hr-kinari2) !important; color: var(--hr-sumi);
	padding: 44px 0 40px; min-height: 0; text-align: left;
}
.page-header::before { display: none; }
.page-header-title, .page-header .page-header-title {
	position: relative; margin: 0; padding-bottom: 18px;
	font-family: var(--hr-mincho); font-size: clamp(26px, 6.5vw, 32px); font-weight: 500; letter-spacing: 0.15em; line-height: 1.4; color: var(--hr-sumi);
}
.page-header-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 1px; background: var(--hr-kincha); }
.breadcrumb { background: var(--hr-kinari); border-bottom: 1px solid var(--hr-line); font-size: 14px; }
.breadcrumb li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.breadcrumb a { color: var(--hr-kincha-text); }
.breadcrumb .container, .page-header .container { max-width: 760px; }
.site-body { background: var(--hr-kinari); padding-top: 32px; padding-bottom: 56px; }
.site-body-container.container, .main-section { max-width: 760px; margin-left: auto; margin-right: auto; }
.container { padding-left: 20px; padding-right: 20px; }
.entry-title { font-family: var(--hr-mincho); font-size: 24px; line-height: 1.6; letter-spacing: 0.06em; }
.entry-meta { font-size: 14px; color: var(--hr-muted); }
.entry-body, .entry-content { font-size: 16px; line-height: 1.95; }
.entry-body h2, .entry-content h2 {
	position: relative; margin: 48px 0 20px; padding: 0 0 12px;
	font-size: 23px; background: none; border: 0; border-bottom: 1px solid var(--hr-kincha); color: var(--hr-sumi);
}
.entry-body h3, .entry-content h3 {
	margin: 40px 0 16px; padding: 0 0 0 14px;
	font-size: 20px; background: none; border: 0; border-left: 3px solid var(--hr-kincha); color: var(--hr-sumi);
}
.entry-body h2::before, .entry-body h2::after, .entry-body h3::before, .entry-body h3::after { display: none; }
.entry-body img { height: auto; }
.entry-body .wp-block-image { margin: 24px 0; }
.entry-body iframe { max-width: 100%; }
.entry-body table { font-size: 15px; }
.entry-body table th { background: var(--hr-kinari2); }

/* 標準ボタン */
.entry-body .wp-block-button__link {
	min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 28px; border-radius: 0;
	background: var(--hr-sumi); color: var(--hr-kinari); text-decoration: none; letter-spacing: 0.1em;
}
.entry-body .wp-block-button__link:hover { background: var(--hr-kincha-text); color: var(--hr-kinari); }
/* 本文中のボタンは同じ幅にそろえ、隣り合うときは間を空ける（PC は横並び、スマホは縦に積む） */
.entry-body .wp-block-button__link { min-width: 240px; max-width: 100%; box-sizing: border-box; }
.entry-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.entry-body .wp-block-buttons + .wp-block-buttons { margin-top: 16px; }
.entry-body .wp-block-buttons > .wp-block-button { margin: 0; }
@media (max-width: 599px) {
	.entry-body .wp-block-buttons > .wp-block-button,
	.entry-body .wp-block-button__link { width: 100%; }
}
/* 本文中のリンクは親テーマの点線を使わず、金茶の細い実線にする。旧テーマのマーカーがリンクを包んでいる場合は外す */
.entry-body p a, .entry-body li a, .entry-body td a, .entry-body dd a {
	color: var(--hr-kincha-text);
	text-decoration: underline; text-decoration-style: solid; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.entry-body p a:hover, .entry-body li a:hover { color: var(--hr-sumi); }
.entry-body [class^="span-stk-maker-"]:has(> a:only-child), .entry-body a [class^="span-stk-maker-"] { background: none; }

/* お知らせ一覧 */
.vk_post, .vk_post.card { background: transparent; border: 0; border-bottom: 1px solid var(--hr-line); border-radius: 0; box-shadow: none; }
.vk_post .vk_post_title { font-family: var(--hr-sans); font-size: 17px; font-weight: 500; line-height: 1.6; }
.vk_post .vk_post_title a { color: var(--hr-sumi); }
.vk_post .vk_post_date { font-size: 14px; color: var(--hr-muted); }
.vk_post_imgOuter { border-radius: 0; }
.vk_post .vk_post_excerpt { font-size: 14px; color: var(--hr-muted); }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; }
.pagination .current { background: var(--hr-sumi); border-color: var(--hr-sumi); color: var(--hr-kinari); }

/* ---------- 標準ブロックで作った囲み枠・よくある質問・補足（固定ページの置き換え後） ---------- */
.entry-body .wp-block-group.hr-box { position: relative; margin: 28px 0; padding: 20px 18px; background: #fffdf8; border: 1px solid var(--hr-kincha); }
.entry-body .hr-box > :last-child { margin-bottom: 0; }
.entry-body .hr-box > .wp-block-image:first-child, .entry-body .hr-box > .hr-box__title + .wp-block-image { margin-top: 0; }
.entry-body .hr-box .hr-box__title {
	display: inline-block; margin: -34px 0 12px -4px; padding: 2px 12px; border: 0;
	background: var(--hr-sumi); color: var(--hr-kinari); font-family: var(--hr-mincho); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.6;
}
.entry-body .hr-box .hr-box__title::before, .entry-body .hr-box .hr-box__title::after { display: none; }
.entry-body .wp-block-group.hr-faq { margin: 0 0 16px; padding: 14px 16px 14px 48px; border: 1px solid var(--hr-line); background: #fffdf8; position: relative; }
.entry-body .hr-faq .hr-faq__q { position: relative; margin: 0 0 8px; padding: 0; border: 0; font-family: var(--hr-sans); font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--hr-sumi); }
.entry-body .hr-faq .hr-faq__q::before { content: '問'; position: absolute; left: -34px; top: 0; display: block; width: auto; height: auto; background: none; border: 0; font-family: var(--hr-mincho); font-weight: 500; color: var(--hr-kincha-text); }
.entry-body .hr-faq .hr-faq__q::after { display: none; }
.entry-body .hr-faq > p { position: relative; margin: 0; }
.entry-body .hr-faq > .hr-faq__q + p::before { content: '答'; position: absolute; left: -34px; top: 0; font-family: var(--hr-mincho); color: var(--hr-muted); }
/* 補足の枠（囲み枠の下に独立して出す。金茶の左罫線と薄い生成り） */
.entry-body .wp-block-group.hr-supplement { margin: 28px 0; padding: 14px 18px 14px 20px; border: 1px solid var(--hr-line); border-left: 3px solid var(--hr-kincha); background: var(--hr-kinari2); font-size: 15px; line-height: 1.9; }
.entry-body .hr-box + .hr-supplement { margin-top: -12px; }
.entry-body .hr-supplement > p { margin: 0 0 6px; }
.entry-body .hr-supplement > p:last-child { margin-bottom: 0; }
.entry-body .wp-block-latest-posts { list-style: none; padding: 0; }
.entry-body .wp-block-latest-posts li { border-bottom: 1px solid var(--hr-line); padding: 10px 0; }

/* ---------- ストーク19 由来のブロック（残っている記事 10 件のため。見た目だけ合わせる） ---------- */
.cbox, .wp-block-stk-plugin-cbox, .wp-block-stk-plugin-cbox-notitle {
	position: relative; margin: 28px 0; padding: 20px 18px;
	background: #fffdf8; border: 1px solid var(--hr-kincha);
}
.cbox.intitle { padding-top: 28px; }
.cbox .box_title { position: absolute; top: -14px; left: 14px; }
.cbox .span__box_title {
	display: inline-block; padding: 2px 12px;
	background: var(--hr-sumi); color: var(--hr-kinari);
	font-family: var(--hr-mincho); font-size: 15px; letter-spacing: 0.1em;
}
.cbox .cboxcomment > :last-child { margin-bottom: 0; }
.is-style-supplement-border, .wp-block-stk-plugin-supplement2 { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--hr-line); background: #fffdf8; }
.is-style-stk_border { border: 1px solid var(--hr-line); padding: 16px; }
.oc-faq { margin: 0 0 16px; border: 1px solid var(--hr-line); background: #fffdf8; }
.oc-faq__title { margin: 0; padding: 14px 16px 10px 48px; position: relative; font-weight: 700; }
.oc-faq__title::before { content: '問'; position: absolute; left: 14px; top: 13px; font-family: var(--hr-mincho); color: var(--hr-kincha-text); }
.oc-faq__comment { margin: 0; padding: 0 16px 14px 48px; position: relative; }
.oc-faq__comment::before { content: '答'; position: absolute; left: 14px; top: 0; font-family: var(--hr-mincho); color: var(--hr-muted); }
.oc-faq__comment p { margin: 0; }
.span-stk-maker-yellow { background: linear-gradient(transparent 60%, #f5e3a1 60%); }
.span-stk-maker-pink { background: linear-gradient(transparent 60%, #f3cdd3 60%); }
.span-stk-maker-green { background: linear-gradient(transparent 60%, #cfe6c4 60%); }
.span-stk-fs-ss { font-size: 0.8em; }
.span-stk-fs-s { font-size: 0.9em; }
.span-stk-fs-l { font-size: 1.2em; }
.stk-pd-0 { padding: 0 !important; }
.hr-postlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hr-line); }
.hr-postlist li { border-bottom: 1px solid var(--hr-line); }
.hr-postlist a { display: flex; flex-direction: column; padding: 12px 0; text-decoration: none; color: var(--hr-sumi); }
.hr-postlist time { font-size: 14px; color: var(--hr-muted); }


/* ---------- 一覧の 1 件 ---------- */
.main-section { width: 100% !important; flex-basis: 100% !important; }
.hr-item { border-bottom: 1px solid var(--hr-line); }
.hr-item:first-of-type { border-top: 1px solid var(--hr-line); }
.hr-item__link { display: flex; align-items: center; gap: 16px; padding: 16px 0; color: var(--hr-sumi); text-decoration: none; }
.hr-item__text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.hr-item__text time { font-size: 14px; color: var(--hr-muted); }
.hr-item__title { font-size: 17px; line-height: 1.6; }
.hr-item__link:hover .hr-item__title { color: var(--hr-kincha-text); text-decoration: underline; }
.hr-item__img { flex: 0 0 88px; }
.hr-item__img img { width: 88px; height: 88px; object-fit: cover; display: block; }

/* ---------- 一覧・記事の下: 月別アーカイブと検索（控えめに） ---------- */
.hr-aside { margin: 56px 0 8px; padding-top: 32px; border-top: 1px solid var(--hr-line); }
.hr-aside h2.hr-aside__title, .hr-aside .hr-aside__title {
	margin: 0 0 14px; padding: 0; border: 0; background: none; box-shadow: none;
	font-family: var(--hr-mincho); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; line-height: 1.5; color: var(--hr-kincha-text);
}
.hr-aside h2.hr-aside__title::before, .hr-aside h2.hr-aside__title::after { display: none; }
.hr-search { display: flex; gap: 8px; max-width: 420px; }
.hr-search__input {
	flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px;
	border: 1px solid var(--hr-line); border-radius: 0; background: #fffdf8; color: var(--hr-sumi); font-size: 16px; font-family: inherit;
	-webkit-appearance: none; appearance: none;
}
.hr-search__input:focus { outline: 2px solid var(--hr-kincha); outline-offset: 0; border-color: var(--hr-kincha); }
.hr-search .hr-search__btn {
	flex: none; min-width: 72px; min-height: 48px; padding: 0 18px; border: 0 !important; border-radius: 0 !important; box-shadow: none;
	background: var(--hr-sumi) !important; color: var(--hr-kinari) !important; font-size: 15px; letter-spacing: 0.1em; cursor: pointer; font-family: inherit;
}
.hr-search .hr-search__btn:hover, .hr-search .hr-search__btn:focus-visible { background: var(--hr-kincha-text) !important; }
.hr-search .hr-search__input { border-radius: 0 !important; box-shadow: none; }
.hr-aside__months { margin-top: 32px; }
.hr-aside__summary { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; list-style: none; user-select: none; }
.hr-aside__summary::-webkit-details-marker { display: none; }
.hr-aside__summary::before { content: ''; width: 8px; height: 8px; border-right: 1px solid var(--hr-kincha); border-bottom: 1px solid var(--hr-kincha); transform: rotate(-45deg); transition: transform 0.3s ease; margin-top: -3px; }
.hr-aside__months[open] .hr-aside__summary::before { transform: rotate(45deg); margin-top: -6px; }
.hr-aside__summary:focus-visible { outline: 2px solid var(--hr-kincha); outline-offset: 2px; }
.hr-aside__count { font-family: var(--hr-sans); font-size: 13px; color: var(--hr-muted); letter-spacing: 0.04em; }
.hr-months { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hr-months li { margin: 0; }
.hr-months a { display: flex; align-items: center; min-height: 44px; color: var(--hr-sumi); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--hr-line); }
.hr-months a:hover { color: var(--hr-kincha-text); }
@media (min-width: 768px) {
	.hr-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 56px; margin-top: 72px; }
	.hr-aside__months { margin-top: 0; }
	.hr-aside__summary { cursor: default; }
	.hr-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 記事・固定ページの下の共有ボタン ---------- */
.hr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; }
.hr-share__label { font-family: var(--hr-mincho); font-size: 14px; letter-spacing: 0.14em; color: var(--hr-kincha-text); margin-right: 4px; }
.hr-share__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hr-line); color: var(--hr-sumi); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; background: #fffdf8; }
.hr-share__btn:hover { border-color: var(--hr-kincha); color: var(--hr-kincha-text); }

/* ---------- 記事 ---------- */
.entry-meta-item-author, .entry-meta-item-updated { display: none !important; }
.entry-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hr-line); }
.entry-footer .entry-meta-data-list { font-size: 14px; margin-bottom: 8px; }
.entry-footer .entry-meta-data-list dl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.entry-footer .entry-meta-data-list dt {
	flex: none; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
	font-family: var(--hr-mincho); font-size: 14px; font-weight: 500; color: var(--hr-kincha-text); letter-spacing: 0.1em;
	float: none; width: auto; text-align: left; line-height: inherit;
}
.entry-footer .entry-meta-data-list dd { margin: 0; font-size: 14px; }
.entry-footer .entry-meta-data-list dd a { display: inline-block; padding: 9px 0; margin-right: 14px; font-size: 14px !important; color: var(--hr-sumi); }
/* カテゴリーは「、」で区切られるので、リンクの右余白で「お知らせ 、鐘音」と空かないようにする */
.entry-footer .entry-meta-data-list--category dd a { margin-right: 0; }
.entry-footer .tagcloud a::before { color: var(--hr-kincha); }
.hr-nextprev {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
	margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hr-line);
}
.hr-nextprev__link {
	display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 0;
	color: var(--hr-sumi); text-decoration: none; font-size: 16px; line-height: 1.6;
}
.hr-nextprev__link--prev { grid-column: 1; text-align: left; }
.hr-nextprev__link--next { grid-column: 2; text-align: right; }
.hr-nextprev__label { font-size: 13px; color: var(--hr-kincha-text); letter-spacing: 0.1em; }
.hr-nextprev__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
	overflow: hidden; overflow-wrap: anywhere;
}
@media (max-width: 599px) { .hr-nextprev__link { font-size: 15px; } }
.vk_posts-mainSection { display: block !important; margin-left: 0 !important; margin-right: 0 !important; }
.vk_posts-mainSection .hr-item { width: 100%; }
.hr-btn { white-space: nowrap; }
