/* ============================================================
   rules.css — クラブ規約（F規約型・2026-07-09再設計）
   PCは左固定目次（sticky）＋条文720px。SPは冒頭に目次
   ※style.cssは編集禁止のためページ固有分をここに定義
   ============================================================ */

/* ---------- 文書リード ---------- */
.doc-lead {
  text-align: center;
  margin-bottom: 56px;
}

.doc-lead__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.doc-lead__sub::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.doc-lead__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ---------- レイアウト（PC：左固定目次＋本文） ---------- */
.rules-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 720px);
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.rules-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* ---------- 目次 ---------- */
.rules-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 20px;
}

.rules-toc__title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.rules-toc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 目次見出し：金縦バーは全廃→グレー下罫線（2026-07-12） */
.rules-toc__chap {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.rules-toc ul {
  list-style: none;
}

.rules-toc ul li a {
  display: block;
  padding: 3px 0 3px 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-sub);
  transition: color 0.24s var(--ease-out);
}

.rules-toc ul li a:hover {
  color: var(--primary);
}

/* ---------- 章・条文 ---------- */
.rules-chap {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.rules-chap__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--secondary);
}

/* 章番号は小さな金ラベル（大タイポ禁止ルール準拠） */
.rules-chap__num {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 3px 9px;
}

.rule {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.rule__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.rule__num {
  flex: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.rule p {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.rule ul {
  list-style: none;
  margin: 4px 0 12px;
}

.rule ul li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.rule ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.rule__block {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 12px 0;
}

.rule__block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.rule__block ul {
  margin-bottom: 0;
}

.rule__block ul li:last-child {
  margin-bottom: 0;
}

.rule__history {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 6px;
}

.rule__history-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rule__history p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* ---------- 末尾導線 ---------- */
.doc-foot {
  margin-top: 48px;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: 6px;
  text-align: center;
}

.doc-foot__note {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.doc-foot__org {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .rules-layout {
    grid-template-columns: minmax(0, 720px);
  }

  .rules-side {
    position: static;
  }

  .rules-toc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rules-toc__grid {
    grid-template-columns: 1fr;
  }

  .rules-chap__head {
    font-size: 18px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .doc-foot {
    padding: 36px 18px;
  }
}
