:root {
  --green: #2f6b3a;
  --green-dark: #1f4a28;
  --green-soft: #e8f2e6;
  --accent: #d9822b;
  --cream: #fbf8f1;
  --ink: #26302a;
  --muted: #5b675f;
  --line: #d9dfd4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 60, 40, .08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-dark); color: #fff; padding: 8px 16px;
}
.skip:focus { left: 0; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-size: 1.3rem; font-weight: 700; line-height: 1.3;
}
.logo small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); }
.logo-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.3rem;
}

.global-nav ul {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.global-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.global-nav a:hover { background: var(--green-soft); }
.global-nav .nav-cta { background: var(--green); color: #fff; }
.global-nav .nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 8px 16px; border: 2px solid var(--green); border-radius: 8px;
  background: #fff; color: var(--green); cursor: pointer;
}

/* ヒーロー */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 130, 43, .18), transparent 40%),
    linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 88px 0 96px;
}
.hero-eyebrow { margin: 0 0 8px; font-weight: 600; letter-spacing: .08em; opacity: .9; }
.hero h1 { margin: 0 0 20px; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.4; }
.hero-lead { max-width: 36em; margin: 0 0 32px; font-size: 1.05rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b96a1c; color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-dark); }

.notice-bar { background: #fff3d6; border-bottom: 1px solid #ecd9a4; padding: 12px 0; font-size: .95rem; }
.notice-bar strong { color: #a04d00; }

/* セクション共通 */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-green { background: var(--green-soft); }

.section-title {
  margin: 0 0 32px; font-size: 1.9rem; line-height: 1.3;
  padding-left: 16px; border-left: 6px solid var(--green);
}
.section-title span {
  display: block; font-size: .8rem; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
.sub-title { margin: 48px 0 16px; font-size: 1.3rem; }
.lead { max-width: 44em; margin: 0 0 32px; }
.note { font-size: .88rem; color: var(--muted); }

/* お知らせ */
.news-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.news-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--muted); font-size: .95rem; min-width: 9.5em; }
.news-list a { font-weight: 600; }
.tag {
  display: inline-block; min-width: 5.5em; text-align: center;
  padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff;
}
.tag-info { background: var(--green); }
.tag-event { background: var(--accent); }
.tag-safety { background: #b23a3a; }

/* カード */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.section:not(.section-alt) .card { background: #fff; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--green-dark); }
.card p { margin: 0 0 8px; }
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: 8px; }

/* 表 */
.table { width: 100%; max-width: 560px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--green); color: #fff; }
.table tbody th { width: 8em; background: var(--green-soft); }

/* 年間行事 */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.month {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.15rem;
}
.timeline strong { font-size: 1.15rem; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

/* 防災 */
.emergency { background: #fff5f3; border: 2px solid #e3a49a; border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.emergency h3 { margin: 0 0 12px; color: #9c2d20; }
.emergency-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.emergency-list li { display: flex; align-items: baseline; gap: 12px; }
.emergency-list strong { font-size: 2rem; color: #9c2d20; line-height: 1; }
.check-list { margin: 0; padding-left: 1.2em; }

/* 資料 */
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.download-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.download-list a:hover { border-color: var(--green); background: var(--green-soft); }
.download-list span { font-size: .75rem; background: #b23a3a; color: #fff; padding: 2px 8px; border-radius: 4px; }

/* バックナンバー */
.backnumber-year {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.backnumber-year summary {
  cursor: pointer; list-style: none; padding: 16px 24px;
  font-size: 1.15rem; font-weight: 700; color: var(--green-dark);
}
.backnumber-year summary::-webkit-details-marker { display: none; }
.backnumber-year summary::before { content: "▶ "; font-size: .8em; color: var(--accent); }
.backnumber-year[open] summary::before { content: "▼ "; }
.backnumber-year summary:hover { background: var(--green-soft); }
.backnumber-list {
  list-style: none; margin: 0; padding: 16px 24px 24px;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.backnumber-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 8px; font-size: .92rem; font-weight: 600; text-decoration: none;
}
.backnumber-list a:hover { border-color: var(--green); background: var(--green-soft); }
.backnumber-list span { flex: none; font-size: .7rem; background: #b23a3a; color: #fff; padding: 1px 7px; border-radius: 4px; }

/* 入会 */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 56px 20px 20px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); position: absolute; top: 14px; left: 20px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}
.steps p { margin: 4px 0 0; }

/* お問い合わせ */
.contact-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 720px; }
.contact-box dl { margin: 0 0 12px; }
.contact-box dl > div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-box dt { flex: none; width: 6em; font-weight: 700; color: var(--green-dark); }
.contact-box dd { margin: 0; }

/* フッター */
.site-footer { background: var(--green-dark); color: #fff; text-align: center; padding: 36px 0; }
.footer-name { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; }
.site-footer p { margin: 0; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green-dark); color: #fff; }

/* スマホ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .global-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; }
  .global-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 68px; }
  .timeline li { padding: 16px; gap: 14px; }
  .month { width: 54px; height: 54px; }
  .contact-box dl > div { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
