/* ============================== */
/* 予約フォーム本体               */
/* ============================== */
.hbb-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #ddd;
  background: #fff;
}

.hbb-row {
  margin: 10px 0;
}

.hbb-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.hbb-row input,
.hbb-row select {
  width: 100%;
  padding: 8px;
}

.hbb-btn {
  width: 100%;
  padding: 10px;
  background: #b22222;
  color: #fff;
  border: none;
  font-size: 16px;
}

#hbb_msg {
  margin-top: 10px;
  font-weight: bold;
}

/* ============================== */
/* 2タップ式 新・時間グリッド     */
/* ============================== */

/* PCもスマホも常に4列 */
.hbb-time-grid2 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;  /* ← 4列に固定 */
  gap: 8px !important;
  width: 100% !important;
  margin: 10px 0 !important;
}

/* 時刻マス */
.hbb-time-slot2 {
  display: block !important;
  width: 100% !important;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

/* 選択開始 */
.hbb-time-slot2.selected {
  background: #4a90e2;
  border-color: #357abd;
  color: #fff;
}

/* 選択範囲 */
.hbb-time-slot2.range {
  background: #aed1f5;
  color: #003366;
}

/* ★ スマホでも4列のまま */
@media (max-width: 600px) {
  .hbb-time-grid2 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ============================== */
/* 予約済みブロック表示           */
/* ============================== */

.hbb-time-slot2.booked {
  background: #ffd6d6 !important;
  border-color: #cc7777 !important;
  color: #a94442 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* ================================ */
/* （以下は旧UI：念のため残す）   */
/* ================================ */

.hbb-status-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 10px;
}

.hbb-day-block {
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  touch-action: none;
}

/* 旧UI：time-grid */
.hbb-time-grid.hbb-drag-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 4px;
  margin-top: 6px;
}

.hbb-slot {
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.hbb-slot.hbb-ok {
  background: #f4fff4;
  border-color: #6bc96b;
  color: #1f5b1f;
}

.hbb-slot.hbb-ng {
  background: #ffeaea;
  border-color: #d88;
  color: #a33;
  opacity: 0.55;
}

.hbb-slot.selected {
  background: #bff3bf !important;
  border-color: #2e9e4e !important;
  color: #0e3c0e !important;
}

/* 旧 time-grid */
.time-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 180px;
  margin: 10px 0;
}

.time-slot {
  padding: 10px;
  margin: 3px 0;
  text-align: center;
  background: #f2f2f2;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.time-slot.selected {
  background: #4da3ff;
  color: white;
}

.time-slot.range {
  background: #9cccff;
}
/* 終了時刻 → 開始として選べる特別枠 */
.hbb-time-slot2.start-only {
  background: #fff4c2 !important;
  border-color: #cfa800 !important;
  color: #6a5500 !important;
}
