:root {
      --c-teal: #0d9488;
      --c-teal-dark: #0f766e;
      --c-teal-bg: #e6f7f5;
      --c-teal-border: #b9e5e0;
      --c-text: #334155;
      --c-text-sub: #64748b;
      --c-text-faint: #94a3b8;
      --c-bg: #f5f7f7;
      --c-surface: #ffffff;
      --c-border: #e2e8f0;
      --c-danger: #dc2626;
      --c-badge-bg: #fde8e8;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0; min-height: 100vh; padding: 20px 10px 48px;
      background: var(--c-bg); color: var(--c-text);
      font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
      line-height: 1.7;
    }
    .wrap { max-width: 860px; margin: 0 auto; }
    .card {
      background: var(--c-surface); border: 1px solid var(--c-border);
      border-radius: 12px; padding: 24px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
    }

    /* --- ヘッダ（所要時間 + タイトル） --- */
    .duration {
      display: inline-flex; align-items: baseline; gap: 4px;
      color: var(--c-text-sub); font-size: .8rem; margin-bottom: 2px;
    }
    .duration b { font-size: 1.3rem; color: var(--c-text); }
    h1 { font-size: 1.25rem; margin: 0 0 16px; }

    /* --- 3ステップタブ（TimeRex 風） --- */
    .steps { display: flex; gap: 6px; margin-bottom: 22px; }
    .step {
      flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
      padding: 9px 4px; border: 1px solid var(--c-border); border-radius: 999px;
      font-size: .85rem; color: var(--c-text-faint); background: var(--c-surface);
      white-space: nowrap;
    }
    .step .num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 700;
      background: var(--c-border); color: var(--c-surface);
    }
    .step.active { background: var(--c-teal-bg); border-color: var(--c-teal-border); color: var(--c-teal-dark); font-weight: 700; }
    .step.active .num { background: var(--c-teal); }
    .step.done { color: var(--c-text-faint); }
    .step.done .num { background: var(--c-text-faint); }
    @media (max-width: 560px) { .step { font-size: .72rem; gap: 4px; } }

    .desc { margin: 0 0 14px; color: var(--c-text-sub); font-size: .92rem; white-space: pre-line; }
    .pick-title { font-weight: 700; margin: 0 0 10px; }

    /* --- 月ラベル + 週送り + タイムゾーン --- */
    .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
    .cal-month { font-weight: 700; }
    .tz { font-size: .78rem; color: var(--c-text-faint); }
    .nav-btn {
      font: inherit; font-size: .85rem; padding: 6px 16px; border-radius: 8px;
      border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-teal-dark); cursor: pointer;
    }
    .nav-btn:hover:not(:disabled) { border-color: var(--c-teal); }
    .nav-btn:disabled { color: var(--c-text-faint); cursor: default; opacity: .5; }

    /* --- 週カレンダーグリッド --- */
    .grid-scroll { overflow-x: auto; }
    .grid { display: grid; grid-template-columns: 48px repeat(7, minmax(74px, 1fr)); min-width: 620px; }
    .g-corner { border-bottom: 2px solid var(--c-border); }
    .g-day {
      text-align: center; padding: 6px 2px 8px; border-bottom: 2px solid var(--c-border);
    }
    .g-day .d-num { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
    .g-day .d-dow { font-size: .72rem; color: var(--c-text-sub); }
    .g-day.sat .d-dow { color: #2563eb; }
    .g-day.sun .d-dow { color: var(--c-danger); }
    .g-time {
      font-size: .72rem; color: var(--c-text-faint); text-align: right;
      padding: 10px 8px 0 0; border-right: 1px solid var(--c-border);
    }
    .g-cell { padding: 3px; min-height: 40px; }
    .chip {
      display: block; width: 100%; font: inherit; font-size: .74rem; font-weight: 600;
      padding: 8px 2px; border-radius: 8px; border: 1px solid var(--c-teal-border);
      background: var(--c-surface); color: var(--c-teal-dark); cursor: pointer; text-align: center;
      white-space: nowrap;
    }
    .chip:hover { background: var(--c-teal-bg); border-color: var(--c-teal); }

    /* --- 情報入力（日程サマリー + フォーム） --- */
    .picked {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
      background: var(--c-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 6px;
    }
    .picked .p-label { font-size: .78rem; color: var(--c-text-sub); }
    .picked .p-when { font-size: 1.05rem; font-weight: 700; }
    .picked .p-tz { font-size: .74rem; color: var(--c-text-faint); }
    .btn-back {
      font: inherit; font-size: .85rem; padding: 9px 16px; border-radius: 8px;
      border: 1px solid var(--c-teal); background: var(--c-surface); color: var(--c-teal-dark);
      font-weight: 700; cursor: pointer;
    }
    .btn-back:hover { background: var(--c-teal-bg); }
    label { display: block; margin: 16px 0 4px; font-size: .9rem; font-weight: 700; }
    .req {
      display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px;
      background: var(--c-badge-bg); color: var(--c-danger); font-size: .7rem; font-weight: 700; vertical-align: 1px;
    }
    input, textarea, select {
      width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--c-border);
      border-radius: 8px; background: var(--c-surface); color: var(--c-text);
    }
    input:focus, textarea:focus, select:focus { outline: 2px solid var(--c-teal-border); border-color: var(--c-teal); }
    textarea { min-height: 90px; resize: vertical; }
    .consent { text-align: center; font-size: .82rem; color: var(--c-text-sub); margin: 22px 0 12px; }
    .btn-book {
      display: block; margin: 0 auto; min-width: 320px; max-width: 100%;
      font: inherit; font-size: 1rem; font-weight: 700; color: #fff;
      background: var(--c-teal); border: none; border-radius: 10px; padding: 15px 28px; cursor: pointer;
    }
    .btn-book:hover { background: var(--c-teal-dark); }
    .btn-book:disabled { opacity: .55; cursor: default; }
    @media (max-width: 560px) { .btn-book { min-width: 100%; } }

    .note { font-size: .8rem; color: var(--c-text-faint); margin-top: 12px; }
    .err { color: var(--c-danger); font-weight: 700; margin-top: 12px; text-align: center; }
    .loading { color: var(--c-text-faint); padding: 24px 0; text-align: center; }
    .empty { color: var(--c-text-sub); padding: 24px 0; text-align: center; }

    /* --- 完了 --- */
    .done-box { text-align: center; padding: 12px 0 4px; }
    .done-check {
      width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
      background: var(--c-teal-bg); color: var(--c-teal); font-size: 1.6rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
    }
    .done-box h2 { font-size: 1.15rem; margin: 0 0 14px; }
    .done-when {
      display: inline-block; background: var(--c-bg); border-radius: 10px;
      padding: 12px 22px; font-weight: 700; margin-bottom: 14px;
    }
    .done-meet a { word-break: break-all; color: var(--c-teal-dark); }

    /* ハニーポット：画面には出さない（bot だけが埋める） */
    .hp-field { position: absolute; left: -9999px; top: -9999px; }
