/* ============================================================
   イケメンヴィラン 利用規約ページ
   page-villains-terms.php 専用スタイル
   ============================================================ */

/* リード文 */
.terms-intro {
  margin-bottom: 40px !important;
  line-height: 2;
  color: #222;
}

/* 各条文セクション */
.terms-section {
  margin-bottom: 36px;
}

/* 条文見出し（第○条） */
.terms-h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6b1a76;
  border-left: 4px solid #6b1a76;
  padding: 6px 0 6px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* 条文本文 */
.terms-section > p {
  line-height: 2;
  margin-bottom: 12px !important;
  color: #222;
}

.terms-section > p:last-child {
  margin-bottom: 0 !important;
}

/* 番号付きリスト */
.terms-ol {
  padding-left: 2em;
  margin: 10px 0 14px;
  list-style: decimal;
  color: #222;
}

.terms-ol > li {
  list-style: decimal;
  line-height: 2;
  padding-left: 0.5em;
  margin-bottom: 4px;
}

/* 制定日 */
.terms-date {
  text-align: right;
  margin-top: 40px !important;
  font-size: 1.4rem;
  color: #555;
}

/* TOPへ戻るボタン（テキスト型） */
.terms-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 440px;
  max-width: 100%;
  height: 64px;
  margin: 60px auto 0;
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(107, 26, 118, 0.55) 0%, rgba(24, 18, 33, 0.85) 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   SP対応
   ============================================================ */
@media screen and (max-width: 759.98px) {
  .terms-intro {
    font-size: 1.3rem;
    margin-bottom: 28px !important;
  }

  .terms-section {
    margin-bottom: 28px;
  }

  .terms-h3 {
    font-size: 1.5rem;
    padding: 5px 0 5px 10px;
    margin-bottom: 10px;
  }

  .terms-section > p {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .terms-ol {
    padding-left: 1.5em;
  }

  .terms-ol > li {
    font-size: 1.3rem;
  }

  .terms-date {
    font-size: 1.2rem;
    margin-top: 28px !important;
  }

  .terms-back {
    width: 72vw;
    height: 52px;
    font-size: 1.4rem;
    margin-top: 40px;
  }
}

@media (any-hover: hover) {
  .terms-back {
    -webkit-transition: 0.3s;
    transition: 0.3s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .terms-back:hover {
    -webkit-filter: brightness(1.4);
    filter: brightness(1.4);
  }
}

/* ============================================================
   実テキスト版 追加スタイル（プラットフォーム区切り・章見出し・ボックス等）
   ============================================================ */

/* プラットフォーム大区切り（iOS版 / Android版） */
.terms-platform {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background-color: #6b1a76;
  padding: 8px 14px;
  margin: 48px 0 24px;
  text-align: center;
  letter-spacing: 0.1em;
}

.terms-platform:first-child {
  margin-top: 0;
}

/* 章見出し（１．〜 / 【 】） */
.terms-h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #6b1a76;
  padding-bottom: 6px;
  margin: 32px 0 18px;
  line-height: 1.5;
}

/* ボックス（(1)(2)… グループ枠・箇条書き） */
.terms-box {
  list-style: none;
  background-color: rgba(107, 26, 118, 0.08);
  border: 1px solid rgba(107, 26, 118, 0.3);
  padding: 14px 16px;
  margin: 12px 0;
}

.terms-box > li {
  font-size: 1.6rem;
  color: #222;
  line-height: 1.8;
  text-indent: -1.4em;
  padding-left: 1.4em;
}

.terms-box > li:not(:last-child) {
  margin-bottom: 8px;
}

/* 注記（※） */
.terms-note {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.7;
}

/* 「以上」 */
.terms-end {
  text-align: center;
  margin-top: 24px;
  font-weight: 700;
}

/* リンク */
.terms-body a {
  color: #6b1a76;
  text-decoration: underline;
  word-break: break-all;
}

@media screen and (max-width: 759.98px) {
  .terms-platform {
    font-size: 1.6rem;
    padding: 6px 10px;
    margin: 36px 0 20px;
  }

  .terms-h2 {
    font-size: 1.5rem;
    margin: 26px 0 14px;
  }

  .terms-box > li {
    font-size: 1.3rem;
  }

  .terms-note {
    font-size: 1.2rem;
  }
}
