.p-terms {
  position: relative;
  margin: 0 auto;
  font-family: var(--font-family-ja);
}
.p-terms__title {
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.p-terms__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 68px;
}
.p-terms__section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}
.p-terms__section-title {
  font-size: 20px;
  line-height: 1.4;
}
.p-terms__section-subtitle {
  font-size: 14px;
  line-height: 1.8;
}
.p-terms__section-table {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}
.p-terms__text, .p-terms__list, .p-terms__note, .p-terms__sub-list {
  font-size: 14px;
  line-height: 1.8;
}
.p-terms__list {
  list-style-type: decimal;
  padding-left: 21px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.p-terms__sub-list {
  list-style-type: none;
  margin-top: 4px;
  counter-reset: sub-list-counter;
  line-height: 1.55;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
}
.p-terms__sub-list--indent {
  margin-top: -9px;
  padding-left: 22px;
}
.p-terms__sub-list li {
  margin-bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
}
.p-terms__sub-list li::before {
  content: "(" counter(sub-list-counter) ")";
  counter-increment: sub-list-counter;
  white-space: nowrap;
}
.p-terms__note {
  color: var(--color-terms-gray);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.6;
}
.p-terms__table-note {
  margin-top: 2px;
  color: var(--color-terms-gray);
  font-size: 13px;
  line-height: 1.6;
}
.p-terms__table-note-list {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-terms-gray);
  list-style-type: decimal;
  padding-left: 14px;
}
.p-terms__table-note-list li {
  margin-bottom: 0;
}
.p-terms__table-wrapper {
  width: 100%;
  overflow-x: auto;
}
.p-terms__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}
.p-terms__table th, .p-terms__table td {
  border: 1px solid var(--color-table-gray);
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1.8;
  vertical-align: middle;
  font-weight: normal;
}
.p-terms__table th {
  text-align: center;
}
.p-terms__table th.u-border-bottom-none {
  border-bottom: none;
}
.p-terms__table td {
  text-align: left;
}
.p-terms__table--cancellation th, .p-terms__table--cancellation td {
  text-align: center;
}
@media screen and (min-width: 768px) {
  .p-terms {
    padding: 156px 0 140px;
  }
  .p-terms__inner {
    max-width: 794px;
  }
  .p-terms__body {
    margin-top: 60px;
  }
  .p-terms__table th, .p-terms__table td {
    padding: 12px 46px;
  }
  .p-terms__table--fee thead th:nth-child(1) {
    width: 268px;
  }
  .p-terms__table--fee thead th:nth-child(2) {
    width: 190px;
  }
  .p-terms__table--fee thead th:nth-child(3) {
    width: 336px;
  }
  .p-terms__table--cancellation thead th:nth-child(1) {
    width: 338px;
  }
  .p-terms__table--cancellation thead th:nth-child(2), .p-terms__table--cancellation thead th:nth-child(3) {
    width: 228px;
  }
}
@media screen and (max-width: 767px) {
  .p-terms {
    padding: 131px 0 100px;
  }
  .p-terms__body {
    margin-top: 42px;
    gap: 68px;
  }
  .p-terms__table th, .p-terms__table td {
    font-size: 13px;
    line-height: 1.4;
    padding: 12px 10px;
  }
  .p-terms__table th span, .p-terms__table td span {
    min-width: -webkit-fit-content;
    min-width: -moz-fit-content;
    min-width: fit-content;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    text-align: left;
  }
  .p-terms__table thead th {
    height: 51px;
  }
  .p-terms__table--fee thead th:nth-child(1), .p-terms__table--fee thead th:nth-child(2) {
    width: 72px;
  }
  .p-terms__table--fee thead th:nth-child(3) {
    width: 197px;
  }
  .p-terms__table--cancellation thead th:nth-child(1) {
    width: 149px;
  }
  .p-terms__table--cancellation thead th:nth-child(2), .p-terms__table--cancellation thead th:nth-child(3) {
    width: 100px;
  }
}