@charset "utf-8";
/* CSS Document */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*body {
            font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
            line-height: 1.8;
            color: #333;
            background-color: #f9f9f9;
        }*/
.container {
  /*max-width: 1000px;*/
  margin: 0 auto;
  padding: 20px;
  /*background-color: #fff;*/
}
/* 目次 */
.toc {
  background-color: #fafafa;
  /*border: 2px solid #dfe170;*/
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 50px;
}
.toc h2 {
  font-size: 20px;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #dfe170;
  font-weight: 700;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.toc-section {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 15px;
  transition: all 0.3s;
}
.toc-section:hover {
  border-color: #dfe170;
  box-shadow: 0 2px 8px rgba(223, 225, 102, 0.2);
}
.toc-section-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  font-size: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dfe170;
}
.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 6px;
}
.toc-list a {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
}
.toc-list a:hover {
  background-color: #dfe170;
  color: #333;
  padding-left: 15px;
  font-weight: 600;
}
/* 章 */
.chapter {
  margin-bottom: 50px;
}
.chapter-title {
  font-size: 26px;
  color: #333;
  background-color: #dfe170;
  padding: 15px 20px;
  margin-bottom: 30px;
  font-weight: 700;
  border-radius: 5px;
}
/* 条文 */
.article {
  margin-bottom: 35px;
  padding: 25px;
  background-color: #fafafa;
  border-radius: 5px;
  border-left: 4px solid #dfe170;
  transition: all 0.3s;
}
.article:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.article-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.article-number {
  background-color: #dfe170;
  color: #333;
  padding: 6px 14px;
  border-radius: 5px;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 700;
}
.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}
.article-content ol, .article-content ul {
  margin-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.article-content li {
  margin-bottom: 8px;
}
/* テーブル */
.table-wrapper {
  overflow-x: auto;
  margin: 15px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}
th {
  background-color: #dfe170;
  color: #333;
  font-weight: 700;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
/* 強調ボックス */
.highlight-box {
  background-color: #fffbeb;
  /*border: 2px solid #dfe170;*/
  border-radius: 5px;
  padding: 18px;
  margin: 15px 0;
  font-size: 15px;
}
.highlight-box strong {
  color: #333;
}
/* 注意事項ボックス */
.warning-box {
  background-color: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 5px;
  padding: 18px;
  margin: 15px 0;
}
.warning-box strong {
  color: #dc2626;
}
/* 情報ボックス */
.info-box {
  background-color: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: 5px;
  padding: 18px;
  margin: 15px 0;
}
.info-box strong {
  color: #1e40af;
}
/* フッター */
.footer {
  background-color: #f5f5f5;
  padding: 40px 20px;
  margin: 50px -20px -20px -20px;
  border-top: 4px solid #dfe170;
}
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
}
.contact-info p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #555;
}
.page-tit h2 {
  margin: 0 auto !important;
}
/* ページトップボタン */
.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #dfe170;
  color: #333;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  font-weight: 700;
  font-size: 18px;
}
.page-top.visible {
  opacity: 1;
  visibility: visible;
}
.page-top:hover {
  background-color: #d4d65a;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .contents-area {
    margin: 60px auto 0 !important;
    width: 98% !important;
  }
  .container {
    padding: 15px;
  }
  .toc {
    padding: 20px 15px;
  }
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chapter-title {
    font-size: 22px;
    padding: 12px 15px;
  }
  .article {
    padding: 15px;
  }
  .article-title {
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .article-number {
    margin-bottom: 8px;
  }
  .article-content {
    font-size: 14px;
  }
  table {
    font-size: 14px;
  }
  th, td {
    padding: 8px;
  }
  .footer {
    padding: 30px 15px;
    margin: 40px -15px -15px -15px;
  }
  .page-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
@media screen and (max-width: 480px) {
  .page-tit {
    position: relative;
    text-align: center;
    margin: 20px 0;
  }
  .toc-list a {
    font-size: 14px;
  }
  .article-content {
    font-size: 14px;
  }
  .title-s {
    font-size: 3.5rem !important;
    line-height: 3.5rem !important;
  }
}