/* Consultation comparison: isolated from the legacy comparison-table/card rules. */
.consult-compare {
  background: #ffffff;
}

.consult-compare__intro {
  max-width: 58rem;
  margin: 24px 0 0;
  color: #344b5d;
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.consult-compare__intro strong {
  color: #155493;
  font-weight: 700;
}

.consult-compare__note {
  margin: 20px 0 0;
  color: #536471;
  font-size: .8125rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.consult-compare__desktop {
  margin-top: 24px;
  border: 1px solid #c9d5df;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.consult-compare__table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: left;
}

.consult-compare__label-col { width: 12%; }
.consult-compare__ys-col { width: 24%; }
.consult-compare__other-col { width: 16%; }

.consult-compare__table th,
.consult-compare__table td {
  padding: 18px 12px;
  border-right: 1px solid #d7e1e9;
  border-bottom: 1px solid #d7e1e9;
  color: #344b5d;
  font-size: .875rem;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.consult-compare__table tr > :last-child { border-right: 0; }
.consult-compare__table tbody tr:last-child > * { border-bottom: 0; }

.consult-compare__table thead th {
  background: #f4f7f9;
  color: #344b5d;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}

.consult-compare__table tbody th {
  color: #155493;
  background: #ffffff;
  font-weight: 700;
}

.consult-compare__table td.is-ys {
  background: #e7f2fb;
  color: #155493;
}

.consult-compare__table thead th.is-ys {
  background: #155493;
  color: #ffffff;
  font-size: 1rem;
}

.consult-compare__table td strong,
.consult-compare__table small {
  display: block;
}

.consult-compare__table td strong { font-weight: 600; }
.consult-compare__table td.is-ys strong { font-weight: 700; }

.consult-compare__table small {
  margin-top: 5px;
  color: #536471;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.7;
}

.consult-compare__table thead th.is-ys small { color: #ffffff; }
.consult-compare__table td.is-ys small { color: #344b5d; }

.consult-compare__cards { display: none; }

@media (max-width: 1100px) {
  .consult-compare__desktop { display: none; }

  .consult-compare__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 24px auto 0;
  }

  .consult-compare__card {
    min-width: 0;
    padding: 20px 18px 8px;
    border: 1px solid #c9d5df;
    border-radius: 6px;
    background: #ffffff;
    overflow-wrap: anywhere;
  }

  .consult-compare__card.is-ys {
    border-color: #155493;
    background: #e7f2fb;
  }

  .consult-compare__card-head {
    padding-bottom: 14px;
    border-bottom: 1px solid #c9d5df;
  }

  .consult-compare__card-head h3 {
    margin: 0;
    color: #344b5d;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
  }

  .consult-compare__card.is-ys .consult-compare__card-head h3 {
    color: #155493;
  }

  .consult-compare__type {
    margin: 4px 0 0;
    color: #536471;
    font-size: .8125rem;
    line-height: 1.65;
  }

  .consult-compare__card dl {
    display: grid;
    grid-template-columns: 5em minmax(0, 1fr);
    gap: 0 12px;
    margin: 0;
    font-size: .875rem;
    line-height: 1.8;
  }

  .consult-compare__card dt,
  .consult-compare__card dd {
    min-width: 0;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #d7e1e9;
  }

  .consult-compare__card dt:first-of-type,
  .consult-compare__card dd:first-of-type { border-top: 0; }

  .consult-compare__card dt {
    color: #536471;
    font-weight: 500;
  }

  .consult-compare__card dd {
    color: #344b5d;
  }

  .consult-compare__card dd strong,
  .consult-compare__card dd small { display: block; }

  .consult-compare__card dd strong { font-weight: 600; }

  .consult-compare__card.is-ys dd strong {
    color: #155493;
    font-size: .9375rem;
    font-weight: 700;
  }

  .consult-compare__card dd small {
    margin-top: 4px;
    color: #536471;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.7;
  }
}

@media (max-width: 767px) {
  .consult-compare__intro { margin-top: 20px; }
  .consult-compare__note { margin-top: 16px; }
}
