/* 予約サイト（お客様側）のレイアウト補正。保存CSS（index.*.css）の後に読み込む。
   右の列（.side-column）があるのはトップと日時選択だけ。それ以外のページは本文の列（最大768px）が
   左に寄って右側が空くため、右の列がないページに限り、768px以上では本文を中央に置く
   （マイページと同じ並び。幅を変えても途中で位置が跳ばない）。幅・文字サイズ・余白は変えない。 */
.cn-ticket-summary { padding: 16px 0; border-bottom: 1px dashed #ded7c9; min-width: 0; overflow-wrap: anywhere; }
.cn-ticket-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; line-height: 1.6; }
.cn-ticket-heading strong { font-size: 15px; }
.cn-ticket-heading b { color: #8c672d; white-space: nowrap; font-size: 14px; }
.cn-ticket-summary dl { margin: 10px 0 0; font-size: 13px; line-height: 1.65; }
.cn-ticket-summary dl > div { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 5px 12px; margin-top: 5px; }
.cn-ticket-summary dt { color: #666; font-weight: 400; }
.cn-ticket-summary dd { margin: 0; }
.cn-ticket-status { color: #666; font-size: 12px; margin: 4px 0; }
.cn-ticket-offer { padding: 14px; margin: 16px 0; border: 1px solid #e2cfaa; border-radius: 8px; background: #fcf7ed; color: #765420; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.cn-ticket-offer p { margin: 8px 0 0; white-space: pre-line; }
.card > .cn-ticket-summary { padding-left: 20px; padding-right: 20px; }
.card > .cn-ticket-offer { margin-left: 20px; margin-right: 20px; }
#fm-tkbanner > .cn-ticket-offer { margin: 12px 16px; }
.fm-ticket-purchased { display: block; margin-left: 24px; color: #555; }
@media (max-width: 400px) {
  .cn-ticket-summary dl > div { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
}
@media (min-width: 768px) {
  .content:not(:has(> .side-column)) { justify-content: center; }
  .content:not(:has(> .side-column)) > .main-column { padding-right: 0; }
}

/* スマホ幅（767px以下）：元のCSSは右上の「ログイン」ボタンを隠しており、スマホから会員ログイン・
   新規会員登録に入れなかった。ヘッダーに収まる幅で表示する（ログイン中は「マイページ」になる） */
@media (max-width: 767px) {
  .header-actions .login-button { display: flex; width: 60px; min-width: 60px; }
}

/* 押したときの軽い動き（予約サイト全体）：押している間だけ少し縮んで、わずかに暗くなる。
   動きを減らす設定にしている端末では出さない（スマホでも効くよう member.js で touchstart を受けている） */
@media (prefers-reduced-motion: no-preference) {
  .booking-button, .side-submit, .login-button, .language-button, .language-menu button, .nav-item, .mobile-item,
  .menu-row, .staff-select-trigger, .staff-picker-item, .staff-picker-footer button, .slot-open, .native-calendar button,
  .booking-form button, .back-to-calendar, .st-photo, .st-more, .st-d-close, #fm-nom-bar a, .fm-agree {
    transition: transform 0.12s ease, filter 0.12s ease;
  }
  .booking-button:not(:disabled):active, .side-submit:not(:disabled):active, .login-button:active, .language-button:active,
  .language-menu button:active, .nav-item:active, .mobile-item:active, .staff-picker-footer button:active,
  .slot-open:active, .native-calendar button:not(:disabled):active, .booking-form button:not(:disabled):active,
  .back-to-calendar:active, .st-photo:active, .st-more:active, .st-d-close:active, #fm-nom-bar a:active, .fm-agree:not(:disabled):active {
    transform: scale(0.96);
    filter: brightness(0.94);
  }
  .menu-row:active, .staff-select-trigger:active, .staff-picker-item:active {
    transform: scale(0.985);
    filter: brightness(0.97);
  }
}

/* ---- 操作の感度（スマホ・タブレット・パソコン共通） ----
   ・すばやく2回押しても画面が拡大されない（押した瞬間に反応する。ピンチでの拡大はそのまま使える）
   ・押したときに出る灰色の四角い光は、押すと縮む動き（上）があるボタン・行だけ消す */
a, button, summary, label, select, [role="button"], .menu-row, .slot-open { touch-action: manipulation; }
.booking-button, .side-submit, .login-button, .language-button, .language-menu button, .nav-item, .mobile-item,
.menu-row, .staff-select-trigger, .staff-picker-item, .staff-picker-footer button, .slot-open, .native-calendar button,
.booking-form button, .st-photo, .st-more, .st-d-close, #fm-nom-bar a, .fm-agree, .calendar-toolbar button {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  /* 押した瞬間はすぐ縮み（0.04秒）、離すとゆっくり戻る（上の 0.12秒）＝指に吸いつくような反応 */
  .booking-button:active, .side-submit:active, .login-button:active, .language-button:active, .language-menu button:active,
  .nav-item:active, .mobile-item:active, .menu-row:active, .staff-select-trigger:active, .staff-picker-item:active,
  .staff-picker-footer button:active, .slot-open:active, .native-calendar button:active, .booking-form button:active,
  .back-to-calendar:active, .st-photo:active, .st-more:active, .st-d-close:active, #fm-nom-bar a:active, .fm-agree:active {
    transition-duration: 0.04s;
  }
  /* 色・影・矢印の変化はなめらかに（マウスを乗せたとき・離したとき） */
  .booking-button, .side-submit, .login-button, .fm-agree, .language-button, .language-menu button, .nav-item, .mobile-item,
  .slot-open, .staff-select-trigger, .staff-picker-item, .calendar-toolbar button, .st-more, .st-photo, .back-to-calendar {
    transition: transform 0.12s ease, filter 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
      border-color 0.18s ease, color 0.18s ease;
  }
  .menu-row { transition: transform 0.12s ease, filter 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
  .menu-row > i { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease; }
  .booking-form input, .booking-form select, .booking-form textarea, .select-label select {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
}

/* マウスを乗せたとき（マウス・トラックパッドの端末だけ。スマホで押したあとに色が残らないように） */
@media (hover: hover) and (pointer: fine) {
  .booking-button:not(:disabled):hover, .side-submit:hover, .login-button:hover, .fm-agree:not(:disabled):hover {
    filter: brightness(1.07);
    box-shadow: 0 3px 10px rgb(148 99 40 / 0.28);
  }
  .language-button:hover { background: #f9fafb; border-color: #b9bec6; }
  .nav-item:not(.active):hover, .mobile-item:not(.active):hover { color: var(--primary); }
  /* メニューの行：行全体がうっすら色づき、右の矢印が少し右へ動く */
  .menu-row:hover { background: #faf6f0; box-shadow: 0 0 0 6px #faf6f0; border-radius: 4px; }
  .menu-row:hover > i { transform: translateX(3px); color: var(--primary); }
  .staff-select-trigger:hover { box-shadow: 0 0 0 1px #c9a77a inset; }
  .calendar-toolbar button:not(:disabled):hover { filter: brightness(0.95); }
  .back-to-calendar:hover { color: #6f4a1e; }
  .st-more:hover { filter: brightness(0.92); }
}

/* 勤務日の確認と、シフトのない指名候補。既存カード寸法は維持。 */
.date-page .select-label input[type=date] { max-width:100%; min-height:44px; padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; background:#fff; color:#1f2937; font:inherit; font-size:16px; }
.staff-picker-item:disabled { cursor:default; opacity:.64; background:#f3f4f6; }
.staff-picker-item:disabled:active { transform:none; }

/* 既存の保有回数券カードに、予約へ進む操作だけを追加する。 */
.cn-ticket-use { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 24px; border-radius:6px; background:#bf9857; color:#fff; text-decoration:none; font:inherit; line-height:1.5; text-align:center; max-width:100%; box-sizing:border-box; }
.cn-ticket-use:focus-visible { outline:3px solid #77531d; outline-offset:3px; }
#fm-ticket-pick { margin:16px 0; min-width:0; }
#fm-ticket-pick .fm-h { display:block; font-size:14px; font-weight:600; margin:0 0 6px; }
#fm-ticket-pick #fm-ticket-select { display:block; width:100%; max-width:100%; min-width:0; min-height:44px; padding:8px 32px 8px 12px; border:1px solid #d8c8ae; border-radius:6px; background-color:#fffdf9; color:#303033; font-size:14px; line-height:1.4; }
#fm-ticket-pick .fm-tk-note { margin:6px 0 0; font-size:12px; line-height:1.5; color:#79551f; }
#fm-ticket-pick .fm-tk-note:empty { display:none; }

/* 同行者は番号のみ表示する。 */
.booking-companions { display: grid; gap: 12px; min-width: 0; }
.booking-companions ul { margin: 0; padding-inline-start: 1.5em; overflow-wrap: anywhere; }
.booking-summary dd { overflow-wrap: anywhere; }
