/* 規約全体のコンテナ */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.8;
}

/* メインタイトル */
.terms_main_title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #662F7A;
  padding-bottom: 10px;
  color: #662F7A;
}

/* 導入文 */
.terms_intro {
  margin-bottom: 30px;
}

/* 各条（セクション）の区切り */
.terms_section {
  margin-bottom: 40px;
}

.terms_section h2 {
  font-size: 18px;
  font-weight: bold;
  background: #f4f4f4;
  padding: 10px 15px;
  border-left: 5px solid #662F7A;
  margin-bottom: 20px;
}

/* 各項のタイトル */
.terms_clause h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px;
}

/* リスト全体の基本設定 */
.terms_content ol, 
.terms_content ul {
  padding-left: 2em;
  margin-bottom: 20px;
}

.terms_content li {
  margin-bottom: 8px;
}

/* 外側の ol (1. 2. 3...) */
.terms_content ol {
  list-style-type: decimal;
}

/* 内側の ol ( (1) (2) (3) または a. b. c... ) */
/* 第19条などの階層構造に対応 */
.terms_content ol li ol,
.terms_content ol.ol_level_2 {
  list-style-type: decimal;
  margin-top: 10px;
  padding-left: 1.5em; /* インデントの深さを調整 */
}

/* ブラウザ標準で数字が重複して見づらい場合は以下のように装飾 */
.terms_content ol > li > ol {
  list-style-type: lower-latin; /* 内側を a. b. c. にする場合 */
}

/* 箇条書き (ul) の設定 */
.terms_content ul {
  list-style-type: disc;
}

/* 付則のスタイル */
.terms_supplement {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    margin: 20px auto;
  }
  .terms_main_title {
    font-size: 20px;
    color: #662F7A;
  }
  .terms_section h2 {
    font-size: 16px;
  }
  .foot_buttons img{
    width: 100%;
    height: auto;
  }
}