/* ==============================
   法務ページ共通スタイル
============================== */
.legal-page {
  padding: 100px 20px 60px;
}

@media (min-width: 768px) {
  .legal-page {
    padding: 136px 80px 96px;
  }
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.5rem;
  color: #333;
}

/* ページタイトル */
.legal-container h1 {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .legal-container h1 {
    font-size: 3.2rem;
  }
}

/* 制定日 */
.legal-enacted {
  text-align: center;
  color: #666;
  font-size: 1.4rem;
  margin-bottom: 48px;
}

/* 前文 */
.legal-preamble {
  margin-bottom: 40px;
}

.legal-preamble p {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-preamble ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-preamble ul li {
  list-style: disc;
  margin-bottom: 6px;
  font-size: 1.5rem;
}

/* 目次 */
.legal-toc {
  background-color: #eaf2f9;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 56px;
}

.legal-toc__title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #333;
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc__list li {
  margin-bottom: 10px;
}

.legal-toc__list a {
  color: #0069b9;
  text-decoration: none;
  font-size: 1.4rem;
}

.legal-toc__list a:hover {
  text-decoration: underline;
}

.legal-toc__sublist {
  list-style: none;
  padding-left: 1.6em;
  margin: 6px 0 4px;
}

.legal-toc__sublist li {
  margin-bottom: 6px;
}

.legal-toc__sublist a {
  color: #0069b9;
  text-decoration: none;
  font-size: 1.35rem;
}

.legal-toc__sublist a:hover {
  text-decoration: underline;
}

/* 条文番号付きリスト */
.legal-section ol {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
  counter-reset: legal-ol;
}

.legal-section ol > li {
  counter-increment: legal-ol;
  margin-bottom: 12px;
  padding-left: 2em;
  position: relative;
  font-size: 1.5rem;
}

.legal-section ol > li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  font-weight: 500;
}

/* 各セクション */
.legal-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0069b9;
  color: #333;
}

@media (min-width: 768px) {
  .legal-section h2 {
    font-size: 2rem;
    margin-top: 72px;
  }
}

.legal-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #333;
}

.legal-section p {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section ul li {
  list-style: disc;
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.legal-section a {
  color: #0069b9;
  text-decoration: underline;
}

.legal-section strong {
  font-weight: 700;
}

/* 制定日（末尾） */
.legal-date {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  text-align: right;
  font-size: 1.4rem;
  color: #666;
}
