/*!
 * ちゅら まとめて予約 [chura_bulk_booking]
 * すべて .cbb の中だけに効くように書いています（テーマの CSS と干渉させないため）。
 * テーマ側の「.post_content h2 {…}」などに負けないよう、リセットは .cbb.cbb で詳細度を上げています。
 */

/* ============================================
   色・サイズ
   ============================================ */
.cbb {
  /* --cbb-accent は枠線・点・フォーカスの色。白い文字を載せる背景には、コントラストが足りる --cbb-accent-fill（白文字 5.8:1）を使う */
  --cbb-accent: #1d7bff;
  --cbb-accent-ink: #0b5fd6;
  --cbb-accent-fill: #0b5fd6;
  --cbb-accent-fill-hover: #0a56c2;
  --cbb-accent-soft: #eaf2ff;
  --cbb-accent-line: #bcd6ff;
  --cbb-ink: #14161d;
  --cbb-sub: #4a5168;
  --cbb-muted: #5f6782;
  --cbb-faint: #a9b0c2;
  --cbb-line: #e3e6ee;
  --cbb-line-strong: #cbd1dd;
  --cbb-bg: #ffffff;
  --cbb-bg-soft: #f6f8fb;
  --cbb-danger: #c8320e;
  --cbb-danger-soft: #fff3ef;
  --cbb-danger-line: #f5c6b8;
  --cbb-ok: #12864a;
  --cbb-sun: #c8320e;
  --cbb-sat: #0b5fd6;
  --cbb-radius: 12px;
  --cbb-radius-sm: 8px;
  --cbb-shadow: 0 1px 2px rgba(20, 22, 29, .05), 0 6px 18px rgba(20, 22, 29, .06);
  --cbb-focus: 0 0 0 3px rgba(29, 123, 255, .35);
}

/* 本体（テーマの「.post_content div {…}」などに負けないよう .cbb.cbb） */
.cbb.cbb {
  position: relative;
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  color: var(--cbb-ink);
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   リセット（テーマの装飾を打ち消す）
   ============================================ */
.cbb.cbb *,
.cbb.cbb *::before,
.cbb.cbb *::after {
  box-sizing: border-box;
}

.cbb.cbb :where(div, h2, h3, h4, p, ul, ol, li, dl, dt, dd, table, thead, tbody, tr, th, td, fieldset, legend, label, figure, section, header, form) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-transform: none;
  text-shadow: none;
  list-style: none;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
}

.cbb.cbb :where(h2, h3, h4, p, li, dt, dd, th, td, label, legend)::before,
.cbb.cbb :where(h2, h3, h4, p, li, dt, dd, th, td, label, legend)::after {
  content: none;
  display: none;
}

.cbb.cbb :where(table) {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.cbb.cbb :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cbb.cbb :where(button, input, textarea, select) {
  margin: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: inherit;
  color: inherit;
  text-transform: none;
  text-shadow: none;
  text-indent: 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-shadow: none;
  float: none;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.cbb.cbb :where(button) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cbb.cbb :where(a) {
  color: var(--cbb-accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
  border: 0;
}

.cbb.cbb [hidden] {
  display: none !important;
}

.cbb.cbb :focus {
  outline: none;
}

.cbb.cbb :focus-visible {
  outline: 3px solid rgba(29, 123, 255, .55);
  outline-offset: 2px;
}

/* 見出し・月の表示へのフォーカス移動時は枠を出さない（スクリーンリーダー向け） */
.cbb.cbb .cbb-step__title:focus,
.cbb.cbb .cbb-step__title:focus-visible,
.cbb.cbb .cbb-cal__month:focus,
.cbb.cbb .cbb-cal__month:focus-visible {
  outline: none;
}

/* 画面には出さず読み上げだけ */
.cbb.cbb .cbb-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ハニーポット */
.cbb.cbb .cbb-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* JS 読み込み前は文言ブロック・同意文の元データを隠す */
.cbb.cbb .cbb-strings,
.cbb.cbb .cbb-consent-src {
  display: none !important;
}

/* ============================================
   ボタン
   ============================================ */
.cbb.cbb .cbb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.cbb.cbb .cbb-btn--primary {
  background: var(--cbb-accent-fill);
  border-color: var(--cbb-accent-fill);
  color: #fff;
  box-shadow: 0 2px 6px rgba(11, 95, 214, .28);
}

.cbb.cbb .cbb-btn--primary:hover {
  background: var(--cbb-accent-fill-hover);
  border-color: var(--cbb-accent-fill-hover);
  color: #fff;
}

.cbb.cbb .cbb-btn--ghost {
  background: var(--cbb-bg);
  border-color: var(--cbb-line-strong);
  color: var(--cbb-sub);
}

.cbb.cbb .cbb-btn--ghost:hover {
  border-color: var(--cbb-muted);
  color: var(--cbb-ink);
}

.cbb.cbb .cbb-btn--small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 14px;
  background: var(--cbb-bg);
  border-color: var(--cbb-accent);
  color: var(--cbb-accent-ink);
}

.cbb.cbb .cbb-btn[aria-disabled="true"] {
  background: #e9ecf2;
  border-color: #e9ecf2;
  color: #8a91a6;
  box-shadow: none;
  cursor: not-allowed;
}

.cbb.cbb .cbb-btn.is-busy {
  background: var(--cbb-accent-fill);
  border-color: var(--cbb-accent-fill);
  color: #fff;
  opacity: .85;
  cursor: progress;
}

.cbb.cbb .cbb-spinner {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cbb-spin .75s linear infinite;
}

@keyframes cbb-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   全体・進捗
   ============================================ */
.cbb.cbb .cbb-shell {
  display: block;
}

.cbb.cbb .cbb-progress {
  display: flex;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: none;
}

.cbb.cbb .cbb-progress__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--cbb-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* 丸と丸をつなぐ線 */
.cbb.cbb .cbb-progress__item + .cbb-progress__item::before {
  content: "";
  display: block;
  position: absolute;
  top: 14px;
  right: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  border-radius: 2px;
  background: var(--cbb-line);
}

.cbb.cbb .cbb-progress__item.is-done + .cbb-progress__item::before,
.cbb.cbb .cbb-progress__item.is-done + .cbb-progress__item.is-current::before {
  background: var(--cbb-accent);
}

.cbb.cbb .cbb-progress__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cbb-line-strong);
  border-radius: 50%;
  background: var(--cbb-bg);
  color: var(--cbb-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.cbb.cbb .cbb-progress__item.is-current {
  color: var(--cbb-ink);
  font-weight: 700;
}

.cbb.cbb .cbb-progress__item.is-current .cbb-progress__num {
  border-color: var(--cbb-accent-fill);
  background: var(--cbb-accent-fill);
  color: #fff;
  box-shadow: 0 0 0 4px var(--cbb-accent-soft);
}

.cbb.cbb .cbb-progress__item.is-done .cbb-progress__num {
  border-color: var(--cbb-accent);
  background: var(--cbb-accent-soft);
  color: var(--cbb-accent-ink);
}

.cbb.cbb .cbb-progress__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   お知らせ・エラー
   ============================================ */
.cbb.cbb .cbb-live:empty {
  display: block;
  height: 0;
}

.cbb.cbb .cbb-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--cbb-danger-line);
  border-radius: 10px;
  background: var(--cbb-danger-soft);
  color: #7e1f07;
  font-size: 14px;
  line-height: 1.65;
}

.cbb.cbb .cbb-alert--info {
  border-color: var(--cbb-accent-line);
  background: var(--cbb-accent-soft);
  color: #0a3f8f;
}

.cbb.cbb .cbb-alert__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cbb-danger);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}

.cbb.cbb .cbb-alert--info .cbb-alert__icon {
  background: var(--cbb-accent-fill);
  font-family: Georgia, serif;
}

.cbb.cbb .cbb-alert__text {
  flex: 1 1 auto;
  min-width: 0;
}

.cbb.cbb .cbb-alert a,
.cbb.cbb .cbb-tel {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================
   手順の見出し
   ============================================ */
.cbb.cbb .cbb-step {
  display: block;
}

.cbb.cbb .cbb-step__head {
  margin: 0 0 16px;
}

.cbb.cbb .cbb-step__title {
  margin: 0;
  color: var(--cbb-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
}

.cbb.cbb .cbb-step__lead {
  margin: 6px 0 0;
  color: var(--cbb-sub);
  font-size: 14px;
  line-height: 1.75;
}

.cbb.cbb .cbb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 0;
}

.cbb.cbb .cbb-nav .cbb-btn--primary {
  flex: 1 1 auto;
}

.cbb.cbb .cbb-nav .cbb-btn--ghost {
  flex: 0 0 auto;
}

.cbb.cbb .cbb-nav--center {
  justify-content: center;
}

/* ============================================
   1. プランと人数
   ============================================ */
.cbb.cbb .cbb-plans {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.cbb.cbb .cbb-plan {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
  padding: 14px;
  border: 1.5px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg);
  box-shadow: var(--cbb-shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cbb.cbb .cbb-plan.is-selected {
  border-color: var(--cbb-accent);
  box-shadow: 0 0 0 3px var(--cbb-accent-soft), var(--cbb-shadow);
}

.cbb.cbb .cbb-plan__media {
  grid-column: 1;
  grid-row: 1;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-bg-soft);
}

.cbb.cbb .cbb-plan__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbb.cbb .cbb-plan__body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.cbb.cbb .cbb-plan--noimg .cbb-plan__body {
  grid-column: 1 / -1;
}

.cbb.cbb .cbb-plan__name {
  margin: 0;
  color: var(--cbb-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.cbb.cbb .cbb-plan__price {
  margin: 4px 0 0;
  color: var(--cbb-ink);
  font-size: 15px;
  line-height: 1.4;
}

.cbb.cbb .cbb-plan__price-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cbb.cbb .cbb-plan__unit {
  margin-left: 4px;
  color: var(--cbb-muted);
  font-size: 13px;
}

.cbb.cbb .cbb-plan__desc {
  margin: 6px 0 0;
  color: var(--cbb-sub);
  font-size: 13px;
  line-height: 1.7;
}

.cbb.cbb .cbb-plan__note {
  margin: 6px 0 0;
  color: var(--cbb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.cbb.cbb .cbb-plan__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--cbb-line);
}

.cbb.cbb .cbb-plan__meta {
  min-width: 0;
}

.cbb.cbb .cbb-plan__sub {
  margin: 0;
  color: var(--cbb-accent-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cbb.cbb .cbb-plan__sub:empty::before {
  content: "\00a0";
  display: inline;
}

.cbb.cbb .cbb-plan__hint {
  margin: 2px 0 0;
  color: var(--cbb-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 人数の増減 */
.cbb.cbb .cbb-stepper {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.cbb.cbb .cbb-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--cbb-accent);
  border-radius: 50%;
  background: var(--cbb-bg);
  color: var(--cbb-accent-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.cbb.cbb .cbb-stepper__btn:hover {
  background: var(--cbb-accent-soft);
}

.cbb.cbb .cbb-stepper__btn:active {
  background: var(--cbb-accent-fill);
  color: #fff;
}

.cbb.cbb .cbb-stepper__btn[aria-disabled="true"] {
  border-color: var(--cbb-line);
  background: var(--cbb-bg-soft);
  color: var(--cbb-faint);
  cursor: not-allowed;
}

.cbb.cbb .cbb-stepper__value {
  min-width: 3.2em;
  color: var(--cbb-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 画面下に固定される合計バー */
.cbb.cbb .cbb-bar {
  position: -webkit-sticky;
  position: sticky;
  /* 画面下に固定表示されたテーマのバー（TCD テーマのスマホ用フッターバーなど）の高さは JS が --cbb-bar-auto に入れる。
     自動で見つからないバーと重なる場合は .cbb { --cbb-bar-offset: 56px; } のように指定（大きい方を使う） */
  bottom: var(--cbb-bar-offset, 0px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: 16px 0 0;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius) var(--cbb-radius) 0 0;
  /* 下のカードの文字が透けないよう不透明にする */
  background: #fff;
  box-shadow: 0 -6px 20px rgba(20, 22, 29, .08);
}

.cbb.cbb .cbb-bar__msgs {
  flex: 1 1 100%;
  min-width: 0;
}

.cbb.cbb .cbb-bar__info {
  flex: 1 1 0;
  min-width: 0;
}

.cbb.cbb .cbb-bar__summary {
  margin: 0;
  color: var(--cbb-sub);
  font-size: 12.5px;
  line-height: 1.5;
}

.cbb.cbb .cbb-bar__summary.is-empty {
  color: var(--cbb-muted);
}

.cbb.cbb .cbb-bar__totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 2px 0 0;
  line-height: 1.3;
}

.cbb.cbb .cbb-bar__people {
  color: var(--cbb-ink);
  font-size: 14px;
  font-weight: 700;
}

.cbb.cbb .cbb-bar__price {
  color: var(--cbb-ink);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cbb.cbb .cbb-bar__next {
  flex: none;
  padding-left: 18px;
  padding-right: 18px;
}

.cbb.cbb .cbb-bar__cap,
.cbb.cbb .cbb-bar__msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: var(--cbb-radius-sm);
  background: #fff8e6;
  color: #6b4a00;
  font-size: 12.5px;
  line-height: 1.6;
}

.cbb.cbb .cbb-bar__msg {
  background: var(--cbb-danger-soft);
  color: #7e1f07;
}

/* ============================================
   2. 日時
   ============================================ */
.cbb.cbb .cbb-recap {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-bg-soft);
  color: var(--cbb-sub);
  font-size: 14px;
  line-height: 1.6;
}

.cbb.cbb .cbb-cal {
  padding: 14px 12px 12px;
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg);
  box-shadow: var(--cbb-shadow);
}

.cbb.cbb .cbb-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.cbb.cbb .cbb-cal__month {
  margin: 0;
  color: var(--cbb-ink);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cbb.cbb .cbb-cal__nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cbb-line);
  border-radius: 50%;
  background: var(--cbb-bg);
  color: var(--cbb-ink);
}

.cbb.cbb .cbb-cal__nav:hover {
  border-color: var(--cbb-accent);
  color: var(--cbb-accent-ink);
}

.cbb.cbb .cbb-cal__nav span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.cbb.cbb .cbb-cal__nav--prev span {
  transform: translateX(2px) rotate(-135deg);
}

.cbb.cbb .cbb-cal__nav--next span {
  transform: translateX(-2px) rotate(45deg);
}

.cbb.cbb .cbb-cal__nav[aria-disabled="true"] {
  border-color: var(--cbb-line);
  color: var(--cbb-faint);
  background: var(--cbb-bg-soft);
  cursor: not-allowed;
}

.cbb.cbb .cbb-cal__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.cbb.cbb .cbb-cal__grid th {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--cbb-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.cbb.cbb .cbb-cal__grid th.is-sun { color: var(--cbb-sun); }
.cbb.cbb .cbb-cal__grid th.is-sat { color: var(--cbb-sat); }

.cbb.cbb .cbb-cal__grid td {
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  vertical-align: middle;
}

.cbb.cbb .cbb-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: 1.5px solid transparent;
  border-radius: var(--cbb-radius-sm);
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cbb.cbb .cbb-day.is-off {
  color: #8a91a6; /* 控えめだが読める濃さ（白地で 3.1:1。予約できない日＝操作できない表示） */
  text-decoration: none;
}

.cbb.cbb .cbb-day.is-open {
  border-color: var(--cbb-accent-soft);
  background: var(--cbb-accent-soft);
  color: var(--cbb-accent-ink);
  font-weight: 700;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

/* 予約できる日の印（点） */
.cbb.cbb .cbb-day.is-open::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cbb-accent);
}

.cbb.cbb .cbb-day.is-open:hover {
  border-color: var(--cbb-accent);
}

.cbb.cbb .cbb-day.is-selected {
  border-color: var(--cbb-accent-fill);
  background: var(--cbb-accent-fill);
  color: #fff;
  box-shadow: 0 2px 8px rgba(11, 95, 214, .35);
}

.cbb.cbb .cbb-day.is-selected::after {
  background: #fff;
}

.cbb.cbb .cbb-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--cbb-line-strong);
}

.cbb.cbb .cbb-cal.is-loading .cbb-cal__grid tbody {
  opacity: .45;
  transition: opacity .2s ease;
}

.cbb.cbb .cbb-cal__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  color: var(--cbb-sub);
  font-size: 14px;
  text-align: center;
}

.cbb.cbb .cbb-cal__status:not(:empty) {
  margin-top: 10px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--cbb-line);
}

.cbb.cbb .cbb-cal__status.is-loading {
  color: var(--cbb-accent-ink);
}

.cbb.cbb .cbb-cal__status.is-error p {
  color: #7e1f07;
}

/* 予約できる日が無い月の補足（人数が多いとき・電話の案内） */
.cbb.cbb .cbb-cal__status .cbb-cal__hint {
  flex: 1 1 100%;
  color: var(--cbb-muted);
  font-size: 13px;
}

.cbb.cbb .cbb-times {
  margin: 18px 0 0;
}

.cbb.cbb .cbb-times__title {
  margin: 0 0 10px;
  color: var(--cbb-ink);
  font-size: 16px;
  font-weight: 700;
}

.cbb.cbb .cbb-times__hint {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--cbb-line-strong);
  border-radius: var(--cbb-radius-sm);
  color: var(--cbb-muted);
  font-size: 14px;
  text-align: center;
}

.cbb.cbb .cbb-times__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.cbb.cbb .cbb-times__list:empty {
  display: none;
}

.cbb.cbb .cbb-time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border: 1.5px solid var(--cbb-accent-line);
  border-radius: 10px;
  background: var(--cbb-bg);
  color: var(--cbb-accent-ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.cbb.cbb .cbb-time:hover {
  border-color: var(--cbb-accent);
  background: var(--cbb-accent-soft);
}

.cbb.cbb .cbb-time.is-selected {
  border-color: var(--cbb-accent-fill);
  background: var(--cbb-accent-fill);
  color: #fff;
  box-shadow: 0 2px 8px rgba(11, 95, 214, .35);
}

.cbb.cbb .cbb-chosen {
  margin: 16px 0 0;
  color: var(--cbb-ink);
  font-size: 15px;
  font-weight: 700;
}

.cbb.cbb .cbb-chosen:empty {
  margin: 0;
}

.cbb.cbb .cbb-chosen.is-set {
  padding: 10px 14px;
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-accent-soft);
  color: #0a3f8f;
}

.cbb.cbb .cbb-chosen.is-warn {
  padding: 10px 14px;
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-danger-soft);
  color: #7e1f07;
  font-weight: 400;
}

/* ============================================
   3. お客様情報
   ============================================ */
.cbb.cbb .cbb-form {
  display: block;
  padding: 18px 16px;
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg);
  box-shadow: var(--cbb-shadow);
}

.cbb.cbb .cbb-field {
  margin: 0 0 18px;
}

.cbb.cbb .cbb-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 6px;
  color: var(--cbb-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: default;
}

.cbb.cbb .cbb-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef0f5;
  color: var(--cbb-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}

.cbb.cbb .cbb-badge--req {
  background: var(--cbb-danger);
  color: #fff;
}

.cbb.cbb .cbb-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--cbb-line-strong);
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-bg);
  color: var(--cbb-ink);
  font-size: 16px; /* iOS で拡大されないよう 16px 以上 */
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cbb.cbb textarea.cbb-input {
  min-height: 112px;
  resize: vertical;
}

.cbb.cbb .cbb-input::placeholder {
  color: #6b7186; /* 白地で 4.8:1 */
  opacity: 1;
}

.cbb.cbb .cbb-input:focus {
  border-color: var(--cbb-accent);
  box-shadow: var(--cbb-focus);
  outline: none;
}

.cbb.cbb .cbb-input[aria-invalid="true"] {
  border-color: var(--cbb-danger);
  background: #fffaf8;
}

.cbb.cbb .cbb-field__error {
  margin: 6px 0 0;
  color: var(--cbb-danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.cbb.cbb .cbb-consents {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.cbb.cbb .cbb-consents__title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  color: var(--cbb-ink);
  font-size: 15px;
  font-weight: 700;
}

.cbb.cbb .cbb-consents__list {
  display: grid;
  gap: 12px;
}

.cbb.cbb .cbb-consent {
  padding: 14px;
  border: 1px solid var(--cbb-line);
  border-radius: 10px;
  background: var(--cbb-bg-soft);
}

.cbb.cbb .cbb-consent.is-invalid {
  border-color: var(--cbb-danger-line);
  background: var(--cbb-danger-soft);
}

.cbb.cbb .cbb-consent__for {
  margin: 0 0 6px;
  color: var(--cbb-accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.cbb.cbb .cbb-consent__text {
  color: var(--cbb-sub);
  font-size: 13.5px;
  line-height: 1.8;
}

.cbb.cbb .cbb-consent__text p {
  margin: 0 0 .6em;
}

.cbb.cbb .cbb-consent__text p:last-child {
  margin-bottom: 0;
}

.cbb.cbb .cbb-consent__text ul,
.cbb.cbb .cbb-consent__text ol {
  margin: 0 0 .6em 1.3em;
}

.cbb.cbb .cbb-consent__text li {
  list-style: disc;
}

.cbb.cbb .cbb-consent__input {
  margin: 12px 0 0;
}

/* まとめて表示する同意文（共通・プランごとの区切り） */
.cbb.cbb .cbb-consent__text .cbb-consent__line {
  margin: 0;
}

.cbb.cbb .cbb-consent__section {
  margin: 10px 0 0;
}

.cbb.cbb .cbb-consent__section:first-child {
  margin-top: 0;
}

.cbb.cbb .cbb-consent__text .cbb-consent__section .cbb-consent__for {
  margin: 0 0 2px;
}

.cbb.cbb .cbb-consent--group .cbb-check {
  margin-top: 12px;
}

.cbb.cbb .cbb-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 14px;
  min-height: 52px;
  border: 1.5px solid var(--cbb-line-strong);
  border-radius: var(--cbb-radius-sm);
  background: var(--cbb-bg);
  color: var(--cbb-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cbb.cbb .cbb-check:hover {
  border-color: var(--cbb-accent);
}

/* チェックボックス（テーマに消されないよう自前で描画） */
.cbb.cbb .cbb-check__input {
  position: relative;
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--cbb-line-strong);
  border-radius: 6px;
  background: var(--cbb-bg);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  clip: auto;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .12s ease, border-color .12s ease;
}

.cbb.cbb .cbb-check__input:checked {
  border-color: var(--cbb-accent);
  background: var(--cbb-accent);
}

.cbb.cbb .cbb-check__input:checked::after {
  content: "";
  display: block;
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.cbb.cbb .cbb-check__input:focus-visible {
  outline: 3px solid rgba(29, 123, 255, .55);
  outline-offset: 2px;
}

.cbb.cbb .cbb-check:has(.cbb-check__input:checked) {
  border-color: var(--cbb-accent);
  background: var(--cbb-accent-soft);
}

/* ============================================
   4. 確認 / 5. 完了
   ============================================ */
.cbb.cbb .cbb-summary {
  margin: 0;
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg);
  box-shadow: var(--cbb-shadow);
  overflow: hidden;
}

.cbb.cbb .cbb-summary__row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--cbb-line);
}

.cbb.cbb .cbb-summary__row:first-child {
  border-top: 0;
}

.cbb.cbb .cbb-summary dt {
  color: var(--cbb-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.cbb.cbb .cbb-summary dd {
  margin: 0;
  color: var(--cbb-ink);
  font-size: 15px;
  line-height: 1.7;
}

.cbb.cbb .cbb-summary__row--datetime dd {
  font-size: 16px;
  font-weight: 700;
}

.cbb.cbb .cbb-summary__row--total {
  align-items: baseline;
  background: var(--cbb-bg-soft);
}

.cbb.cbb .cbb-summary__row--total dd {
  font-size: 22px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cbb.cbb .cbb-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.cbb.cbb .cbb-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cbb.cbb .cbb-line__label {
  min-width: 0;
}

.cbb.cbb .cbb-line__amount {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cbb.cbb .cbb-line__amount.is-pending {
  color: var(--cbb-faint);
}

.cbb.cbb .cbb-inline-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: var(--cbb-accent-ink);
  font-size: 14px;
}

.cbb.cbb .cbb-inline-status.is-error {
  padding: 12px 14px;
  border: 1px solid var(--cbb-danger-line);
  border-radius: 10px;
  background: var(--cbb-danger-soft);
  color: #7e1f07;
}

.cbb.cbb .cbb-notes {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--cbb-sub);
  font-size: 13px;
  line-height: 1.7;
}

.cbb.cbb .cbb-notes__pay {
  color: var(--cbb-ink);
  font-weight: 700;
}

.cbb.cbb .cbb-card {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg);
}

.cbb.cbb .cbb-card__title {
  margin: 0 0 8px;
  color: var(--cbb-ink);
  font-size: 15px;
  font-weight: 700;
}

.cbb.cbb .cbb-recap-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.cbb.cbb .cbb-recap-list__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.cbb.cbb .cbb-recap-list dt {
  color: var(--cbb-muted);
}

.cbb.cbb .cbb-recap-list dd {
  margin: 0;
  color: var(--cbb-ink);
  overflow-wrap: anywhere;
}

.cbb.cbb .cbb-recap-list__row.is-multiline dd {
  white-space: pre-wrap;
}

.cbb.cbb .cbb-btn--submit {
  min-height: 54px;
  font-size: 17px;
}

.cbb.cbb .cbb-step--5 {
  text-align: center;
}

.cbb.cbb .cbb-step--5 .cbb-step__title {
  font-size: 23px;
}

.cbb.cbb .cbb-done__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: var(--cbb-ok);
  box-shadow: 0 0 0 8px #e3f5eb;
}

.cbb.cbb .cbb-done__icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 23px;
  top: 14px;
  width: 16px;
  height: 28px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.cbb.cbb .cbb-done {
  text-align: left;
}

.cbb.cbb .cbb-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1.5px dashed var(--cbb-accent-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-accent-soft);
  text-align: center;
}

.cbb.cbb .cbb-code__label {
  color: var(--cbb-sub);
  font-size: 13px;
  font-weight: 700;
}

.cbb.cbb .cbb-code__value {
  color: var(--cbb-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cbb.cbb .cbb-done__mail {
  margin: 16px 0 0;
  color: var(--cbb-ink);
  font-size: 15px;
}

.cbb.cbb .cbb-done__mail strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cbb.cbb .cbb-done__note {
  margin: 8px 0 0;
  color: var(--cbb-muted);
  font-size: 13px;
}

.cbb.cbb .cbb-done__top {
  min-width: 240px;
  color: #fff;
  text-decoration: none;
}

/* ============================================
   JS が無い・停止中
   ============================================ */
.cbb.cbb .cbb-noscript,
.cbb.cbb .cbb-paused {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--cbb-line);
  border-radius: var(--cbb-radius);
  background: var(--cbb-bg-soft);
  color: var(--cbb-ink);
  font-size: 15px;
  text-align: center;
}

.cbb.cbb .cbb-paused__tel {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 800;
}

/* JS 起動前はプラン一覧だけ表示（人数ボタンなどは JS が追加） */
.cbb.cbb:not(.cbb--ready) .cbb-plans {
  opacity: .9;
}

/* ============================================
   広い画面
   ============================================ */
@media (min-width: 600px) {
  .cbb.cbb .cbb-plan {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px 18px;
    padding: 16px;
  }

  .cbb.cbb .cbb-plan__media {
    width: 120px;
    height: 120px;
    grid-row: 1 / span 2;
  }

  .cbb.cbb .cbb-plan__foot {
    grid-column: 2;
  }

  .cbb.cbb .cbb-plan--noimg .cbb-plan__foot {
    grid-column: 1 / -1;
  }

  .cbb.cbb .cbb-plan__name {
    font-size: 17px;
  }

  .cbb.cbb .cbb-progress {
    margin-bottom: 26px;
  }

  .cbb.cbb .cbb-progress__item {
    font-size: 13px;
  }

  .cbb.cbb .cbb-step__title {
    font-size: 23px;
  }

  .cbb.cbb .cbb-cal {
    padding: 18px 18px 14px;
  }

  .cbb.cbb .cbb-day {
    height: 52px;
    font-size: 16px;
  }

  .cbb.cbb .cbb-form {
    padding: 24px;
  }

  .cbb.cbb .cbb-bar {
    padding: 14px 18px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .cbb.cbb .cbb-bar__summary {
    font-size: 13px;
  }

  .cbb.cbb .cbb-bar__price {
    font-size: 21px;
  }

  .cbb.cbb .cbb-nav .cbb-btn--primary {
    flex: 0 1 auto;
    min-width: 240px;
  }

  .cbb.cbb .cbb-summary__row {
    grid-template-columns: 8em minmax(0, 1fr);
    padding: 16px 20px;
  }
}

/* とても狭い画面（〜360px） */
@media (max-width: 360px) {
  .cbb.cbb .cbb-plan {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }

  .cbb.cbb .cbb-plan__media {
    width: 64px;
    height: 64px;
  }

  .cbb.cbb .cbb-stepper__btn {
    width: 40px;
    height: 40px;
  }

  .cbb.cbb .cbb-bar {
    flex-wrap: wrap;
  }

  .cbb.cbb .cbb-bar__next {
    flex: 1 1 100%;
    margin-top: 10px;
  }

  .cbb.cbb .cbb-cal {
    padding: 10px 6px;
  }

  .cbb.cbb .cbb-cal__grid {
    border-spacing: 2px;
  }

  .cbb.cbb .cbb-progress__label {
    font-size: 11px;
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .cbb.cbb *,
  .cbb.cbb *::before,
  .cbb.cbb *::after {
    transition: none !important;
    animation-duration: 1.5s !important;
  }
}

/* JS の測った値（--cbb-bar-auto）と手動の指定（--cbb-bar-offset）の大きい方。max() が使えないブラウザでは手動の指定だけ */
@supports (bottom: max(0px, 1px)) {
  .cbb.cbb .cbb-bar {
    bottom: max(var(--cbb-bar-offset, 0px), var(--cbb-bar-auto, 0px));
  }
}

/* スマホ：テーマの「ページ上部へ戻る」丸ボタン（TCD テーマ）が合計欄・各手順のボタンの右端に重なるため、
   フォームが画面に出ている間だけ隠す（html.cbb-bar-on / html.cbb-form-on は JS が付け外し） */
@media (max-width: 767px) {
  html.cbb-bar-on .p-return-top-button-wrapper,
  html.cbb-form-on .p-return-top-button-wrapper {
    display: none !important;
  }
}

/* ページ内の通常フォームを置き換えたときのボタン（設定「ページ内に埋め込まれた通常フォーム」→ ボタン） */
.cbb-cta {
  margin: 24px auto;
  max-width: 560px;
  text-align: center;
}

.cbb-cta .cbb-cta__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: #0b5fd6;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(11, 95, 214, .25);
}

.cbb-cta .cbb-cta__btn:hover,
.cbb-cta .cbb-cta__btn:focus-visible {
  background: #094fb3;
  color: #fff;
}

/* 文字色はテーマの本文リンクの色（.post_content a:not(...) など、こちらより強い指定）に負けないよう必ず白にする */
.cbb-cta a.cbb-cta__btn,
.cbb-cta a.cbb-cta__btn:link,
.cbb-cta a.cbb-cta__btn:visited,
.cbb-cta a.cbb-cta__btn:hover,
.cbb-cta a.cbb-cta__btn:focus,
.cbb-cta a.cbb-cta__btn:active,
.cbb-cta a.cbb-cta__btn .cbb-cta__main,
.cbb-cta a.cbb-cta__btn .cbb-cta__sub {
  color: #fff !important;
  text-decoration: none !important;
}

.cbb-cta .cbb-cta__main {
  font-size: 18px;
  font-weight: 700;
}

.cbb-cta .cbb-cta__sub {
  font-size: 13px;
  opacity: .92;
}

/* 印刷（完了画面を印刷する人向け） */
@media print {
  .cbb.cbb .cbb-bar,
  .cbb.cbb .cbb-nav,
  .cbb.cbb .cbb-progress {
    display: none !important;
  }

  .cbb.cbb .cbb-summary,
  .cbb.cbb .cbb-plan,
  .cbb.cbb .cbb-cal {
    box-shadow: none;
  }
}
