@charset "utf-8";

/* CSS Document */


/*　基本設定　*/

/* termsofservice.css */

/* 全体のベーススタイル */
body {
  font-family: 'Helvetica Neue', 'Yu Gothic', sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* 中央寄せ & カード風の囲い */
.terms-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* メインタイトル */
h1 {
  font-size: 28px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 6px solid #2293a3;
  color: #2293a3;
}

/* 小見出し */
h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #444;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.header-top2 {
    height: 30px;
    line-height: 30px;
    background-color: #87b2c2;
    z-index: 999;
    width: 100%;
    color: #fff;
    text-align: center;
    vertical-align: center;
    font-size: 11px;
    margin-bottom: 0.5rem;
    font-weight: normal;
}



/* 段落スタイル */
p {
  margin-top: 12px;
}

/* 箇条書き */
ul {
  margin-left: 1.5em;
  padding-left: 0;
}

li {
  margin-bottom: 8px;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .terms-container {
    padding: 20px;
    margin: 20px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }
}

/* 戻るボタン */

.terms-backlink {
  display: inline-block;
  margin-top: 40px;
  font-weight: bold;
  color: #fff;
  background-color: #2293a3;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.2s ease;
}
s
.terms-backlink:hover {
  background-color: #1b7c89; /* 少し濃くなる */
}

ol.sub-number {
  counter-reset: subnum;
  margin-left: 0;
  padding-left: 0;
}

ol.sub-number > li {
  list-style: none;
  counter-increment: subnum;
  margin: 0.4em 0;
  padding-left: 2.5em;       /* 本文開始位置を統一 */
  text-indent: 0;            /* 回り込みを防止 */
  position: relative;
}

ol.sub-number > li::before {
  content: "（" counter(subnum) "）";
  position: absolute;
  left: 0;                   /* 左端に配置 */
  width: 2.2em;              /* 番号ぶんの固定幅 */
  text-align: right;
}

.main-number {
  list-style-type: decimal !important; /* 強制的に 1. 2. 3. 表示 */
  margin-left: 1.5em;                  /* 左余白 */
  padding-left: 0;
}
.main-number li {
  display: list-item !important; /* liをリスト扱いに戻す */
}

ol.main-number > li {
  list-style-type: decimal !important;
}

ol.sub-number > li {
  list-style: none;
  counter-increment: subnum;
  margin: 0.4em 0;
  padding-left: 3.5em;  /* ←幅を広めに変更 */
  text-indent: 0;
  position: relative;
}

ol.sub-number > li::before {
  content: "（" counter(subnum) "）";
  position: absolute;
  left: 0;
  width: 3em;           /* ←ここも広げる */
  text-align: right;
white-space: nowrap;   /* ←ここで改行禁止！ */
}

/* カタカナ番号 (ア, イ, ウ...) */
ol.kana-number {
  counter-reset: kana;
  margin-left: 0;
  padding-left: 0;
}

ol.kana-number > li {
  list-style: none;
  counter-increment: kana;
  margin: 0.3em 0;
  padding-left: 5em;       /* subより右に寄せる */
  position: relative;
}

ol.kana-number > li::before {
  content: counter(kana, katakana) "．";  /* ← ア, イ, ウ */
  position: absolute;
  left: 0;
  width: 5.3em;             /* 番号の表示幅 */
  text-align: right;
  white-space: nowrap;
}