/* TPH Booking — Frontend CSS */

/* ── カレンダーラッパー ──────────────────────────────────────────────────── */
.tph-calendar-wrap {
  width: 100%;
  /* 大画面でカレンダーが間延びして走査しづらくなるのを防ぐ最適幅（2026-07-14）。
     7列 month ビューで1セル≒120px＝「19:00 + Basicバッジ」が余白過多にならず読める。
     モーダル/カートは position:fixed なのでこの制限の外。狭くするなら 840、広げるなら 940。 */
  max-width: 880px;
  margin: 0 auto;
}

/* ── フィルターボタン ────────────────────────────────────────────────────── */
.tph-calendar-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tph-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--tph-sand-dark);
  border-radius: var(--tph-radius-pill);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tph-filter-btn.is-active,
.tph-filter-btn:hover {
  border-color: var(--tph-teal);
  background: var(--tph-white);
  color: var(--tph-teal);
}

.tph-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── FullCalendar カスタム ───────────────────────────────────────────────── */
#tph-fullcalendar {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── ツールバー（月タイトル・ナビ）のブランド化（2026-07-18）────────────────
   FC標準の紺ボタン＋セリフ28pxタイトルをサイトのトーンに統一。
   ボタン色はFullCalendar v6のCSS変数で差し替え（正攻法） */
.fc {
  --fc-button-bg-color: #fff;
  --fc-button-border-color: var(--tph-sand-dark);
  --fc-button-text-color: var(--tph-text);
  --fc-button-hover-bg-color: var(--tph-sand);
  --fc-button-hover-border-color: var(--tph-sand-dark);
  --fc-button-active-bg-color: var(--tph-teal);
  --fc-button-active-border-color: var(--tph-teal);
}
/* 月タイトル: 見出しセリフ体(Cormorant 28px)はカレンダーには過剰＆スマホで
   折り返すため、本文と同じサンセリフ＋clamp可変＋1行固定に */
.fc .fc-toolbar-title {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tph-teal);
  white-space: nowrap;
}
.fc .fc-button {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-width: 2px;
  border-radius: var(--tph-radius-pill);
  transition: all 0.2s;
}
/* アクティブ時（背景teal）だけ文字を白に（--fc-button-text-colorは全状態共通のため） */
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { color: #fff; }
.fc .fc-button-primary:focus,
.fc .fc-button-primary:not(:disabled).fc-button-active:focus { box-shadow: 0 0 0 3px rgba(10,61,92,0.15); }
/* グループ（prev,next / 月,週）は両端のみ丸め、隣接ボーダーの二重化を回避 */
.fc .fc-button-group > .fc-button { border-radius: 0; }
.fc .fc-button-group > .fc-button:not(:first-child) { margin-left: -2px; }
.fc .fc-button-group > .fc-button:first-child { border-radius: var(--tph-radius-pill) 0 0 var(--tph-radius-pill); }
.fc .fc-button-group > .fc-button:last-child { border-radius: 0 var(--tph-radius-pill) var(--tph-radius-pill) 0; }
.fc .fc-header-toolbar.fc-toolbar { margin-bottom: 1rem; }

.tph-fc-event {
  display: flex;
  flex-direction: column;
  padding: 2px 5px;
  font-size: 0.78rem;
  line-height: 1.3;
  border-radius: 3px;
  /* セル幅を超えないよう全ビュー共通でクリップ（はみ出し対策） */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* monthビュー：イベントをセル幅いっぱいに広げ、はみ出さないようクリップ。
   ※ list表示は廃止（month / week の2ビューのみ） */
.fc-daygrid-event-harness {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.fc-daygrid-event,
.fc-daygrid-event .fc-event-main {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.fc-daygrid-event .tph-fc-event { width: 100%; }
/* フォントは clamp で端末幅（≒カレンダー幅）に合わせて滑らかに可変 */
.fc-daygrid-event .tph-fc-title {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.62rem, 1.3vw, 0.95rem);
}
.fc-daygrid-event .tph-fc-badge {
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(0.56rem, 1.0vw, 0.8rem);
  padding: 2px 8px;
}
/* 日付数字（「29日」等）: 狭いセル（320px級で36px幅）では16px固定だと2桁日付の
   「日」が2行目に落ちるため、こちらも clamp で可変縮小＋折返し禁止 */
.fc .fc-daygrid-day-number {
  font-size: clamp(0.68rem, 3.5vw, 1rem);
  white-space: nowrap;
}

.tph-fc-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── カテゴリ別背景色（淡いパステル） ── */
/* Basic: 薄い水色 */
.tph-fc-type-basic   { background: var(--tph-tint-basic-bg); color: var(--tph-tint-basic-text); }
/* 振付: 薄い黄緑 */
.tph-fc-type-choreo  { background: var(--tph-tint-choreo-bg); color: var(--tph-tint-choreo-text); }
/* 文化: 薄い黄橙 */
.tph-fc-type-culture { background: var(--tph-tint-culture-bg); color: var(--tph-tint-culture-text); }
/* WS: 薄い朱色 */
.tph-fc-type-event   { background: var(--tph-tint-event-bg); color: var(--tph-tint-event-text); }

/* バッジの文字色をカード色に合わせて調整 */
.tph-fc-type-basic .tph-fc-badge,
.tph-fc-type-choreo .tph-fc-badge,
.tph-fc-type-culture .tph-fc-badge { color: inherit; background: rgba(0,0,0,0.12); }
.tph-fc-type-event .tph-fc-badge   { background: rgba(255,255,255,0.2); }

/* 過去・選択時はやや透明に */
.tph-fc-past-event { opacity: 0.55; }

.tph-fc-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: var(--tph-radius-pill);
  margin-top: 1px;
  font-weight: 700;
}

.tph-fc-reserved { background: rgba(255,255,255,0.3); color: #fff; }
.tph-fc-full     { background: rgba(0,0,0,0.2); color: #fff; }
.tph-fc-seats    { background: rgba(255,255,255,0.25); color: #fff; }
.tph-fc-past     { background: rgba(0,0,0,0.15); color: rgba(255,255,255,0.6); font-size: 0.6rem; }

/* 過去のレッスン（薄く・選択不可） */
.tph-fc-past-event {
  opacity: 0.35;
  pointer-events: none;
}

/* ── モーダル ────────────────────────────────────────────────────────────── */
.tph-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tph-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.tph-modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--tph-radius-md);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 1;
}

.tph-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.tph-modal-header { margin-bottom: 1rem; }

.tph-modal-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--tph-radius-pill);
  color: #fff;
  margin-bottom: 0.5rem;
}

.tph-type-basic   { background: var(--tph-type-basic); }
.tph-type-choreo  { background: var(--tph-type-choreo); }
.tph-type-culture { background: var(--tph-type-culture); }
.tph-type-event   { background: var(--tph-type-event); }

.tph-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2d2d2d;
  margin: 0;
}

.tph-modal-info {
  background: var(--tph-white);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.tph-modal-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  color: #444;
}

.tph-modal-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tph-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tph-modal-reserved {
  color: var(--tph-success);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.tph-modal-full,
.tph-modal-warning {
  color: var(--tph-error);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* 予約はできるが伝えたい注意書き（休会中など）。警告=赤 とは区別して琥珀色の枠で出す */
.tph-modal-notice {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #6b4d16;
  background: #fdf6e3;
  border-left: 3px solid #c4883a;
  border-radius: 0 6px 6px 0;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.8rem;
}

/* ── ボタン（カレンダー・モーダル内のみ） ──────────────────────────────── */
.tph-calendar-wrap .tph-btn,
.tph-modal .tph-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: var(--tph-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.tph-calendar-wrap .tph-btn:disabled,
.tph-modal .tph-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tph-calendar-wrap .tph-btn-primary,
.tph-modal .tph-btn-primary {
  background: var(--tph-teal);
  color: #fff;
}
.tph-calendar-wrap .tph-btn-primary:hover:not(:disabled),
.tph-modal .tph-btn-primary:hover:not(:disabled) {
  background: var(--tph-teal-light);
  transform: translateY(-1px);
}

.tph-calendar-wrap .tph-btn-outline,
.tph-modal .tph-btn-outline {
  background: transparent;
  color: var(--tph-teal);
  border: 2px solid var(--tph-teal);
}
.tph-calendar-wrap .tph-btn-outline:hover,
.tph-modal .tph-btn-outline:hover {
  background: rgba(10,61,92,0.06);
}

/* ── マイ予約 ────────────────────────────────────────────────────────────── */
.tph-my-bookings { max-width: 700px; }

.tph-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--tph-wood);
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 1rem;
}

.tph-booking-card {
  background: #fff;
  border: 1px solid var(--tph-sand-dark);
  border-radius: var(--tph-radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
/* wpautopがテンプレート改行位置に挿す<br>がflex/grid内で幽霊行になる対策 (2026-07-19) */
.tph-booking-card br { display: none; }

.tph-booking-card.tph-past {
  background: #f9f9f9;
  opacity: 0.8;
}

/* 受講履歴の段階表示（初期5件 → 「もっと見る」で+5件ずつ） */
.tph-history-extra {
  display: none;
}
.tph-history-extra.is-shown {
  display: flex;
}
.tph-history-more-wrap {
  text-align: center;
  margin-top: 0.5rem;
}
.tph-history-more {
  cursor: pointer;
}

.tph-booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
}

.tph-booking-type {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--tph-radius-pill);
  color: #fff;
  display: inline-block;
  width: fit-content;
}

.tph-booking-date { font-size: 0.85rem; color: #666; }
.tph-booking-title { font-weight: 700; flex: 1; }

.tph-btn-cancel {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--tph-coral);
  border-radius: var(--tph-radius-sm);
  background: transparent;
  color: var(--tph-coral);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.tph-btn-cancel:hover { background: rgba(200,80,58,0.08); }

.tph-booking-status { font-size: 0.8rem; color: #888; }
.tph-status-checked_in { color: var(--tph-success); font-weight: 700; }
.tph-status-cancelled  { color: #ccc; }
.tph-status-no_show    { color: var(--tph-coral); }

.tph-empty { color: #888; font-size: 0.9rem; }
.tph-loading { text-align: center; padding: 2rem; color: #888; }

/* ── 選択ガイド ──────────────────────────────────────────────────────────── */
#tph-select-hint {
  display: none; /* ログイン時のみ表示 → JS で制御 */
}
.tph-logged-in #tph-select-hint {
  display: block;
}

/* ── 選択状態 ────────────────────────────────────────────────────────────── */
.tph-fc-selected {
  outline: 3px solid var(--tph-teal) !important;
  outline-offset: -2px;
  border-radius: 4px;
}

.tph-fc-badge.tph-fc-checked {
  background: var(--tph-teal);
  color: #fff;
}

/* ── まとめて予約カートバー ─────────────────────────────────────────────── */
#tph-booking-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  background: var(--tph-teal);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.tph-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.tph-cart-label {
  font-size: 1rem;
}

.tph-cart-actions {
  display: flex;
  gap: 0.75rem;
}

.tph-cart-btn-book {
  padding: 0.55rem 1.4rem;
  background: var(--tph-amber);
  color: #fff;
  border: none;
  border-radius: var(--tph-radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.tph-cart-btn-book:hover { background: var(--tph-amber-light); }
.tph-cart-btn-book:disabled { background: #888; cursor: not-allowed; }

.tph-cart-btn-clear {
  padding: 0.55rem 1rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--tph-radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tph-cart-btn-clear:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

#tph-cart-progress {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── ポップアップ通知（中央） ─────────────────────────────────────────────── */
#tph-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#tph-toast-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#tph-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 99999;
  background: #fff;
  color: #2d2d2d;
  padding: 1.6rem 2.2rem;
  border-radius: var(--tph-radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
  width: 85%;
}
#tph-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#tph-toast .tph-toast-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
#tph-toast.tph-toast-success { border-top: 4px solid var(--tph-success); }
#tph-toast.tph-toast-info    { border-top: 4px solid var(--tph-teal); }
#tph-toast.tph-toast-error   { border-top: 4px solid var(--tph-coral-dark); }
.tph-toast-extra {
  margin-top: 0.8rem;
}
.tph-toast-link {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.5rem 1.2rem;
  background: var(--tph-teal);
  color: #fff !important;
  border-radius: var(--tph-radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
}
.tph-toast-link:hover { background: var(--tph-teal-light); }

/* ── 確認ポップアップ ────────────────────────────────────────────────────── */
#tph-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#tph-confirm-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#tph-confirm-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 99999;
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: var(--tph-radius-md);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 340px;
  width: 85%;
  border-top: 4px solid var(--tph-wood);
}
#tph-confirm-box.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#tph-confirm-msg {
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.6;
  margin: 0.5rem 0 1.2rem;
}
.tph-confirm-btns {
  display: flex;
  gap: 0.75rem;
}
.tph-confirm-btn-yes {
  flex: 1;
  padding: 0.7rem;
  background: var(--tph-teal);
  color: #fff;
  border: none;
  border-radius: var(--tph-radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.tph-confirm-btn-yes:hover { background: var(--tph-teal-light); }
.tph-confirm-btn-no {
  flex: 1;
  padding: 0.7rem;
  background: transparent;
  color: #888;
  border: 2px solid #ddd;
  border-radius: var(--tph-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tph-confirm-btn-no:hover { border-color: #aaa; }

/* ── タブレット・スマホ横向き（中間サイズ）対応 ──────────────────────────── */
/* ※ monthイベントのサイズは基本CSSの clamp() が端末幅に合わせて滑らかに可変させる。
      ここではフィルターボタンの調整のみ。 */
@media (max-width: 900px) {
  .tph-filter-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* ── 縦画面（スマホ・ポートレート）対応 ──────────────────────────────────── */
@media (max-width: 600px) {

  /* ツールバーを2段組みに: 上段=月タイトル(中央) / 下段=ナビ(左)・ビュー切替(右)。
     1段のままだと中央のタイトル領域が76px程度しか残らず「2026年/7月」に折れる */
  .fc .fc-header-toolbar.fc-toolbar {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    order: -1;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
  }
  .fc .fc-toolbar-title { font-size: 1.05rem; }
  .fc .fc-button { font-size: 0.78rem; padding: 0.28rem 0.6rem; }

  /* フィルターボタンを1行に収める（すべて / Basicレッスン / 振付コース） */
  .tph-calendar-filters {
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .tph-filter-btn {
    padding: 0.35rem 0.4rem;
    font-size: 0.72rem;
    gap: 0.25rem;
    white-space: nowrap;
  }
  /* カテゴリー3ボタンは1行に並べる（2026-07-19: 等分をやめ内容幅に。
     等分だとiPhone Safariのフォント幅で「Basicレッスン」が枠からはみ出す。
     スマホでは「レッスン」サフィックスを非表示にして「Basic」表記に） */
  .tph-calendar-filters { justify-content: center; }
  .tph-filter-btn:not(#tph-multiselect-toggle) {
    flex: 0 1 auto;
    justify-content: center;
  }
  .tph-filter-btn__suffix { display: none; }
  .tph-filter-btn .tph-dot {
    width: 8px;
    height: 8px;
  }
  /* 「まとめて予約」トグルは独立した行に折り返す */
  #tph-multiselect-toggle {
    flex: 1 0 100%;
    margin-left: 0 !important;
    justify-content: center;
  }

  /* 受講履歴カード: 横並びだとクラス名が2文字ずつ折れるため
     「日付(上)＋クラス名(下)＋ステータス(右)」のグリッドに（2026-07-19） */
  .tph-history .tph-booking-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.8rem;
    align-items: center;
  }
  .tph-history .tph-history-extra:not(.is-shown) { display: none; }
  .tph-history .tph-history-extra.is-shown { display: grid; }
  .tph-history .tph-booking-date   { grid-column: 1; grid-row: 1; font-size: 0.78rem; }
  .tph-history .tph-booking-title  { grid-column: 1; grid-row: 2; }
  .tph-history .tph-booking-status { grid-column: 2; grid-row: 1 / 3; }

  /* カレンダーのイベント（Basic/振付バッジ）をセル枠内に収める */
  .fc .fc-daygrid-day-frame {
    padding: 1px;
  }
  .fc .fc-daygrid-event-harness {
    margin: 0 !important;
  }
  .fc .fc-daygrid-event {
    margin-top: 1px;
    padding: 0;
    white-space: normal;
    overflow: hidden;
  }
  /* イベントの大きさ自体は基本CSSの clamp() が可変させる。ここは余白の詰めのみ */
  .tph-fc-event {
    padding: 1px 2px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
  }
  .tph-fc-badge {
    align-self: flex-start;
    max-width: 100%;
    padding: 0 3px;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* week表示：日付ヘッダー（6/14(日) 等）が狭い列幅で重ならないよう縮小＋折り返し可 */
  .fc-timeGridWeek-view .fc-col-header-cell-cushion {
    font-size: 0.58rem;
    line-height: 1.12;
    padding: 2px 1px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* ── 管理画面 ────────────────────────────────────────────────────────────── */
.tph-admin-wrap .tph-admin-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── 体験の枠選択モード（2026-07-20 P0 予約一体型フロー） ────────────────── */
.tph-cal--trial #tph-booking-cart { display: none !important; } /* まとめて予約バーは使わない */
