/* FLYERS terms / company pages only
 * Load after style.css and flyers-ui-v1.css on terms and company pages.
 */

/* ---------- shared document layout ---------- */
.flyers-document .portal-head {
  max-width: 760px !important;
}

.flyers-document .document-card {
  width: 100% !important;
  max-width: 820px !important;
}

/* ---------- terms ---------- */
.flyers-terms .portal-card.terms-card {
  padding: 36px 40px !important;
  color: #34363a !important;
  font-size: 13px !important;
  line-height: 2 !important;
}

.flyers-terms .terms-card > p:first-child {
  margin: 0 0 14px !important;
  padding: 20px 22px !important;
  color: #45474b !important;
  background: #fff7c7 !important;
  border: 1px solid #e4c400 !important;
  border-radius: 10px !important;
}

.flyers-terms .terms-card > ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.flyers-terms .terms-card > ol > li {
  margin: 0 !important;
  padding: 29px 0 !important;
  border-bottom: 1px solid #e4e4df !important;
}

.flyers-terms .terms-card > ol > li:last-child {
  border-bottom: 0 !important;
}

.flyers-terms .terms-card .list-ttl {
  position: relative !important;
  margin: 0 0 16px !important;
  padding: 0 0 0 18px !important;
  color: #111 !important;
  background: none !important;
  border: 0 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
}

.flyers-terms .terms-card .list-ttl::before {
  position: absolute !important;
  top: .25em !important;
  bottom: .25em !important;
  left: 0 !important;
  display: block !important;
  width: 6px !important;
  height: auto !important;
  margin: 0 !important;
  background: #ffd500 !important;
  border: 1px solid #111 !important;
  border-radius: 2px !important;
  content: "" !important;
}

.flyers-terms .terms-card p {
  margin: 0 0 12px !important;
}

.flyers-terms .terms-card ol.decimal {
  margin: 0 !important;
  padding-left: 1.9em !important;
  list-style: decimal !important;
}

.flyers-terms .terms-card ol.decimal > li {
  margin: 0 0 10px !important;
  padding-left: .35em !important;
}

.flyers-terms .terms-card ol.decimal > li:last-child {
  margin-bottom: 0 !important;
}

.flyers-terms .terms-card a,
.flyers-company .company-card a {
  color: #715e00 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.flyers-terms .terms-card .tx-right {
  margin: 27px 0 0 !important;
  padding-top: 22px !important;
  border-top: 2px solid #111 !important;
  color: #55585c !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
  text-align: right !important;
}

/* ---------- company table ---------- */
.flyers-company .portal-card.company-card {
  max-width: 780px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.flyers-company .company-table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

.flyers-company .company-table th,
.flyers-company .company-table td {
  height: auto !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-bottom: 1px solid #deded8 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  text-align: left !important;
  vertical-align: top !important;
}

.flyers-company .company-table th {
  width: 185px !important;
  color: #111 !important;
  background: #f0f0eb !important;
  border-right: 1px solid #deded8 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.flyers-company .company-table td {
  color: #34363a !important;
  background: #fff !important;
  font-weight: 500 !important;
}

.flyers-company .company-table tr:last-child th,
.flyers-company .company-table tr:last-child td {
  border-bottom: 0 !important;
}

.flyers-company .company-kana,
.flyers-company .company-note {
  color: #686b70 !important;
  font-size: 11px !important;
}

.flyers-company .company-business {
  margin: 0 !important;
  padding-left: 1.25em !important;
}

.flyers-company .company-business li {
  margin: 0 0 4px !important;
}

@media (max-width: 760px) {
  .flyers-terms .portal-card.terms-card {
    padding: 23px 18px !important;
    font-size: 12px !important;
    line-height: 1.9 !important;
  }

  .flyers-terms .terms-card > p:first-child {
    padding: 16px !important;
  }

  .flyers-terms .terms-card > ol > li {
    padding: 24px 0 !important;
  }

  .flyers-terms .terms-card .list-ttl {
    font-size: 15px !important;
  }

  .flyers-company .portal-card.company-card {
    padding: 0 !important;
  }

  .flyers-company .company-table,
  .flyers-company .company-table tbody,
  .flyers-company .company-table tr,
  .flyers-company .company-table th,
  .flyers-company .company-table td {
    display: block !important;
    width: 100% !important;
  }

  .flyers-company .company-table th {
    padding: 14px 17px 6px !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    white-space: normal !important;
  }

  .flyers-company .company-table td {
    padding: 7px 17px 17px !important;
    background: #f0f0eb !important;
    border-bottom: 1px solid #deded8 !important;
  }

  .flyers-company .company-table tr:last-child td {
    border-bottom: 0 !important;
  }
}
