/* フロント予約フォーム：現行項目のまま、現代風・レスポンシブ */
:root {
  --navy: #133879;
  --navy-dark: #0e2a5c;
  --gold: #dba617;
  --text: #1d2327;
  --muted: #5c6370;
  --line: #e4e7ec;
  --bg: #f4f5f7;
  --card: #fff;
  --danger: #c1121f;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(19, 56, 121, 0.08);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body.front-body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
.mock-front-bar {
  background: var(--gold);
  color: var(--text);
  font-size: 12px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mock-front-bar a { color: var(--navy); font-weight: 600; }
#wrap { min-height: 100vh; }
.pagetitle {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 18px 20px;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.container {
  margin: 0 auto;
  padding: 16px 16px 48px;
  max-width: 920px;
  width: 100%;
}
.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 14px;
}
.lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 8px;
  margin-bottom: 20px;
}
h2 {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 3px solid var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
h2 .sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 0;
}
h3.subhead {
  margin: 4px 0 16px;
  padding: 12px 0 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
#addressee-block { display: none; }
#addressee-block.is-visible { display: block; }
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
}
.required::after {
  content: "必須";
  display: inline-block;
  margin-left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.field-body { min-width: 0; }
.field-checkbox .field-body label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.field-checkbox input[type=checkbox] { margin: 0; }
.help, .field-body .help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.help.warn {
  color: #c00;
  font-weight: 700;
}
.addr-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.addr-line select {
  width: auto;
  min-width: 10rem;
  flex: 0 0 auto;
}
.addr-line input {
  flex: 1 1 12rem;
}
.tips {
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px;
}
.payment-note-invoice {
  color: var(--danger);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}
input[type=text],
input[type=tel],
input[type=email],
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #c5cad3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
select { min-height: 44px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(19, 56, 121, 0.25);
  border-color: var(--navy);
}
.name-pair, .zip-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tel-pair {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  width: max-content;
  max-width: 100%;
}
.name-pair label, .zip-pair .sep, .tel-pair .sep {
  font-size: 13px;
  color: var(--muted);
}
.name-pair input { flex: 1 1 120px; }
.tel-pair input {
  width: calc(4.2ch + 1.15em);
  min-width: calc(4.2ch + 1.15em);
  max-width: calc(4.2ch + 1.15em);
  flex: 0 0 auto;
  padding-left: 8px;
  padding-right: 8px;
}
.zip-pair input:first-of-type { width: 80px; flex: 0 0 80px; }
.zip-pair input:last-of-type { width: 110px; flex: 0 0 110px; }
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.choice-row label { display: flex; align-items: center; gap: 6px; }
.cal-note {
  margin-top: 8px;
  background: #fff8e1;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  padding: 10px 12px;
  display: none;
  font-size: 14px;
}
.product-wrap {
  max-height: 22rem;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
}
.items_content {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.items th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 8px 8px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}
.items_content td {
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  vertical-align: middle;
  background: #fff;
}
.items_content tbody tr:nth-child(even) td { background: #fafbfd; }
.items2, .items3, .items5 { text-align: center; }
.items4 { text-align: right; white-space: nowrap; }
.product-type[data-type="真空"],
.product-type[data-type="パック"] {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
}
.product-type[data-type="真空"] { background: #174477; }
.product-type[data-type="パック"] { background: #147a57; }
.confirm-table thead.items th {
  width: auto;
  background: #333;
  color: #fff;
  text-align: center;
  vertical-align: middle;
}
.product-confirm-table { margin-bottom: 0; }
.assortment-confirm-table { margin-top: 0; }
.order-summary-table { margin-top: 16px; }
@media (min-width: 760px) {
  .product-items-table th:nth-child(2),
  .product-items-table td:nth-child(2),
  .product-confirm-table th:nth-child(2),
  .product-confirm-table td:nth-child(2) {
    text-align: center;
  }
  .product-items-table th:nth-child(3),
  .product-items-table td:nth-child(3),
  .product-items-table th:nth-child(4),
  .product-items-table td:nth-child(4),
  .product-confirm-table th:nth-child(3),
  .product-confirm-table td:nth-child(3),
  .product-confirm-table th:nth-child(4),
  .product-confirm-table td:nth-child(4) {
    text-align: right;
  }
  .product-confirm-table th:nth-child(5),
  .product-confirm-table td:nth-child(5) {
    text-align: center;
  }
  .product-confirm-table th:nth-child(6),
  .product-confirm-table td:nth-child(6) {
    text-align: right;
  }
  .assortment-confirm-table th:nth-child(1) { width: 24%; }
  .assortment-confirm-table th:nth-child(2) { width: 31%; }
  .assortment-confirm-table th:nth-child(3) { width: 15%; }
  .assortment-confirm-table th:nth-child(4) { width: 11%; }
  .assortment-confirm-table th:nth-child(5) { width: 19%; }
  .assortment-confirm-table td:nth-child(2) { text-align: left; }
  .assortment-confirm-table td:nth-child(3),
  .assortment-confirm-table td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
  }
  .assortment-confirm-table td:nth-child(4) { text-align: center; }
}
.items_content select { min-height: 40px; width: auto; min-width: 72px; }
.assortment-notice {
  margin: 0 8px 16px;
  color: var(--danger);
  font-weight: 700;
  line-height: 1.6;
}
.assort-contents {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
@media (min-width: 760px) {
  .assortment-items-table th:nth-child(1) { width: 28%; }
  .assortment-items-table th:nth-child(2) { width: 34%; }
  .assortment-items-table th:nth-child(3) { width: 15%; }
  .assortment-items-table th:nth-child(4) { width: 15%; }
  .assortment-items-table th:nth-child(5) { width: 8%; }
  .assortment-items-table td:nth-child(2) { text-align: left; }
  .assortment-items-table td:nth-child(3) {
    text-align: center;
    white-space: nowrap;
  }
  .assortment-items-table td:nth-child(4) { text-align: right; }
}
.item-delay-note { color: var(--danger); font-weight: 700; font-size: 13px; }
.stock-hint { color: var(--danger); font-size: 12px; margin-left: 6px; }
.stock-status {
  display: inline-block;
  margin-left: 8px;
  color: var(--danger);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.stock-status[hidden] { display: none !important; }
.button.btn_formend {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.button.btn_formend:hover { background: var(--navy-dark); }
#assort-block { display: none; }
.sp_p { font-size: 12px; color: var(--muted); }
.bag-guide {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 12px;
}

@media (min-width: 768px) {
  .container { padding: 24px 24px 64px; }
  .form-card { padding: 24px 24px 8px; }
  .field {
    grid-template-columns: 11.5rem 1fr;
    align-items: start;
    gap: 8px 16px;
  }
  .field-label { padding-top: 10px; }
  .field-checkbox { align-items: center; }
  .field-checkbox .field-label { padding-top: 0; }
  input[type=text], input[type=email], select {
    max-width: 420px;
  }
  textarea { max-width: 100%; }
  .zip-pair input, .name-pair input { width: auto; }
}

@media (max-width: 759px) {
  .items_content thead { display: none; }
  .items_content, .items_content tbody, .items_content tr, .items_content td {
    display: block;
    width: 100%;
  }
  .items_content tbody tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
  }
  .items_content td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right !important;
    border-bottom: 1px solid var(--line);
  }
  .items_content td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    flex: 0 0 38%;
  }
  .items_content .cell-val {
    margin-left: auto;
    white-space: nowrap;
  }
  .items_content td:last-child { border-bottom: 0; }
  .item-delay-note { text-align: left !important; display: block; }
  .items_content td.assort-contents {
    align-items: flex-start;
    text-align: left !important;
  }
  .note-empty { display: none !important; }
}

#ui-datepicker-div {
  z-index: 10000 !important;
}
.ui-datepicker td.closed-day a,
.ui-datepicker td.closed-day span {
  background: #fde8e4 !important;
  color: #c1121f !important;
  border-color: #f0b8ae !important;
}
.ui-datepicker select {
  width: auto;
  min-height: 28px;
  font-size: 13px;
}
