/* =========================================================
   おもろまち自治会 公式サイト 共通スタイル
   配色: 深緑 #2d4a3e / アイボリー #f5f1e8 / アクセント黄・橙
   ========================================================= */

:root {
  --green-deep: #2d4a3e;
  --green-mid: #3d6152;
  --green-light: #5a8271;
  --cream: #f5f1e8;
  --cream-dark: #e8e0cf;
  --accent-yellow: #f2b705;
  --accent-orange: #e07a2f;
  --text-main: #23332c;
  --text-inverse: #ffffff;
  --border-soft: #d8d0bd;
  --shadow: 0 4px 18px rgba(45, 74, 62, 0.12);

  /* 高齢者にも読みやすいよう、やや大きめの基準文字サイズ */
  --fs-base: 18px;
  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text-main);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

/* 見出しは明朝系 */
h1, h2, h3, .mincho {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.5;
}

a { color: var(--green-mid); }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ========== ヘッダー ========== */
.site-header {
  background: var(--cream);
  border-bottom: 2px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .logo-leaf { flex: none; }
.brand .logo-img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.brand-text .brand-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
}
.brand-text .brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--green-light);
  text-transform: uppercase;
}

.header-sns {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sns-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.sns-btn:hover { transform: translateY(-2px); background: var(--green-mid); }
.sns-btn svg { width: 22px; height: 22px; fill: #fff; }

/* ハンバーガー */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-deep);
  border-radius: 8px;
  width: 46px; height: 42px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 4px auto;
  background: var(--green-deep);
  transition: .25s;
}

/* ========== ナビ ========== */
.site-nav {
  background: var(--green-deep);
}
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-list a {
  display: block;
  padding: 14px 20px;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.02rem;
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.nav-list a:hover { background: var(--green-mid); }
.nav-list a.current {
  border-bottom-color: var(--accent-yellow);
  color: #fff;
  font-weight: 700;
}

/* ========== ヒーロー ========== */
.hero {
  position: relative;
  padding: 0;
}
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 340px;
}
.hero-photos .ph { min-height: 340px; overflow: hidden; background: linear-gradient(135deg, #6a8f7c, #3d6152); }
.hero-photos .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(20, 35, 28, 0.42);
}
.hero-overlay h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-overlay p {
  color: #fdfbf5;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0 0 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-btns {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== ボタン ========== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-cream { background: var(--cream); color: var(--green-deep); border-color: var(--cream-dark); }
.btn-accent { background: var(--accent-orange); color: #fff; }

/* ========== セクション ========== */
.section { padding: 60px 0; }
.section.alt { background: #fff; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head .leaf-deco { flex: none; opacity: .85; }
.section-head p {
  margin: 10px 0 0;
  color: var(--green-light);
  font-size: 1rem;
}

/* ========== カードグリッド ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-thumb.thumb-event { background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)); }
.card-thumb svg { width: 54px; height: 54px; opacity: .9; }
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: .04em;
}
.card-body h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card-body p { margin: 0; font-size: 0.96rem; color: #4a5750; }
.card-more { margin-top: auto; }

/* ========== SNS 誘導バナー ========== */
.sns-banner {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.sns-banner h2 { color: #fff; margin: 0 0 8px; }
.sns-banner p { margin: 0 0 22px; color: var(--cream-dark); }
.sns-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sns-line { background: #06c755; color: #fff; }
.sns-insta { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }

/* ========== 汎用リスト（お知らせ/防災） ========== */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-left: 6px solid var(--green-light);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.info-list .info-date { color: var(--accent-orange); font-weight: 700; font-size: .9rem; }
.info-list h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.info-list p { margin: 0; color: #4a5750; }
.info-list .info-body { color: #4a5750; }
.info-list .info-body p { margin: 0 0 8px; }
.info-list .info-body p:last-child { margin-bottom: 0; }
.info-list .info-body a { color: var(--green-deep, #2d4a3e); text-decoration: underline; word-break: break-all; }
.info-thumb { margin: 0 0 12px; border-radius: 8px; overflow: hidden; max-width: 320px; }
.info-thumb img { width: 100%; height: auto; display: block; }

/* microCMS 読み込み中・データなし・エラー表示（お知らせ/イベント） */
.card-grid.is-message,
.info-list.is-message {
  display: block;
  color: #5a685f;
  background: #fff;
  border: 1px dashed var(--border-soft);
  border-radius: 10px;
  padding: 20px 22px;
  text-align: center;
}

/* データテーブル / 定義リスト */
.def-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.def-table th, .def-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.def-table th {
  background: var(--cream-dark);
  color: var(--green-deep);
  width: 32%;
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif;
}
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }

/* ========== 会則（条文アコーディオン） ========== */
.bylaws-block { max-width: 820px; margin: 0 auto 40px; }
.bylaws-block:last-child { margin-bottom: 0; }
.bylaws-title {
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif;
  color: var(--green-deep);
  font-size: 1.3rem;
  margin: 0 0 18px;
  text-align: center;
}
.bylaws-article {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bylaws-article summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bylaws-article summary::-webkit-details-marker { display: none; }
.bylaws-article summary::before {
  content: "+";
  font-weight: 700;
  color: var(--accent-orange);
  flex: none;
}
.bylaws-article[open] summary::before { content: "－"; }
.bylaws-article-body {
  padding: 16px 20px 20px;
  color: var(--text-main);
  line-height: 1.9;
  white-space: pre-line;
}
.bylaws-supplement {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--text-main);
}
.bylaws-supplement h4 {
  margin: 0 0 10px;
  color: var(--green-deep);
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif;
}
.bylaws-revisions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  font-size: .92rem;
  color: #5a685f;
}

/* プレースホルダー注記 */
.placeholder-note {
  background: #fff6e0;
  border: 1px dashed var(--accent-orange);
  border-radius: 10px;
  padding: 16px 20px;
  color: #7a5a20;
  margin: 20px 0;
}

/* ========== フォーム ========== */
.form-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 680px;
  margin: 0 auto;
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green-deep);
}
.form-field .req { color: var(--accent-orange); font-size: .85rem; margin-left: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.02rem;
  font-family: inherit;
  border: 2px solid var(--border-soft);
  border-radius: 10px;
  background: #fdfcf8;
  color: var(--text-main);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(90,130,113,.25);
}
.form-field textarea { min-height: 150px; resize: vertical; }

/* ページ見出しバンド */
.page-hero {
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding: 46px 20px;
}
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-hero p { margin: 0; color: var(--cream-dark); }

/* パンくず的リード */
.lead { font-size: 1.08rem; color: #3a4740; max-width: 760px; margin: 0 auto 30px; text-align: center; }

/* 概要2カラム */
.about-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
}
.about-visual {
  min-height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6a8f7c, #2d4a3e);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ========== フッター ========== */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 48px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
.footer-brand .brand-title { color: #fff; font-family: "Hiragino Mincho ProN","Yu Mincho",serif; font-size: 1.4rem; }
.footer-brand p { color: var(--cream-dark); font-size: .95rem; margin: 10px 0 0; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--cream); text-decoration: none; }
.footer-col ul a:hover { color: var(--accent-yellow); text-decoration: underline; }
.footer-sns { display: flex; gap: 12px; margin-top: 6px; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 34px;
  padding-top: 20px;
  color: var(--cream-dark);
  font-size: .88rem;
}

/* ========== レスポンシブ ========== */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .hero-photos { grid-template-columns: 1fr; min-height: 300px; }
  .hero-photos .ph-2, .hero-photos .ph-3 { display: none; }

  .nav-toggle { display: block; }
  .site-nav .nav-list {
    display: none;
    flex-direction: column;
  }
  .site-nav.open .nav-list { display: flex; }
  .nav-list a { text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-list a.current { border-bottom-color: var(--accent-yellow); }
}

@media (max-width: 560px) {
  :root { --fs-base: 17px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text .brand-title { font-size: 1.2rem; }
  .brand-text .brand-sub { font-size: 0.62rem; }
  .section { padding: 44px 0; }
  .header-inner { padding: 10px 16px; }
}

/* お知らせ本文内のチラシ画像 */
.info-list .info-body img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 8px; margin: 0 0 12px; }
.card-thumb img { object-position: top; }
