/* #5460 規約HTML 共通スタイル
   構成: 01版(153行)をベースに、02版の追加分(.terms-note/.terms-table/.terms-feature-table)と
   09版の .terms-alpha-list のみを追記。base ルールの重複連結は行わない(後勝ち上書き事故防止) */
.terms-page {
    background: #fff;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.02em;
    padding: 64px 20px 80px;
  }

  .terms-container {
    max-width: 920px;
    margin: 0 auto;
  }

  .terms-header {
    margin-bottom: 44px;
  }

  .terms-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 14px;
  }

  .terms-date {
    color: #666;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
  }

  .terms-intro {
    margin-bottom: 44px;
  }

  .terms-intro p,
  .terms-section p {
    margin: 0 0 18px;
  }

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

  .terms-section h2 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 16px;
    padding: 0;
  }

  .terms-section ol,
  .terms-section ul {
    margin: 0 0 0 1.3em;
    padding: 0;
  }

  .terms-section li {
    margin-bottom: 10px;
    padding-left: 0.2em;
  }

  .terms-section li> ol,
  .terms-section li> ul {
    margin-top: 8px;
  }

  /* グローバル common.css の `ul, ol { list-style: none }` リセットを打ち消し、
     class 無しの素のリスト(番号付き条項など)にネイティブのマーカーを復活させる。
     class 付き(.terms-parentheses-list / .terms-alpha-list)は ::before で採番するため除外。 */
  .terms-section ol:not([class]) {
    list-style: decimal outside;
    margin-left: 1.8em;
    padding-left: 0;
  }

  .terms-section ul:not([class]) {
    list-style: disc outside;
    margin-left: 1.8em;
    padding-left: 0;
  }

  .terms-parentheses-list {
  list-style: none;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.terms-parentheses-list > li {
  padding-left: 3.6em;
  position: relative;
}

.terms-parentheses-list > li::before {
  content: attr(data-marker) " ";
  left: 0;
  position: absolute;
  top: 0;
}

  .terms-table-wrap {
    margin: 18px 0 4px;
    overflow-x: auto;
  }

  .terms-table {
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
    min-width: 560px;
    width: 100%;
  }

  .terms-table th,
  .terms-table td {
    border: 1px solid #ccc;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
  }

  .terms-table th {
    background: #f7f7f7;
    font-weight: 700;
  }

  .terms-table td {
    background: #fff;
  }

  @media screen and (max-width: 767px) {
    .terms-page {
      font-size: 14px;
      line-height: 1.85;
      padding: 40px 16px 56px;
    }

    .terms-header {
      margin-bottom: 36px;
    }

    .terms-header h1 {
      font-size: 24px;
    }

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

    .terms-section h2 {
      font-size: 17px;
    }

    .terms-section ol,
    .terms-section ul {
      margin-left: 1.15em;
    }

    .terms-parentheses-list> li {
      padding-left: 3.4em;
    }
  }

/* --- 02_会員規約 追加分(note/table/feature-table) --- */
/* KENKEY会員規約：第4条 注釈・表組み修正版 */
.terms-note {
  margin: 18px 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
}

.terms-note p {
  margin: 0 0 8px;
}

.terms-note p:last-child {
  margin-bottom: 0;
}

.terms-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.terms-table-wrap::after {
  content: "";
  display: none;
}

/* 機能比較表(10列・列幅を明示)は固定レイアウト＋横スクロール前提 */
.terms-feature-table {
  display: table;
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}

/* 一般的な内容ベースの表(2〜3列)は内容に合わせて自動レイアウト。
   920px 固定だと単純な表が全幅に引き伸ばされ崩れて見えるため width:auto にする。 */
.terms-table {
  display: table;
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}

.terms-table th,
.terms-table td,
.terms-feature-table th,
.terms-feature-table td {
  display: table-cell;
  box-sizing: border-box;
  border: 1px solid #d6d6d6;
  padding: 14px 12px;
  color: #222;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.terms-table th,
.terms-feature-table th {
  background: #fafafa;
  font-weight: 700;
}

.terms-feature-table td:first-child,
.terms-feature-table th:first-child {
  text-align: left;
}

.terms-feature-table th:first-child,
.terms-feature-table td:first-child {
  width: 150px;
}

.terms-feature-table th:nth-child(2) ,
.terms-feature-table th:nth-child(3) ,
.terms-feature-table td:nth-child(2) ,
.terms-feature-table td:nth-child(3) {
  width: 70px;
}

.terms-feature-table th:nth-child(4) ,
.terms-feature-table th:nth-child(5) ,
.terms-feature-table th:nth-child(6) ,
.terms-feature-table td:nth-child(4) ,
.terms-feature-table td:nth-child(5) ,
.terms-feature-table td:nth-child(6) {
  width: 110px;
}

.terms-feature-table th:nth-child(7) ,
.terms-feature-table td:nth-child(7) {
  width: 54px;
}

.terms-feature-table th:nth-child(8) ,
.terms-feature-table td:nth-child(8) {
  width: 80px;
}

.terms-feature-table th:nth-child(9) ,
.terms-feature-table th:nth-child(10) ,
.terms-feature-table td:nth-child(9) ,
.terms-feature-table td:nth-child(10) {
  width: 76px;
}

@media screen and (max-width: 767px) {
  .terms-note {
    font-size: 13px;
    line-height: 1.8;
  }

  .terms-table-wrap {
    margin: 16px -16px 24px;
    padding: 0 16px 8px;
  }

  .terms-table-wrap::after {
    content: "※表は横にスクロールできます";
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
  }

  .terms-feature-table {
    width: 860px;
    min-width: 860px;
    max-width: none;
    font-size: 12px;
    line-height: 1.55;
  }

  .terms-table th,
  .terms-table td,
  .terms-feature-table th,
  .terms-feature-table td {
    padding: 10px 8px;
  }

  .terms-feature-table th:first-child,
  .terms-feature-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 130px;
    min-width: 130px;
    background: #fff;
  }

  .terms-feature-table thead th:first-child {
    z-index: 3;
    background: #fafafa;
  }
}

@media screen and (max-width: 480px) {
  .terms-feature-table {
    width: 780px;
    min-width: 780px;
    font-size: 11px;
  }

  .terms-table th,
  .terms-table td,
  .terms-feature-table th,
  .terms-feature-table td {
    padding: 8px 6px;
  }

  .terms-feature-table th:first-child,
  .terms-feature-table td:first-child {
    width: 120px;
    min-width: 120px;
  }
}

/* --- 09_Buyer EN 追加分(.terms-alpha-list のみ抽出) --- */
.terms-alpha-list {
  list-style: none;
  counter-reset: terms-alpha-counter;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.terms-alpha-list> li {
  counter-increment: terms-alpha-counter;
  padding-left: 2.6em;
  position: relative;
}

.terms-alpha-list> li::before {
  content: "(" counter(terms-alpha-counter) ") ";
  left: 0;
  position: absolute;
  top: 0;
}

@media screen and (max-width: 767px) {
  .terms-alpha-list> li {
    padding-left: 2.4em;
  }
}
