/* Keep the other-investigations price table readable on narrow screens. */
@media (max-width: 600px) {
  #other .table-scroll {
    overflow: visible;
    border: 0;
    margin: 18px 0;
  }

  #other .data-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
  }

  #other .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #other .data-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #other .data-table tbody tr {
    display: block;
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  #other .data-table tbody td {
    display: block;
    width: auto;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.75;
  }

  #other .data-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
  }

  #other .data-table tbody td:nth-child(1) {
    font-weight: 700;
  }

  #other .data-table tbody td:nth-child(1)::before {
    content: "調査項目";
  }

  #other .data-table tbody td:nth-child(2) {
    display: block;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  #other .data-table tbody td:nth-child(2)::before {
    content: "税込の基準額";
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
  }

  #other .data-table tbody td:nth-child(3)::before {
    content: "内容と条件";
  }

  #other .data-table tbody td:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
  }
}

/* Use the same card layout for the GPS service's fee table. */
@media (max-width: 600px) {
  #fees + .table-scroll {
    overflow: visible;
    border: 0;
    margin: 18px 0;
  }

  #fees + .table-scroll .data-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
  }

  #fees + .table-scroll .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #fees + .table-scroll .data-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #fees + .table-scroll .data-table tbody tr {
    display: block;
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  #fees + .table-scroll .data-table tbody td {
    display: block;
    width: auto;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.75;
  }

  #fees + .table-scroll .data-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
  }

  #fees + .table-scroll .data-table tbody td:nth-child(1) {
    font-weight: 700;
  }

  #fees + .table-scroll .data-table tbody td:nth-child(1)::before {
    content: "項目";
  }

  #fees + .table-scroll .data-table tbody td:nth-child(2) {
    display: block;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  #fees + .table-scroll .data-table tbody td:nth-child(2)::before {
    content: "税込料金";
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
  }

  #fees + .table-scroll .data-table tbody td:nth-child(3)::before {
    content: "内容・条件";
  }

  #fees + .table-scroll .data-table tbody td:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
  }
}
