/* 上荒田町内会サイト 共通スタイル（配布物ページ用） */
:root {
  --brand-deep:   #0D3B6E;
  --brand-mid:    #1A5CA8;
  --brand-light:  #3A80CC;
  --brand-pale:   #E8F1FB;
  --accent:       #F0A500;
  --white:        #FFFFFF;
  --gray-light:   #F4F6F9;
  --gray-mid:     #C8D4E0;
  --gray-text:    #4A5568;
  --text:         #1E293B;
}

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

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

/* ── ヘッダー ── */
header {
  background: var(--brand-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.site-title span {
  display: block;
  font-size: 0.65rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  margin-top: 1px;
}
nav { display: flex; gap: 4px; }
nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.current { background: rgba(255,255,255,0.14); color: var(--white); }
@media (max-width: 720px) {
  .header-inner { height: auto; flex-direction: column; align-items: flex-start; padding: 12px 16px; gap: 8px; }
  nav { flex-wrap: wrap; gap: 2px; }
  nav a { font-size: 0.72rem; padding: 6px 8px; }
}

/* ── ページ見出し ── */
.page-head {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: var(--white);
  padding: 48px 24px 44px;
  text-align: center;
}
.page-head .label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.page-head h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-head p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
}
@media (max-width: 680px) { .page-head h1 { font-size: 1.5rem; } .page-head { padding: 34px 18px 32px; } }

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 680px) { .container { padding: 0 16px; } }
.section { padding: 48px 0; }

/* ── パンくず ── */
.crumbs { background: var(--gray-light); font-size: 0.8rem; padding: 10px 0; color: var(--gray-text); }
.crumbs a { color: var(--brand-mid); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-mid);
  color: var(--white);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn:hover { background: var(--brand-deep); }
.btn-outline {
  background: transparent;
  color: var(--brand-mid);
  border: 2px solid var(--brand-mid);
}
.btn-outline:hover { background: var(--brand-pale); color: var(--brand-deep); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ── 合言葉ゲート ── */
.gate {
  max-width: 520px;
  margin: 60px auto;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(13,59,110,0.08);
}
.gate .lock { font-size: 2.4rem; margin-bottom: 8px; }
.gate h2 { font-family: 'Noto Serif JP', serif; font-size: 1.3rem; margin-bottom: 12px; color: var(--brand-deep); }
.gate p { font-size: 0.9rem; color: var(--gray-text); margin-bottom: 24px; line-height: 1.9; }
.gate input {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid var(--gray-mid);
  border-radius: 6px;
  font-family: inherit;
  letter-spacing: 0.15em;
}
.gate input:focus { outline: none; border-color: var(--brand-mid); }
.gate .btn { width: 100%; justify-content: center; margin-top: 14px; }
.gate .err { color: #C0392B; font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.gate .hint { font-size: 0.82rem; color: var(--gray-text); margin-top: 20px; margin-bottom: 0; }
.gate .hint a { color: var(--brand-mid); }

/* ── 配布物カード ── */
.latest {
  background: var(--brand-pale);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
  border-left: 6px solid var(--brand-mid);
}
.latest .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
}
.latest h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  color: var(--brand-deep);
  margin: 12px 0 6px;
}
.latest .meta { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 18px; }
.latest .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ページ画像ビューア ── */
.pages { margin-top: 8px; overflow-anchor: none; }
.pages figure {
  margin-bottom: 20px;
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pages img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.pages figcaption {
  font-size: 0.78rem;
  color: var(--gray-text);
  padding: 8px 12px;
  background: var(--gray-light);
  border-top: 1px solid var(--gray-mid);
}
.empty {
  border: 2px dashed var(--gray-mid);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* ── バックナンバー ── */
h3.sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: var(--brand-deep);
  border-bottom: 2px solid var(--brand-pale);
  padding-bottom: 8px;
  margin: 44px 0 16px;
}
.archive-list { list-style: none; }
.archive-list li { border-bottom: 1px solid var(--gray-mid); }
.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
}
.archive-list a:hover { background: var(--gray-light); color: var(--brand-mid); }
.archive-list .name { font-weight: 500; }
.archive-list .date { font-size: 0.82rem; color: var(--gray-text); white-space: nowrap; }

/* ── 注記 ── */
.note {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.9;
  margin-top: 40px;
}
.note strong { color: var(--text); }

/* ── 拡大表示 ── */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
  overflow: auto;
  cursor: zoom-out;
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img { max-width: 100%; height: auto; }

/* ── フッター ── */
footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 24px 24px;
  margin-top: 60px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-name { font-family: 'Noto Serif JP', serif; font-size: 1.1rem; color: var(--white); margin-bottom: 6px; }
.footer-inner p { font-size: 0.82rem; line-height: 1.9; }
.footer-inner a { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
