/* ===================================================================
   styles.css — フルバージョン（修正版）
   =================================================================== */

/* --- 全体コンテナリセット --- */
article.terms {
  margin: 0;
  padding: 1rem;
}

/* --- セクション間のスペース --- */
.article-section + .article-section {
  margin-top: 2em;
}

/* --- 見出し --- */
.article-heading {
  color: #1d4c91;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 1.5em 0 0.5em;
  font-family: "ヒラギノ角ゴシック", sans-serif;
}

/* --- 本文段落 --- */
.article-text {
  color: #242422;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-indent: 1em;
  font-family: "ヒラギノ角ゴシック", sans-serif;
}
.article-text-2 {
  color: #242422;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 0.8em;
  text-indent: 1em;
  font-family: "ヒラギノ角ゴシック", sans-serif;
}

/* ===================================================================
   ①②③… 風マーカーリスト（定義リスト等）
   =================================================================== */
.definition-list {
  counter-reset: def-counter;  /* カウンター初期化 */
  margin: 1em 0 0 1em;            /* 上下マージン */
  padding: 0;                  /* 余白リセット */
  list-style: none;            /* デフォルトマーカーを消す */
}

.definition-list li {
  counter-increment: def-counter;  /* 各項目で +1 */
  position: relative;              /* ::before の基準 */
  margin: 0.8em 0;                 /* 項目間マージン */
  padding-left: 2em;               /* マーカー分の余白 */
  font-family: "ヒラギノ角ゴシック", sans-serif;
}

.definition-list li::before {
  content: counter(def-counter, decimal); /* 「1」「2」… */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  text-align: center;
  font-size: 0.9rem;
  font-family: "ヒラギノ角ゴシック", sans-serif;
  color: #242422;
  border: 1px solid #000;
  border-radius: 50%;
  background-color: #fff;
}

/* ===================================================================
   1. 2. 3. … 風サブクローズリスト（条文内番号）
   =================================================================== */
.subclause-list {
  list-style-type: decimal;
  list-style-position: outside;
  margin: 1em 0 1em 2em;  /* 上下マージン1em、左インデント2em */
  padding: 0;
  font-family: "ヒラギノ角ゴシック", sans-serif;
}

.subclause-list li {
  margin: 0.8em 0;
  line-height: 1.6;
}

/* ===================================================================
   ネストされた小リスト（例：a, b, c…）
   =================================================================== */
.inner-list {
  list-style-type: lower-alpha;
  list-style-position: outside;
  margin: 0.5em 0 0.5em 3em;  /* 左インデントを深く */
  padding: 0;
  font-family: "ヒラギノ角ゴシック", sans-serif;
}

.inner-list li {
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.article-end {
  text-align: right;
  margin-top: 2rem; /* 見た目の余白はお好みで調整を */
  font-family: "ヒラギノ角ゴシック", sans-serif;
  font-size: 1.6rem; /* 本文サイズに合わせる */
  color: #242422;    /* 本文カラーに合わせる */
}
