.luvena-booking {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.lb-title {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .03em;
}

.lb-block {
  margin: 14px 0;
}

.lb-label {
  font-weight: 800;
  margin-bottom: 8px;
  color: rgba(245,245,255,0.92);
  letter-spacing: .04em;
}

.lb-note {
  font-size: 12px;
  opacity: 0.92;
  margin: 6px 0;
  line-height: 1.6;
}

.night-note, .night-warning, .night-done {
  color: #d5a3bf;
}

/* =========================
   Inputs / Select
========================= */
.lb-select, .lb-date, .lb-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,18,0.72);
  color: #f4f4ff;
  outline: none;
  font-size: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.lb-select:focus, .lb-date:focus, .lb-input:focus {
  border-color: rgba(213,163,191,0.55);
  box-shadow:
    0 0 0 3px rgba(213,163,191,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* ▼ select内（ブラウザ制約あり：効く範囲で） */
.luvena-booking .lb-select option{
  background: #0b0b12;
  color: #f2f2ff;
  padding: 10px 12px;
  line-height: 1.4;
}

.luvena-booking .lb-select optgroup{
  background: #0b0b12;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .10em;
}

/* optgroup色分け（label文字を含むものに適用） */
.luvena-booking .lb-select optgroup[label*="Luna"]{
  color: #a8d6ff; /* blue */
}
.luvena-booking .lb-select optgroup[label*="Venus"]{
  color: #ffc7da; /* pink */
}
.luvena-booking .lb-select optgroup[label*="Luvena"]{
  color: #d8c7ff; /* purple */
}

/* optgroup配下のoptionを少し右に寄せて階層を分かりやすく */
.luvena-booking .lb-select optgroup option{
  padding-left: 18px;
}

/* 選択中を見やすく（効かないブラウザもある） */
.luvena-booking .lb-select option:checked{
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* =========================
   Options
========================= */
.lb-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lb-opt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.lb-opt:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.26);
}

.lb-opt input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: rgba(213,163,191,0.95);
}

/* =========================
   Summary / Confirm / Result
========================= */
.lb-summary {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  line-height: 1.8;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.lb-confirm {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.lb-confirm-text {
  white-space: pre-line;
  opacity: 0.96;
  line-height: 1.7;
}

.lb-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  line-height: 1.8;
  box-shadow:
    0 14px 40px rgba(0,0,0,0.50),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* =========================
   Slots
========================= */
.lb-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 900px){
  .lb-slots { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 680px){
  .lb-slots { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px){
  .lb-slots { grid-template-columns: repeat(3, 1fr); }
}

.lb-placeholder {
  opacity: 0.82;
  padding: 10px;
}

.lb-slot {
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  transition: transform .10s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

.lb-slot.ok:hover {
  background: rgba(213,163,191,0.18);
  border-color: rgba(213,163,191,0.45);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transform: translateY(-1px);
}

.lb-slot.ng {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.lb-slot.night.ok {
  border-color: rgba(213,163,191,0.70);
}

/* =========================
   Submit Button
========================= */
.lb-submit {
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: none;
  background: rgba(213,163,191,0.88);
  color: #1b0f18;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .10s ease, filter .14s ease, box-shadow .14s ease;
  box-shadow:
    0 14px 40px rgba(0,0,0,0.35);
}

.lb-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.42);
}

.lb-submit:disabled {
  opacity: 0.50;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   Course Cards UI
========================= */

/* 裏selectは隠す（機能は使う） */
.lb-service-hidden{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 選択中表示 */
.lb-selected-service-note{
  margin-top: 10px;
  font-size: 12px;
  opacity: .92;
}
#lb-selected-service{
  font-weight: 900;
  opacity: 1;
}

/* グループ */
.lb-service-group{
  margin-top: 14px;
}

.lb-service-group-title{
  font-weight: 950;
  letter-spacing: .10em;
  font-size: 13px;
  margin: 8px 2px 10px;
  opacity: .98;
  text-transform: none;
}

/* カテゴリ色（DBの文字列に合わせて） */
.lb-service-group[data-cat*="Luna"] .lb-service-group-title{ color:#a8d6ff; }
.lb-service-group[data-cat*="Venus"] .lb-service-group-title{ color:#ffc7da; }
.lb-service-group[data-cat*="Luvena"] .lb-service-group-title{ color:#d8c7ff; }

/* カードグリッド */
.lb-service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px){
  .lb-service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .lb-service-grid{ grid-template-columns: 1fr; }
}

/* カード本体（見やすさ強化） */
.lb-service-card{
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 14px 14px;
  color: rgba(255,255,255,0.96);
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}

/* カテゴリごとに“薄い空気感” */
.lb-service-group[data-cat*="Luna"] .lb-service-card{
  background: linear-gradient(180deg, rgba(120,170,255,0.09), rgba(0,0,0,0.24));
}
.lb-service-group[data-cat*="Venus"] .lb-service-card{
  background: linear-gradient(180deg, rgba(255,170,200,0.10), rgba(0,0,0,0.24));
}
.lb-service-group[data-cat*="Luvena"] .lb-service-card{
  background: linear-gradient(180deg, rgba(200,180,255,0.12), rgba(0,0,0,0.24));
}

.lb-service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(213,163,191,0.42);
  box-shadow:
    0 16px 44px rgba(0,0,0,0.52),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* 選択中 */
.lb-service-card.is-active{
  border-color: rgba(213,163,191,0.85);
  background: rgba(213,163,191,0.12);
  box-shadow:
    0 0 0 2px rgba(213,163,191,0.55),
    0 0 26px rgba(213,163,191,0.24),
    0 18px 55px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.lb-service-name{
  font-weight: 950;
  letter-spacing: .02em;
  margin-bottom: 6px;
  line-height: 1.25;
}

.lb-service-sub{
  font-size: 12px;
  opacity: .88;
  line-height: 1.6;
  margin-bottom: 12px;
  min-height: 1.6em;
  color: rgba(245,245,255,0.86);
}

.lb-service-meta{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lb-badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}

.lb-price{
  font-weight: 950;
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.14);
}

@media (max-width: 520px){
  .lb-service-card{
    padding: 14px 14px;
  }
  .lb-service-grid{
    gap: 10px;
  }
}

/* =========================
   Slot Tabs (24hでも選びやすく)
   ★ここが重要：inline display:none を確実に上書き
========================= */
#lb-slot-tabs{
  display:flex !important;
  gap:8px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}

.lb-slot-tab{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.lb-slot-tab:hover{
  transform: translateY(-1px);
  border-color: rgba(213,163,191,0.38);
}

.lb-slot-tab.is-active{
  border-color: rgba(213,163,191,0.75);
  box-shadow: 0 0 0 3px rgba(213,163,191,0.12);
  background: rgba(213,163,191,0.12);
}

.lb-slot-tab.is-night{
  border-color: rgba(213,163,191,0.45);
}

#lb-showall{
  display: inline-flex !important;
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-weight: 800;
}
#lb-showall:hover{
  border-color: rgba(213,163,191,0.38);
}

/* 時間枠「選択中」 */
.lb-slot.is-active{
  border-color: rgba(255, 199, 218, 0.95);
  background: rgba(255, 199, 218, 0.22);
  box-shadow:
    0 0 0 3px rgba(255, 199, 218, 0.16),
    0 12px 26px rgba(0,0,0,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* =========================
   人気/おすすめバッジ
========================= */
.lb-badge-popular{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .05em;
  border: 1px solid rgba(213,163,191,0.65);
  background: rgba(213,163,191,0.18);
  color: #ffddea;
}

/* バッジ位置：カード右上 */
.lb-service-card .lb-badge-popular{
  position: absolute;
  top: 10px;
  right: 10px;
}

/* 上品強化 */
.lb-service-card .lb-badge-popular{
  border-color: rgba(255, 199, 218, 0.80);
  background: linear-gradient(180deg, rgba(255, 199, 218, 0.30), rgba(213,163,191,0.12));
  color: rgba(255, 245, 250, 0.95);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    0 0 18px rgba(255,199,218,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.lb-service-card .lb-badge-popular::before{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 60%);
  pointer-events:none;
}

.lb-service-card:active{
  transform: translateY(0px) scale(0.995);
}

.lb-service-card.is-active .lb-service-name{
  text-shadow: 0 0 14px rgba(213,163,191,0.20);
}

/* =========================
   Done / Back Home
========================= */
.lb-actions{
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.lb-back-home{
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: .04em;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.lb-back-home:hover{
  transform: translateY(-1px);
  border-color: rgba(213,163,191,0.45);
  background: rgba(213,163,191,0.10);
  box-shadow: 0 18px 55px rgba(0,0,0,0.42);
}

/* ===== Luvena Done Card ===== */
.lb-done-card{
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(10,12,18,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}

.lb-done-title{
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: .04em;
}

.lb-done-code{
  margin: 14px 0 18px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.lb-done-code-label{
  font-size: 12px;
  opacity: .85;
  margin-bottom: 6px;
}

.lb-done-code-value{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
}

.lb-done-code-note{
  font-size: 12px;
  opacity: .75;
  margin-top: 6px;
}

.lb-done-list{
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
}

.lb-done-row{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lb-done-row span:last-child{
  text-align: right;
  opacity: .95;
}

.lb-done-night span:last-child{
  font-weight: 700;
}

.lb-done-total{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 6px;
  font-size: 18px;
}

.lb-done-mail{
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}

/* ===== Slots Empty Card ===== */
.lb-empty-card{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.lb-empty-title{
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 15px;
  color: rgba(255,255,255,.92);
}

.lb-empty-desc{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.70);
}

/* =========================
   Date Dropdown (lb-date-select) - input風に見せる
========================= */
#lb-date-select{
  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,18,0.72);
  color: #f4f4ff;
  outline: none;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

#lb-date-select:focus{
  border-color: rgba(213,163,191,0.55);
  box-shadow:
    0 0 0 3px rgba(213,163,191,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

#lb-date-select option{
  background: #0b0b12;
  color: #f2f2ff;
}

#lb-date-select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.65) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.65) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,0.00), rgba(255,255,255,0.00));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

@media (max-width: 520px){
  #lb-date-select{
    padding-right: 42px;
  }
}

#lb-date[hidden]{
  display:none !important;
}

/* =========================
   jQuery UI Datepicker (Luvena style)
========================= */
.ui-datepicker{
  background: rgba(10,10,18,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999 !important;
}

.ui-datepicker .ui-datepicker-header{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px;
  color: rgba(245,245,255,0.92);
}

.ui-datepicker .ui-datepicker-title{
  font-weight: 900;
  letter-spacing: .06em;
}

.ui-datepicker table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.ui-datepicker th{
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 6px 0;
}

.ui-datepicker td a{
  display: block;
  text-align: center;
  padding: 9px 0;
  border-radius: 10px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border: 1px solid transparent;
}

.ui-datepicker td a:hover{
  background: rgba(213,163,191,0.16);
  border-color: rgba(213,163,191,0.45);
}

.ui-datepicker .ui-state-active{
  background: rgba(213,163,191,0.22) !important;
  border-color: rgba(213,163,191,0.75) !important;
}

/* ✅ 休業日（無効） */
.ui-datepicker td.ui-state-disabled span{
  opacity: .25;
  color: rgba(255,255,255,0.75);
}

/* ✅ 休業日：カレンダーに「休」表示（あなたのJSは 'lb-closed-day' を付けてるのでそれに合わせる） */
.ui-datepicker td.lb-closed-day{
  position: relative;
}
.ui-datepicker td.lb-closed-day a,
.ui-datepicker td.lb-closed-day span{
  opacity: .35;
}
.ui-datepicker td.lb-closed-day::after{
  content: "休";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  opacity: .9;
}

/* ===== 同意チェック（後で追加するとき用の見た目） ===== */
.lb-consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height:1.6;
}
.lb-consent-check{
  margin-top:4px;
}
/* =========================
   BOOKING UI FINAL PATCH
   - スマホで押しやすい
   - 横スクロール防止
   - 文字の詰まり解消
========================= */

/* 1) 予約フォーム外側：スマホの余白/角丸最適化 */
@media (max-width: 600px){
  .luvena-booking{
    padding: 14px;
    border-radius: 14px;
  }
  .lb-title{
    font-size: 20px;
    line-height: 1.4;
  }
  .lb-block{
    margin: 12px 0;
  }
}

/* 2) 入力：iPhoneでズームが入らないよう font-size 16px 以上に */
@media (max-width: 600px){
  .lb-select, .lb-date, .lb-input,
  #lb-date-select{
    font-size: 16px;
  }
}

/* 3) 時間ボタン：小画面で押しやすさを最優先（高さを確保） */
@media (max-width: 520px){
  .lb-slots{
    gap: 10px;
  }
  .lb-slot{
    padding: 12px 6px;
    border-radius: 14px;
    min-height: 44px; /* タップしやすい最低ライン */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* 4) サービスカード：文字が詰まる端末での読みやすさ */
@media (max-width: 520px){
  .lb-service-name{
    font-size: 15px;
  }
  .lb-service-sub{
    font-size: 12px;
    line-height: 1.7;
  }
  .lb-service-meta{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
}

/* 5) “横スクロール事故”の保険（極端な端末でも崩れない） */
.luvena-booking,
.lb-summary,
.lb-confirm,
.lb-result,
.lb-done-card{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lb-consent-text{
  color: rgba(255,255,255,0.92);
}
.lb-terms-link{
  color: rgba(255, 216, 122, 0.95);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lb-terms-link:hover{
  opacity: .92;
}
.lb-consent-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lb-consent-check{
  width: 18px;
  height: 18px;
  accent-color: rgba(213,163,191,0.95);
}

.lb-consent-label{
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.lb-terms-link{
  color: rgba(255, 216, 122, 0.95);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lb-terms-link:hover{ opacity: .92; }
