/* SPK Booking front-end（現行 Booking Package の見た目に合わせた配色） */
.spk-booking {
  max-width: 540px;
  width: 100%;
  margin: 60px auto;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  padding: 10px;
}
.spk-booking *, .spk-booking *:before, .spk-booking *:after { box-sizing: border-box; }
.spk-booking ul { list-style: none; margin: 0; padding: 0; }
.spk-booking h3 { margin: 0; font-size: 1.2em; font-weight: normal; color: #102f98; }
.spk-loading { padding: 40px 0; text-align: center; color: #969696; }

/* ---- カレンダー ---- */
.spk-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 4px; }
.spk-cal-title { font-size: 1.25em; font-weight: bold; color: #102f98; }
.spk-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #ccc; border-radius: 3px; font-size: 0.9em; line-height: 1; padding: 7px 10px; cursor: pointer; color: #333;
}
.spk-arrow:hover { background: #eaedf3; }
.spk-arrow-icon { font-size: 1.4em; line-height: 0.8; }
.spk-arrow.is-disabled { color: #bbb; border-color: #e5e5e5; cursor: default; background: #fafafa; }
.spk-guide { margin: 0 0 8px; text-align: center; font-size: 0.9em; color: #666; }
.spk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid #ddd; border-top: 1px solid #ddd; }
.spk-cal-cell { border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; text-align: center; }
.spk-cal-wday { padding: 6px 0; background: #f7f7f7; font-size: 0.9em; }
.spk-cal-wday.spk-w0 { color: #d33; }
.spk-cal-wday.spk-w6 { color: #2a6ad6; }
.spk-cal-day { height: 4.2em; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.spk-cal-day.spk-w0 .spk-day-num { color: #d33; }
.spk-cal-day.spk-w6 .spk-day-num { color: #2a6ad6; }
.spk-cal-day.is-ok { cursor: pointer; }
.spk-cal-day.is-ok:hover, .spk-cal-day.is-ok:focus { background: #eaedf3; outline: none; }
.spk-cal-day.is-ok .spk-day-symbol { color: #102f98; }
.spk-cal-day.is-closed, .spk-cal-empty { background: #eee; color: #969696; }
.spk-cal-day.is-closed .spk-day-num { color: #969696; }
.spk-cal-day.is-holiday { background: #ffd5d5; color: #969696; }
.spk-cal-day.is-holiday .spk-day-num { color: #969696; }
.spk-cal-day.is-full { background: #f5f5f5; color: #969696; }
.spk-cal-day.is-full .spk-day-num { color: #969696; }
.spk-day-num { line-height: 1.2; }
.spk-day-symbol { font-size: 1.15em; color: #969696; display: block; min-height: 1.2em; line-height: 1.2; }
.spk-cal-day.is-today .spk-day-num { font-weight: bold; text-decoration: underline; }
.spk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8em; color: #666; margin: 8px 0 0; justify-content: flex-end; }
.spk-legend-item:before { content: ''; display: inline-block; width: 0; }
.spk-legend-holiday:before, .spk-legend-closed:before { width: 12px; height: 12px; border: 1px solid #ddd; margin-right: 4px; vertical-align: -1px; }
.spk-legend-holiday:before { background: #ffd5d5; }
.spk-legend-closed:before { background: #eee; }

/* ---- 時間選択 ---- */
.spk-day-head { position: relative; text-align: center; padding: 8px 0 10px; border-bottom: 1px solid #ddd; }
.spk-day-head .spk-btn-back { position: absolute; left: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.spk-btn-small { padding: 7px 10px; font-size: 0.9em; background: #fff; }
.spk-day-title { font-size: 1.2em; color: #102f98; font-weight: bold; }
.spk-day-body { display: flex; align-items: stretch; }
.spk-day-left { width: 32%; border-right: 1px solid #ddd; display: flex; flex-direction: column; }
.spk-day-right { width: 68%; display: flex; flex-direction: column; }
.spk-col-title { padding: 8px 6px; font-size: 0.8em; color: #666; background: #f7f7f7; border-bottom: 1px solid #ddd; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spk-date-list { position: relative; max-height: 440px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.spk-date-item { display: flex; align-items: baseline; justify-content: center; gap: 2px; padding: 10px 4px; border-bottom: 1px solid #ddd; color: #969696; background: #f5f5f5; white-space: nowrap; }
.spk-date-day { font-size: 1.05em; min-width: 1.6em; text-align: right; }
.spk-date-wday { font-size: 0.85em; }
.spk-date-symbol { font-size: 0.9em; min-width: 1.2em; text-align: center; }
.spk-date-item.is-ok { color: #333; background: #fff; cursor: pointer; }
.spk-date-item.is-ok .spk-date-symbol { color: #102f98; }
.spk-date-item.is-ok:hover, .spk-date-item.is-ok:focus { background: #eaedf3; outline: none; }
.spk-date-item.is-holiday { background: #ffd5d5; }
.spk-date-item.is-past, .spk-date-item.is-past .spk-date-symbol { color: #d33; }
.spk-date-item.is-current { background: #102f98; color: #fff; font-weight: bold; cursor: default; }
.spk-date-item.is-current .spk-date-symbol { color: #fff; }
.spk-slot-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #ddd; }
.spk-slot-time { font-size: 1.1em; }
.spk-slot-item.is-ok { cursor: pointer; }
.spk-slot-item.is-ok:hover, .spk-slot-item.is-ok:focus { background: #eaedf3; outline: none; }
.spk-slot-item.is-ok .spk-slot-time:before { content: '›'; color: #102f98; margin-right: 8px; }
.spk-slot-item.is-full { color: #aaa; background: #f5f5f5; }
.spk-slot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85em; color: #666; }
.spk-slot-symbol { font-size: 1.2em; color: #102f98; }
.spk-slot-item.is-full .spk-slot-symbol { color: #aaa; }
.spk-slot-none { padding: 20px; color: #969696; }

/* ---- 入力フォーム ---- */
.spk-form-title { text-align: center; padding: 10px 0; }
.spk-form-lead { margin: 0 0 10px; font-size: 0.95em; }
.spk-selected-date { text-align: center; padding: 10px 0; border-top: 1px solid #969696; border-bottom: 1px solid #969696; font-size: 1.2em; }
.spk-selected-label { margin-right: 1em; color: #666; font-size: 0.85em; }
.spk-row { padding: 10px 5px; border-bottom: 1px solid #ddd; }
.spk-row.is-error { background: #ffd5d5; }
.spk-name { display: block; font-weight: normal; padding-bottom: 5px; }
.spk-name.is-required:after { content: ' *'; color: #f00; }
.spk-value { display: block; }
.spk-input,
.spk-booking input[type="text"], .spk-booking input[type="email"], .spk-booking input[type="tel"],
.spk-booking select, .spk-booking textarea {
  width: 100%; max-width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 16px; background: #fff; color: #333;
}
.spk-booking select { width: auto; min-width: 6em; }
.spk-guests-total { margin-left: 1em; }
.spk-radios label.spk-radio { display: inline-block; margin: 4px 16px 4px 0; cursor: pointer; }
.spk-booking input[type="radio"], .spk-booking input[type="checkbox"] { width: auto; margin-right: 4px; vertical-align: middle; }
.spk-check { cursor: pointer; }
.spk-terms-link { margin: 6px 0 0; font-size: 0.9em; }
.spk-terms-link a { color: #102f98; text-decoration: underline; }
.spk-terms-desc { margin: 6px 0 0; font-size: 0.85em; color: #666; }
.spk-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.spk-errors { background: #ffd5d5; color: #c00; padding: 10px 14px; margin: 10px 0; border-radius: 3px; }
.spk-errors ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.spk-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px 0 6px; }
.spk-btn {
  border: 1px solid #969696; border-radius: 3px; background: #e6e6e6; color: #000; cursor: pointer;
  font-size: 1em; line-height: 1; padding: 10px 18px; margin: 0; font-weight: normal;
}
.spk-btn:hover { background: #d9d9d9; }
.spk-btn:disabled { opacity: 0.6; cursor: default; }
.spk-btn-submit { background: #102f98; color: #fff; border-color: #102f98; }
.spk-btn-submit:hover { background: #0c247a; }

/* ---- 完了 ---- */
.spk-done-title { text-align: center; padding: 10px 0; color: #102f98; }
.spk-done-lead { margin: 0 0 10px; }
.spk-done-list .spk-row { display: flex; }
.spk-done-list .spk-name { width: 35%; padding: 0; color: #666; }
.spk-done-list .spk-value { width: 65%; word-break: break-word; }
.spk-error-msg { color: #c00; text-align: center; padding: 20px 0; }

@media screen and (max-width: 767px) {
  .spk-booking { margin: 30px auto 15px; }
}
@media screen and (max-width: 480px) {
  .spk-booking { padding: 6px; }
  .spk-cal-day { height: 3.6em; }
  .spk-day-symbol { font-size: 1em; }
  .spk-arrow-label { display: none; }
  .spk-arrow { padding: 6px 10px; }
  .spk-legend { justify-content: flex-start; }
  .spk-day-head { padding-top: 44px; }
  .spk-day-head .spk-btn-back { top: 4px; transform: none; }
  .spk-day-left { width: 38%; }
  .spk-day-right { width: 62%; }
  .spk-date-item { font-size: 0.9em; padding: 10px 2px; }
  .spk-date-list { max-height: 400px; }
  .spk-slot-item { padding: 11px 8px; }
  .spk-slot-label { display: none; }
  .spk-done-list .spk-row { display: block; }
  .spk-done-list .spk-name, .spk-done-list .spk-value { width: 100%; }
}
