/* 2026-11-05: mobile-first booking/price cards. Override legacy desktop tables for narrow screens. */
@media screen and (max-width: 900px) {
  #individual-booking .kqa-area-choices,
  #individual-booking .kqa-area-card,
  #individual-booking .kqa-area-table-scroll,
  .panel .kqa-area-choices,
  .panel .kqa-area-card,
  .panel .kqa-area-table-scroll {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #individual-booking .kqa-area-card,
  .panel .kqa-area-card {
    overflow: hidden;
    padding: 15px 13px !important;
    border-radius: 15px;
  }
  #individual-booking .kqa-area-heading,
  #individual-booking .kqa-area-heading strong,
  .panel .kqa-area-heading,
  .panel .kqa-area-heading strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: clamp(15px, 3.6vw, 18px);
    line-height: 1.6;
  }
  #individual-booking .kqa-area-note,
  .panel .kqa-area-note {
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  #individual-booking .kqa-area-table-scroll,
  .panel .kqa-area-table-scroll {
    width: 100% !important;
    overflow: visible !important;
  }
  #individual-booking table.kqa-area-table,
  .panel table.kqa-area-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    table-layout: auto !important;
    font-variant-numeric: tabular-nums;
  }
  #individual-booking table.kqa-area-table thead,
  .panel table.kqa-area-table thead {
    display: none !important;
  }
  #individual-booking table.kqa-area-table tbody,
  .panel table.kqa-area-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    width: 100% !important;
    min-width: 0 !important;
  }
  #individual-booking table.kqa-area-table tbody tr,
  .panel table.kqa-area-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 10px;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, .91);
    border: 1px solid #e9d7d0;
    border-radius: 11px;
    padding: 12px;
  }
  #individual-booking table.kqa-area-table td,
  .panel table.kqa-area-table td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    line-height: 1.5;
    font-size: 13px;
  }
  #individual-booking table.kqa-area-table td:first-child,
  .panel table.kqa-area-table td:first-child {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-weight: 700;
    color: #8e5972;
    font-size: 14px;
  }
  #individual-booking table.kqa-area-table td:nth-child(2),
  .panel table.kqa-area-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right !important;
    align-self: center;
    font-size: 11px;
    color: #82716b;
  }
  #individual-booking table.kqa-area-table td:nth-child(3),
  #individual-booking table.kqa-area-table td:nth-child(4),
  .panel table.kqa-area-table td:nth-child(3),
  .panel table.kqa-area-table td:nth-child(4) {
    display: flex !important;
    grid-row: 2;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 8px 10px !important;
    border: 1px solid #efdcd8 !important;
    background: #fff6f5;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #825665;
    white-space: nowrap !important;
  }
  #individual-booking table.kqa-area-table td:nth-child(3),
  .panel table.kqa-area-table td:nth-child(3) { grid-column: 1; }
  #individual-booking table.kqa-area-table td:nth-child(4),
  .panel table.kqa-area-table td:nth-child(4) {
    grid-column: 2;
    background: #fffaf0;
    border-color: #eee0bf !important;
  }
  #individual-booking table.kqa-area-table td:nth-child(3)::before,
  .panel table.kqa-area-table td:nth-child(3)::before {
    content: "平日";
    font-size: 10px;
    font-weight: 500;
    color: #9c7c8d;
  }
  #individual-booking table.kqa-area-table td:nth-child(4)::before,
  .panel table.kqa-area-table td:nth-child(4)::before {
    content: "土日祝";
    font-size: 10px;
    font-weight: 500;
    color: #a2875c;
  }
  #individual-booking .kqa-area-discount,
  .panel .kqa-area-discount { max-width: 100%; overflow-wrap: anywhere; }
}
@media screen and (max-width: 390px) {
  #individual-booking .kqa-area-card, .panel .kqa-area-card {padding: 12px 10px !important}
  #individual-booking table.kqa-area-table tbody tr,
  .panel table.kqa-area-table tbody tr { padding: 9px; gap: 6px 8px }
  #individual-booking table.kqa-area-table td:nth-child(3),
  #individual-booking table.kqa-area-table td:nth-child(4),
  .panel table.kqa-area-table td:nth-child(3),
  .panel table.kqa-area-table td:nth-child(4) {font-size: 12px;padding: 8px 7px !important}
}
