/* =========================================
   杉並区アーチェリー協会 - メインスタイル
   ========================================= */

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

:root {
  --color-navy: #1a3a5c;
  --color-navy-dark: #0f2540;
  --color-navy-light: #2a5080;
  --color-green: #2e7d4f;
  --color-green-light: #3a9960;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #dde3ea;
  --color-accent: #e8f0fe;

  --font-base: 'Noto Sans JP', sans-serif;
  --container-max: 1100px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul {
  list-style: none;
}

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

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

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 20px 0 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 16px;
}

.site-header__logo {
  flex-shrink: 0;
  height: 100px;
  width: auto;
}

.site-header__title-img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.site-header__title {
  flex: 1;
}

.site-header__name {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 60px;
  white-space: nowrap;
}

.site-header__sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* =========================================
   ナビゲーション
   ========================================= */
.site-nav {
  background: var(--color-navy-dark);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid rgba(255,255,255,0.12);
  width: 100%;
}

.site-nav__list--primary {
  background: var(--color-navy-dark);
}

.site-nav__list--secondary {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-nav__item {
  flex: 1;
}

.site-nav__item a {
  display: block;
  color: rgba(255,255,255,0.88);
  padding: 11px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s;
  height: 100%;
}

.site-nav__item a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}

.site-nav__item--active a {
  background: var(--color-green);
  color: var(--color-white);
}

.site-nav__list--secondary .site-nav__item a {
  font-size: 0.85rem;
  padding: 11px 8px;
}

.site-nav__item--external a::after {
  content: ' ↗';
  font-size: 0.75rem;
  opacity: 0.7;
}

/* =========================================
   メインレイアウト
   ========================================= */
.site-main {
  padding: 32px 0 48px;
  flex: 1;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* =========================================
   セクション共通
   ========================================= */
.section-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.section-card__header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-card__header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-card__header--green {
  background: var(--color-green);
}

.section-card__body {
  padding: 20px;
}

/* =========================================
   お知らせセクション
   ========================================= */
.notices__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-navy-light) var(--color-bg);
}

.notices__list::-webkit-scrollbar {
  width: 6px;
}

.notices__list::-webkit-scrollbar-track {
  background: var(--color-bg);
}

.notices__list::-webkit-scrollbar-thumb {
  background: var(--color-navy-light);
  border-radius: 3px;
}

.notices__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

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

.notices__item--pinned {
  background: #fffbea;
  border-left: 3px solid #f9a825;
  padding-left: 9px;
}

.notices__pin {
  font-size: 0.8rem;
  margin-right: 4px;
  flex-shrink: 0;
}

.notices__link {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-green);
}

.notices__link:hover {
  color: var(--color-green-light);
  text-decoration: underline;
}

.notices__date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 90px;
}

.notices__new {
  font-size: 0.65rem;
  font-weight: bold;
  color: #fff;
  background: #e53935;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  vertical-align: middle;
}

.notices__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.notices__tag {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: bold;
}

.notices__tag--general       { background: #e0e0e0; color: #555; }
.notices__tag--beginner      { background: #FFFF99; color: #666; }
.notices__tag--junior        { background: #FF9999; color: #7a0000; }
.notices__tag--senior        { background: #99CCFF; color: #003a7a; }
.notices__tag--shootingrange { background: #C8E6C9; color: #1b5e20; }

.notices__content {
  font-size: 0.9rem;
  line-height: 1.6;
  width: 100%;
}

.notices__loading,
.notices__empty {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
}

/* =========================================
   協会紹介セクション
   ========================================= */
.intro__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}

.intro__text + .intro__text {
  margin-top: 12px;
}

.intro__image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 20px;
  display: block;
}

/* =========================================
   サイドバー
   ========================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* =========================================
   練習日・会費 情報ボックス
   ========================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.info-table th,
.info-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  width: 40%;
  color: var(--color-navy);
  font-weight: 700;
  background: var(--color-accent);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* =========================================
   クイックリンク
   ========================================= */
.quicklinks__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quicklinks__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.quicklinks__item a:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.quicklinks__item a::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--color-green);
  flex-shrink: 0;
}

.quicklinks__item a:hover::before {
  color: var(--color-white);
}

/* =========================================
   ページタイトル
   ========================================= */
.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  border-left: 4px solid var(--color-green);
  padding-left: 12px;
}

/* =========================================
   行事予定 - 注記
   ========================================= */
.schedule-note {
  background: #f8f8f8;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-note__title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.schedule-note__table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

.schedule-note__table td {
  padding: 2px 8px 2px 0;
  vertical-align: top;
  line-height: 1.6;
  white-space: nowrap;
}

.schedule-note__table td:nth-child(2) {
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-navy);
  padding-right: 12px;
}

.schedule-note__table thead th {
  font-weight: 700;
  padding: 2px 8px 4px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.schedule-note__table thead th:nth-child(1) {
  font-size: 1.05rem;
}

.schedule-note__table thead th:nth-child(2) {
  color: var(--color-navy);
}

.schedule-note__footer {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* =========================================
   行事予定 - 凡例
   ========================================= */
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-legend__item {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

.schedule-legend__item { background: #fff; border: 1px solid #ddd; border-left-width: 4px; }
.schedule-legend__item--general  { border-left-color: #aaaaaa; }
.schedule-legend__item--beginner { border-left-color: #c8b400; }
.schedule-legend__item--junior   { border-left-color: #cc3333; }
.schedule-legend__item--senior   { border-left-color: #4477cc; }
.schedule-legend__item--special  { border-left-color: #33aa33; }

/* =========================================
   行事予定 - タブ
   ========================================= */
.schedule-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.schedule-tabs__btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-base);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.schedule-tabs__btn--active,
.schedule-tabs__btn:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* =========================================
   行事予定 - テーブル
   ========================================= */
.section-card__body--flush {
  padding: 0;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 500px;
}

.schedule-table thead th {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

/* split テーブルは rowspan の関係で last-child での除去が不整合になるため全行に統一 */
.schedule-table--split tbody tr:last-child td {
  border-bottom: 1px solid #ccc;
}

/* カテゴリー行の背景色 */
.schedule__row--general  { background: #ffffff; }
.schedule__row--beginner { background: #FFFF99; }
.schedule__row--junior   { background: #FF9999; }
.schedule__row--senior   { background: #99CCFF; }
.schedule__row--special  { background: #99FF99; }

/* 月別交互背景（フィルターページ用）month-a=デフォルト、month-b=薄くする */
.schedule__row--beginner.month-b td { background: #e8e870; }
.schedule__row--junior.month-b   td { background: #e07070; }
.schedule__row--senior.month-b   td { background: #70a8e0; }
.schedule__row--general.month-b  td { background: #f0f0f0; }

.schedule__date,
.schedule__time {
  white-space: nowrap;
  text-align: center;
}

.schedule__day {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.schedule__year-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  background: #e8eef5;
  border-left: 3px solid var(--color-navy);
  margin: 8px 0 12px;
  padding: 5px 12px;
  border-radius: 0 4px 4px 0;
}

.schedule__loading,
.schedule__empty {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

/* 分割テーブルレイアウト（schedule.html）
   ========================================= */
.schedule-split-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table--split {
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

/* 分割テーブルのフォント・パディング（全セル統一） */
.schedule-table--split thead tr:last-child th,
.schedule-table--split tbody td {
  font-size: 0.72rem;
  padding: 5px 6px;
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/* ヘッダー上段（セクション見出し）の列境界線 */
.schedule-table--split thead tr:first-child th {
  border-left: 1px solid #ffffff;
}

/* ヘッダー下段（列名）の列境界線 */
.schedule-table--split thead tr:last-child th {
  border-left: 1px solid #ffffff;
  border-bottom: none;
}

/* 日付列（最左列）のみ左境界線なし。rowspan時に時間列がfirst-childになっても影響しない */
.schedule-table--split tbody td.schedule__date,
.schedule-table--split tbody td.schedule__day,
.schedule-table--split tbody td.schedule__event-type,
.schedule-table--split tbody td.schedule__floor {
  padding-left: 2px;
  padding-right: 2px;
}

.schedule-table--split tbody td.schedule__date {
  border-left: none;
}

/* 列ヘッダー（2行目）を中央揃え */
.schedule-table--split thead tr:last-child th {
  text-align: center;
}

/* 全列（折り返し禁止） */
.schedule-table--split tbody td {
  white-space: nowrap;
  overflow: hidden;
}

/* 行事名称（divider列）は折り返し許可 */
.schedule-table--split td.schedule__cell--divider {
  white-space: normal;
  overflow: visible;
}

/* 中央揃えセル（classで指定、rowspan時もnth-childに依存しない） */
.schedule-table--split td.schedule__cell--center {
  text-align: center;
}

.schedule-table__section-head {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 6px;
  border-right: 3px solid #888;
}

.schedule-table__section-head--right {
  background: #2d6a4f;
  border-right: none;
}

.schedule-table--split th.schedule__cell--divider,
.schedule-table--split td.schedule__cell--divider {
  border-right: 3px solid #888 !important;
  text-align: center;
}

/* 右側セル（classで背景指定、rowspan時もnth-childに依存しない） */
.schedule-table--split td.schedule__cell--right {
  background: #f5f5f5;
  text-align: center;
}

/* rowspanセル（日付・射場・当番）は垂直中央揃え */
.schedule-table--split td.schedule__cell--span {
  vertical-align: middle;
  text-align: center;
}

/* Split table: 行背景を白に統一し、左端アクセントボーダーでカテゴリー識別 */
.schedule-table--split .schedule__row--general,
.schedule-table--split .schedule__row--beginner,
.schedule-table--split .schedule__row--junior,
.schedule-table--split .schedule__row--senior,
.schedule-table--split .schedule__row--special  { background: white; }

.schedule-table--split .schedule__row--general  td.schedule__cell--accent { border-left: 4px solid #aaaaaa; }
.schedule-table--split .schedule__row--beginner td.schedule__cell--accent { border-left: 4px solid #c8b400; }
.schedule-table--split .schedule__row--junior   td.schedule__cell--accent { border-left: 4px solid #cc3333; }
.schedule-table--split .schedule__row--senior   td.schedule__cell--accent { border-left: 4px solid #4477cc; }
.schedule-table--split .schedule__row--special  td.schedule__cell--accent { border-left: 4px solid #33aa33; }

/* =========================================
   外部大会情報
   ========================================= */
.external-section {
  margin-top: 24px;
}

/* =========================================
   お知らせ・注意ボックス
   ========================================= */
.info-notice {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =========================================
   チェックリスト・注意リスト
   ========================================= */
.check__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.check__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.check__list li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
}

.caution__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.caution__list li {
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 10px 14px 10px 40px;
  background: #fff3f3;
  border-left: 3px solid #e53935;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}

.caution__list li::before {
  content: '⚠';
  position: absolute;
  left: 12px;
  top: 10px;
  color: #e53935;
  font-size: 0.85rem;
}

/* =========================================
   サブセクションタイトル
   ========================================= */
.subsection__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

/* =========================================
   初心者教室タブ
   ========================================= */
.beginner-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  margin-bottom: 0;
}

.beginner-tabs__btn {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-base);
  border: 2px solid var(--color-navy);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.beginner-tabs__btn--active,
.beginner-tabs__btn:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* =========================================
   申し込みボタン
   ========================================= */
.apply-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: #c0392b;
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.apply-btn:last-of-type {
  margin-bottom: 0;
}

.apply-btn:hover {
  background: #e74c3c;
  color: var(--color-white);
}

/* =========================================
   アクセス
   ========================================= */
.access__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access__item {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.access__label {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  width: 4.5em;
  text-align: center;
}

.access__text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.access__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.access__layout .access__list {
  flex: 1;
  min-width: 0;
}

.map__wrapper {
  flex-shrink: 0;
}

.map__img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .access__layout {
    flex-direction: column;
  }
  .map__img {
    max-width: 100%;
  }
}

/* =========================================
   PDFリンク
   ========================================= */
.pdf__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.pdf__link:hover {
  background: var(--color-accent);
  border-color: var(--color-navy);
}

.pdf__icon {
  background: #e53935;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.pdf__note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* =========================================
   リンク集
   ========================================= */
.linklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linklist__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.linklist__item a::before {
  content: '↗';
  font-size: 0.85rem;
  color: var(--color-green);
  flex-shrink: 0;
}

.linklist__item a:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.linklist__item a:hover::before {
  color: var(--color-white);
}

/* =========================================
   安全宣言
   ========================================= */
.safety__list {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.safety__list li {
  font-size: 0.95rem;
  line-height: 1.7;
}

.safety__chapter {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.safety__chapter:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.safety__chapter h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-accent);
  border-left: 4px solid var(--color-navy);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.safety__chapter p {
  font-size: 0.93rem;
  line-height: 1.85;
  padding-left: 4px;
}

.safety__sublist {
  counter-reset: safety-section;
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety__sublist--field {
  counter-reset: safety-section 11;
}

.safety__sublist li {
  counter-increment: safety-section;
  font-size: 0.93rem;
  line-height: 1.85;
  padding-left: 5em;
  position: relative;
}

.safety__sublist li::before {
  content: "第" counter(safety-section) "節";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.safety__chapter-note {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 12px 16px;
  background: #fff8e1;
  border-left: 4px solid #f0a500;
  color: var(--color-text);
}

.safety__field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  background: #dce8f5;
  border-left: 3px solid var(--color-navy);
  padding: 4px 10px;
  margin: 12px 0 8px;
  display: inline-block;
}

.safety__intro {
  font-size: 0.93rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.safety__source {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* =========================================
   会員からの寄稿
   ========================================= */
.freepost__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.freepost__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

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

.freepost__no {
  color: var(--color-navy);
  font-weight: 700;
  min-width: 60px;
  flex-shrink: 0;
}

/* =========================================
   協会行事
   ========================================= */
.event__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

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

.event__item dt {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.9rem;
}

.event__item dd {
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .event__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: 0.8rem;
}

.page-updated {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 4px;
}

.admin-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
}
.admin-link:hover {
  color: rgba(255,255,255,0.5);
}

/* =========================================
   ハンバーガーメニュー
   ========================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.12);
}

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

/* ---- 960px: タブレット（レイアウト＋ハンバーガー） ---- */
@media (max-width: 960px) {
  /* ---- Layout ---- */
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 1;
  }

  .main-column {
    min-width: 0;
  }

  .site-header__name {
    font-size: 2rem;
  }

  .site-header__logo {
    height: 75px;
  }

  .site-header__title-img {
    height: 45px;
  }

  /* ---- ハンバーガーメニュー ---- */
  .site-header__inner {
    position: relative;
    padding-right: 48px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
    border-left: none;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__item {
    flex: none;
  }

  .site-nav__item a {
    padding: 12px 20px;
    font-size: 0.88rem;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: normal;
  }

  .site-nav__list--secondary {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav__list--secondary .site-nav__item a {
    font-size: 0.85rem;
    padding: 11px 20px 11px 28px;
  }

  /* ---- Schedule table ---- */
  .schedule-table--split {
    font-size: 0.65rem;
  }
}

/* ---- 600px: スマートフォン（横向き）---- */
@media (max-width: 600px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header__inner {
    gap: 12px;
    padding-bottom: 12px;
  }

  .site-header__name {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .site-header__logo {
    height: 45px;
  }

  .site-header__title-img {
    height: 28px;
  }
}

/* ---- 480px: スマートフォン（縦向き）---- */
@media (max-width: 480px) {
  .site-header__inner {
    gap: 8px;
    padding-right: 42px;
  }

  .site-header__logo {
    height: 38px;
  }

  .site-header__title-img {
    height: 22px;
  }

  .site-header__name {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 12px;
  }
}

/* ---- 400px: スマートフォン（小型）---- */
@media (max-width: 400px) {
  .site-header__inner {
    gap: 6px;
    padding-right: 40px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .site-header__logo {
    height: 32px;
  }

  .site-header__title-img {
    height: 18px;
  }

  .site-header__name {
    font-size: 0.85rem;
  }

  .container {
    padding: 0 10px;
  }
}
