/* ============================================
   奈良県宇陀市遺族会 - メインスタイルシート
   style.css
   ---------------------------------------------
   配色コンセプト：又兵衛桜の「桜色」＋ 薬草の里の「草色」
     メインカラー : R247 G207 B225  #F7CFE1（桜色）
     サブカラー1  : R245 G234 B046  #F5EA2E（菜の花色）
     サブカラー2  : R206 G222 B147  #CEDE93（若草色）
============================================ */

/* ---------- CSS カスタムプロパティ ---------- */
:root {
  --white: #ffffff;

  /* メインカラー：桜色 */
  --main: #F7CFE1;
  --main-deep: #E7A3C2;   /* 桜色の濃色（罫線・装飾用） */
  --main-pale: #FDF2F7;   /* 桜色の極淡色（背景用） */

  /* サブカラー */
  --sub-yellow: #F5EA2E;  /* 菜の花色 */
  --sub-green: #CEDE93;   /* 若草色 */

  /* アクセント：若草色を文字・ボタンに使える濃度まで落とした草色 */
  --accent: #5F7A2E;
  --accent-dark: #4A6122;

  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e6dfe2;
  --bg-light: #FBF5F8;
  --footer-bg: #33372B;
  --max-w: 1100px;
  --header-h: 80px;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- レイアウト共通 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--bg-light);
}

/* ---------- セクション見出し ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading__en {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading__ja {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.12em;
}

/* 見出しの補足（上部団体の方針に準拠する旨など） */
.section-heading__note {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.8;
  margin: -8px auto 16px;
  max-width: 640px;
}

.section-heading__line {
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--main-deep) 0%, var(--main-deep) 50%, var(--sub-green) 50%, var(--sub-green) 100%);
  border-radius: 2px;
  margin: 0 auto;
}

/* ---------- フェードアップアニメーション ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(95, 122, 46, 0.30);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ヒーロー背景など明るい箇所でのアウトラインボタン視認性向上 */
.btn--outline-on-light {
  background: rgba(10, 20, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--outline-on-light:hover {
  background: var(--white);
  color: var(--accent);
}

/* 菜の花色 背景ボタン（サブカラー #F5EA2E） */
.btn--lime {
  background: var(--sub-yellow);
  color: #333333;
  border: 1px solid var(--sub-yellow);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--lime:hover {
  background: var(--sub-green);
  border-color: var(--sub-green);
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(206, 222, 147, 0.55);
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline-accent:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* 同意するボタンと同じフォントスタイル */
.btn--cookie-font {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- カード ---------- */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ---------- 画像プレースホルダー ---------- */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #F7CFE1 0%, #E3E4B4 50%, #CEDE93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
}

/* 淡い桜色・若草色の上でも白抜き文字が読めるよう、ラベルに暗色のプレートを敷く
   （白文字とのコントラスト比 約5.2〜5.5:1／WCAG AA 準拠） */
.img-placeholder > span {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: calc(100% - 32px);
  padding: 9px 20px;
  background: rgba(46, 51, 38, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
}

/* 濃色のプレースホルダーはプレート不要 */
.img-placeholder--video > span {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  font-weight: 400;
}

.img-placeholder--tall {
  height: 320px;
}

.img-placeholder--square {
  aspect-ratio: 1;
}

.img-placeholder--wide {
  height: 220px;
}

.img-placeholder--video {
  height: 200px;
  background: linear-gradient(135deg, #2C3222 0%, #3E5220 100%);
}

.img-placeholder--portrait {
  height: 360px;
  width: 240px;
  flex-shrink: 0;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴ */
.site-header__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.site-header__logo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* グローバルナビ */
.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}

.global-nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

.global-nav__link:hover::after,
.global-nav__link.active::after {
  transform: scaleX(1);
}

.global-nav__link:hover,
.global-nav__link.active {
  color: var(--accent);
}

/* ドロップダウン（body直下ポータルで描画） */
.dropdown {
  position: fixed;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 9999;
  white-space: nowrap;
}

.dropdown.dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown__link {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.dropdown__link:hover {
  color: var(--accent);
  background: var(--bg-light);
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ドロワーメニュー */
.drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer__link {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.drawer__link:last-child {
  border-bottom: none;
}

.drawer__link:hover,
.drawer__link.active {
  color: var(--accent);
  background: var(--bg-light);
}

/* ページコンテンツのオフセット */
.page-content {
  margin-top: var(--header-h);
}

/* ---------- ページ HERO ---------- */
.page-hero {
  height: 240px;
  background: linear-gradient(135deg, #3E5220 0%, #5F7A2E 40%, #8FA34A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42,46,46,0.6) 0%, rgba(42,46,46,0.2) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__en {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-hero__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- パンくずリスト ---------- */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb__link {
  color: var(--accent);
  transition: opacity var(--transition);
}

.breadcrumb__link:hover {
  opacity: 0.75;
}

/* ---------- アンカーナビ ---------- */
.anchor-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 900;
}

.anchor-nav__list {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav__list::-webkit-scrollbar {
  display: none;
}

.anchor-nav__item {
  flex-shrink: 0;
}

.anchor-nav__link {
  display: block;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.anchor-nav__link:hover,
.anchor-nav__link.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.site-footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

.site-footer__logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}

.site-footer__address {
  font-size: 13px;
  line-height: 2;
}

.site-footer__tel {
  margin-top: 12px;
  font-size: 14px;
  color: var(--white);
}

.site-footer__tel a {
  color: var(--main);
  font-weight: 600;
}

.site-footer__nav-link {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  transition: color var(--transition), padding-left var(--transition);
}

.site-footer__nav-link:hover {
  color: var(--main);
  padding-left: 6px;
}

.site-footer__external-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.site-footer__external-link:hover {
  color: var(--main);
}

.site-footer__external-link::after {
  content: '↗';
  font-size: 12px;
  opacity: 0.6;
}

.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.site-footer__policy-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.site-footer__policy-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.site-footer__policy-links a:hover {
  color: var(--main);
}

.site-footer__credit {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.28);
}

.site-footer__credit .mahora-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  transition: color var(--transition);
}

.site-footer__credit .mahora-link:hover {
  color: rgba(255,255,255,0.6);
}

.mahora-link .mahora-pop {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 60;
  pointer-events: none;
}

.mahora-pop img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

.mahora-link:hover .mahora-pop,
.mahora-link:focus-visible .mahora-pop {
  display: block;
}

/* ============================================
   Cookie 同意バナー
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(30, 34, 34, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.cookie-banner__text a {
  color: var(--main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}

.cookie-banner__btn:hover {
  opacity: 0.85;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ============================================
   ポリシーページ共通
============================================ */
.policy-hero {
  background: var(--accent);
  color: var(--white);
  padding: 80px 0 48px;
  margin-top: var(--header-h);
}

.policy-hero__label {
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.75;
  margin-bottom: 12px;
}

.policy-hero__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}

.policy-body {
  padding: 64px 0 96px;
}

.policy-body__updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.policy-section {
  margin-bottom: 48px;
}

.policy-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.policy-section p,
.policy-section li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.4em;
  margin-top: 8px;
}

.policy-section li {
  margin-bottom: 6px;
}

.policy-section__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.policy-section__table th,
.policy-section__table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}

.policy-section__table th {
  background: var(--bg-light);
  font-weight: 700;
  width: 30%;
  color: var(--text);
}

.policy-contact-box {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 24px 28px;
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  margin-top: 12px;
}

/* ============================================
   index.html 専用スタイル
============================================ */

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  max-height: 800px;
  background: url('../img/hero-bg.jpg?v=2') center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,28,28,0.35) 0%, rgba(20,28,28,0.1) 60%, transparent 100%);
}

.hero__bg-text {
  position: absolute;
  right: 8%;
  bottom: 12%;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.hero__catch {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 2px 20px rgba(0,0,0,0.3);
}

.hero__sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.95);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.4);
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- ミッションステートメント ---------- */
.mission {
  background: var(--white);
}

.mission__quote {
  max-width: 760px;
  margin: 0 auto;
  border-left: 4px solid var(--accent);
  padding: 28px 36px;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 2.2;
  color: var(--text);
  text-align: justify;
}

/* ---------- 挨拶文 ---------- */
.greeting {
  background: var(--bg-light);
}

.greeting__inner {
  max-width: 820px;
  margin: 0 auto;
}

.greeting__body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main-deep);
}

.greeting__body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
}

.greeting__body p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.greeting__sign {
  margin-top: 32px;
  text-align: right;
  font-size: 14px;
  color: var(--text);
  line-height: 2;
}

/* ---------- コンテンツカード ---------- */
.cards {
  background: var(--white);
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card--featured {
  border-top: 4px solid var(--accent);
  position: relative;
}

.card__badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 0 0 4px 4px;
}

.card__body {
  padding: 24px;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__link:hover {
  color: var(--accent-dark);
  gap: 8px;
}

/* ---------- お知らせ・年間活動 ---------- */
.news {
  background: var(--bg-light);
}

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

.news__panel {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.news__panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news__panel-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- 特別弔慰金など個別のお知らせ枠 ---------- */
.notice-panel {
  border-left: 5px solid var(--main-deep);
}

.notice-panel .news__panel-title {
  font-size: 17px;
  line-height: 1.6;
  align-items: flex-start;
}

.notice-panel .news__panel-title::before {
  margin-top: 6px;
  flex-shrink: 0;
}

.notice-panel__lead {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  padding: 14px 18px;
  background: var(--main-pale);
  border-radius: var(--radius);
}

.notice-panel__block {
  margin-top: 24px;
}

.notice-panel__subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.notice-panel__block p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-light);
}

.notice-panel__list {
  margin-bottom: 8px;
}

.notice-panel__list li {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-light);
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.notice-panel__list li + li {
  border-top: 1px dashed var(--border);
}

.notice-panel__term {
  display: inline-block;
  min-width: 86px;
  font-weight: 700;
  color: var(--text);
}

.notice-panel__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.notice-panel__link::after {
  content: ' ↗';
  font-size: 12px;
}

.notice-panel__link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

@media (max-width: 600px) {
  .notice-panel__list li {
    flex-direction: column;
    gap: 2px;
  }
  .notice-panel__term {
    min-width: 0;
  }
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news__item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news__date {
  font-size: 12px;
  color: var(--text-muted);
}

.news__tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(128,153,156,0.15);
  color: var(--accent);
}

.news__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.schedule__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.schedule__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule__month {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.schedule__detail {
  flex: 1;
}

.schedule__event {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.schedule__desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- CTAセクション ---------- */
.cta-section {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.cta-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.cta-section__tel-block {
  margin-top: 32px;
}

.cta-section__tel-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.cta-section__tel {
  font-size: 32px;
  font-weight: 700;
  color: var(--main);
}

.cta-section__tel a {
  color: var(--main);
}

.cta-section__tel-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ============================================
   about.html 専用スタイル
============================================ */

.about-overview {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

.about-overview__text p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.purpose-quote {
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--accent);
  padding: 28px 36px;
  background: var(--white);
  border-radius: 0 8px 8px 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 2.2;
  color: var(--text);
  text-align: justify;
}

/* 活動方針 */
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.policy-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.policy-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--accent);
}

.policy-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.policy-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.policy-item__body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-item__body p {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
  margin: 0;
  text-align: justify;
}

mark.highlight {
  background: linear-gradient(transparent 55%, rgba(242, 245, 156, 0.85) 55%);
  color: inherit;
  padding: 0 2px;
}

.policy-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-sub__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 3px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card__num {
  font-size: 36px;
  font-weight: 700;
  color: rgba(128,153,156,0.25);
  line-height: 1;
  margin-bottom: 8px;
}

.service-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.activity-card__body {
  padding: 16px;
  background: var(--white);
}

.activity-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.activity-card-outer {
  position: relative;
  padding-top: 2em;
}

.activity-card__title--outside {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.activity-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.activity-card__caption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ---- Annual Schedule Table ---- */
.annual-schedule {
  margin-top: 8px;
}

.annual-schedule__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.annual-schedule__wrap {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.annual-schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
  background: var(--white);
}

.annual-schedule__table thead th {
  background: var(--accent);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
}

.annual-schedule__table tbody td {
  padding: 9px 14px;
  border: 1px solid #e8e0d8;
  vertical-align: middle;
  line-height: 1.65;
  color: var(--text);
}

.annual-schedule__table .month-cell {
  background: #f5f0ea;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  color: var(--accent);
  white-space: nowrap;
  border-right: 2px solid #d9cfc4;
}

.annual-schedule__table .event-national {
  color: var(--text-light);
}

.annual-schedule__table .event-main-row td {
  background: #fdf5f0;
}

.annual-schedule__table .empty-row {
  color: var(--text-muted);
  text-align: center;
}

.annual-schedule__table .col-month { width: 48px; }
.annual-schedule__table .col-venue { min-width: 120px; }
.annual-schedule__table .col-date  { width: 88px; white-space: nowrap; }
.annual-schedule__table .col-note  { width: 84px; white-space: nowrap; }

.annual-schedule__notes {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.annual-schedule__notes li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}

.annual-schedule__notes li::before {
  content: '※';
  position: absolute;
  left: 0;
}

.annual-schedule__notes li:last-child::before {
  content: '○';
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.access-info__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
}

.access-info__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.access-info__table th,
.access-info__table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.access-info__table th {
  width: 100px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-light);
  font-size: 13px;
}

.access-info__table td {
  color: var(--text);
  line-height: 1.8;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #d8e4e5 0%, #c0d2d4 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '📍';
  position: absolute;
  font-size: 32px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.related-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.related-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.related-link-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.related-link-card__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.related-link-card__arrow {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   materials.html 専用スタイル
============================================ */

.materials-intro p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.featured-material {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.featured-material__img {
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #A8BC5F 0%, #5F7A2E 50%, #3E5220 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.1em;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.featured-material__img::after {
  content: '記念誌';
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.featured-material__body {
  padding: 40px 40px 40px 0;
}

.featured-material__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--main);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.featured-material__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}

.featured-material__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 28px;
}

/* デジタル化への謝辞 */
.featured-material__credit {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--main-pale);
  border-left: 3px solid var(--main-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.material-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.material-card__cover {
  height: 180px;
  background: linear-gradient(135deg, #F7CFE1 0%, #E3E4B4 50%, #CEDE93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  position: relative;
}

.material-card__body {
  padding: 16px;
}

.material-card__year {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.material-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ============================================
   storyteller.html 専用スタイル
============================================ */

/* 昭和100年 語り部重要性ブロック */
.storyteller-showa100 {
  background: linear-gradient(135deg, #f5f0ea 0%, #eef4f4 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
}

.storyteller-showa100__catch,
.storyteller-showa100 p.storyteller-showa100__catch {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 16px;
  line-height: 1.8;
}

.storyteller-showa100 p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 10px;
}

.storyteller-showa100__points {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storyteller-showa100__points li {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
  padding-left: 1.4em;
  position: relative;
}

.storyteller-showa100__points li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 4px;
  color: var(--accent);
}

.storyteller-showa100__emphasis {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--accent-dark) !important;
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(128,153,156,0.3);
  line-height: 1.7 !important;
}

.storyteller-intro {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.storyteller-intro__text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.storyteller-intro__text p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: justify;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.video-card__thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #2C3222 0%, #3E5220 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__play {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--transition), background var(--transition);
}

.video-card:hover .video-card__play {
  transform: scale(1.1);
  background: var(--white);
}

.video-card__body {
  padding: 16px;
  background: var(--white);
}

.video-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.video-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.recruit-cta {
  background: linear-gradient(135deg, #3E5220 0%, #5F7A2E 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.recruit-cta__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.recruit-cta__desc {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.recruit-cta__tel {
  font-size: 36px;
  font-weight: 700;
  color: var(--main);
  margin-top: 24px;
}

.recruit-cta__tel a {
  color: var(--main);
}

/* ============================================
   membership.html 専用スタイル
============================================ */

.activity-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

.activity-section__text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.activity-section__text p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.join-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}

.join-section__text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.join-section__text p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: justify;
}

.join-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.join-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 8px;
}

.join-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.join-step__body {
  flex: 1;
}

.join-step__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.join-step__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-section {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}

.contact-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-section__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 2;
}

.contact-tel-block {
  background: rgba(255,255,255,0.12);
  display: inline-block;
  padding: 32px 60px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
}

.contact-tel-block__label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.contact-tel-block__num {
  font-size: 44px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.05em;
}

.contact-tel-block__num a {
  color: var(--main);
}

.contact-tel-block__hours {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ============================================
   レスポンシブ
============================================ */

/* タブレット（〜1024px） */
@media (max-width: 1024px) {
  .cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards__grid > .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > *:last-child {
    grid-column: 1 / -1;
  }

  .featured-material {
    grid-template-columns: 280px 1fr;
  }

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

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

/* モバイル（〜768px） */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading__ja {
    font-size: 22px;
  }

  /* ヘッダー */
  .global-nav {
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .global-nav__link {
    font-size: 11px;
    padding: 6px 8px;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .drawer {
    display: block;
    pointer-events: none;
  }

  .site-header__logo-title {
    font-size: 14px;
  }

  /* ヒーロー */
  .hero__catch {
    font-size: 24px;
  }

  .hero__bg-text {
    display: none;
  }

  /* 挨拶文 */
  .greeting__inner {
    max-width: 100%;
  }

  .img-placeholder--portrait {
    width: 100%;
    max-width: 240px;
  }

  /* カード */
  .cards__grid {
    grid-template-columns: 1fr;
  }

  .cards__grid > .card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  /* ニュース */
  .news__grid {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* About */
  .about-overview {
    grid-template-columns: 1fr;
  }

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

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

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

  .related-links-grid {
    grid-template-columns: 1fr;
  }

  /* Materials */
  .featured-material {
    grid-template-columns: 1fr;
  }

  .featured-material__img {
    min-height: 200px;
  }

  .featured-material__body {
    padding: 24px;
  }

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

  /* Storyteller */
  .storyteller-intro {
    grid-template-columns: 1fr;
  }

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

  /* Membership */
  .activity-section {
    grid-template-columns: 1fr;
  }

  .join-section {
    grid-template-columns: 1fr;
  }

  /* アンカーナビ */
  .anchor-nav__link {
    padding: 14px 14px;
    font-size: 12px;
  }

  /* ページHERO */
  .page-hero {
    height: 180px;
  }

  .page-hero__title {
    font-size: 24px;
  }

  .contact-tel-block {
    padding: 24px 32px;
  }

  .contact-tel-block__num {
    font-size: 32px;
  }

  .cta-section__tel {
    font-size: 24px;
  }

  .recruit-cta__tel {
    font-size: 28px;
  }
}

/* スマホ小（〜480px） */
@media (max-width: 480px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav {
    display: none;
  }
}

/* ============================================
   遺族会と神社のなりたち（izokukai-jinja.html）
============================================ */
.lead-text {
  max-width: 820px;
  margin: 0 auto 48px;
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--text-light);
}
.lead-text strong { color: var(--text); }

/* ---------- 図解：二つの系統 ---------- */
.lineage {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.lineage__head,
.lineage__row {
  display: grid;
  grid-template-columns: 88px 1fr 148px 1fr;
}

.lineage__head {
  grid-template-columns: 88px 1fr 148px 1fr;
}

.lineage__head-cell {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
}
.lineage__head-cell span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.lineage__head::before {
  content: '';
  display: block;
}
.lineage__head-cell--izoku { background: var(--main-pale); color: #A8477B; }
.lineage__head-cell--tie   { background: var(--bg-light); color: var(--text-muted); font-weight: 400; font-size: 12px; }
.lineage__head-cell--jinja { background: #F4F7E9; color: var(--accent-dark); }

.lineage__row {
  border-top: 1px solid var(--border);
  align-items: stretch;
}

.lineage__tier {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  writing-mode: horizontal-tb;
  border-right: 1px solid var(--border);
}

.lineage__box {
  padding: 20px 22px;
}
.lineage__box--izoku { background: #FEFAFC; border-left: 4px solid var(--main-deep); }
.lineage__box--jinja { background: #FBFCF6; border-left: 4px solid var(--sub-green); }

.lineage__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}
.lineage__sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}
.lineage__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #8E3566;
  background: var(--main);
  border-radius: 999px;
  vertical-align: middle;
}
.lineage__desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-light);
}

.lineage__tie {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--white);
  position: relative;
}
.lineage__tie span {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-light);
  text-align: center;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 1;
}
.lineage__tie::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.lineage__row--current .lineage__box--izoku {
  background: var(--main-pale);
  box-shadow: inset 0 0 0 1px var(--main);
}

/* ---------- 誤解されやすい3点 ---------- */
.keypoints { margin-top: 56px; }
.keypoints__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.keypoints__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.keypoint {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 24px 22px;
}
.keypoint__no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.keypoint__head {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.keypoint__body {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-light);
}

/* ---------- 役割カード ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.role-card {
  background: var(--white);
  border-radius: 8px;
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.role-card--current {
  box-shadow: 0 4px 18px rgba(231,163,194,0.35);
  border: 1px solid var(--main);
}
.role-card__tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: #F4F7E9;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.role-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main);
}
.role-card__list li {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.role-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sub-green);
}

/* ---------- 年表 ---------- */
.tl { max-width: 900px; margin: 0 auto; }
.tl__legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tl__legend-item {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.tl__legend-item--jinja { background: #F4F7E9; color: var(--accent-dark); }
.tl__legend-item--izoku { background: var(--main-pale); color: #A8477B; }

.tl__list {
  position: relative;
  padding-left: 28px;
}
.tl__list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl__item {
  position: relative;
  padding: 0 0 34px 0;
}
.tl__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}
.tl__item--jinja::before { background: var(--sub-green); }
.tl__item--izoku::before { background: var(--main-deep); }

.tl__year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.tl__year span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}
.tl__item--izoku .tl__year { color: #A8477B; }
.tl__head {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
}
.tl__body {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-light);
}

/* ---------- Q&A ---------- */
.qa-list { max-width: 860px; margin: 0 auto; display: grid; gap: 18px; }
.qa {
  background: var(--white);
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.qa__q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
.qa__q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa__a {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-light);
  padding-left: 32px;
  position: relative;
}
.qa__a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--main);
  color: #8E3566;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 出典 ---------- */
.sources { max-width: 820px; margin: 0 auto; }
.sources__list { margin-bottom: 20px; }
.sources__list li {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}
.sources__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--main-deep);
}
.sources__list a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 600;
}
.sources__list a:hover { color: var(--accent-dark); }
.sources__note {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-muted);
  padding: 16px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .keypoints__grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .lineage__head { display: none; }
  .lineage__row {
    grid-template-columns: 1fr;
    padding: 4px 0 14px;
  }
  .lineage__tier {
    justify-content: flex-start;
    padding: 10px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .lineage__box { border-left-width: 5px; }
  .lineage__box--izoku::before,
  .lineage__box--jinja::before {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .lineage__box--izoku::before { content: '遺族会'; color: #A8477B; }
  .lineage__box--jinja::before { content: '神社'; color: var(--accent-dark); }
  .lineage__tie { padding: 10px 18px; }
  .lineage__tie::before { display: none; }
  .lineage__tie span { width: 100%; }
  .role-grid { grid-template-columns: 1fr; }
  .qa { padding: 22px 20px; }
}

/* ---------- ページHERO：写真スライド ---------- */
.page-hero--slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #33372B;
}

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

.hero-slides__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideFade 32s infinite;
  will-change: opacity;
}
.hero-slides__img:nth-child(1) { animation-delay:  0s; }
.hero-slides__img:nth-child(2) { animation-delay:  8s; }
.hero-slides__img:nth-child(3) { animation-delay: 16s; }
.hero-slides__img:nth-child(4) { animation-delay: 24s; }

@keyframes heroSlideFade {
  0%    { opacity: 0; transform: scale(1.06); }
  4%    { opacity: 1; }
  25%   { opacity: 1; }
  29%   { opacity: 0; }
  100%  { opacity: 0; transform: scale(1.00); }
}

/* 文字を読ませるための覆い */
.page-hero--slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,36,22,0.30) 0%, rgba(30,36,22,0.58) 100%);
}

.page-hero--slider .page-hero__content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* 動きを控える設定の方には静止画で */
@media (prefers-reduced-motion: reduce) {
  .hero-slides__img { animation: none; }
  .hero-slides__img:nth-child(1) { opacity: 1; }
}

@media (max-width: 700px) {
  .page-hero--slider { height: 260px; }
}

/* ---------- ページHERO：11枚スライド（概要ページ） ---------- */
.page-hero--slider11 .hero-slides__img {
  animation-name: heroSlideFade11;
  animation-duration: 66s;
}
.page-hero--slider11 .hero-slides__img:nth-child(1)  { animation-delay:  0s; }
.page-hero--slider11 .hero-slides__img:nth-child(2)  { animation-delay:  6s; }
.page-hero--slider11 .hero-slides__img:nth-child(3)  { animation-delay: 12s; }
.page-hero--slider11 .hero-slides__img:nth-child(4)  { animation-delay: 18s; }
.page-hero--slider11 .hero-slides__img:nth-child(5)  { animation-delay: 24s; }
.page-hero--slider11 .hero-slides__img:nth-child(6)  { animation-delay: 30s; }
.page-hero--slider11 .hero-slides__img:nth-child(7)  { animation-delay: 36s; }
.page-hero--slider11 .hero-slides__img:nth-child(8)  { animation-delay: 42s; }
.page-hero--slider11 .hero-slides__img:nth-child(9)  { animation-delay: 48s; }
.page-hero--slider11 .hero-slides__img:nth-child(10) { animation-delay: 54s; }
.page-hero--slider11 .hero-slides__img:nth-child(11) { animation-delay: 60s; }

@keyframes heroSlideFade11 {
  0%   { opacity: 0; transform: scale(1.05); }
  1.4% { opacity: 1; }
  7.7% { opacity: 1; }
  9.1% { opacity: 0; transform: scale(1.00); }
  100% { opacity: 0; transform: scale(1.00); }
}

/* ---------- 奈良県のなかの宇陀市（地図） ---------- */
.about-map {
  margin: 0;
  padding: 20px 18px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.nara-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-muni path {
  fill: #EEF1E2;
  stroke: #ffffff;
  stroke-width: 1;
  stroke-linejoin: round;
}
.map-pref-outline {
  fill: none;
  stroke: #9FAE72;
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.map-uda {
  fill: var(--main);
  stroke: #D97BA8;
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-city {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 21px;
  fill: #8a8a80;
  text-anchor: middle;
}
.map-pref {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 21px;
  fill: #bcbcb2;
  text-anchor: middle;
  letter-spacing: 0.1em;
}
.map-pref--v {
  writing-mode: vertical-rl;
  text-anchor: start;
}
.map-lead {
  stroke: #D97BA8;
  stroke-width: 2;
  stroke-dasharray: 4 3;
}
.map-dot { fill: #D97BA8; r: 7; }
.map-uda-label {
  font-size: 34px;
  font-weight: 700;
  fill: var(--text);
  text-anchor: end;
}
.map-uda-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  fill: var(--text-light);
  text-anchor: end;
}

.about-map__cap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-light);
}
.about-map__cap strong { color: var(--text); }

@media (max-width: 900px) {
  .about-map { max-width: 420px; margin: 0 auto; }
}

/* ---------- トップ：奈良県戦没者追悼式 ---------- */
.memorial {
  background: var(--white);
}

.memorial__figure {
  margin: 0;
  max-width: 900px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
}

.memorial__img {
  width: 100%;
  height: auto;
  display: block;
}

.memorial__body {
  padding: 28px 32px 32px;
  text-align: center;
}

.memorial__caption {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 22px;
}

.memorial__place {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}

.memorial__btn {
  font-size: 15px;
  padding: 14px 32px;
}

@media (max-width: 700px) {
  .memorial__body { padding: 22px 20px 26px; }
  .memorial__caption { font-size: 15px; }
  .memorial__btn { width: 100%; }
}

/* 宇陀市の追悼式（トップ）：背景を淡い桜色にして県の追悼式と区別する */
.memorial--uda {
  background: var(--bg-light);
}
.memorial--uda .memorial__caption {
  margin-bottom: 0;
}

/* ---------- 戦跡 ---------- */
.senseki-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.senseki__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.senseki {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--main-deep);
  padding: 32px 36px;
}

.senseki__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.senseki__meta {
  margin-bottom: 20px;
}

.senseki__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  line-height: 1.9;
  padding: 5px 0;
}

.senseki__row dt {
  min-width: 74px;
  font-weight: 700;
  color: var(--accent);
}

.senseki__row dd {
  margin: 0;
  color: var(--text-light);
}

.senseki__desc {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 18px;
  text-align: justify;
}

.senseki__note {
  max-width: 820px;
  margin: 22px auto 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .senseki { padding: 26px 22px; }
  .senseki__name { font-size: 19px; }
  .senseki__row { flex-direction: column; gap: 0; }
  .senseki__row dt { min-width: 0; }
}

.senseki__sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
