.terms-wrap {
  position: relative;
  background: #f7fdfd;
  padding: 6.25rem 10rem;
  color: var(--primary-dark-color);
  z-index: -2;
  h2 {
    font-size: 3.5625rem;
    margin-bottom: 3.75rem;
  }
}

.terms-background-image {
  position: fixed;
  top: 2.375rem;
  right: 4.8125rem;
  z-index: -1;
}

.terms-preface {
  margin-bottom: 2.875rem;
}

/* 本文 */
.terms-contents {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.terms-contents section h3 {
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 1.25rem;
}
.terms-contents section ol {
  margin-left: 1.5rem;
  text-indent: -1.5rem;
  list-style-type: none;
  counter-reset: item;
}

/* 項目番号の付与 */
.terms-contents section ol li {
  counter-increment: item;
}
.terms-contents section ol li::before {
  content: counters(item, ".") ". ";
}

/* 制定日 */
.enactment-date {
  text-align: right;
  margin-top: 1.75rem;
}

@media (max-width: 980px) {
  .terms-wrap {
    padding: 3rem 5rem;
  }
}
@media (max-width: 480px) {
  .terms-wrap {
    padding: 3rem 2.5rem;
  }
  .terms-wrap h2 {
    font-size: 3rem;
    margin-top: 5rem;
  }
}
