/* ==========================================================
   団体サンプル（デモサイト） 共通スタイル
   ========================================================== */
:root {
  --primary: #1b6e53;
  --primary-dark: #14523e;
  --primary-light: #e6f2ee;
  --accent: #e8a13a;
  --accent-dark: #c9852b;
  --text: #2b2b2b;
  --text-muted: #6b6f6d;
  --bg: #f7f6f2;
  --white: #fff;
  --line: #e2e0d9;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
  --max-w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
ul { list-style: none; }

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

/* ---------- デモ告知バー ---------- */
.demo-bar {
  background: #333;
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}
.demo-bar strong { color: var(--accent); }
.demo-bar a.demo-bar-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 12px;
}

/* ---------- 上部固定エリア（デモバー＋ヘッダー） ---------- */
.page-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f8d6d, var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.brand-name { line-height: 1.3; }
.brand-name .en { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: .08em; }
.brand-name .ja { font-size: 18px; font-weight: 700; color: var(--text); }

/* グローバルナビ */
.nav-toggle-check { display: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--primary); border-radius: 2px;
}
.global-nav ul { display: flex; gap: 4px; align-items: center; }
.global-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
}
.global-nav a:hover { background: var(--primary-light); color: var(--primary); opacity: 1; }
.global-nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
}
.global-nav a.nav-cta:hover { background: var(--primary-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .global-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-toggle-check:checked ~ .global-nav { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .global-nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .global-nav a.nav-cta { border-radius: 999px; text-align: center; margin-top: 10px; border-bottom: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2f8d6d 100%);
  color: #fff;
  text-align: center;
  padding: 90px 20px 100px;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.hero::after { width: 300px; height: 300px; bottom: -140px; left: -80px; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero .welcome {
  font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: clamp(14px, 2vw, 17px);
  opacity: .95;
  margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: var(--white); }

/* 次回定例会カード */
.next-meeting {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: -48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.next-meeting .tag {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.next-meeting .body { flex: 1; min-width: 220px; font-size: 14px; }
.next-meeting .body strong { font-size: 16px; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .en {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-title h2 { font-size: 28px; letter-spacing: .04em; }
.section-title h2::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---------- プレイスホルダー画像 ---------- */
.ph {
  background:
    repeating-linear-gradient(45deg, #dfe5e1 0 14px, #d3dbd6 14px 28px);
  border: 1px dashed #b8c2bc;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d8781;
  font-size: 13px;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 21 / 9; }

/* ---------- カードグリッド ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .ph { border-radius: 0; border: none; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body .date { font-size: 12px; color: var(--text-muted); }
.card-body h3 { font-size: 16px; line-height: 1.5; }
.card-body p { font-size: 13.5px; color: var(--text-muted); flex: 1; }
.card-body .more { font-size: 13px; font-weight: 700; align-self: flex-start; }
.card-body .more::after { content: " →"; }

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.badge.amber { background: #fdf1dc; color: var(--accent-dark); }

/* ---------- お知らせリスト ---------- */
.news-list { max-width: 780px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 8px;
  color: var(--text);
  flex-wrap: wrap;
}
.news-list a:hover { background: var(--primary-light); opacity: 1; }
.news-list .date { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.news-list .badge { align-self: center; }
.news-list .title { flex: 1; min-width: 200px; font-size: 15px; }

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

/* ---------- スケジュール表 ---------- */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.schedule-table th, .schedule-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.schedule-table thead th { background: var(--primary); color: #fff; font-size: 13px; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .d { white-space: nowrap; font-weight: 700; color: var(--primary); }

/* ---------- ページヘッダー（下層） ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}
.page-header h1 { font-size: 26px; letter-spacing: .06em; }
.page-header .en { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.breadcrumb { font-size: 12px; color: var(--text-muted); padding-top: 14px; padding-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); text-decoration: underline; }

/* ---------- 記事本文 ---------- */
.article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px);
}
.article .meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.article h1 { font-size: 24px; line-height: 1.5; margin-bottom: 24px; }
.article h2 { font-size: 19px; color: var(--primary); border-left: 4px solid var(--primary); padding-left: 12px; margin: 32px 0 14px; }
.article p { margin-bottom: 16px; font-size: 15px; }
.article .ph { margin: 20px 0; }

/* ---------- 定義リスト（概要表） ---------- */
.def-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.def-table th, .def-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; text-align: left; }
.def-table th { background: var(--primary-light); color: var(--primary); width: 30%; font-weight: 700; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { border-bottom: none; padding-bottom: 4px; }
}

/* ---------- 地図 ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- お問い合わせフォーム（静的） ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 44px);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-row label .req {
  background: #d9534f; color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cfd4cf;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fdfdfc;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }

/* ---------- 入会フロー ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 20px 74px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px; top: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTAバンド ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { font-size: 24px; margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; font-size: 15px; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }

/* ---------- フッター ---------- */
.site-footer { background: #22352e; color: #cfe0d8; font-size: 14px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-inner a { color: #cfe0d8; }
.footer-inner li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 13px; }
.footer-brand .name { color: #fff; font-weight: 700; }
.footer-addr { font-size: 13px; line-height: 1.9; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #9db5ab;
}

/* フッター右下の制作者クレジット */
.footer-credit {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 14px;
  display: flex;
  justify-content: flex-end;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9db5ab;
  font-size: 11px;
  opacity: .85;
}
.footer-credit a:hover { opacity: 1; }
.footer-credit img { height: 34px; width: auto; display: block; }

/* ---------- フローティングLPボタン ---------- */
.floating-lp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-lp:hover { background: var(--accent-dark); opacity: 1; }
.floating-lp .small { display: block; font-size: 10px; font-weight: 400; }
