/* 金海山 大恩教寺 釈迦院 - 静的サイト 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;
}

*, *::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: 36px 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-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;
}

/* 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;
}

.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;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

#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::before ,
.is-category .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%);
}

.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 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 {
  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;
  }

  .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;
  }
}

@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; }
}
