/* ============================================================
   戦国 利用規約ページ
   page-sengokueien-terms.php 専用スタイル
   NEWS詳細ページ（single-sengokueiennews.php）のレイアウトを踏襲
   ============================================================ */

/* ページ見出し（NEWSタイトル画像の代わりにテキスト） */
.title .terms-title {
  display: inline-block;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  color: #452d15;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* 本文ラッパー（長文の可読性のため和紙背景に薄い白ボックスを重ねる） */
.terms-body {
  background-color: rgba(255, 255, 255, 0.78);
  border: 1px solid #ecc7a2;
  box-shadow: 3px 3px #ecc7a2;
  padding: 24px 18px;
}

/* リード文 */
.terms-body .terms-intro {
  margin-bottom: 30px;
  line-height: 1.9;
}

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

/* 条文見出し（第○条） */
.terms-body .terms-h3 {
  font-size: 16px;
  font-weight: bold;
  color: #db6143;
  border-left: 4px solid #db6143;
  padding: 4px 0 4px 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* 条文本文 */
.terms-body .terms-section > p {
  line-height: 1.9;
}

.terms-body .terms-section > p:not(:last-child) {
  margin-bottom: 12px;
}

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

.terms-body .terms-ol > li {
  list-style: decimal;
  font-size: 14px;
  color: #452d15;
  line-height: 1.9;
  padding-left: 0.3em;
  margin-bottom: 4px;
}

/* 制定日 */
.terms-body .terms-date {
  text-align: right;
  margin-top: 30px;
  color: #6b543a;
}

/* ============================================================
   PC（NEWS詳細と同じ 768px ブレイクポイント）
   ============================================================ */
@media screen and (min-width: 768px) {
  .title .terms-title {
    font-size: 34px;
  }

  .terms-body {
    padding: 50px 45px;
  }

  .terms-body .terms-intro {
    margin-bottom: 45px;
    line-height: 2;
  }

  .terms-body .terms-section {
    margin-bottom: 40px;
  }

  .terms-body .terms-h3 {
    font-size: 20px;
    padding: 5px 0 5px 15px;
    margin-bottom: 16px;
  }

  .terms-body .terms-section > p {
    line-height: 2;
  }

  .terms-body .terms-section > p:not(:last-child) {
    margin-bottom: 16px;
  }

  .terms-body .terms-ol > li {
    font-size: 16px;
    line-height: 2;
  }

  .terms-body .terms-date {
    margin-top: 45px;
  }
}

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

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

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

/* 章見出し（１．〜 / 【 】） */
.terms-body .terms-h2 {
  font-size: 16px;
  font-weight: bold;
  color: #452d15;
  border-bottom: 2px solid #db6143;
  padding-bottom: 6px;
  margin: 32px 0 18px;
  line-height: 1.5;
}

/* ボックス（(1)(2)… グループ枠・箇条書き） */
.terms-body .terms-box {
  list-style: none;
  background-color: rgba(236, 199, 162, 0.25);
  border: 1px solid #ecc7a2;
  padding: 14px 16px;
  margin: 12px 0;
}

.terms-body .terms-box > li {
  font-size: 14px;
  color: #452d15;
  line-height: 1.8;
  text-indent: -1.4em;
  padding-left: 1.4em;
}

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

/* 注記（※） */
.terms-body .terms-note {
  font-size: 13px;
  color: #6b543a;
  line-height: 1.7;
}

.terms-body .terms-section > p.terms-note:not(:last-child) {
  margin-bottom: 8px;
}

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

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

@media (any-hover: hover) {
  .terms-body a:hover {
    text-decoration: none;
  }
}

@media screen and (min-width: 768px) {
  .terms-body .terms-platform {
    font-size: 22px;
    padding: 10px 18px;
    margin: 60px 0 30px;
  }

  .terms-body .terms-h2 {
    font-size: 20px;
    padding-bottom: 8px;
    margin: 40px 0 22px;
  }

  .terms-body .terms-box {
    padding: 20px 24px;
    margin: 16px 0;
  }

  .terms-body .terms-box > li {
    font-size: 16px;
    line-height: 2;
  }

  .terms-body .terms-note {
    font-size: 14px;
  }
}

