/* 共通トークン — 仕様 §4 の配色を基本に、画面ごとの役割で使い分ける */
:root {
  --ivory: #F7F4ED;
  --ivory-deep: #EFEAE0;
  --forest: #193D35;
  --forest-ink: #0F2822;
  --forest-soft: #2A5A4E;
  --gold: #B39762;
  --gold-line: #CBB58A;
  --ink: #242D29;
  --ink-soft: #5B655F;
  --ink-mute: #68716B;
  --paper: #FFFFFF;
  --grey-50: #F6F7F6;
  --grey-100: #ECEFEC;
  --grey-200: #D9DED9;
  --grey-300: #BFC6C1;
  --danger: #9A3B2F;
  --danger-bg: #FBEFEC;
  --ok: #2F6B4F;
  --ok-bg: #E9F2EC;
  --warn: #8A6414;
  --warn-bg: #FBF4E3;

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;

  --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-15: 0.9375rem; --fs-16: 1rem;
  --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-28: 1.75rem; --fs-34: 2.125rem; --fs-44: 2.75rem;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --tap: 44px;
  --radius-s: 4px; --radius-m: 8px; --radius-l: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); font-size: var(--fs-16); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* デモ帯：本番ではない旨を常に明示 */
.demo-band { background: var(--forest-ink); color: #E8E4D8; font-size: var(--fs-12); line-height: 1.4; padding: 5px var(--sp-4); display: flex; gap: var(--sp-2) var(--sp-3); align-items: center; }
.demo-band span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .demo-band { font-size: var(--fs-13); } .demo-band span { white-space: normal; } }
.demo-band strong { color: var(--gold-line); font-weight: 600; }
.demo-band a { color: #E8E4D8; display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; margin: -4px 0; }

/* 状態の文字＋アイコン表示（色だけに頼らない） */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.status .ic { font-size: 0.95em; }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-confirmed { background: var(--ok-bg); color: var(--ok); }
.status-arrived { background: #E6EFF9; color: #27507C; }
.status-in_service { background: #E3EBE8; color: var(--forest); }
.status-done { background: var(--grey-100); color: var(--ink-soft); }
.status-cancelled { background: var(--grey-100); color: var(--ink-mute); text-decoration: line-through; }
.status-no_show { background: var(--danger-bg); color: var(--danger); }

/* 通知（トースト） */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px); background: var(--forest-ink); color: #F1EEE5; padding: 12px 18px; border-radius: var(--radius-m); font-size: var(--fs-14); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); max-width: calc(100vw - 32px); z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

.msg { border-radius: var(--radius-m); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-14); line-height: 1.6; }
.msg-error { background: var(--danger-bg); color: var(--danger); border-left: 3px solid var(--danger); }
.msg-ok { background: var(--ok-bg); color: var(--ok); border-left: 3px solid var(--ok); }
.msg-info { background: var(--grey-50); color: var(--ink-soft); border-left: 3px solid var(--grey-300); }
