/* 金海山 大恩教寺 釈迦院 - 静的サイト CSS */

:root {
  --color-main: #0a0707;
  --color-text: #333;
  --color-link: #1176d4;
  --color-bg: #fdfdfd;
  --color-header-bg: #000;
  --color-header-text: #fff;
  --color-footer-bg: #000;
  --color-footer-text: #fff;
  --container-size: 1200px;
  --article-size: 900px;
  --font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  /* カテゴリーアクセント（ラベルの線・マークのみ） */
  --cat-inganodori: #b8944a;
  --cat-tendaishu: #2f5d50;
  --cat-yuishiki: #1b365d;
  --cat-column-about-life: #8b7d6b;
  --cat-news: #5c6b7a;
  --cat-buddhist-terms: #6b5c4a;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  line-break: strict;
  word-break: auto-phrase;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3 { text-wrap: pretty; }

.keep { white-space: nowrap; }

a { color: var(--color-link); text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: var(--container-size);
  margin: 0 auto;
  padding: 0 16px;
}

/* 下層ページのヘッダー */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #111;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo img {
  display: block;
  height: 46px;
  width: auto;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: 1;
  border-bottom: 2px solid #fff;
}

.site-header .menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.08em;
}

/* トップだけ、動画の上にメニューボタンを重ねる */
.site-header[data-fixed="false"] {
  position: absolute;
  background: transparent;
  height: 0;
}

.site-header[data-fixed="false"] .logo,
.site-header[data-fixed="false"] .main-nav { display: none; }

.site-header[data-fixed="false"] .header-inner {
  padding: 0;
  max-width: none;
}

.site-header[data-fixed="false"] .menu-toggle,
.search-toggle {
  position: fixed;
  top: 0;
  z-index: 150;
  display: block;
  width: 64px;
  height: 64px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0;
}

.site-header[data-fixed="false"] .menu-toggle {
  left: 0;
  background: #111;
}

.site-header[data-fixed="false"] .menu-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.search-toggle {
  right: 8px;
  pointer-events: auto;
  text-decoration: none;
}

.search-toggle.is-current {
  opacity: 0.65;
}

.site-header:not([data-fixed="false"]) .search-toggle {
  position: static;
  display: block;
  order: 3;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 8px;
}

.site-header:not([data-fixed="false"]) .search-toggle::before {
  margin-top: 10px;
}

.search-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 6px 6px 0 -4px #fff;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-nav.is-open { display: block; }

.mobile-nav-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg);
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--color-text);
  border-bottom: 1px solid #eee;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 16px;
}

/* Hero / Main Visual */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #000 url("../assets/images/hero-poster.jpg") center/cover no-repeat;
}

.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero video { opacity: 0; }
.hero video.is-ready { opacity: 1; }

.hero-overlay { display: none; }

.hero-text {
  position: absolute;
  inset: 0;
}

.top-banner {
  position: relative;
  width: 250px;
  writing-mode: vertical-rl;
  word-break: normal;
  line-break: auto;
  text-wrap: wrap;
  height: 100%;
  margin-left: 61%;
  background-image: linear-gradient(180deg, rgb(131 5 5 / 30%), rgb(168 56 111 / 49%) 50%, rgb(77 84 224 / 64%));
}

.br-tsuika { display: none; }

.sango {
  font-size: 25px;
  color: #fff;
  position: absolute;
  right: 38px;
  top: 174px;
  margin: 0;
}

.ingo {
  font-size: 50px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.honzon {
  font-size: 20px;
  color: #fff;
  position: absolute;
  top: 420px;
  left: 31px;
  margin: 0;
}

.honzon span {
  font-size: 25px;
  padding-top: 10px;
  display: block;
}

/* Sub nav (homepage) */
.sub-nav {
  text-align: center;
  padding: 20px 0;
  background: #fff;
}

.sub-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-nav li {
  display: inline-block;
  width: 10%;
  min-width: 90px;
}

.sub-nav li:not(:last-child) {
  border-right: 2px solid #ddd;
}

.sub-nav a {
  color: #333;
  padding: 8px;
  display: block;
}

.sub-nav a:hover {
  color: #F7CB4D;
  border-bottom: 2px solid #F7CB4D;
}

/* Homepage: 全幅セクションを 900px カラムに閉じ込めない */
.main-content.-home {
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
}

.main-content.-home > .section:not(.-dark) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 16px;
}

/* Sections */
.section {
  padding: 40px 16px;
}

.section.-dark {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 16px;
}

.section.-dark.-banners {
  padding: 48px 16px 40px;
}

.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 28px;
  padding: 0;
  border: none;
}

.section.-dark:not(.-banners) .section-title {
  margin: 0;
}

.section-title.-white { color: #fff; }

/* 聖語 */
.seigo-section {
  background-color: rgba(79, 79, 79, 0.4);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  min-height: 284px;
  padding: 72px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shakain-hokkukyo {
  text-align: center;
  font-size: 26px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 4px #000;
  margin: 0;
  line-height: 2;
}

/* バナー（本番の .flex / .bg-zoom-content に合わせる） */
.flex {
  display: flex;
  justify-content: center;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
}

.banner {
  width: 325px;
  height: 325px;
  margin: 5px;
  position: relative;
  overflow: hidden;
  background: #000;
  display: block;
  flex: 0 0 325px;
}

.banner::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.8s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner:hover::after {
  opacity: 0.3;
  transform: scale(1.05);
}

.banner-content {
  color: #fff;
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
}

.bg-zoom-content {
  transform: translate(-50%, -50%);
}

.bg-zoom-content p {
  background-color: #00000075;
  width: 150px;
  text-align: center;
  height: 70px;
  display: table-cell;
  vertical-align: middle;
  position: relative;
  color: #fff;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.bg-zoom-content p::before,
.bg-zoom-content p::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  border-bottom: 1px solid #fff;
  content: "";
}

.bg-zoom-content p::before { top: 60px; }
.bg-zoom-content p::after { top: 15px; }

.bg-zoom01::after { background-image: url("../assets/images/DSC_8490.jpg"); }
.bg-zoom02::after { background-image: url("../assets/images/DSC_0114.jpg"); }
.bg-zoom03::after { background-image: url("../assets/images/event.png"); }
.bg-zoom04::after { background-image: url("../assets/images/shakain-story.jpg"); }
.bg-zoom05::after { background-image: url("../assets/images/contact.jpg"); }
.bg-zoom06::after { background-image: url("../assets/images/donation.jpg"); }

/* Post lists */
.post-list { list-style: none; padding: 0; margin: 0; }

.post-list.-simple .post-item { border-bottom: 1px solid #eee; }
.post-list.-simple .post-item a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  color: var(--color-text);
}

.post-list.-simple .post-title {
  font-size: 1rem;
  margin: 0;
}

.post-list.-list .post-item a,
.post-list.-card .post-item a {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  color: var(--color-text);
  border-bottom: 1px solid #eee;
}

.post-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}

.post-cat {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.post-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.post-list.-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.post-list.-card .post-item a {
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.post-list.-card .post-thumb { width: 100%; height: 180px; }
.post-list.-card .post-body { padding: 16px; }

.more-btn {
  text-align: center;
  margin-top: 24px;
}

.more-btn a {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--color-main);
  border-radius: 40px;
  color: var(--color-main);
}

.more-btn a:hover {
  background: var(--color-main);
  color: #fff;
}

/* Homepage post sections */
.home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
}

.home-column .section-title {
  margin-bottom: 24px;
}

.home-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-simple-item {
  border-bottom: 1px solid #e6e6e6;
}

.home-simple-item:first-child {
  border-top: 1px solid #e6e6e6;
}

.home-simple-item a {
  display: block;
  padding: 18px 0;
  color: #333;
}

.home-simple-item a:hover {
  opacity: 1;
}

.home-simple-item a:hover .home-simple-title {
  color: #1176d4;
}

.home-simple-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  color: #888;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.home-simple-meta time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-simple-meta time::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) center 2px / 1.5px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 6px / 3px 1.5px no-repeat;
}

.home-simple-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-simple-cat::before {
  content: "";
  width: 11px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  box-sizing: border-box;
}

.home-simple-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.home-section-head .section-title {
  margin: 0;
  text-align: left;
}

.home-cards-section .section-title {
  margin: 0;
}

.more-btn.-inline {
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

.more-btn.-inline a {
  padding: 8px 22px;
  font-size: 0.88rem;
}

.home-section .more-btn a::after {
  content: " ›";
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 22px;
  letter-spacing: 0.1em;
}

.home-list.post-list-grid > ul > li > a {
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
}

.home-list.post-list-grid li a > div:first-child {
  position: relative;
}

.home-list.post-list-grid figure,
.home-list.post-list-grid img {
  border-radius: 12px;
}

.home-list.post-list-grid img {
  height: 140px;
}

.home-list.post-list-grid li a > div:first-child > span {
  position: absolute;
  left: 10px;
  top: 10px;
  margin: 0;
  padding: 3px 8px 3px 18px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.home-list.post-list-grid li a > div:first-child > span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translateY(-50%);
}

.home-card-wrap {
  max-width: none;
}

.home-card-wrap.-compact .post-list-grid > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}

.home-column .home-list.post-list-grid > ul > li > a {
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 18px 0;
}

.home-column .home-list.post-list-grid img {
  height: 78px;
}

.home-column .home-list.post-list-grid h2 {
  font-size: 0.98rem;
  -webkit-line-clamp: 3;
}

.home-column .home-list.post-list-grid li a > div:nth-child(2) > div:first-of-type {
  -webkit-line-clamp: 2;
  font-size: 0.8rem;
}

.home-column .is-category .post-list-grid img {
  height: 120px;
}

.home-column .is-category .post-list-grid h2 {
  font-size: 0.92rem;
}

.home-column .is-category .post-list-grid li a > div:nth-child(2) > div:first-of-type {
  -webkit-line-clamp: 3;
  font-size: 0.78rem;
}

/* Article / Page content */
.main-content {
  max-width: var(--article-size);
  margin: 0 auto;
  padding: 120px 16px 60px;
}

.main-content.-no-hero { padding-top: 40px; }

.main-content.-has-page-hero {
  padding-top: 48px;
}

/* 固定ページタイトル（背景画像） */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: clamp(180px, 28vw, 280px);
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-size);
  margin: 0 auto;
  padding: 56px 16px 48px;
  text-align: center;
}

.page-hero .page-title {
  display: inline-block;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: none;
  color: #fff;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.page-hero--about { background-image: url("../assets/images/DSC_8490.jpg"); }
.page-hero--gokigan { background-image: url("../assets/images/DSC_0114.jpg"); }
.page-hero--event { background-image: url("../assets/images/event.png"); }
.page-hero--kinkaizan-shakainmonogatari { background-image: url("../assets/images/shakain-story.jpg"); }
.page-hero--contact { background-image: url("../assets/images/contact.jpg"); }
.page-hero--donation { background-image: url("../assets/images/donation.jpg"); }
.page-hero--kaishu { background-image: url("../assets/images/DSC_0119-1024x768.jpg"); }
.page-hero--sitemap { background-image: url("../assets/images/hero-poster.jpg"); }
.page-hero--search { background-image: url("../assets/images/hero-poster.jpg"); }
.page-hero--tokoichiran { background-image: url("../assets/images/seigo-bg.png"); }

.page-hero--cat-news { background-image: url("../assets/images/DSC_0116.jpg"); }
.page-hero--cat-column-about-life { background-image: url("../assets/images/老後にトレーニングをするおじいさんと_趣味を楽しむおばあさんのリアルなイメージ.jpg"); }
.page-hero--cat-inganodori { background-image: url("../assets/images/A-gentle-image-of-a-vast-universe-contained-within-the-heart.jpg"); }
.page-hero--cat-tendaishu { background-image: url("../assets/images/pic-1.png"); }
.page-hero--cat-yuishiki { background-image: url("../assets/images/pic-3.png"); }
.page-hero--cat-buddhist-terms { background-image: url("../assets/images/seigo-bg.png"); }
.page-hero--cat-restoration { background-image: url("../assets/images/DSC_0119-1024x768.jpg"); }
.page-hero--cat-shakain-story { background-image: url("../assets/images/shakain-story.jpg"); }
.page-hero--cat-default { background-image: url("../assets/images/hero-poster.jpg"); }

.page-hero[class*="page-hero--cat-"] .page-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.page-hero[class*="page-hero--cat-"] .page-title::after {
  content: "– category –";
  display: block;
  margin-top: 10px;
  margin-left: 0;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.12em;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 8px 0 10px;
  padding: 0 0 0.4em;
  border-bottom: 1px solid #e5e5e5;
}

.page-title::before { content: none; }

.post-category {
  margin: 0 0 10px;
}

.post-category a {
  display: inline-block;
  padding: 3px 10px 3px 22px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1.5;
  position: relative;
  border-left: 2px solid transparent;
}

.post-category a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  opacity: 0.85;
}

.post-category a[href*="inganodori"] { border-left-color: var(--cat-inganodori); }
.post-category a[href*="inganodori"]::before { background: var(--cat-inganodori); }

.post-category a[href*="tendaishu"] { border-left-color: var(--cat-tendaishu); }
.post-category a[href*="tendaishu"]::before { background: var(--cat-tendaishu); }

.post-category a[href*="yuishiki"] { border-left-color: var(--cat-yuishiki); }
.post-category a[href*="yuishiki"]::before { background: var(--cat-yuishiki); }

.post-category a[href*="column-about-life"] { border-left-color: var(--cat-column-about-life); }
.post-category a[href*="column-about-life"]::before { background: var(--cat-column-about-life); }

.post-category a[href*="category/news"] { border-left-color: var(--cat-news); }
.post-category a[href*="category/news"]::before { background: var(--cat-news); }

.post-category a[href*="仏教用語"] { border-left-color: var(--cat-buddhist-terms); }
.post-category a[href*="仏教用語"]::before { background: var(--cat-buddhist-terms); }

.post-category a:hover {
  background: #333;
  color: #fff;
}

.post-date {
  margin: 0 0 28px;
  color: #888;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.post-date time { font-style: normal; }

.eyecatch {
  margin: 0 0 28px;
}

.eyecatch img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 2.4em 0 0.9em;
  padding: 0.4em 0.6em 0.4em 14px;
  border-left: 4px solid #111;
  background: #f6f6f6;
}

.article-content h2::before { content: none; }

.article-content {
  letter-spacing: 0.06em;
}

.article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.7em 0 0.7em;
  padding: 0 0 0.3em;
  border: none;
  border-bottom: 1px solid #ccc;
  background: none;
}

.toc {
  margin: 4em auto;
  max-width: 800px;
  width: 100%;
  padding: 1.5em 1em 1em;
  background: linear-gradient(
    -45deg,
    transparent 25%,
    #f7f7f7 25%,
    #f7f7f7 50%,
    transparent 50%,
    transparent 75%,
    #f7f7f7 75%,
    #f7f7f7
  );
  background-size: 4px 4px;
  background-clip: padding-box;
  border-top: 4px double #ddd;
  border-bottom: 4px double #ddd;
  border-left: none;
  border-right: none;
}

.toc:not(:has(ul li)) {
  display: none;
}

.toc__title {
  display: block;
  margin: 0 0 0.75em;
  font-size: 1.2em;
  line-height: 1;
  text-align: center;
  color: inherit;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.toc__title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 11px;
  margin-right: 0.5em;
  vertical-align: -1px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 2px no-repeat;
}

.toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc > ul > li + li {
  margin-top: 0.5em;
}

.toc li {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

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

.toc a:hover {
  opacity: 0.8;
  color: inherit;
}

.toc ul ul {
  margin: 0.15em 0 0;
  padding-left: 0.5em;
  font-size: 0.9em;
  list-style: none;
}

@media (min-width: 600px) {
  .toc {
    padding: 2em 1.5em 1.5em;
  }
}

@media (min-width: 960px) {
  .toc {
    width: 92%;
  }
}

.article-content p { margin: 0 0 1.35em; }

.article-content figure {
  margin: 1.8em 0;
}

.article-content img {
  width: auto;
  max-width: 100%;
}

.article-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0;
  border: 0;
}

.article-content figure iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 220px;
}

/* あわせて読みたい */
.related-card {
  margin: 1.8em 0 2em;
  border: 1px solid #e4e4e4;
  background: #fafafa;
}

.related-card__label {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #888;
}

.related-card__link {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 16px 14px;
  color: inherit;
  text-decoration: none;
}

.related-card__link:hover { opacity: 1; }
.related-card__link:hover .related-card__title { color: #1176d4; }

.related-card figure { margin: 0; }

.related-card img {
  display: block;
  width: 128px;
  height: 84px;
  object-fit: cover;
  background: #eee;
}

.related-card__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.related-card__excerpt {
  margin: 0;
  color: #666;
  font-size: 0.82rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 本文用 figure/img の余白が関連記事カードに乗らないようにする */
.article-content .related-card figure {
  margin: 0;
}

.article-content .related-card img {
  width: 128px;
  height: 84px;
  max-width: 128px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.article-content .related-card__link {
  align-items: start;
}

/* 投稿記事本文（PCデザイン参考: 記事本文デザイン） */
.main-content:has(.post-category) {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  max-width: 720px;
  padding: 64px 24px 112px;
  color: #2b2b2b;
  font-weight: 500;
}

.main-content:has(.post-category).-no-hero {
  padding-top: 64px;
}

.main-content:has(.post-category) > .post-category {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0 0 20px;
}

.main-content:has(.post-category) > .post-date {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin: 0 0 20px;
  color: #6f6b64;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.main-content:has(.post-category) > .page-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 56px;
  padding: 0;
  border-bottom: none;
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #1a1a1a;
}

.main-content:has(.post-category) > .eyecatch {
  grid-column: 1 / -1;
  grid-row: 3;
}

.main-content:has(.post-category) > .article-content {
  grid-column: 1 / -1;
  grid-row: 4;
}

.main-content:has(.post-category) .post-category a {
  padding: 4px 12px 4px 22px;
  border: 1px solid #1a1a1a;
  border-left-width: 3px;
  background: transparent;
  color: #1a1a1a;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.main-content:has(.post-category) .post-category a::before {
  background: #1a1a1a;
  opacity: 1;
}

.main-content:has(.post-category) .post-category a[href*="inganodori"] {
  border-left-color: var(--cat-inganodori);
}
.main-content:has(.post-category) .post-category a[href*="inganodori"]::before {
  background: var(--cat-inganodori);
}

.main-content:has(.post-category) .post-category a[href*="tendaishu"] {
  border-left-color: var(--cat-tendaishu);
}
.main-content:has(.post-category) .post-category a[href*="tendaishu"]::before {
  background: var(--cat-tendaishu);
}

.main-content:has(.post-category) .post-category a[href*="yuishiki"] {
  border-left-color: var(--cat-yuishiki);
}
.main-content:has(.post-category) .post-category a[href*="yuishiki"]::before {
  background: var(--cat-yuishiki);
}

.main-content:has(.post-category) .post-category a[href*="column-about-life"] {
  border-left-color: var(--cat-column-about-life);
}
.main-content:has(.post-category) .post-category a[href*="column-about-life"]::before {
  background: var(--cat-column-about-life);
}

.main-content:has(.post-category) .post-category a:hover {
  background: #1a1a1a;
  color: #fff;
  opacity: 1;
}

.main-content:has(.post-category) .post-category a:hover::before {
  background: #fff;
}

.main-content:has(.post-category) .article-content {
  letter-spacing: 0.03em;
}

.main-content:has(.post-category) .article-content a {
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content a:hover {
  color: #5c5852;
  opacity: 1;
}

.main-content:has(.post-category) .article-content .toc {
  margin: 0 0 64px;
  max-width: none;
  width: 100%;
  padding: 28px 32px 20px;
  background: #f6f4f0;
  border: 1px solid #dcd8d1;
  border-top: 1px solid #dcd8d1;
  border-bottom: 1px solid #dcd8d1;
}

.main-content:has(.post-category) .article-content .toc__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: left;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content .toc__title::before {
  content: "";
  width: 24px;
  height: 3px;
  margin-right: 0;
  background: #1a1a1a;
  vertical-align: middle;
}

.main-content:has(.post-category) .article-content .toc > ul {
  counter-reset: toc-item;
}

.main-content:has(.post-category) .article-content .toc > ul > li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #dcd8d1;
  counter-increment: toc-item;
}

.main-content:has(.post-category) .article-content .toc > ul > li:last-child {
  border-bottom: none;
}

.main-content:has(.post-category) .article-content .toc > ul > li::before {
  content: counter(toc-item, decimal-leading-zero);
  flex: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #6f6b64;
}

.main-content:has(.post-category) .article-content .toc > ul > li > a {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.7;
  text-decoration: none;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content .toc ul ul {
  padding-left: 2.5em;
  font-size: 0.92em;
}

.main-content:has(.post-category) .article-content .toc ul ul li {
  display: list-item;
  border-bottom: none;
  padding: 0.35em 0;
}

.main-content:has(.post-category) .article-content .toc ul ul li::before {
  content: none;
}

.main-content:has(.post-category) .article-content > p {
  margin: 0 0 1.4em;
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.03em;
}

.main-content:has(.post-category) .article-content > p:first-of-type:has(strong) {
  margin: 0 0 40px;
  padding: 32px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #dcd8d1;
  font-size: clamp(1.15rem, 3vw, 1.4375rem);
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content > p:first-of-type strong {
  font-weight: inherit;
}

.main-content:has(.post-category) .article-content {
  counter-reset: article-section;
}

.main-content:has(.post-category) .article-content h2 {
  counter-increment: article-section;
  position: relative;
  margin: 80px 0 36px;
  padding: 0 0 18px;
  border: none;
  border-bottom: 1px solid #dcd8d1;
  background: none;
  font-size: clamp(1.2rem, 2.8vw, 1.5625rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content h2::before {
  content: counter(article-section, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #6f6b64;
}

.main-content:has(.post-category) .article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 3px;
  background: #1a1a1a;
}

.main-content:has(.post-category) .article-content h3 {
  margin: 2em 0 0.75em;
  padding: 0;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content blockquote {
  margin: 2.5em 0;
  padding: 32px 32px 28px;
  background: #f6f4f0;
  border: none;
  border-top: 3px solid #1a1a1a;
}

.main-content:has(.post-category) .article-content blockquote::before {
  content: none;
}

.main-content:has(.post-category) .article-content blockquote p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  color: #1a1a1a;
}

.main-content:has(.post-category) .article-content blockquote p:last-child {
  margin-bottom: 0;
}

.main-content:has(.post-category) .article-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.25em;
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.03em;
}

.main-content:has(.post-category) .article-content ol li {
  margin-bottom: 0.5em;
}

.main-content:has(.post-category) .article-content ul {
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.03em;
}

.main-content:has(.post-category) .article-content figure {
  margin: 1.8em 0;
}

.main-content:has(.post-category) .article-content figure img {
  border-radius: 0;
}

.main-content:has(.post-category) .related-card {
  margin: 2.5em 0 0;
  border: 1px solid #dcd8d1;
  background: #fff;
}

.main-content:has(.post-category) .related-card__label {
  padding: 14px 20px 6px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: #6f6b64;
}

.main-content:has(.post-category) .related-card__link {
  padding: 0 20px 16px;
}

.main-content:has(.post-category) .related-card__link:hover .related-card__title {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #b9b4aa;
}

.main-content:has(.post-category) .related-card__title {
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* Site search */
.search-page {
  max-width: var(--article-size);
  margin: 0 auto;
}

.search-form {
  margin: 0 0 2rem;
}

.search-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.search-form__row {
  display: flex;
  gap: 12px;
}

.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.search-form__button {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.header-search {
  display: none;
}

.mobile-search {
  margin: 0 0 20px;
}

.footer-search {
  margin-bottom: 28px;
}

.footer-search .search-form__row {
  flex-direction: column;
}

@media (min-width: 901px) {
  .site-header:not([data-fixed="false"]) .header-search {
    display: flex;
    flex: 0 1 240px;
    min-width: 0;
    margin-left: 12px;
  }

  .header-search .search-form__row {
    width: 100%;
    gap: 8px;
  }

  .header-search .search-form__input {
    padding: 7px 10px;
    font-size: 13px;
  }

  .header-search .search-form__button {
    padding: 7px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .mobile-search {
    display: none;
  }
}

@media (min-width: 600px) {
  .footer-search .search-form__row {
    flex-direction: row;
  }
}

.search-status {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.92rem;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result {
  border-top: 1px solid #e4e4e4;
}

.search-result:last-child {
  border-bottom: 1px solid #e4e4e4;
}

.search-result__link {
  display: block;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
}

.search-result__link:hover {
  opacity: 1;
  background: #fafafa;
}

.search-result__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--color-link);
}

.search-result__category {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #888;
}

.search-result__excerpt {
  margin: 0;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.7;
}

a.donation-card {
  display: block;
  max-width: 440px;
  margin: 2.5em auto 1em;
  padding: 22px 20px 18px;
  text-align: center;
  color: #222;
  background: #fff;
  border: 1px solid #222;
  text-decoration: none;
  line-height: 1.6;
}

a.donation-card:hover { opacity: 1; background: #111; color: #fff; }

/* 記事一覧 */
#post_list_tab_1 > ul ,
.post-list-grid > ul  {
  list-style: none;
  margin: 0;
  padding: 0;
}

#post_list_tab_1 > ul > li ,
.post-list-grid > ul > li  {
  border-bottom: 1px solid #e6e6e6;
}

#post_list_tab_1 > ul > li > a ,
.post-list-grid > ul > li > a  {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  color: #333;
}

#post_list_tab_1 > ul > li > a:hover ,
.post-list-grid > ul > li > a:hover  { opacity: 1; }
#post_list_tab_1 > ul > li > a:hover h2 ,
.post-list-grid > ul > li > a:hover h2  { color: #1176d4; }

#post_list_tab_1 figure ,
.post-list-grid figure  { margin: 0; }

#post_list_tab_1 img ,
.post-list-grid img  {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #f2f2f2;
}

#post_list_tab_1 h2 ,
.post-list-grid h2  {
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 8px;
  padding: 0;
}

#post_list_tab_1 h2::before ,
.post-list-grid h2::before  { display: none; }

#post_list_tab_1 li a > div:first-child > span ,
.post-list-grid li a > div:first-child > span  {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px 2px 18px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  position: relative;
  border-left: 2px solid transparent;
}

#post_list_tab_1 li a > div:first-child > span::before ,
.post-list-grid li a > div:first-child > span::before  {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  opacity: 0.9;
}

.page-hero--cat-inganodori + .main-content #post_list_tab_1 span,
.page-hero--cat-inganodori + .main-content .post-list-grid span {
  border-left-color: var(--cat-inganodori);
}
.page-hero--cat-inganodori + .main-content #post_list_tab_1 span::before,
.page-hero--cat-inganodori + .main-content .post-list-grid span::before {
  background: var(--cat-inganodori);
}

.page-hero--cat-tendaishu + .main-content #post_list_tab_1 span,
.page-hero--cat-tendaishu + .main-content .post-list-grid span {
  border-left-color: var(--cat-tendaishu);
}
.page-hero--cat-tendaishu + .main-content #post_list_tab_1 span::before,
.page-hero--cat-tendaishu + .main-content .post-list-grid span::before {
  background: var(--cat-tendaishu);
}

.page-hero--cat-yuishiki + .main-content #post_list_tab_1 span,
.page-hero--cat-yuishiki + .main-content .post-list-grid span {
  border-left-color: var(--cat-yuishiki);
}
.page-hero--cat-yuishiki + .main-content #post_list_tab_1 span::before,
.page-hero--cat-yuishiki + .main-content .post-list-grid span::before {
  background: var(--cat-yuishiki);
}

.page-hero--cat-column-about-life + .main-content #post_list_tab_1 span,
.page-hero--cat-column-about-life + .main-content .post-list-grid span {
  border-left-color: var(--cat-column-about-life);
}
.page-hero--cat-column-about-life + .main-content #post_list_tab_1 span::before,
.page-hero--cat-column-about-life + .main-content .post-list-grid span::before {
  background: var(--cat-column-about-life);
}

#post_list_tab_1 li a > div:nth-child(2) > div:first-of-type ,
.post-list-grid li a > div:nth-child(2) > div:first-of-type  {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#post_list_tab_1 time ,
.post-list-grid time  {
  display: inline-block;
  margin-top: 10px;
  color: #888;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* カテゴリー一覧（カード3列） */
.main-content.is-category {
  max-width: 1080px;
}

/* タイトル背景は常に全幅（旧CSSの .is-category 漏れ対策） */
header.page-hero {
  width: 100%;
  max-width: none;
}

.main-content.is-category .page-title {
  margin-bottom: 28px;
  padding-bottom: 0.35em;
  border-bottom: 1px solid #ddd;
  font-size: 1.7rem;
}

.main-content.is-category .page-title::after {
  content: "– category –";
  margin-left: 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #9a9a9a;
  letter-spacing: 0.02em;
}

.is-category #post_list_tab_1 > ul ,
.is-category .post-list-grid > ul  {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 22px;
}

.is-category #post_list_tab_1 > ul > li ,
.is-category .post-list-grid > ul > li  { border: none; }

.is-category #post_list_tab_1 > ul > li > a ,
.is-category .post-list-grid > ul > li > a  {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100%;
  letter-spacing: 0.02em;
}

.is-category #post_list_tab_1 li a > div:first-child ,
.is-category .post-list-grid li a > div:first-child  {
  position: relative;
}

.is-category #post_list_tab_1 figure,
.is-category #post_list_tab_1 img,
.is-category .post-list-grid figure,
.is-category .post-list-grid img {
  border-radius: 14px;
}

.is-category #post_list_tab_1 img ,
.is-category .post-list-grid img  {
  height: 168px;
}

.is-category #post_list_tab_1 li a > div:first-child > span ,
.is-category .post-list-grid li a > div:first-child > span  {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  padding: 3px 8px 3px 18px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.is-category #post_list_tab_1 li a > div:first-child > span ,
.is-category .post-list-grid li a > div:first-child > span  {
  border-left-width: 2px;
  border-left-style: solid;
}

.is-category #post_list_tab_1 li a > div:first-child > span::before ,
.is-category .post-list-grid li a > div:first-child > span::before  {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.is-category #post_list_tab_1 h2 ,
.is-category .post-list-grid h2  {
  margin: 12px 0 8px;
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0;
  background: none;
  border: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.is-category #post_list_tab_1 li a > div:nth-child(2) > div:first-of-type ,
.is-category .post-list-grid li a > div:nth-child(2) > div:first-of-type  {
  font-size: 0.84rem;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-line-clamp: 4;
}

.is-category #post_list_tab_1 time ,
.is-category .post-list-grid time  {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
}

.is-category #post_list_tab_1 time::before ,
.is-category .post-list-grid time::before  {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) center 2px / 1.5px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 6px / 3px 1.5px no-repeat;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}

.pager span { background: #111; color: #fff; border-color: #111; }

.article-content blockquote {
  margin: 1.5em 0;
  padding: 1.5em 2em 1.5em 3em;
  position: relative;
  background: #f9f9f9;
}

.article-content blockquote::before {
  content: "";
  position: absolute;
  left: 1.5em;
  top: 1.5em;
  bottom: 1.5em;
  width: 5px;
  border-left: 1px solid rgba(180,180,180,0.75);
  border-right: 1px solid rgba(180,180,180,0.75);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.article-content img {
  display: block;
  margin: 1.5em auto;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}

.footer-widget h3 {
  font-size: 1rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-widget p { margin: 0 0 12px; font-size: 0.9rem; }

.footer-widget a { color: var(--color-footer-text); }

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  text-align: center;
}

.copyright { margin: 0; font-size: 0.85rem; }

/* Page top button */
.page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 50;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Contact form */
.contact-form {
  max-width: 600px;
}

.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 600px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  display: block;
  margin: 8px auto 0;
  background: var(--color-main);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.contact-form button:hover { opacity: 0.9; }

.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 16px;
}

.form-notice {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.form-notice.success {
  background: #f1f9ee;
  border: 1px solid #63a84d;
  color: #2d5016;
}

.form-notice.error {
  background: #fff2f0;
  border: 1px solid #e44141;
  color: #8b1a1a;
}

.form-notice p {
  margin: 0;
}

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

/* Responsive */
@media (max-width: 900px) {
  .site-header:not([data-fixed="false"]) .main-nav { display: none; }

  .site-header:not([data-fixed="false"]) .header-inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .site-header:not([data-fixed="false"]) .logo {
    order: 1;
    margin-right: auto;
  }

  .site-header:not([data-fixed="false"]) .menu-toggle {
    display: block;
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
    padding: 8px 0 8px 12px;
  }

  .site-header:not([data-fixed="false"]) .search-toggle {
    order: 3;
    margin-left: 0;
  }

  /* トップページ：ロゴ左・メニュー右 */
  .site-header[data-fixed="false"] .logo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    padding: 10px 14px;
    background: #111;
  }

  .site-header[data-fixed="false"] .logo img {
    height: 40px;
  }

  .site-header[data-fixed="false"] .menu-toggle {
    left: auto;
    right: 0;
  }

  .site-header[data-fixed="false"] .search-toggle {
    display: none;
  }

  .hero { height: 100svh; max-height: 720px; }

  .top-banner {
    margin-left: auto;
    margin-right: auto;
  }

  .sango { top: 50px; }
  .honzon { top: 330px; }

  .sub-nav li { display: none; }

  .flex {
    display: grid;
    width: 325px;
  }

  .br-tsuika { display: block; }

  .related-card__link {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .related-card img {
    width: 96px;
    height: 72px;
  }

  .article-content .related-card img {
    max-width: 96px;
  }

  .search-form__row {
    flex-direction: column;
  }

  .search-form__button {
    width: 100%;
  }

  .page-hero__inner {
    padding: 48px 16px 40px;
  }

  .page-hero .page-title {
    font-size: 1.35rem;
  }

  #post_list_tab_1 > ul > li > a ,
.post-list-grid > ul > li > a  {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #post_list_tab_1 img ,
.post-list-grid img  { height: 200px; }

  .is-category #post_list_tab_1 > ul ,
.is-category .post-list-grid > ul  { grid-template-columns: 1fr; }

  .post-list.-simple .post-item a { flex-wrap: wrap; gap: 8px; }
  .post-list.-list .post-item a { flex-direction: column; }
  .post-thumb { width: 100%; height: 180px; }

  .home-columns { grid-template-columns: 1fr; gap: 40px; }

  .home-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section-head .section-title,
  .more-btn.-inline { text-align: center; }

  .home-list.post-list-grid > ul > li > a,
  .home-column .home-list.post-list-grid > ul > li > a {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-list.post-list-grid img,
  .home-column .home-list.post-list-grid img {
    height: 180px;
  }

  .home-card-wrap.-compact .post-list-grid > ul {
    grid-template-columns: 1fr;
  }

  .main-content:has(.post-category) {
    padding: 48px 16px 80px;
  }

  .main-content:has(.post-category).-no-hero {
    padding-top: 48px;
  }

  .main-content:has(.post-category) > .page-title {
    margin-bottom: 40px;
  }

  .main-content:has(.post-category) .article-content .toc {
    padding: 24px 20px 16px;
  }

  .main-content:has(.post-category) .article-content h2 {
    margin-top: 64px;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .is-category #post_list_tab_1 > ul ,
.is-category .post-list-grid > ul  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
  body { font-size: 18px; }
}

@media (min-width: 960px) {
  .hero { height: 50vw; max-height: 700px; }
}

/* ご支援のお願い */
.donation-page .donation-lead {
  font-size: 1.05em;
  line-height: 2;
  padding: 1em 1.2em;
  background: #f6f6f6;
  border-left: 4px solid #111;
}

.donation-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1.6em 0;
}

.donation-photos figure { margin: 0; }

.donation-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.donation-photos figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #666;
}

.donation-sign {
  text-align: right;
  line-height: 1.9;
}

.donation-account {
  max-width: 520px;
  margin: 1.2em 0;
  padding: 18px 22px;
  border: 1px solid #222;
  background: #fff;
}

.donation-account dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 8px 16px;
  margin: 0;
}

.donation-account dt { color: #666; font-size: 0.9em; }
.donation-account dd { margin: 0; font-weight: 700; letter-spacing: 0.08em; }

.donation-note {
  padding: 0.8em 1em;
  background: #f6f6f6;
  font-size: 0.92em;
  color: #444;
}

.faq details {
  border-bottom: 1px solid #ddd;
  padding: 0.6em 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.7;
  padding: 0.3em 0;
}

.faq details p { margin: 0.6em 0 0.4em; font-size: 0.95em; }

/* 記事末の導線 */
.article-cta {
  margin: 3em 0 1.5em;
  padding: 22px 22px 20px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.article-cta__title {
  margin: 0 0 0.5em;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.article-cta__text {
  margin: 0 0 1em;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #444;
}

.article-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-cta__links a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #222;
  color: #222;
  background: #fff;
  text-decoration: none;
  font-size: 0.92rem;
}

.article-cta__links a:hover { opacity: 1; background: #111; color: #fff; }

/* トップ: 改修の進捗 */
.restoration-section {
  padding: 56px 16px;
  background: #f6f4ef;
}

.restoration-section .restoration-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.restoration-section .restoration-title {
  margin: 0 0 0.8em;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.restoration-section p {
  line-height: 2;
  margin: 0 0 1.2em;
}

.restoration-section .restoration-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.restoration-section .restoration-links a {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #222;
  color: #222;
  text-decoration: none;
}

.restoration-section .restoration-links a.-primary { background: #111; color: #fff; }
.restoration-section .restoration-links a:hover { opacity: 0.8; }


.page-hero--newsletter { background-image: url("../assets/images/contact.jpg"); }
.page-hero--access { background-image: url("../assets/images/DSC_8490.jpg"); }

/* 釈迦院への行き方 */
.access-guide h2[id] {
  scroll-margin-top: 76px;
}

.access-lead {
  font-size: 1.05rem;
  line-height: 2;
}

.article-content.access-guide iframe {
  height: 320px;
}

.access-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.access-choice__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 20px 18px 16px;
  border: 1px solid #ddd;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.access-choice__card:hover {
  opacity: 1;
  border-color: #111;
}

.access-choice__label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #666;
}

.access-choice__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
}

.access-choice__text,
.access-choice__go {
  margin: 0;
}

.access-choice__list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.access-choice__list li {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #eee;
  font-size: 0.92rem;
  line-height: 1.6;
}

.access-choice__go {
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-link);
  font-size: 0.9rem;
}

.access-note {
  margin: 0 0 1.8em;
  padding: 14px 16px;
  background: #f6f4ef;
  border-left: 4px solid #111;
}

.access-note p { margin: 0; }

.access-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.access-facts li {
  margin: 0;
  padding: 14px 10px;
  background: #f6f4ef;
  text-align: center;
}

.access-facts strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.access-facts span {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.access-route {
  margin: 0 0 1.6em;
  padding: 4px 0 0;
  list-style: none;
}

.access-route li {
  position: relative;
  margin: 0;
  padding: 0 0 20px 26px;
  border-left: 2px solid #ccc;
  overflow-wrap: anywhere;
}

.access-route li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.access-route li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
}

.access-route strong { display: block; }

.access-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  -webkit-overflow-scrolling: touch;
}

.access-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.access-table th,
.access-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.access-table th {
  background: #111;
  color: #fff;
  font-weight: 700;
}

.access-table--time td:first-child,
.access-table--time td:nth-child(2) {
  white-space: nowrap;
}

.access-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 1.2em;
}

.access-compare article {
  padding: 8px 16px 16px;
  border: 1px solid #e5e5e5;
}

.access-compare h3 {
  margin-top: 0.6em;
  padding: 0;
  border: none;
  background: none;
}

.access-compare dl { margin: 0; }

.access-compare dt {
  margin-top: 12px;
  color: #666;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.access-compare dd { margin: 0; }

.access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.access-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #222;
  color: #222;
  text-decoration: none;
}

.access-links a:hover {
  opacity: 1;
  background: #111;
  color: #fff;
}

.article-content .access-choice,
.article-content .access-facts,
.article-content .access-route,
.article-content .access-links,
.article-content .access-choice__list {
  margin-left: 0;
  padding-left: 0;
}

@media (min-width: 720px) {
  .access-choice,
  .access-compare {
    grid-template-columns: 1fr 1fr;
  }

  .access-facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.access-guide {
  --access-green: #1b4332;
  --access-green-light: #e8f3ec;
  --access-blue: #1d4ed8;
  --access-blue-light: #eff6ff;
}

.access-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

.access-picker__card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #d8e2d8;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.06);
}

.access-picker__card:hover {
  opacity: 1;
  border-color: var(--access-green);
}

.access-picker__card--car { border-top: 4px solid var(--access-blue); }
.access-picker__card--walk { border-top: 4px solid var(--access-green); }

.access-picker__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

.access-picker__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.access-picker__icon {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--access-green);
}

.access-picker__card--car .access-picker__icon { color: var(--access-blue); }

.access-picker__body {
  padding: 18px 18px 20px;
}

.access-picker__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #5c6b5c;
}

.access-picker__title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
}

.access-picker__text {
  margin: 0 0 14px;
  line-height: 1.85;
}

.access-picker__btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  border: 1px solid #222;
  color: #222;
}

.access-picker__card--car .access-picker__btn {
  border-color: var(--access-blue);
  color: var(--access-blue);
}

.access-picker__card--walk .access-picker__btn {
  border-color: var(--access-green);
  color: var(--access-green);
}

.access-legend-car {
  color: var(--access-blue);
  font-weight: 700;
}

.access-legend-walk {
  color: var(--access-green);
  font-weight: 700;
}

.access-map-section {
  margin: 0 0 2.4em;
  padding: 18px 16px 16px;
  background: var(--access-green-light);
  border: 1px solid #cfe0d4;
}

.access-map-section h2 {
  margin-top: 0;
  border-left-color: var(--access-green);
  background: rgba(255, 255, 255, 0.65);
}

.access-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.access-map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.access-map-legend span {
  display: inline-block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
}

.access-map-legend .-car-national { background: #1d4ed8; }
.access-map-legend .-car-pref { background: #3b82f6; }
.access-map-legend .-car-mountain { background: #2563eb; opacity: 0.85; }
.access-map-legend .-walk-steps { background: #166534; height: 5px; }
.access-map-legend .-walk-path { background: #22c55e; }

.access-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 0.88rem;
}

.access-map-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.access-map-tools button {
  padding: 6px 12px;
  border: 1px solid #334155;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

#access-map-canvas {
  width: 100%;
  height: min(62vh, 520px);
  min-height: 280px;
  border: 1px solid #b8c9bb;
  background: #f1f5f9;
  z-index: 0;
}

#access-map-canvas.access-map--error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: auto;
  min-height: 120px;
}

.access-map-credit {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.6;
}

.access-map-marker span {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.access-map-marker--temple span { background: #b91c1c; width: 16px; height: 16px; }
.access-map-marker--car_start span { background: var(--access-blue); }
.access-map-marker--walk_start span { background: var(--access-green); }

.access-map-label {
  padding: 2px 5px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #17221a;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.access-route-block {
  margin: 0 0 2em;
  padding: 0 0 0.5em;
  border-bottom: 1px solid #e8ece8;
}

.access-route-block--car {
  padding: 16px 16px 8px;
  background: var(--access-blue-light);
  border: 1px solid #bfdbfe;
}

.access-route-block--walk {
  padding: 16px 16px 8px;
  background: var(--access-green-light);
  border: 1px solid #cfe0d4;
}

.access-gmaps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.2em;
}

.access-gmaps-actions a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--access-blue);
  color: var(--access-blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.access-gmaps-actions a.-walk {
  border-color: var(--access-green);
  color: var(--access-green);
}

.access-photo-placeholder {
  margin: 0 0 1.2em;
  padding: 28px 16px;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    #f8faf8,
    #f8faf8 8px,
    #eef2ee 8px,
    #eef2ee 16px
  );
  border: 1px dashed #94a3b8;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}

.access-verify {
  margin: 2em 0 1.5em;
  padding: 14px 16px;
  background: #fffbeb;
  border-left: 4px solid #d97706;
}

.access-verify h3 {
  margin-top: 0;
  border: none;
  padding: 0;
  background: none;
}

.access-verify ul {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .access-picker {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  font-weight: 400;
}

.contact-form label.consent input {
  width: auto;
  max-width: none;
  margin: 6px 0 0;
}
