/* e-CLA Tool Page Styles */

/* コンテンツボックス */
.content-box__content > div{
  margin-bottom: 80px;
}
.link-area{
  margin: 0 0 20px;
}
.detail-link{
  margin: 0;
}
/* 利用規約ボックス */
.terms-box {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  background-color: #fafafa;
  line-height: 1.8;
}

.terms-box::-webkit-scrollbar {
  width: 8px;
}

.terms-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.terms-box::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.terms-box::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 規約タイトル */
.terms-box__title {
  font-size: 1.6rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary, #004EA2);
}

/* 規約説明文 */
.terms-box__intro {
  margin-bottom: 20px;
  text-indent: 1em;
}

/* 利用規約内の段落字下げ */
.terms-box p,
.terms-list__content > p,
.terms-list__content {
  text-indent: 1em;
}

/* 条項タイトル */
.terms-list__title {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* 条項内容 */
.terms-list__content {
  margin-top: 8px;
}

/* 使用例リスト */
.terms-example-list {
  list-style: disc;
  padding-left: 1.5em;
  margin: 8px 0;
}

.terms-example-list > li {
  margin-bottom: 4px;
}

/* 補足テキスト */
.terms-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

/* 同意チェックボックス */
.terms-agree {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background-color: #f0f4f8;
  border-radius: 8px;
}

.terms-agree__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary, #004EA2);
}

.terms-agree__label {
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* リンクボタン */
.terms-actions {
  margin-top: 24px;
}

.terms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-primary, #004EA2);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.terms-btn:hover:not(:disabled) {
  background-color: #003d82;
  transform: translateY(-2px);
}

.terms-btn:disabled,
.terms-btn.is-disabled {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

.terms-btn i {
  font-size: 1.1em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .terms-box {
    max-height: 300px;
    padding: 16px;
    font-size: 0.85rem;
  }

  .terms-agree {
    align-items: flex-start;
    gap: 8px;
  }

  .terms-btn {
    width: 100%;
    padding: 12px 24px;
  }
}

.ecla-caution{
  color: red;
  text-decoration: underline;
}

/* 利用条件サブリスト (1)(2)(3)... */
.terms-sublist {
  list-style: none;
  padding-left: 0;
  counter-reset: sublist-counter;
}

.terms-sublist > li {
  margin-bottom: 16px;
  padding-left: 2em;
  position: relative;
}

.terms-sublist > li::before {
  content: "(" counter(sublist-counter) ")";
  counter-increment: sublist-counter;
  position: absolute;
  left: 0;
  font-weight: 500;
}

/* （ア）（イ）（ウ）リスト */
.terms-sublist--kana {
  list-style: none;
  padding-left: 0;
  counter-reset: kana-counter;
  margin: 12px 0 12px 1em;
}

.terms-sublist--kana > li {
  margin-bottom: 4px;
  padding-left: 2.5em;
  position: relative;
}

.terms-sublist--kana > li::before {
  content: "(" counter(kana-counter, katakana-iroha) ")";
  counter-increment: kana-counter;
  position: absolute;
  left: 0;
}

/* PAF型式リスト */
.terms-paf-list {
  list-style: disc;
  padding-left: 2em;
  margin: 8px 0 8px 1em;
}

.terms-paf-list > li {
  margin-bottom: 4px;
}