/* ============================================================
   静岡市清水地区ボランティア連絡会
   style.css — 和紙クラフト紙テーマ
   px禁止 / rem・em・clamp() 使用
   ============================================================ */


/* ── CSS カスタムプロパティ ───────────────────────────────── */
:root {
  /* カラー */
  --c-base:       #faf8f2;   /* 明るいアイボリー */
  --c-base-deep:  #f0ebe0;   /* やや深いアイボリー */
  --c-base-light: #fdfcf9;   /* ほぼ白 */
  --c-paper:      #ffffff;   /* 白 */
  --c-green:      #4aa360;   /* 明るいグリーン */
  --c-green-dark: #2b6040;   /* 濃いグリーン（モバイルメニュー等） */
  --c-green-light:#65b878;   /* 明るいグリーン（ライト） */
  --c-green-pale: #e4f2e8;   /* 薄いグリーン */
  --c-terra:      #e06842;   /* 明るいコーラルオレンジ */
  --c-terra-light:#ea8860;   /* 明るいコーラル（ライト） */
  --c-terra-pale: #fdeee7;   /* 薄いコーラル */
  --c-teal:       #3a9cb0;   /* ティール（青緑） */
  --c-amber:      #c99620;   /* アンバー（金黄色） */
  --c-text:       #2c2a26;   /* メインテキスト */
  --c-text-sub:   #4a4840;   /* サブテキスト */
  --c-text-mute:  #7a7870;   /* ミュートテキスト */
  --c-link:       #4aa360;   /* リンク */
  --c-link-hover: #e06842;   /* リンクホバー */
  --c-border:     #e0d8cc;   /* ボーダー */
  --c-border-light:#ede8de;  /* 薄いボーダー */
  --c-shadow:     rgba(30, 90, 50, 0.10);   /* 影 */
  --c-shadow-soft:rgba(30, 90, 50, 0.05);   /* 薄い影 */

  /* フォントサイズ（clamp） */
  --fs-xs:   clamp(0.70rem, 0.65rem + 0.25vw, 0.80rem);
  --fs-sm:   clamp(0.82rem, 0.78rem + 0.25vw, 0.92rem);
  --fs-base: clamp(0.93rem, 0.88rem + 0.30vw, 1.05rem);
  --fs-md:   clamp(1.05rem, 0.95rem + 0.50vw, 1.25rem);
  --fs-lg:   clamp(1.20rem, 1.05rem + 0.80vw, 1.55rem);
  --fs-xl:   clamp(1.45rem, 1.20rem + 1.20vw, 2.00rem);
  --fs-2xl:  clamp(1.80rem, 1.40rem + 2.00vw, 2.70rem);
  --fs-3xl:  clamp(2.20rem, 1.60rem + 3.00vw, 3.60rem);

  /* 余白 */
  --sp-xs:  0.35rem;
  --sp-sm:  0.65rem;
  --sp-md:  1.10rem;
  --sp-lg:  1.80rem;
  --sp-xl:  2.80rem;
  --sp-2xl: 4.50rem;
  --sp-3xl: 7.00rem;

  /* レイアウト */
  --container: 68rem;
  --container-narrow: 46rem;
  --radius-sm:  0.4rem;
  --radius-md:  0.9rem;
  --radius-lg:  1.6rem;
  --radius-xl:  2.4rem;

  /* トランジション */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.28s;
}

/* ── ユーティリティ ──────────────────────────────────────── */
.br-mobile  { display: none; }
.br-tablet  { display: none; }
.br-wide    { display: none; }
.br-small   { display: none; }
@media (max-width: 600px)      { .br-mobile  { display: block; } }
@media (max-width: 960px)      { .br-tablet  { display: block; } }
@media (max-width: 1280px)     { .br-wide    { display: block; } }
@media (max-width: 375px)  { .br-small   { display: block; } }

/* ── リセット ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* ── ベース / 紙テクスチャ ────────────────────────────────── */
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text);

  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}


/* ── タイポグラフィ ───────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--sp-md);
  line-height: 2.0;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--c-link-hover);
}

ul, ol {
  padding-left: 1.4em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── コンテナ ─────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - var(--sp-xl) * 2);
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), 100% - var(--sp-xl) * 2);
  margin-inline: auto;
}

/* ── ヘッダー ─────────────────────────────────────────────── */
.site-header {
  box-shadow: 0 0.2em 1.8em var(--c-shadow-soft);
}

/* 上段：ロゴ＋ユーティリティ */
.header-top {
  background-color: #ffffff;
  border-bottom: 0.06em solid var(--c-border-light);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  padding-block: var(--sp-xs);
}

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.site-logo:hover {
  transform: translateY(-0.15em);
}


.site-logo__img {
  height: clamp(3.5rem, 3.0rem + 2.5vw, 5.0rem);
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.site-logo__area {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-base);
  font-weight: 400;
  color: #3a8a50;
  letter-spacing: 0.10em;
  line-height: 1.2;
}

.site-logo__name {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: clamp(1.2rem, 1.0rem + 1.0vw, 1.75rem);
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
}

.site-logo__kanji {
  font-size: 0.95em;
}

/* ユーティリティリンク */
.header-util {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-shrink: 0;
}

.header-util__item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1rem;
  font-weight: 600;
  color: #6a6760;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.header-util__item:hover {
  color: var(--c-terra);
  transform: translateY(-0.15em);
}

.header-util__item:hover .header-util__icon {
  color: var(--c-terra);
}

.header-util__tel {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  letter-spacing: 0.06em;
  cursor: default;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.header-util__tel:hover {
  color: var(--c-green);
  transform: translateY(-0.15em);
}

.header-util__tel:hover .header-util__icon {
  color: var(--c-green);
}

.header-util__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--c-green);
  transition: color var(--dur) var(--ease);
}

.header-util__item:last-child {
  margin-right: var(--sp-md);
}

.header-util__divider {
  display: block;
  width: 0.06em;
  height: 1.2em;
  background-color: var(--c-border);
  flex-shrink: 0;
}

/* 下段：ナビゲーション */
.header-nav {
  background-color: var(--c-paper);
  border-bottom: 0.06em solid var(--c-border-light);
}

.header-nav-inner {
  display: flex;
  align-items: stretch;
}

/* ── ナビゲーション ───────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-list li {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: center;
}

.nav-list li {
  border-right: 0.06em solid var(--c-border-light);
}

.nav-panel-header + li {
  border-left: 0.06em solid var(--c-border-light);
}

.nav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  width: 100%;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-sub);
  letter-spacing: 0.06em;
  padding: var(--sp-sm) var(--sp-md);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-icon {
  width: 1.75em;
  height: 1.75em;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.nav-list a:hover .nav-icon {
  transform: translateY(-0.15em);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--sp-md);
  right: var(--sp-md);
  height: 0.15em;
  background-color: var(--c-green-light);
  border-radius: 100vmax;
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--c-green);
}


.nav-list a[aria-current="page"] .nav-icon {
  transform: translateY(-0.15em);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ハンバーガー */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.2em;
  height: 3.2em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1em 0.4em;
  margin-left: auto;
  color: rgba(253, 250, 244, 0.9);
}

.nav-toggle svg {
  width: 1.75em;
  height: 1.75em;
}

.nav-toggle__label {
  display: none;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 0.2em;
  white-space: nowrap;
}

.nav-toggle__icon-close {
  display: none;
}

/* モバイルナビ パネル内クローズボタン（.nav-list li より詳細度を高くして非表示） */
.nav-list .nav-panel-header {
  display: none;
}

/* デスクトップナビでは非表示・ハンバーガーのみ表示 */
.nav-list .nav-item--mobile-only {
  display: none;
}

/* ── ドロップダウンメニュー（マウスオーバーで表示） ─────────── */
.nav-list li {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: max-content;
  min-width: 100%;
  max-width: 90vw;
  z-index: 120;
  margin: 0;
  padding: 0.5em 0;
  list-style: none;
  background-color: var(--c-paper);
  border: 0.06em solid var(--c-border-light);
  border-top: none;
  border-radius: 0 0 0.6em 0.6em;
  box-shadow: 0 0.75em 1.5em var(--c-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4em);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.nav-dropdown li {
  display: block;
  flex: none;
  border: none;
}

.nav-dropdown li:not(:last-child) {
  border-bottom: 0.06em solid var(--c-border-light);
}

.nav-dropdown a {
  display: block;
  width: 100%;
  padding: 0.9em 1.2em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown a::after {
  content: none;
}

.nav-dropdown a:hover {
  color: var(--c-green);
  background-color: var(--c-green-pale);
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── セクション共通 ───────────────────────────────────────── */
.section {
  padding-block: var(--sp-3xl);
}

.section--tight {
  padding-block: var(--sp-xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  letter-spacing: 0.2em;
  color: var(--c-green);
  margin-bottom: var(--sp-sm);
  padding: 0.25em 0.8em;
  border: 0.06em solid var(--c-green-light);
  border-radius: 100vmax;
  background-color: var(--c-green-pale);
}

.section-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-sm);
}

/* スクロール連動マーカーアンダーライン */
.marker-scroll {
  display: inline-block;
  background: linear-gradient(transparent 72%, rgba(170, 216, 188, 0.45) 72%) no-repeat left;
  background-size: 0% 100%;
  border-radius: 6px;
  padding: 0 0.3em 0 0;
}
.marker-scroll.is-visible {
  animation: marker-draw 0.8s ease-out 0.15s forwards;
}

.news-ttl {
  position: relative;
  display: inline-block;
  padding-bottom: 0.9em;
}

.news-ttl > span {
  position: relative;
  z-index: 1;
  color: #6b4226;
}

.news-ttl__branch {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.8em;
  width: auto;
  max-width: none;
  z-index: 0;
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--c-text-sub);
  margin-bottom: var(--sp-2xl);
  max-width: 30em;
}

/* 区切り装飾 */
.divider {
  width: 12em;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    #65b878 0px, #65b878 10px,
    rgba(0 0 0 / 0) 10px, rgba(0 0 0 / 0) 16px
  );
  background-size: 16px 2px;
  background-repeat: repeat-x;
  background-position: left center;
  border: none;
  margin-bottom: var(--sp-xl);
}

/* ── セクション背景バリエーション ────────────────────────── */
.section--cream {
  background-color: #f5f3ec;
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(200, 185, 155, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 50%, rgba(180, 200, 165, 0.07) 0%, transparent 60%);
}

.section--white {
  background-color: var(--c-paper);
}

.section--green-pale {
  background-color: #d7eadd;
}

.section--terra-pale {
  background-color: #f9e2d6;
}

.section--cta-final {
  background-color: var(--c-green);
  background-image:
    radial-gradient(ellipse at 20% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 55%);
}

/* 波形区切りデバイダー */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: calc(5.5rem + 1px);
  margin-left: -0.65px;
  margin-bottom: -1px;
}

/* ── ヒーロー ─────────────────────────────────────────────── */
/* ── ヒーローアニメーション キーフレーム ───────────────── */
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marker-draw {
  from { background-size: 0%   100%; }
  to   { background-size: 100% 100%; }
}

/* 
@keyframes catch-char-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
} */

.hero {
  display: block;
  margin-top: var(--sp-sm);
}

/* ひょうたん型シャドウラッパー */
.hero__gourd-shadow {
  position: relative;
  width: 100%;
}

/* ヒーローフレーム */
.hero__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: hero-fade-in 2.5s ease-out 0s forwards;
}

/* 1800px以上のワイド画面：これ以上縦に伸ばさず640pxで頭打ちにする */
@media (min-width: 112.5em) {
  .hero__img {
    height: 40rem;
    object-fit: cover;
  }
}

/* ── ヒーローオーバーレイテキスト ─────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-block: var(--sp-lg);
  padding-inline: max(var(--sp-xl), calc((100% - var(--container)) / 2));
  z-index: 2;
}

.hero-overlay__box {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.9em 1.4em 1em;
  border-radius: var(--radius-md);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-overlay__catch {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: clamp(0.85rem, 3.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.16em;
  color: #2d4a38;
  text-shadow: none;
  margin-bottom: var(--sp-sm);
  white-space: nowrap;
  display: inline-block;
  background: linear-gradient(transparent 72%, #aad8bc 72%) no-repeat left;
  background-size: 0% 100%;
  border-radius: 6px;
  padding: 0 0.5em 0 0;
  opacity: 0;
  animation:
    hero-slide-up  0.9s ease-out 0.5s forwards,
    marker-draw    0.8s ease-out 1.6s forwards;
}

.hero-overlay__lead {
  font-size: clamp(0.65rem, 2.6vw, 1.1rem);
  color: #444;
  line-height: 2.2;
  letter-spacing: 0.08em;
  text-shadow: none;
  white-space: nowrap;
  margin-bottom: 0;
  opacity: 0;
  animation: hero-slide-up 0.9s ease-out 0.9s forwards;
}

.hero-highlight {
  color: #4aa360;
  font-weight: bold;
}

/* 右クリーム余白の中サイズリング */

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.hero-content {
  max-width: 32em;
}

.hero-catch {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.10em;
  margin-bottom: var(--sp-lg);
  color: var(--c-text);
}

.hero-catch em {
  font-style: normal;
  color: var(--c-green);
}

.hero-lead {
  font-size: var(--fs-md);
  color: var(--c-text);
  line-height: 2.1;
  margin-bottom: var(--sp-xl);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ヒーロー装飾 
.hero-deco {
  position: absolute;
  top: -1.5em;
  right: -1.5em;
  width: 8em;
  height: 8em;
  border: 0.12em solid var(--c-green-light);
  border-radius: 50%;
  opacity: 0.5;
}
  */

/* ── ボタン ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.8em;
  font-size: 1rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  letter-spacing: 0.08em;
  border-radius: 100vmax;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  font-weight: 400;
}

.btn--primary {
  background-color: var(--c-green);
  color: var(--c-paper);
  box-shadow: 0 0.25em 1.2em rgba(110, 132, 100, 0.30);
}

.btn--primary:hover {
  background-color: var(--c-green-light);
  color: var(--c-paper);
  transform: translateY(-0.1em);
  box-shadow: 0 0.4em 1.8em rgba(110, 132, 100, 0.38);
}

.btn--secondary {
  background-color: transparent;
  color: var(--c-green);
  border: 0.09em solid var(--c-green);
}

.btn--secondary:hover {
  background-color: var(--c-green-pale);
  color: var(--c-green);
}

.btn--terra {
  background-color: var(--c-terra);
  color: var(--c-paper);
  box-shadow: 0 0.25em 1.2em rgba(196, 121, 90, 0.28);
}

.btn--terra:hover {
  background-color: var(--c-terra-light);
  color: var(--c-paper);
  transform: translateY(-0.1em);
}

.btn--danger {
  background-color: #ef4444;
  color: #fff;
  margin-left: auto;
}

.btn--danger:hover {
  background-color: #dc2626;
  color: #fff;
  transform: translateY(-0.1em);
}

.btn--sm {
  padding: 0.5em 1.3em;
  font-size: var(--fs-xs);
}

.btn--paper {
  background-color: var(--c-paper);
  color: var(--c-green);
  box-shadow: 0 0.25em 1.2em rgba(0, 0, 0, 0.15);
}

.btn--paper:hover {
  background-color: #fff;
  color: var(--c-green);
  transform: translateY(-0.1em);
  box-shadow: 0 0.4em 1.8em rgba(0, 0, 0, 0.20);
}

/* ── Final CTA ────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  max-width: 42em;
  margin-inline: auto;
}

.cta-final__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--c-text-mute);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.cta-final__title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-xl);
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.cta-final__title::before,
.cta-final__title::after {
  content: '';
  flex-shrink: 0;
  width: 0.13em;
  height: 1.2em;
  background-color: var(--c-terra-light);
  border-radius: 100vmax;
}

.cta-final__title::before {
  margin-right: 0.6em;
  transform: rotate(-35deg);
}

.cta-final__title::after {
  margin-left: 0.6em;
  transform: rotate(35deg);
}

.cta-final__sub {
  font-size: var(--fs-md);
  color: var(--c-text);
  line-height: 1.9;
  margin-top: var(--sp-lg);
}

/* 2行コンタクト */
.cta-contact-sep {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: var(--c-text-mute);
  font-size: var(--fs-md);
  letter-spacing: 0.1em;
}
.cta-contact-sep::before,
.cta-contact-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border, #d5cfc3);
}

.cta-contact-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-md);
  max-width: 30em;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .cta-contact-options {
    flex-direction: row;
    align-items: stretch;
    max-width: 56em;
  }

  .cta-contact-opt {
    flex: 1;
  }

  .cta-contact-sep {
    display: none;
  }
}

.cta-contact-opt {
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  background: var(--c-base-light);
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  transition: background var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cta-contact-opt:hover {
  background: var(--c-green-pale);
}

.cta-contact-opt__icon {
  color: var(--c-green);
  line-height: 1;
}

.cta-contact-opt__type {
  font-size: 1rem;
  color: var(--c-text-mute);
  letter-spacing: 0.08em;
}

.cta-contact-opt .btn {
  margin-top: 0;
}

.cta-contact-opt__note {
  font-size: 1rem;
  color: var(--c-text-mute);
  margin-top: var(--sp-md);
  margin-bottom: 0;
}

.cta-contact-opt__tel {
  font-size: var(--fs-2xl);
  color: var(--c-text);
  letter-spacing: 0.06em;
  text-decoration: none;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.2;
  transition: color var(--dur) var(--ease);
}

.cta-contact-opt__tel:hover {
  color: var(--c-link-hover);
}

.cta-contact-opt__hours {
  font-size: 1rem;
  color: var(--c-text-mute);
  margin-top: var(--sp-sm);
}


/* ── カード ───────────────────────────────────────────────── */
.card {
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.3em 1.8em var(--c-shadow-soft), 0 0.08em 0.4em var(--c-shadow);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-0.2em);
  box-shadow: 0 0.6em 2.5em var(--c-shadow), 0 0.15em 0.6em var(--c-shadow);
}

.card--static,
.card--static:hover {
  transform: none;
  box-shadow: 0 0.3em 1.8em var(--c-shadow-soft), 0 0.08em 0.4em var(--c-shadow);
  transition: none;
  cursor: default;
}

.card-body {
  padding: var(--sp-lg);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: var(--sp-sm);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  color: var(--c-green);
  background-color: var(--c-green-pale);
  padding: 0.2em 0.7em;
  border-radius: 100vmax;
  margin-bottom: var(--sp-sm);
}

.card-tags .card-tag {
  margin-bottom: 0;
}

/* ボランティアカード: stretched-link 無効化 */
.volunteer-card.card--link {
  cursor: default;
}
.volunteer-card .card-more::after {
  content: none;
}

/* ボランティアカード: タイトルリンク */
.volunteer-card .card-title a {
  color: inherit;
  text-decoration: none;
}
.volunteer-card .card-title a:hover {
  color: var(--c-green);
}

/* カテゴリボタン */
.card-tag[data-cat] {
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  z-index: 2;
}
.card-tag[data-cat]:hover {
  filter: brightness(0.92);
  text-decoration: underline;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: var(--sp-sm);
  transition: color 0.2s;
}

.volunteer-card .card-title {
  padding-bottom: var(--sp-sm);
  border-bottom: 0.06em solid var(--c-border-light);
  margin-bottom: var(--sp-sm);
}

/* ── ボランティア一覧：リスト表示モード ─────────────────────── */
.grid-auto.view-list {
  display: flex;
  flex-direction: column;
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  gap: 0;
}

.grid-auto.view-list .volunteer-card {
  border-radius: 0;
  border-bottom: 0.06em solid var(--c-border-light);
  position: relative;
}

.grid-auto.view-list .volunteer-card:last-child {
  border-bottom: none;
}

.grid-auto.view-list .volunteer-card:hover {
  background: #f7faf7;
}

.grid-auto.view-list .card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "title link"
    "text  link"
    "tag   link";
  column-gap: 1.5rem;
  row-gap: 0;
  padding: 1.25rem 1.75rem;
  align-items: center;
}

.grid-auto.view-list .volunteer-card .card-title {
  grid-area: title;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.35em;
  font-size: 1.1rem;
  font-weight: 700;
}

.grid-auto.view-list .card-text {
  grid-area: text;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5em;
}

.grid-auto.view-list .card-tags,
.grid-auto.view-list .card-tag {
  grid-area: tag;
  margin: 0;
  justify-self: start;
}

.grid-auto.view-list .card-more {
  grid-area: link;
  margin-top: 0;
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 60em) {
  .grid-auto.view-list .card-body {
    padding: 1rem 1.25rem;
    column-gap: 1rem;
  }
}

@media (max-width: 37.5em) {
  .grid-auto.view-list .card-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "text"
      "tag"
      "link";
  }
  .grid-auto.view-list .card-more {
    justify-self: start;
    margin-top: 0.25rem;
  }
}

/* ── 活動紹介カードアイコン（activity.php） ────────────────
.act-icon {
  color: var(--c-green);
  margin-bottom: 0.8rem;
} */

/* .act-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
} */

/* ── ベネフィット・悩みセクション（index.php） ──────────── */
.worry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .worry-grid {
    grid-template-columns: 1fr;
  }
}

.worry-card {
  background: var(--c-paper);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.worry-card__q {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-terra);
  line-height: 1;
}

.worry-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.8;
  flex: 1;
}

.worry-card__text strong {
  color: var(--c-text);
}

.worry-card__answer {
  font-size: var(--fs-xs);
  color: var(--c-green);
  font-weight: 500;
  padding-top: 0.5rem;
  border-top: 1px solid var(--c-border-light);
}

.strength-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.strength-card {
  background: var(--c-paper);
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-xl) var(--sp-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6em;
  row-gap: 0.7rem;
  align-items: start;
  box-shadow: 0 0.3em 1.8em var(--c-shadow-soft);
}

.strength-card__num {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-paper);
  background-color: var(--c-green-light);
  line-height: 1;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.strength-card__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: 0;
}

.strength-card__divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 0.1em solid var(--c-border);
  margin: 0;
}

.strength-card__text {
  grid-column: 1 / -1;
  font-size: var(--fs-base);
  color: var(--c-text);
  line-height: 1.9;
  margin-bottom: 0;
}

/* ブログ記事スタイル（activity.php） */
.blog-post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em;
}

.blog-post__title {
  color: var(--c-text);
}

.blog-post__title:hover {
  color: var(--c-green);
}

.card-text {
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 2.1;
  margin-bottom: 0;
}

/* ── クリッカブルカード（stretched-link） ─────────────────── */
.card--link {
  position: relative;
  cursor: pointer;
}

.card--link .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card--link .card-text {
  flex: 1;
}

.card-more {
  display: inline-block;
  margin-top: var(--sp-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-green);
  text-decoration: none;
}

/* stretched-link: カード全体をクリック領域に */
.card-more::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--link:hover .card-title {
  color: var(--c-green);
}

.card--link:hover .card-more {
  text-decoration: underline;
}

/* ── グリッドレイアウト ───────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18em, 100%), 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

@media (max-width: 768px) {
  .grid-auto {
    grid-template-columns: 1fr;
  }
}

/* ── 活動紹介カード ───────────────────────────────────────── */
.activity-card {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-xl);
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.3em 1.8em var(--c-shadow-soft);
}

.activity-card__icon {
  flex-shrink: 0;
  width: 3.5em;
  height: 3.5em;
  background-color: var(--c-green-pale);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.6em;
}

.activity-card__body {
  flex: 1;
}

.activity-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-sm);
}

.activity-card__text {
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 0;
}

/* ── 統計・数字 ───────────────────────────────────────────── */
/* .stat-group {
  display: flex;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.stat-num {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-green);
  line-height: 1;
}

.stat-num span {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--c-text-sub);
} */

/* .stat-label {
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
  letter-spacing: 0.08em;
} */

/* ── お知らせ / 活動報告 ─────────────────────────────────── */
.news-list {
  list-style: none;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: var(--sp-lg);
  align-items: center;
  padding-block: var(--sp-md);
  border-bottom: 0.06em solid var(--c-border-light);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32em 1.5em;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--c-text-mute);
  background-color: var(--c-base-deep);
  clip-path: polygon(
    0.45em 0%,
    calc(100% - 0.45em) 0%,
    100% 50%,
    calc(100% - 0.45em) 100%,
    0.45em 100%,
    0% 50%
  );
  white-space: nowrap;
  z-index: 0;
}

/* バッジ外枠（グラデーション） */
.news-date::before {
  content: '';
  position: absolute;
  inset: -0.12em;
  background: linear-gradient(
    135deg,
    rgba(180, 165, 130, 0.8),
    rgba(160, 145, 110, 0.5),
    rgba(180, 165, 130, 0.8)
  );
  clip-path: polygon(
    0.45em 0%,
    calc(100% - 0.45em) 0%,
    100% 50%,
    calc(100% - 0.45em) 100%,
    0.45em 100%,
    0% 50%
  );
  z-index: -1;
  pointer-events: none;
}

/* バッジ内部の塗り */
.news-date::after {
  content: '';
  position: absolute;
  inset: 0.07em;
  background-color: var(--c-base);
  clip-path: polygon(
    0.38em 0%,
    calc(100% - 0.38em) 0%,
    100% 50%,
    calc(100% - 0.38em) 100%,
    0.38em 100%,
    0% 50%
  );
  z-index: -1;
  pointer-events: none;
}

.news-title {
  font-size: 1rem;
  color: var(--c-text);
}

.news-title a {
  color: inherit;
}

.news-title a:hover {
  color: var(--c-terra);
}

a.news-title--link {
  text-decoration: none;
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

a.news-title--link::before {
  content: '≫ ';
  font-size: 0.8em;
  color: var(--c-green);
  margin-right: 0.25em;
}

a.news-title--link:hover {
  color: var(--c-terra);
  text-decoration: underline;
}

a.news-title--link:hover::before {
  color: var(--c-terra);
}

.news-org {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
  margin-top: 0.2em;
  padding-left: 1.3em;
}

/* ── お知らせヘッダー ─────────────────────────────────────── */
.letter-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--sp-md);
}

/* ── 手紙風カード ─────────────────────────────────────────── */
.letter-card {
  position: relative;
  background-color: var(--c-paper);
  border-radius: var(--radius-sm);
  border: 0.06em solid var(--c-border);
  box-shadow:
    0 0.25em 1.0em rgba(170, 148, 110, 0.32),
    0 0.5em 2.2em rgba(150, 125, 90, 0.18);
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-xl);
}

/* ── ヒーロー下の手書き風装飾 ────────────────────────────── */
.handwritten {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--c-text-mute);
  font-size: var(--fs-sm);
}

/* ── ページヘッダー ───────────────────────────────────────── */
.page-header {
  padding-block: var(--sp-xl) var(--sp-md);
  border-bottom: 0.06em solid var(--c-border-light);
  margin-bottom: var(--sp-lg);
}

/* リード文フォントサイズをコンテナ幅で自動スケールするためのコンテナ */
.page-header .container {
  container-type: inline-size;
}

.page-header__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--c-text-mute);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  margin-bottom: var(--sp-sm);
}

.page-header__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-sm);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.page-header__lead {
  font-size: var(--fs-md);
  color: var(--c-text-sub);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* ── パンくずリスト ──────────────────────────────────────── */
.breadcrumb {
  background: var(--c-base-deep);
  border-bottom: 0.06em solid var(--c-border-light);
  padding-block: 0.55rem;
  margin-bottom: var(--sp-2xl);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-inline: 0.5em;
  color: var(--c-text-mute);
}

.breadcrumb__item a {
  color: var(--c-link);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--c-link-hover);
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: var(--c-text-sub);
  font-weight: 600;
}

/* ── ボランティア検索 ─────────────────────────────────────── */
.search-label {
  font-size: 1rem;
  color: var(--clr-muted);
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  padding: var(--sp-xl);
  background-color: var(--c-paper);
  border-radius: var(--radius-lg);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.2em 1.2em var(--c-shadow-soft);
  margin-bottom: var(--sp-2xl);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.9em;
  color: var(--c-text-mute);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  width: 100%;
  min-width: min(14em, 100%);
  padding: 0.7em 1.2em 0.7em 2.6em;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-text);
  background-color: var(--c-base-light);
  border: 0.08em solid var(--c-border);
  border-radius: 0.5em;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.search-input:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 0.2em rgba(110, 132, 100, 0.18);
}

.search-input::placeholder {
  color: var(--c-text-mute);
}

.search-bar__row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-block-start: 0.4rem;
}

.search-select-wrap {
  position: relative;
  flex: 1;
  min-width: 10em;
}

.search-select {
  width: 100%;
  padding: 0.55em 2.2em 0.55em 1em;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-text);
  background-color: var(--c-base-light);
  border: 0.09em solid var(--c-border);
  border-radius: var(--radius-lg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
}

.search-select:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 0.2em rgba(110, 132, 100, 0.18);
  outline: none;
}

/* フィルタボタン */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.filter-btn {
  padding: 0.45em 1.1em;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
  background-color: var(--c-paper);
  border: 0.08em solid var(--c-border);
  border-radius: 100vmax;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background-color: var(--c-green);
  color: var(--c-paper);
  border-color: var(--c-green);
}

/* ── ボランティアカード ───────────────────────────────────── */
.volunteer-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.volunteer-card__cat {
  font-size: 1rem;
  color: var(--c-green);
  background-color: var(--c-green-pale);
  padding: 0.2em 0.7em;
  border-radius: 100vmax;
}

.volunteer-card__name {
  font-size: var(--fs-md);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  margin-bottom: var(--sp-sm);
  line-height: 1.5;
}

.volunteer-card__quote {
  font-size: var(--fs-sm);
  color: var(--c-terra);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-style: italic;
  line-height: 2.1;
  padding: var(--sp-sm) var(--sp-md);
  border-left: 0.2em solid var(--c-terra-light);
  background-color: rgba(196, 121, 90, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--sp-md);
}

.volunteer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
}

.volunteer-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.volunteer-card__footer {
  margin-top: auto;
  padding-top: var(--sp-md);
  border-top: 0.06em solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.volunteer-card__rep {
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
}

.volunteer-card__rep strong {
  color: var(--c-text-sub);
  font-weight: 400;
}

/* ── お問い合わせ ─────────────────────────────────────────── */
@media (max-width: 60em) {
  .contact-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem !important;
  }
}

.contact-form {
  display: grid;
  gap: var(--sp-lg);
}

.form-group {
  display: grid;
  gap: var(--sp-sm);
}

.form-label {
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 400;
}

.form-label .required {
  font-size: 1rem;
  color: var(--c-terra);
  margin-left: 0.4em;
}

.form-label .required-or {
  font-size: 1rem;
  color: var(--c-text-mute);
  margin-left: 0.4em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8em 1.1em;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-text);
  background-color: var(--c-base-light);
  border: 0.08em solid var(--c-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-green);
  background-color: var(--c-paper);
  box-shadow: 0 0 0 0.2em rgba(110, 132, 100, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 9em;
  line-height: 1.9;
}

.form-error {
  font-size: 1rem;
  color: var(--c-terra);
  display: none;
}

.form-group.is-error .form-input,
.form-group.is-error .form-textarea {
  border-color: var(--c-terra);
}

.form-group.is-error .form-error {
  display: block;
}

/* ── 確認カード・リスト ───────────────────────────────────── */
.confirm-card {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 60em) {
  .confirm-actions {
    flex-direction: column;
  }

  .confirm-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.confirm-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 0.06em solid var(--c-border-light);
}

.confirm-list__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0;
  border-bottom: 0.06em solid var(--c-border-light);
}

.confirm-list__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-sub);
  padding: 0.9em 0.5em 0.9em 0;
  margin: 0;
}

.confirm-list__value {
  font-size: var(--fs-sm);
  color: var(--c-text);
  padding: 0.9em 0;
  margin: 0;
  word-break: break-all;
}

@media (max-width: 37.5em) {
  .confirm-list__row {
    grid-template-columns: 1fr;
  }
  .confirm-list__label {
    padding-bottom: 0;
    border-bottom: none;
  }
  .confirm-list__value {
    padding-top: 0.25em;
  }
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: var(--sp-md);
}

.faq-item {
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.2em 1.2em var(--c-shadow-soft);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-text);
  list-style: none;
  transition: background-color var(--dur) var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
  background-color: #edf6f0;
}

.faq-question::before {
  content: 'Q';
  flex-shrink: 0;
  width: 1.8em;
  height: 1.8em;
  background-color: var(--c-green);
  color: var(--c-paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1rem;
}

.faq-answer {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 1.95;
  border-top: 0.06em solid var(--c-border-light);
}

.faq-answer::before {
  content: 'A';
  flex-shrink: 0;
  width: 1.8em;
  height: 1.8em;
  background-color: var(--c-terra-pale);
  color: var(--c-terra);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-sm);
}

/* ── 理念 / 引用スタイル ─────────────────────────────────── */
.philosophy {
  max-width: 38em;
  margin-inline: auto;
  text-align: center;
}

.philosophy__quote {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.9;
  color: var(--c-text);
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-lg);
}

.philosophy__quote em {
  font-style: normal;
  color: #3d5230;
  display: inline-block;
  position: relative;
}

.philosophy__sub {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: 0.08em;
}

/* ── メンバー / 役員 ─────────────────────────────────────── */
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-xl);
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.2em 1.2em var(--c-shadow-soft);
}

.member-avatar {
  width: 5em;
  height: 5em;
  border-radius: 50%;
  background-color: var(--c-green-pale);
  display: grid;
  place-items: center;
  font-size: 2em;
  margin-bottom: var(--sp-md);
  border: 0.15em solid var(--c-border-light);
}

.member-role {
  font-size: var(--fs-xs);
  color: var(--c-green);
  margin-bottom: var(--sp-xs);
}

.member-name {
  font-size: var(--fs-md);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  margin-bottom: var(--sp-sm);
}

.member-message {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.9;
}

/* ── 沿革テーブル ─────────────────────────────────────────── */
.history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background-color: #f5f5f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0.15em 1em var(--c-shadow-soft);
}

.history-table__th {
  padding: 0.75em 1.25em;
  text-align: left;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-text);
  background-color: #e8e8e8;
  border-bottom: 0.12em solid var(--c-green-light);
  white-space: nowrap;
}

.history-table__th--year {
  width: 14em;
}

.history-table__row:hover .history-table__td {
  background-color: rgba(157, 192, 157, 0.10);
  transition: background-color var(--dur) var(--ease);
}

.history-table__td {
  padding: 0.85em 1.25em;
  color: var(--c-text-sub);
  line-height: 1.85;
  border-bottom: 0.06em solid var(--c-border-light);
  vertical-align: middle;
}

.history-table__td--year {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@media (max-width: 60em) {
  .history-table thead {
    display: none;
  }
  .history-table,
  .history-table tbody,
  .history-table__row {
    display: block;
    width: 100%;
  }
  .history-table__row {
    border-bottom: 0.1em solid var(--c-border-light);
    padding: 0.6em 0;
  }
  .history-table__row:last-child {
    border-bottom: none;
  }
  .history-table__td {
    display: block;
    border-bottom: none;
    padding: 0.2em 1.25em;
  }
  .history-table__td--year {
    padding-bottom: 0;
    font-size: 1rem;
    color: var(--c-green-dark);
  }
}

/* ── 団体概要レイアウト（about.php） ──────────────────────── */
.org-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.org-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0.1em 0.8em var(--c-shadow-soft);
}

.org-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 基本情報パネル */
.org-main {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0.1em 0.8em var(--c-shadow-soft);
}

.org-row {
  display: grid;
  grid-template-columns: 2.6em 8em 1fr;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.25em;
  border-bottom: 0.06em solid var(--c-border-light);
}
.org-row:last-child {
  border-bottom: none;
}

.org-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-green-pale);
  border-radius: 50%;
  color: var(--c-green);
  flex-shrink: 0;
}

.org-row__label {
  font-size: 1rem;
  color: var(--c-text-mute);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.org-row__value {
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.7;
}

/* 連絡先カード */
.org-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.org-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4em 1.25em;
  box-shadow: 0 0.1em 0.8em var(--c-shadow-soft);
  display: grid;
  grid-template-columns: 2.6em 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75em;
  row-gap: 0.2em;
}

.org-card__icon {
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--c-green-pale);
  border-radius: 50%;
  color: var(--c-green);
}

.org-card__label {
  font-size: 1rem;
  color: var(--c-text-mute);
  font-weight: 600;
  letter-spacing: 0.05em;
  align-self: end;
}

.org-card__value {
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.7;
  margin: 0;
}

.org-card__note {
  grid-column: 2;
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 1.6;
  margin: 0.25rem 0 0;
}

/* ── 活動報告 ─────────────────────────────────────────────── */
.report-card {
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.2em 1.2em var(--c-shadow-soft);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.report-card:hover {
  transform: translateY(-0.2em);
  box-shadow: 0 0.5em 2em var(--c-shadow);
}

.report-card__image {
  aspect-ratio: 16/9;
  background-color: var(--c-green-pale);
  overflow: hidden;
}

.report-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-card__body {
  padding: var(--sp-lg);
}

.report-card__date {
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  margin-bottom: var(--sp-xs);
}

.report-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-sm);
  line-height: 1.55;
}

.report-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.85;
  margin-bottom: 0;
}

/* report-card リンク化 */
a.report-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.report-card__cat {
  margin-bottom: var(--sp-xs);
}

/* ── ブログリスト（活動報告） ──────────────────────────── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.blog-entry {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  position: relative;
  box-shadow: 0 0.1em 0.6em rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-entry:hover {
  box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.1);
}

.blog-entry__thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: var(--c-green-pale);
  transition: opacity 0.2s;
}

.blog-entry__thumb:hover {
  opacity: 0.85;
}

.blog-entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-entry__thumbs {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.blog-entry__thumb--sm {
  display: block;
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--c-green-pale);
  transition: opacity 0.2s;
  aspect-ratio: 1 / 1;
}

.blog-entry__thumb--sm:hover {
  opacity: 0.85;
}

.blog-entry__thumb--sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-entry__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
  letter-spacing: 0.05em;
}

.blog-entry__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.blog-entry__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.blog-entry__date {
  font-size: 1rem;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
}

.blog-entry__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

.blog-entry__title a,
.blog-entry__title a:visited {
  color: var(--c-green);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-entry__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-entry__title a:hover,
.blog-entry:hover .blog-entry__title a {
  color: var(--c-green);
}

/* ライトボックスなど独立インタラクティブ要素はオーバーレイの上に */
.blog-entry .lb-trigger {
  position: relative;
  z-index: 1;
}

.blog-entry__excerpt {
  font-size: 1rem;
  color: var(--c-text);
  line-height: 2.1;
  margin: 0;
}

.blog-entry__more {
  font-size: 1rem;
  color: var(--c-green);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  align-self: flex-start;
  transition: color 0.2s;
}

.blog-entry__more:hover {
  color: var(--c-terra);
}

@media (max-width: 960px) {
  .blog-entry {
    padding: var(--sp-lg);
    gap: var(--sp-sm);
  }
}

@media (max-width: 37.5em) {
  .search-bar {
    margin-inline: 0;
    padding-inline: var(--sp-md);
  }

  /* iOS Safari の自動ズーム防止（font-size 16px 未満で発生） */
  .search-input,
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 1rem;
  }

  .blog-entry {
    padding: var(--sp-md);
    gap: var(--sp-xs);
  }
}

/* ── 768px以下：activity/reportの記事一覧はカード枠を廃止し、薄い背景色で区切るリストに ── */
@media (max-width: 768px) {
  #activity-other-section .blog-list,
  #activity-main-section .blog-list,
  #report-blog-list {
    gap: var(--sp-lg);
    width: 100vw;
    width: 100dvw;
    margin-left: calc(50% - 50vw);
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50vw);
    margin-right: calc(50% - 50dvw);
    padding-top: var(--sp-lg);
    background: var(--c-bg-sub, #f8f9fa);
  }

  #activity-other-section .blog-entry,
  #activity-main-section .blog-entry,
  #report-blog-list .blog-entry {
    padding: var(--sp-lg) var(--sp-md);
    gap: var(--sp-md);
    border: none;
    border-radius: 0;
    background: var(--c-paper);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  }
}

/* ── セクション装飾リーフ ────────────────────────────────── */
.nav-cards-wrap {
  position: relative;
  margin: 0 3rem;
  z-index: 1;
}

.deco-leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.deco-leaf--tl {
  top: -3rem;
  left: -5rem;
  width: 6rem;
  opacity: 0.9;
}

.deco-leaf--br {
  bottom: -3rem;
  right: -4rem;
  width: 8rem;
  opacity: 0.9;
}

.deco-leaf--tr {
  top: -3rem;
  right: -5rem;
  width: 7rem;
  opacity: 0.95;
}

/* ── ナビゲーションカード（ヒーロー直下） ────────────────── */


.nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  padding-top: 1.4em; /* ラベルのはみ出し分を確保 */
}

.nav-card {
  position: relative;
  background-color: var(--c-paper);
  border-radius: var(--radius-md);
  border: 0.06em solid var(--c-border-light);
  box-shadow: 0 0.3em 1.8em var(--c-shadow-soft), 0 0.08em 0.4em var(--c-shadow);
  padding: var(--sp-lg) var(--sp-sm) var(--sp-xs);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  color: var(--c-text);
}

.nav-card:hover {
  transform: translateY(-0.3em);
  box-shadow: 0 0.6em 2.5em var(--c-shadow), 0 0.15em 0.6em var(--c-shadow);
  color: var(--c-text);
}

.nav-card__label {
  position: absolute;
  top: -1.1em;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.4em 1.4em;
  border-radius: 100vmax;
  font-size: 1rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--c-paper);
  letter-spacing: 0.06em;
  font-weight: 500;
  box-shadow: 0 0.2em 0.8em rgba(0, 0, 0, 0.15);
}


.nav-card__icon {
  width: 4.5em;
  height: 4.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-sub);
  margin-block: var(--sp-sm);
}

.nav-card__icon svg {
  width: 100%;
  height: 100%;
}

.nav-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 0;
  text-align: center;
}

.nav-card__arrow {
  display: block;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 0.25em;
  padding: 0 0.5em;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.nav-card__arrow svg {
  display: block;
  width: 1.8rem;
  height: 1.25rem;
}

.nav-card:hover .nav-card__arrow {
  transform: translateX(0.3em);
}

/* カラーバリエーション */
.nav-card--green .nav-card__label { background-color: var(--c-green); }
.nav-card--green .nav-card__icon  { color: var(--c-green); }
.nav-card--green .nav-card__arrow { color: var(--c-green); }

.nav-card--terra .nav-card__label { background-color: var(--c-terra); }
.nav-card--terra .nav-card__icon  { color: var(--c-terra); }
.nav-card--terra .nav-card__arrow { color: var(--c-terra); }

.nav-card--teal  .nav-card__label { background-color: var(--c-teal); }
.nav-card--teal  .nav-card__icon  { color: var(--c-teal); }
.nav-card--teal  .nav-card__arrow { color: var(--c-teal); }

.nav-card--amber .nav-card__label { background-color: var(--c-amber); }
.nav-card--amber .nav-card__icon  { color: var(--c-amber); }
.nav-card--amber .nav-card__arrow { color: var(--c-amber); }

/* ── フッター装飾画像 ───────────────────────────────────────── */
.footer-deco {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  line-height: 0;
  position: relative;
  z-index: 1;
}
.footer-deco__img {
  max-width: 20rem;
  width: 30%;
  height: auto;
  margin-right: 4vw;
}
@media (max-width: 60em) {
  .footer-deco__img {
    width: 40vw;
    max-width: none;
  }
}
@media (max-width: 37.5em) {
  .footer-deco__img {
    width: 50vw;
  }
}

/* ── フッター ─────────────────────────────────────────────── */


.site-footer {
  margin-top: var(--sp-3xl);
  background-color: #3a332b;
  color: #d4ccc0;
}

.footer-inner {
  padding-block: var(--sp-2xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-2xl);
}

.footer-brand__header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  margin-bottom: var(--sp-sm);
}

.footer-brand__logo {
  height: 2.8rem;
  width: auto;
  display: block;
  flex-shrink: 1;
  object-fit: contain;
}

.footer-brand__name {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8dfd0;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.footer-brand__name-sub {
  display: block;
}

.footer-brand__header:hover .footer-brand__name {
  color: #fff;
}

.footer-brand__desc {
  font-size: 1rem;
  color: #aca49a;
  line-height: 2.0;
  margin-bottom: var(--sp-md);
}

.footer-brand__addr-wrap {
  margin-top: var(--sp-md);
}

.footer-brand__addr-pin {
  color: #6b6059;
  display: block;
  margin-bottom: var(--sp-xs);
}

.footer-brand__addr {
  font-size: 1rem;
  color: #aca49a;
  line-height: 2.0;
  margin-bottom: var(--sp-sm);
}

.footer-brand__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1rem;
  color: #c0b0a0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-brand__map-link:hover {
  color: #e8ddd4;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1rem;
  color: var(--c-terra);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-map-link:hover {
  color: var(--c-terra-light);
}

.footer-contact__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d4ccc0;
  padding-bottom: var(--sp-sm);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.footer-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
  padding-block: var(--sp-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-contact__icon {
  flex-shrink: 0;
  margin-top: 0.18em;
  color: #8a7f74;
}

.footer-contact__row-text {
  font-size: 1rem;
  color: #c0b8b0;
  line-height: 1.6;
}

.footer-contact__note {
  font-size: 1rem;
  color: #c0b8b0;
  line-height: 1.6;
  margin: 0.5rem 0 0;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  transition: color var(--dur) var(--ease);
}
.footer-contact__note::before {
  content: '';
  display: block;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background-color: #6b6059;
  flex-shrink: 0;
  margin-top: 0.6em;
  transition: background-color var(--dur) var(--ease);
}
.footer-contact__note:hover {
  color: #e0d8d0;
}
.footer-contact__note:hover::before {
  background-color: #c8a87a;
}

.footer-contact__row-body {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.footer-contact__sublabel {
  font-size: 1rem;
  font-weight: 700;
  color: #aca49a;
  letter-spacing: 0.06em;
}

.footer-contact__subval {
  font-size: 1rem;
  color: #c0b8b0;
  line-height: 1.9;
}

.footer-contact__link {
  font-size: 1rem;
  color: #b0a898;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-contact__link:hover {
  color: #e8dfd0;
}

.footer-contact__fax {
  font-size: 1rem;
  color: #8a827a;
  padding-top: var(--sp-sm);
  padding-left: calc(1rem + 0.55em);
}

.footer-nav__title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #aca49a;
  margin-bottom: var(--sp-md);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-sm);
  display: grid;
  gap: var(--sp-sm);
}

.footer-nav__list a {
  font-size: 1rem;
  color: #c0b8b0;
  transition: color var(--dur) var(--ease);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.footer-nav__list a::before {
  content: '';
  display: block;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background-color: #6b6059;
  flex-shrink: 0;
  transition: background-color var(--dur) var(--ease);
}

.footer-nav__list a:hover::before,
.footer-nav__list a[aria-current]::before {
  background-color: #c8a87a;
}

.footer-nav__list a:hover {
  color: #e0d8d0;
}

.footer-nav__list a[aria-current="page"] {
  color: #e0d8d0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-bottom {
  border-top: 0.06em solid rgba(255, 255, 255, 0.14);
  padding-block: var(--sp-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: 1rem;
  color: #968e84;
  margin-bottom: 0;
}

/* ── ユーティリティ ───────────────────────────────────────── */
/* .text-center { text-align: center; } */
/* .text-right  { text-align: right; }
.mt-auto     { margin-top: auto; } */
/* .mb-0        { margin-bottom: 0; } */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1rem;
  color: var(--c-link);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(0.3em);
}

/* 表示件数バー */
.per-page-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
}

@media (max-width: 37.5em) {
  .per-page-label {
    width: 100%;
  }
}

.per-page-label {
  font-size: 1rem;
  color: var(--c-text-mute);
  margin-right: 0.25rem;
}

.per-page-btn {
  font-size: 1rem;
  padding: 0.2em 0.75em;
  border: 1px solid var(--c-border);
  border-radius: 2em;
  background: transparent;
  color: var(--c-text-sub);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.per-page-btn:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

.per-page-btn.is-active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* 非表示カウント */
.volunteer-count {
  font-size: var(--fs-sm);
  color: var(--c-text-mute);
  margin-bottom: var(--sp-md);
}

/* ── ページネーション ─────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-top: var(--sp-xl);
}

.page-btn {
  min-width: 3em;
  padding: 0.6em 1.1em;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-text-sub);
  background-color: var(--c-paper);
  border: 0.08em solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.page-btn:hover:not(:disabled) {
  background-color: var(--c-green);
  color: var(--c-paper);
  border-color: var(--c-green);
}

.page-btn.is-active {
  background-color: var(--c-green);
  color: var(--c-paper);
  border-color: var(--c-green);
  font-weight: 600;
  pointer-events: none;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 前へ・次へ ページネーション */
.pagination__btn {
  display: inline-block;
  padding: 0.5em 1.4em;
  font-size: 1rem;
  color: var(--c-green);
  background-color: var(--c-paper);
  border: 0.08em solid var(--c-green);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}

.pagination__btn:hover {
  background-color: var(--c-green);
  color: var(--c-paper);
}

.pagination__btn--disabled {
  color: var(--c-text-mute);
  border-color: var(--c-border);
  cursor: default;
  pointer-events: none;
}

.pagination__info {
  font-size: 1rem;
  color: var(--c-text-mute);
  align-self: center;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -10em;
  left: var(--sp-md);
  padding: 0.6em 1.2em;
  background: var(--c-green);
  color: var(--c-paper);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: var(--sp-md);
}

/* ── レスポンシブ (ワイド 1280px) ────────────────────────── */
@media (max-width: 1280px) {
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__frame {
    aspect-ratio: 16 / 9;
  }

  .hero__img {
    height: 100%;
    object-fit: cover;
  }
}

/* ── レスポンシブ (タブレット 960px) ──────────────────────── */
@media (max-width: 960px) {
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .wave-divider svg {
    height: calc(3.5rem + 1px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  /* タブレット: 4:3 に近づける */
  .hero__frame {
    aspect-ratio: 4 / 3;
  }

  .hero__img {
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 3fr 2fr;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-brand__logo {
    height: 3.5rem;
  }

  .footer-brand__name {
    font-size: 1.3rem;
  }

  .footer-inner > nav {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-contact {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 28rem;
    width: 100%;
    margin-inline: auto;
  }

  /* 団体概要: タブレットで1カラム */
  .org-layout {
    grid-template-columns: 1fr;
  }

  .org-photo {
    max-height: 21rem;
  }

  .org-row {
    grid-template-columns: 2.2em 6.5em 1fr;
  }

  /* お知らせリスト: 2行レイアウト（日付＋タグ / タイトル） */
  .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-xs) var(--sp-sm);
  }

  .news-title {
    flex-basis: 100%;
  }
}

/* ── レスポンシブ (スマホ 768px) ────────────────────────── */
@media (max-width: 768px) {
  .nav-cards {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* フッター: 768px以下で縦3行 */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-inner > nav,
  .footer-contact {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    margin-inline: 0;
  }

  /* 各ページへ: テキスト開始位置をお問い合わせのアイコン+gap分に揃える */
  /* 接触側: icon(1rem) + gap(0.55em) / ナビ側: dot(0.35em) + gap(0.5em) → 差分をpadding-leftで補う */
  .footer-nav__list {
    padding-left: calc(1rem - 0.3em);
  }

  /* フッター全テキストを1rem以上に */
  .footer-brand__desc,
  .footer-brand__addr,
  .footer-brand__map-link,
  .footer-contact__row-text,
  .footer-contact__note,
  .footer-contact__sublabel,
  .footer-contact__subval,
  .footer-contact__link,
  .footer-contact__fax,
  .footer-nav__list a,
  .footer-bottom p {
    font-size: 1rem;
  }

  /* フッターセクション見出し */
  .footer-brand__name {
    font-size: 1.4rem;
  }

  .footer-contact__title,
  .footer-nav__title {
    font-size: 1.1rem;
  }

  /* header-util（お問い合わせ・電話）を非表示 */
  .header-util {
    display: none;
  }

  /* ナビゲーションバー（緑帯）を折りたたむ（nav-listはfixed表示） */
  .header-nav {
    height: 0;
    background: none;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(18em, 80%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--sp-2xl);
    background-color: var(--c-green-dark);
    box-shadow: -0.5em 0 2em var(--c-shadow);
    transition: right var(--dur) var(--ease);
    overflow-y: auto;
    z-index: 150;
  }

  .nav-list.is-open {
    right: 0;
  }

  .nav-list li {
    flex: none;
  }

  .nav-list li:not(:last-child) {
    border-right: none;
  }

  /* モバイル（ハンバーガーメニュー）は従来どおり：ドロップダウンは表示しない */
  .nav-dropdown {
    display: none;
  }

  .nav-list a {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    gap: 0.75em;
    padding: var(--sp-xl) var(--sp-md);
    font-size: var(--fs-md);
    color: rgba(253, 250, 244, 0.85);
    border-bottom: 0.06em solid rgba(255, 255, 255, 0.08);
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
  }

  .nav-icon {
    width: 1.4em;
    height: 1.4em;
  }

  .nav-list a:hover .nav-icon,
  .nav-list a[aria-current="page"] .nav-icon {
    transform: none;
  }

  .nav-list a::after {
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: auto;
    height: auto;
    z-index: 200;
    color: var(--c-green);
  }

  .nav-toggle .nav-toggle__label {
    display: block;
    color: var(--c-green);
  }

  .nav-toggle.is-open {
    display: flex;
    color: var(--c-green-dark);
  }

  .nav-toggle.is-open .nav-toggle__icon-menu {
    display: none;
  }

  .nav-toggle.is-open .nav-toggle__icon-close {
    display: block;
  }

  .nav-toggle.is-open .nav-toggle__label {
    color: #fff;
  }

  /* ハンバーガーのみ表示アイテム */
  .nav-list .nav-item--mobile-only {
    display: flex;
  }

  /* パネル内クローズボタン行 */
  .nav-list .nav-panel-header {
    display: none;
  }

  .nav-close-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4em;
    height: 4em;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }

  .nav-close-btn__label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-top: 0.2em;
  }

  .nav-close-btn:hover {
    background-color: rgba(0, 80, 50, 0.1);
    color: var(--color-primary);
  }

  .nav-close-btn svg {
    width: 1.75em;
    height: 1.75em;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99;
  }

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

  /* セクション余白縮小 */
  .section {
    padding-block: var(--sp-2xl);
  }

  .section--tight {
    padding-block: var(--sp-xl);
  }

  /* 手紙カード余白縮小 */
  .letter-card {
    padding: var(--sp-lg) var(--sp-xl) var(--sp-md);
  }
}


/* ── レスポンシブ (モバイル 600px) ──────────────────────── */
@media (max-width: 600px) {
  /* CTAタイトル装飾線: 1.5倍 */
  .cta-final__title::before,
  .cta-final__title::after {
    width: 0.2em;
    height: 1.8em;
  }

  /* 団体概要: モバイルでラベルを2段表示 */
  .org-row {
    grid-template-columns: 2.2em 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.15em;
  }
  .org-row__icon {
    grid-row: 1 / 3;
  }
  .org-row__label {
    align-self: end;
  }
  .org-row__value {
    align-self: start;
  }

  .wave-divider svg {
    height: calc(2rem + 1px);
  }

  .section--strength .section-title {
    padding-inline: 0.5rem;
  }

.container,
  .container-narrow {
    width: min(var(--container), 100% - var(--sp-md) * 2);
  }

  .header-util {
    gap: var(--sp-sm);
  }

  .header-util__item span {
    display: none;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
    grid-row: auto;
    padding-left: var(--sp-md);
  }

  .footer-inner > nav {
    grid-column: auto;
    grid-row: auto;
    padding-left: var(--sp-md);
  }

  .footer-contact {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    margin-inline: 0;
    padding-left: var(--sp-md);
  }

  /* .stat-group {
    gap: var(--sp-lg);
  } */

  .hero-overlay {
    padding: var(--sp-md);
  }

  .hero-overlay__box {
    padding-inline: 1em;
  }

  .hero-catch {
    font-size: var(--fs-xl);
  }

  /* ── セクション装飾リーフ ────────────────────────────────── */
.nav-cards-wrap {
  margin: 0;
}

.deco-leaf {
  display: none;
}

.deco-leaf--tl {
  display: none;
}

.deco-leaf--br {
  display: none;
}

  .nav-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
  }

  /* ナビカード: ラベル被せ＋アイコン左・テキスト右グリッド */
  .nav-card {
    display: grid;
    grid-template-columns: 3em 1fr;
    column-gap: var(--sp-md);
    row-gap: 0.4em;
    align-items: center;
    text-align: left;
    padding: 2.8rem var(--sp-md) 1.3rem;
  }

  .nav-card__label {
    position: absolute;
    top: -1.1em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    padding: 0.4em 1.4em;
  }

  .nav-card__icon {
    grid-column: 1;
    grid-row: 1;
    width: 3em;
    height: 3em;
    margin-block: 0;
    align-self: center;
    justify-self: center;
  }

  .nav-card__text {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .nav-card__arrow {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }


  /* ヒーローリード: 小画面では折り返しを許可して右切れを防ぐ */
  .hero-overlay__lead {
    white-space: normal;
  }

  /* モバイル: 正方形（両端トリミング） */
  .hero__frame {
    aspect-ratio: 1 / 1;
  }

  /* セクション余白を縮小 */
  .section {
    padding-block: var(--sp-xl);
  }

  .section--tight {
    padding-block: var(--sp-lg);
  }

  /* お知らせリスト: 日付→タイトル→団体名の縦積み */
  .news-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-xs);
  }

  /* 手紙カード（モバイル） */
  .letter-card {
    padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
    background-position: 0 4em;
  }

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

  .activity-card {
    flex-direction: column;
  }

  /* ページヘッダー: 余白縮小 */
  .page-header {
    padding-block: var(--sp-xl) var(--sp-lg);
    margin-bottom: var(--sp-xl);
  }

}

/* ハンバーガー: 768px以下で右上固定 */
@media (max-width: 48em) {
  /* ロゴとハンバーガーの重なり防止 */
  .header-top-inner {
    padding-right: 4.5rem;
  }

  .nav-toggle {
    position: fixed;
    top: var(--sp-sm);
    right: var(--sp-sm);
    z-index: 201;
    background-color: rgba(253, 250, 244, 0.95);
    border-radius: var(--radius-sm);
    box-shadow: 0 0.1em 0.6em rgba(0, 0, 0, 0.15);
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7em 0.8em;
  }

  .nav-toggle .nav-toggle__label {
    color: var(--c-green);
  }

  .nav-toggle.is-open .nav-toggle__label {
    color: var(--c-green-dark);
  }

  /* ナビパネル: アイテムをコンパクトにしてスマホ画面に収める */
  .nav-list {
    padding-bottom: var(--sp-xl);
    overscroll-behavior: contain;
  }

  .nav-list a {
    padding-block: var(--sp-md);
    font-size: var(--fs-base);
  }
}

/* スマホ縦向き（600px以下）: パネル下余白のみ詰める */
@media (max-width: 37.5em) {
  .nav-list {
    padding-bottom: var(--sp-lg);
  }
}


.volunteer-card__no {
  font-size: var(--fs-xs);
  color: var(--c-text-mute);
}

.volunteer-card__more {
  font-size: var(--fs-xs);
  color: var(--c-green);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── 団体概要カード ───────────────────────────────────────── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13em, 100%), 1fr));
  gap: var(--sp-md);
}

.info-card {
  position: relative;
  background-color: var(--c-paper);
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 0.2em 1.2em var(--c-shadow-soft);
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.2em;
  background: linear-gradient(90deg, var(--c-green), var(--c-green-light));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.info-card:hover {
  transform: translateY(-0.15em);
  box-shadow: 0 0.5em 2em var(--c-shadow);
}

.info-card__icon {
  font-size: var(--fs-md);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.info-card__label {
  font-size: var(--fs-xs);
  color: var(--c-green);
  letter-spacing: 0.08em;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  margin-bottom: 0;
}

.info-card__value {
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 0;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 500;
}

/* ── 団体詳細ページ ───────────────────────────────────────── */
.detail-group-head {
  padding: var(--sp-lg) 0 var(--sp-md);
  border-bottom: 2px solid var(--c-green);
  margin-bottom: var(--sp-lg);
}

.detail-group-head__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-xs);
}

.detail-group-head__name {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #555;
  line-height: 1.3;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.45em 1em;
  border: 0.09em solid var(--c-green);
  border-radius: var(--radius-lg);
  color: var(--c-green);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--sp-md);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.detail-back-link:hover {
  background-color: var(--c-green-pale);
  color: var(--c-green);
}

.detail-pr {
  padding: var(--sp-lg) 0;
  margin-bottom: var(--sp-xl);
}

.detail-pr__text {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-md);
  color: var(--c-text);
  font-style: normal;
  line-height: 1.9;
  margin: 0;
}

.detail-table {
  display: grid;
  gap: 0;
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-xl);
}

.detail-row {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  border-bottom: 0.06em solid var(--c-border-light);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  background-color: var(--c-green-pale);
  color: var(--c-green-dark);
  font-size: 1rem;
  font-weight: 400;
  padding: var(--sp-md) var(--sp-lg);
  display: flex;
  align-items: flex-start;
}

.detail-value {
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.85;
  padding: var(--sp-md) var(--sp-lg);
  background-color: var(--c-paper);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ── コンパクトテーブル（イベントカード用） ──────── */
.detail-table--sm .detail-row {
  grid-template-columns: 5.5rem minmax(0, 1fr);
}

.detail-table--sm .detail-label {
  padding: 0.45rem 0.75rem;
}

.detail-table--sm .detail-value {
  padding: 0.45rem 0.75rem;
  line-height: 2.1;
}

/* ── PDF リンク ──────────────────────────────────── */
.detail-pdfs {
  margin-top: var(--sp-xl);
  padding: var(--sp-md) var(--sp-lg);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.detail-pdfs__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-sm);
}

.detail-pdfs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-pdfs__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--c-text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.detail-pdfs__link:hover {
  border-color: var(--c-terra);
  background: #fff8f5;
  color: var(--c-terra);
}

.detail-pdfs__badge {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #ef4444;
  color: #fff;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.detail-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--sp-lg);
}

@media (max-width: 600px) {
  .detail-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-label {
    padding-bottom: var(--sp-xs);
  }

  .detail-table--sm .detail-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-table--sm .detail-label {
    padding-bottom: 0.2rem;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions .btn {
    text-align: center;
  }
}

/* ── 活動報告 詳細ページ ──────────────────────────────────── */

/* 記事メタ（カテゴリ＋日付） */
.rd-header__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.rd-header__date {
  font-size: 1rem;
  color: var(--c-text-mute);
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  letter-spacing: 0.08em;
}

/* 記事タイトル */
.rd-header__title {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: var(--sp-xl);
}

/* グリーンアクセントライン */
.rd-header__rule {
  width: 3em;
  height: 0.18em;
  background: linear-gradient(to right, var(--c-green), var(--c-green-light));
  border-radius: 100vmax;
  margin-bottom: var(--sp-xl);
}

/* 抜粋テキスト */
.rd-excerpt {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: var(--fs-md);
  line-height: 2.1;
  color: var(--c-text-sub);
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-sm);
  border-bottom: 0.06em solid var(--c-border-light);
}

/* ギャラリー */
.rd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-bottom: var(--sp-xl);
}

.rd-gallery--single {
  display: block;
}

.rd-gallery--single .rd-gallery__item {
  aspect-ratio: unset;
  max-height: unset;
  width: fit-content;
  max-width: 100%;
  background-color: transparent;
  overflow: visible;
}

.rd-gallery--single .rd-gallery__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 20rem;
  object-fit: unset;
  border-radius: var(--radius-md);
}

.rd-gallery--few {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  align-items: start;
}

.rd-gallery--few .rd-gallery__item {
  aspect-ratio: unset;
  max-height: unset;
  background-color: transparent;
  overflow: visible;
}

.rd-gallery--few .rd-gallery__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 14rem;
  object-fit: unset;
  border-radius: var(--radius-md);
}

.rd-gallery--three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.rd-gallery--three .rd-gallery__item {
  aspect-ratio: unset;
  max-height: unset;
  background-color: transparent;
  overflow: visible;
}

.rd-gallery--three .rd-gallery__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 14rem;
  object-fit: unset;
  border-radius: var(--radius-md);
}

@media (min-width: 961px) {
  .rd-gallery--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rd-gallery--four {
  row-gap: 0;
}

.rd-gallery__item {
  aspect-ratio: 4/3;
  max-height: 12rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--c-green-pale);
}

.rd-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.rd-gallery__img:hover {
  transform: scale(1.05);
  opacity: 0.88;
}

/* アクション */
/* ── 活動紹介 詳細ボックス（activity_detail.php） ─────────── */
.act-detail-box {
  background: var(--c-green-pale);
  border-left: 0.25em solid var(--c-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-xl);
}

.act-detail-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: var(--sp-sm);
}

.act-detail-box__body {
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 2;
  margin-bottom: 0;
}

/* ── 表示切替トグル ───────────────────────────────────────── */
.act-view-toggle {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.act-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 1em;
  font-size: 1rem;
  font-family: inherit;
  border: 0.09em solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  color: var(--c-text-sub);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.act-view-btn:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

.act-view-btn.is-active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-paper);
}

/* ── 一覧表示 ─────────────────────────────────────────────── */
.act-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.act-list__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--c-paper);
  border-bottom: 0.06em solid var(--c-border-light);
  transition: background var(--dur) var(--ease);
  position: relative;
}

.act-list__item:last-child {
  border-bottom: none;
}

.act-list__item:hover {
  background: #f7faf7;
}

.act-list__content {
  flex: 1;
  min-width: 0;
}

.act-list__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.4em;
  flex-wrap: wrap;
}

.act-list__date {
  font-size: 1rem;
  color: var(--c-terra);
  font-weight: 600;
  margin: 0.4em 0 0;
}

.act-list__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: var(--c-text);
  line-height: 1.5;
}

.act-list__text {
  font-size: 1rem;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-list__link {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 60em) {
  .act-list__item {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
}

@media (max-width: 37.5em) {
  .act-list__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .act-list__link {
    margin-top: 0.25rem;
  }
}

.act-event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 0.25em;
  margin-top: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.act-event-date__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-terra);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.act-event-date__value {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-terra);
  letter-spacing: 0.02em;
}

.rd-footer-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--sp-lg);
  margin-top: var(--sp-lg);
  border-top: 0.06em solid var(--c-border-light);
}

@media (max-width: 600px) {
  .rd-header__title { font-size: var(--fs-xl); }
  .rd-gallery { grid-template-columns: repeat(2, 1fr); }
  .rd-gallery--single { grid-template-columns: 1fr; }
  .rd-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rd-footer-actions .btn {
    text-align: center;
  }
}

/* ── 記事詳細：サイドバーレイアウト ───────────────────────── */
.rd-outer {
  width: min(82rem, 100% - var(--sp-xl) * 2);
}

@media (max-width: 60em) {
  .rd-outer {
    width: min(82rem, 100% - var(--sp-lg) * 2);
  }
}

@media (max-width: 37.5em) {
  .rd-outer {
    width: min(82rem, 100% - var(--sp-sm) * 2);
  }
}

.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: var(--sp-2xl);
  align-items: start;
}

.rd-sidebar {
  position: sticky;
  top: var(--sp-xl);
  border: 0.06em solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  max-height: 80vh;
  overflow-y: auto;
}

.rd-sidebar__heading {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: var(--sp-sm);
  margin-bottom: var(--sp-sm);
  border-bottom: 0.18em solid var(--c-green);
}

.rd-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rd-sidebar__item a {
  display: block;
  padding: var(--sp-sm) var(--sp-sm);
  margin-inline: calc(-1 * var(--sp-sm));
  border-bottom: 0.06em solid var(--c-border-light);
  text-decoration: none;
  color: var(--c-text-sub);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  line-height: 1.5;
}

.rd-sidebar__item:last-child a {
  border-bottom: none;
}

.rd-sidebar__item a time {
  display: block;
  font-size: 1rem;
  color: var(--c-text-mute);
  margin-bottom: 0.15em;
}

.rd-sidebar__item a span {
  font-size: 1rem;
}

.rd-sidebar__item a:hover {
  color: var(--c-green);
}

.rd-sidebar__item.is-current a {
  color: var(--c-green);
  background: var(--c-green-pale);
  font-weight: 600;
}

/* 1280px以下はサイドバー非表示・1カラム */
@media (max-width: 80em) {
  .rd-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rd-sidebar {
    display: none;
  }
}

/* ── サイドバー：見出し一覧（スクロール連動）── activity.php / report.php 共通 ── */
@media (min-width: 80.0625em) {
  .act-toc-layout { grid-template-columns: minmax(0, 1fr) 23rem; }
}
.act-toc__list { list-style: none; padding: 0; margin: 0; }
.act-toc__item + .act-toc__item { margin-top: .1rem; }
.act-toc__link {
  display: block;
  padding: .55rem .75rem;
  margin-inline: calc(-1 * var(--sp-sm));
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--c-text-sub);
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.act-toc__link:hover { color: var(--c-green); background: var(--c-bg-sub, #f8f9fa); }
.act-toc__link.is-active {
  color: var(--c-green-dark, #15803d);
  background: var(--c-green-pale);
  border-left-color: var(--c-green, #16a34a);
  font-weight: 700;
}

/* ライトボックス（活動報告詳細） */
.rd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.rd-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 64rem);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  cursor: zoom-in;
}

/* オリジナル画像ビューア */
#rd-original-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#rd-original-img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}

.rd-lightbox__close {
  position: fixed;
  top: var(--sp-md);
  right: var(--sp-lg);
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  opacity: 0.8;
  transition: opacity var(--dur) var(--ease);
}

.rd-lightbox__close:hover { opacity: 1; }

.rd-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}

.rd-lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.rd-lightbox__prev { left: var(--sp-md); }
.rd-lightbox__next { right: var(--sp-md); }

.rd-lightbox__counter {
  position: fixed;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}

/* ── ページトップへ戻るボタン ─────────────────────────────── */
.scroll-top {
  position: fixed;
  right: var(--sp-xl);
  bottom: var(--sp-xl);
  width: 5em;
  height: 5em;
  background-color: var(--c-green);
  color: var(--c-paper);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0.4em 1.6em rgba(110, 132, 100, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1em);
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  z-index: 10000;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--c-green-light);
  box-shadow: 0 0.6em 2em rgba(110, 132, 100, 0.55);
  transform: translateY(-0.2em);
}

.scroll-top svg {
  width: 1.5em;
  height: 1.5em;
}

@media (max-width: 600px) {
  .scroll-top {
    right: var(--sp-lg);
    bottom: var(--sp-lg);
    width: 4.8em;
    height: 4.8em;
    box-shadow: none;
  }

  .scroll-top svg {
    width: 2.4em;
    height: 2.4em;
  }
}

/* ── レスポンシブ (小画面スマホ 375px 以下) ──────────────── */
@media (max-width: 375px) {

  /* ── ロゴ ──────────────────────────────────────────────── */
  /* ロゴ画像を縮小 */
  .site-logo__img {
    height: 2.8rem;
  }

  /* エリア名ラベルを非表示（スペース確保） */
  .site-logo__area {
    display: none;
  }

  /* 団体名: 折り返し許可・フォントサイズ下限を下げる */
  .site-logo__name {
    white-space: normal;
    font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    line-height: 1.35;
  }

  /* ハンバーガー固定時の右パディング削減 */
  .header-top-inner {
    padding-right: 3.8rem;
  }

  /* ── コンテナ余白 ──────────────────────────────────────── */
  .container,
  .container-narrow {
    width: min(var(--container), 100% - var(--sp-sm) * 2);
  }

  /* ── セクション余白 ────────────────────────────────────── */
  .section {
    padding-block: var(--sp-lg);
  }

  .section--tight {
    padding-block: var(--sp-md);
  }

  /* ── ヒーロー ──────────────────────────────────────────── */
  /* 縦長スマホ向けに少し縦を持たせる */
  .hero__frame {
    aspect-ratio: 3 / 4;
  }

  /* テキストオーバーレイ: 余白を最小化 */
  .hero-overlay {
    padding: var(--sp-sm);
  }

  .hero-overlay__box {
    padding: 0.7em 0.9em;
  }

  /* キャッチコピー: 折り返し許可済みだが下限を明示 */
  .hero-overlay__catch {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    margin-bottom: var(--sp-xs);
  }

  .hero-overlay__lead {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    line-height: 1.9;
  }

  /* ── カード ────────────────────────────────────────────── */
  .card-body {
    padding: var(--sp-md);
  }

  /* ── ボタン ────────────────────────────────────────────── */
  .btn {
    padding: 0.65em 1.3em;
    font-size: var(--fs-xs);
  }

  /* ── ページヘッダー ────────────────────────────────────── */
  .page-header {
    padding-block: var(--sp-lg) var(--sp-md);
    margin-bottom: var(--sp-lg);
  }

  /* ── お知らせリスト ────────────────────────────────────── */
  .news-tag {
    font-size: 0.68rem;
  }

  /* ── ナビカード ────────────────────────────────────────── */
  .nav-card {
    grid-template-columns: 2.5em 1fr;
    column-gap: var(--sp-sm);
    padding: 2.4rem var(--sp-sm) 0.75rem;
  }

  .nav-card__icon {
    width: 2.5em;
    height: 2.5em;
  }

  /* ── 活動報告ギャラリー ────────────────────────────────── */
  .rd-gallery {
    grid-template-columns: 1fr;
  }

  /* ── フォーム ──────────────────────────────────────────── */
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.65em 0.85em;
  }

  /* ── フッター ──────────────────────────────────────────── */
  .footer-brand {
    padding-left: var(--sp-sm);
  }

  .footer-inner > nav {
    padding-left: var(--sp-sm);
  }

  .footer-contact {
    padding-left: var(--sp-sm);
  }

  /* ── スクロールトップボタン ────────────────────────────── */
  .scroll-top {
    right: var(--sp-md);
    bottom: var(--sp-md);
    width: 4.8em;
    height: 4.8em;
    box-shadow: none;
  }

  .scroll-top svg {
    width: 2.4em;
    height: 2.4em;
  }

}

/* ============================================================
   カレンダーウィジェット（activity.php）
   ============================================================ */

.cal-section {
  padding-block-end: 0 !important;
}

.cal-section__heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  margin-bottom: var(--sp-md);
}

.cal-widget {
  background: var(--c-paper);
  border: 0.06em solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: 0 0.15em 0.8em var(--c-shadow-soft);
}

/* ── ヘッダー（月ラベル＋ナビゲーション） ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
  gap: var(--sp-sm);
}

.cal-month-label {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
  min-width: 8em;
  text-align: center;
}

.cal-nav {
  background: none;
  border: 0.06em solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-xl);
  line-height: 1;
  padding: 0.25em 0.8em;
  color: var(--c-green);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.cal-nav:hover,
.cal-nav:focus-visible {
  background: var(--c-green);
  color: var(--c-paper);
  border-color: var(--c-green);
  outline: none;
}

/* ── グリッド全体：外枠線＋角丸で囲み、中は罫線区切り（カード式ではなくGoogleカレンダー風の格子） ── */
.cal-grid-wrap {
  border: 0.06em solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ── 曜日ヘッダー ── */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-bottom: 0.06em solid var(--c-border);
  background: var(--c-paper);
}

.cal-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-mute);
  padding: 0.5em 0;
}

.cal-dow--sun { color: var(--c-terra); }
.cal-dow--sat { color: var(--c-teal); }

/* ── 日付グリッド ── */
/* .cal-body は週（.cal-week）を縦に積んだコンテナ */
.cal-body {
  display: flex;
  flex-direction: column;
}

/* 1週間ぶん：7列グリッド。1行目=日付番号、2行目以降=イベント帯（レーン） */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 3px;
  column-gap: 0;
  position: relative;
  min-width: 0;
  border-bottom: 0.06em solid var(--c-border-light);
}

.cal-week:last-child {
  border-bottom: none;
}

/* 日付セルの背景（1〜最終行いっぱいに広がり、その日の帯すべての背後に回る。罫線のみで区切り、セルごとの塗りは無し） */
.cal-daybg {
  min-height: 5.7rem;
  min-width: 0;
  overflow: hidden;
  border-right: 0.06em solid var(--c-border-light);
  background: var(--c-paper);
  pointer-events: none;
}

.cal-daybg:nth-of-type(7) {
  border-right: none;
}

@media (min-width: 37.5em) {
  .cal-daybg {
    min-height: 7.3rem;
  }
}

.cal-daybg--empty {
  background: var(--c-bg-sub, #f8f9fa);
}

/* 日付番号（背景セルとは別の grid item として 1 行目に重ねて配置。列内で中央寄せ） */
.cal-date-num {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
  text-align: center;
  margin: 0.4em 0 0.25em;
  justify-self: center;
}

/* 今日：Googleカレンダーと同様、セル全体は塗らず日付番号だけを丸で強調 */
.cal-date-num--today {
  background: var(--c-green);
  color: var(--c-paper) !important;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  min-width: 2.2em;
  margin: 0.2em 0 0.15em;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-weight: 800;
}

/* 日曜・土曜 */
.cal-date-num--sun { color: var(--c-terra); }
.cal-date-num--sat { color: var(--c-teal); }

/* イベント帯（複数日にまたがる場合は grid-column を通して幅を広げ、日をまたいで表示する） */
.cal-event-bar {
  display: block;
  min-width: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #c05030;
  background: rgba(224, 104, 66, 0.18);
  border-radius: 0.3em;
  padding: 0.15em 0.5em;
  margin: 0 0.15em;
  text-decoration: none;
  line-height: 1.5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  align-self: start;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* 前の週から続いている／次の週へ続く場合は、その側の丸みを消して帯の連続感を出す */
.cal-event-bar--cont-left {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cal-event-bar--cont-right {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* カレンダーツールチップ */
#cal-tooltip {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 0.45rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 240px;
  min-width: 140px;
}

.cal-tip__title {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}

.cal-tip__row {
  color: var(--c-text-sub);
  display: flex;
  gap: 0.4rem;
}

.cal-tip__lbl {
  font-weight: 600;
  color: var(--c-green-dark);
  white-space: nowrap;
}

.cal-event-bar:hover,
.cal-event-bar:focus-visible {
  background: var(--c-terra);
  color: var(--c-paper);
  outline: none;
}

/* ── タブレット ── */
@media (max-width: 60em) {
  .cal-widget {
    padding: var(--sp-md);
  }
}

/* ── 768px 以下：カレンダー左右余白ゼロ・角R ── */
@media (max-width: 768px) {
  .cal-section .container {
    width: 100%;
    padding-inline: var(--sp-md);
  }
  .cal-widget {
    border-radius: 0;
    margin-inline: calc(-1 * var(--sp-md));
  }
}

/* ── モバイル（井状グリッド） ── */
@media (max-width: 37.5em) {
  /* ウィジェット枠：余白のみ残す */
  .cal-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .cal-month-label {
    font-size: 1rem;
  }

  .cal-nav {
    font-size: var(--fs-lg);
    padding: 0.25em 0.7em;
  }

  /* グリッド全体ラッパー：外枠線のみ（角丸は無し、罫線の格子は基本スタイルを継承） */
  .cal-grid-wrap {
    border-radius: 0;
  }

  .cal-weekdays span {
    font-size: 0.62rem;
    padding: 0.3em 0;
  }

  /* 背景セル：格子罫線は基本スタイルを継承。縦サイズを詰めてコンパクトに */
  .cal-daybg {
    min-height: 3.4rem;
  }

  .cal-date-num {
    font-size: 0.68rem;
    margin: 0.15em 0 0.1em;
  }

  .cal-date-num--today {
    width: 1.8em;
    height: 1.8em;
    min-width: 1.8em;
    margin-top: 0.05em;
  }

  /* イベント帯：小さく表示 */
  .cal-event-bar {
    font-size: 0.55rem;
    min-width: 0;
    padding: 0.3em 0.25em;
    margin: 0 0.08em;
    border-radius: 0.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* ── カレンダー イベント箇条書きリスト ── */
.cal-event-list__heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text-sub);
  letter-spacing: 0.06em;
  margin: var(--sp-lg) 0 0;
  padding-bottom: 0.4em;
  border-bottom: 0.06em solid var(--c-border);
}

.cal-event-list {
  list-style: none;
  margin: var(--sp-lg) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-event-list__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cal-event-list__item + .cal-event-list__item {
  padding-top: 1rem;
  border-top: 0.06em solid var(--c-border-light);
}

.cal-event-list__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75em;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.cal-event-list__link:hover {
  color: var(--c-green-dark);
}

.cal-event-list__empty {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
}

.cal-event-list__date {
  order: 1;
  flex-shrink: 0;
  color: var(--c-text-sub);
}

.cal-event-list__bullet {
  display: inline-block;
  width: 1em;
  color: var(--c-green);
  font-weight: 900;
}

.cal-event-list__title {
  order: 2;
  display: inline-block;
  color: var(--c-green);
  font-weight: 700;
  padding-bottom: 0.1em;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur) var(--ease);
}

.cal-event-list__link:hover .cal-event-list__title {
  text-decoration-color: var(--c-green);
}

.cal-event-list__venue {
  order: 3;
  color: var(--c-text-sub);
  font-weight: 400;
}

@media (max-width: 1280px) {
  .cal-event-list__item {
    display: block;
  }
  .cal-event-list__link {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4em;
  }
  .cal-event-list__date {
    order: 1;
    width: 100%;
  }
  .cal-event-list__title {
    order: 2;
    padding-left: 1em;
  }
  .cal-event-list__venue {
    order: 3;
    padding-left: 1em;
  }
}

/* ── 960px以下：日付／タイトル／会場をそれぞれ改行して3行に ── */
@media (max-width: 60em) {
  .cal-event-list__title {
    width: 100%;
  }
  .cal-event-list__venue {
    display: block;
    margin-left: 0;
  }
}

/* ── 600px以下：日付／タイトル／場所を行間を詰めた3行に整理 ── */
@media (max-width: 37.5em) {
  .cal-event-list {
    gap: 1.3rem;
  }
  .cal-event-list__link {
    gap: 0.15em;
    line-height: 1.4;
  }
  .cal-event-list__title {
    width: 100%;
  }
  .cal-event-list__venue {
    display: block;
    margin-left: 0;
    font-size: 0.9em;
  }
}

/* ── イベント一覧ページネーション（activity.php / volunteer_detail.php 共通） ── */
.upcoming-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.upcoming-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .6rem 1.4rem;
  border: 1.5px solid var(--c-border);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}

.upcoming-pagination__btn:hover {
  background: var(--c-bg-sub, #f8f9fa);
  border-color: var(--c-green, #16a34a);
  color: var(--c-green, #16a34a);
}

.upcoming-pagination__btn:active {
  transform: scale(.96);
}

.upcoming-pagination__btn--next {
  background: var(--c-green, #16a34a);
  border-color: var(--c-green, #16a34a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, .3);
}

.upcoming-pagination__btn--next:hover {
  background: var(--c-green-dark, #15803d);
  border-color: var(--c-green-dark, #15803d);
  color: #fff;
}

.upcoming-pagination__btn--disabled {
  color: var(--c-text-mute);
  background: var(--c-bg-sub, #f8f9fa);
  border-color: var(--c-border);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.upcoming-pagination__info {
  font-size: .9rem;
  color: var(--c-text-sub);
}

@media (max-width: 37.5em) {
  .upcoming-pagination {
    gap: .5rem;
  }
  .upcoming-pagination__btn {
    padding: .6rem 1.1rem;
    font-size: .9rem;
  }
}
