/* 審査フォームの見本の見た目（2026-11-03）
   t-liff … LINE の中で開くフォーム（line-harness-next/apps/worker/index.html と client/form.ts の見た目を写したもの）
   t-mail … メールの1枚のフォーム（factor-crm-next/src/mailform/page.ts の FORM_CSS を写したもの）
   見本だけの部品（右下の札・案の札・足りないところの一覧）は末尾 */

/* ── LIFF ───────────────────────────────────── */
.t-liff * { margin: 0; padding: 0; box-sizing: border-box; }
body.t-liff {
  margin: 0;
  font-family: 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  background: #f5f5f5; color: #333;
  display: flex; justify-content: center; align-items: center; min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere;
}
.t-liff #app { max-width: 480px; width: 100%; padding: 24px 16px 88px; }
.t-liff .form-page { max-width: 480px; margin: 0 auto; padding: 16px; }
.t-liff .form-header { text-align: center; margin-bottom: 24px; }
.t-liff .form-header h1 { font-size: 20px; color: #333; margin-bottom: 8px; }
.t-liff .form-description { font-size: 14px; color: #999; }
.t-liff .file-select-btn { display: block; width: 100%; padding: 12px; border: 2px dashed #cbd5e0; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 15px; cursor: pointer; font-family: inherit; min-height: 48px; }
.t-liff .file-select-btn:active { background: #eef2f7; }
.t-liff .file-list { list-style: none; margin: 8px 0 0; padding: 0; }
.t-liff .file-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 6px; background: #f1f5f9; border-radius: 8px; font-size: 13px; color: #334155; }
.t-liff .file-item .file-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #e2e8f0; border-radius: 6px; flex-shrink: 0; font-size: 18px; }
.t-liff .file-item .file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-liff .file-item .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-liff .file-item .file-status { font-size: 11px; color: #64748b; }
.t-liff .file-item .file-status.ok { color: #16a34a; }
.t-liff .file-item .file-remove { border: none; background: none; color: #94a3b8; font-size: 18px; padding: 4px 6px; cursor: pointer; flex-shrink: 0; min-width: 36px; min-height: 36px; }
.t-liff .file-hint { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.t-liff .form-body { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.t-liff .form-field { margin-bottom: 20px; }
.t-liff .form-label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.t-liff .required-mark { color: #e53e3e; margin-left: 2px; }
.t-liff .form-input, .t-liff .form-textarea, .t-liff .form-select {
  width: 100%; padding: 12px; border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-size: 16px; font-family: inherit; background: #fafafa; color: #333;
  transition: border-color 0.15s; box-sizing: border-box; -webkit-appearance: none; appearance: none; min-height: 48px;
}
.t-liff .form-input:focus, .t-liff .form-textarea:focus, .t-liff .form-select:focus { outline: none; border-color: #06C755; background: #fff; }
.t-liff .form-input:disabled { background: #eee; color: #999; }
.t-liff .form-textarea { resize: vertical; min-height: 80px; }
.t-liff .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.t-liff .radio-group, .t-liff .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.t-liff .radio-group.two-col, .t-liff .checkbox-group.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-liff .radio-label, .t-liff .checkbox-label {
  display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333;
  padding: 10px 12px; background: #fafafa; border-radius: 8px; border: 1.5px solid #e0e0e0;
  cursor: pointer; transition: border-color 0.15s; min-height: 48px; min-width: 0;
}
.t-liff .radio-label:has(input:checked), .t-liff .checkbox-label:has(input:checked) { border-color: #06C755; background: #e8faf0; }
.t-liff .radio-label input, .t-liff .checkbox-label input { accent-color: #06C755; width: 18px; height: 18px; flex-shrink: 0; }
.t-liff .radio-label input[type="radio"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 50%; background: #fff; cursor: pointer; }
.t-liff .radio-label input[type="radio"]:checked { background: #fff; border-color: #06C755; border-width: 5px; }
.t-liff .opt-note { font-size: 12px; color: #94a3b8; margin-left: 2px; }
.t-liff .submit-btn {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: #06C755; color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-top: 8px; transition: opacity 0.15s; min-height: 52px;
}
.t-liff .submit-btn:active { opacity: 0.85; }
.t-liff .submit-btn:disabled { background: #bbb; cursor: not-allowed; }
.t-liff .flow-notice { background: #eef6ff; color: #1e3a5f; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.6; margin: 0 0 12px; white-space: pre-line; text-align: center; }
.t-liff .form-section { font-size: 15px; font-weight: 700; color: #333; margin: 28px 0 14px; padding-top: 16px; border-top: 1px solid #eee; }
.t-liff .inline-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-liff .none-row { margin-top: 8px; }
.t-liff .field-hint { font-size: 13px; color: #64748b; margin: -2px 0 8px; line-height: 1.6; }
/* 完了（index.html の success-card） */
.t-liff .success-card { background: #fff; border-radius: 12px; padding: 32px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center; }
.t-liff .success-icon { width: 64px; height: 64px; border-radius: 50%; background: #06C755; color: #fff; font-size: 32px; line-height: 64px; margin: 0 auto 16px; }
.t-liff .success-card h2 { font-size: 18px; color: #06C755; margin-bottom: 16px; }
.t-liff .success-message { font-size: 14px; color: #666; line-height: 1.6; margin-top: 16px; }
.t-liff .close-btn { margin-top: 24px; width: 100%; padding: 14px; border: 1.5px solid #06C755; border-radius: 8px; background: #fff; color: #06C755; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; display: block; text-align: center; text-decoration: none; }
.t-liff .close-btn:active { background: #e8faf0; }
/* お電話の日時（client/form.ts の call-styles） */
.t-liff .call-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-liff .call-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 4px; border: 1.5px solid #e0e0e0; border-radius: 10px; background: #fafafa; cursor: pointer; text-align: center; }
.t-liff .call-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-liff .call-slot small { font-size: 12px; color: #64748b; }
.t-liff .call-slot b { font-size: 22px; color: #1e293b; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.t-liff .call-slot.on { border-color: #06C755; background: #e8faf0; }
.t-liff .call-slot.on small { color: #047857; }
.t-liff .call-slot:has(input:focus-visible) { outline: 3px solid rgba(6,199,85,.35); }
.t-liff .call-today { font-size: 12px; color: #94a3b8; text-align: center; margin: 10px 0 0; }
.t-liff .call-mid { text-align: center; margin: 18px 0 4px; }
.t-liff .call-link { border: none; background: none; color: #2563eb; font-size: 15px; text-decoration: underline; padding: 8px; cursor: pointer; font-family: inherit; min-height: 44px; }
.t-liff .call-other { margin-top: 16px; }
.t-liff .call-other-a { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 10px; }
.t-liff .call-btn-sub { width: 100%; padding: 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; background: #fff; color: #333; font-size: 16px; font-family: inherit; cursor: pointer; }
.t-liff .call-why { font-size: 13px; color: #94a3b8; text-align: center; margin: 16px 0 0; }
.t-liff .call-err { color: #e53e3e; font-size: 14px; margin: 12px 0 0; text-align: center; }
.t-liff .call-hero { margin: 18px 0 6px; }
.t-liff .call-hero-k { font-size: 14px; color: #64748b; }
.t-liff .call-hero-v { font-size: 34px; font-weight: 700; color: #1e293b; font-variant-numeric: tabular-nums; }
/* 足りないところ（LIFF の赤 #e53e3e に合わせる） */
.t-liff .missing { margin: 4px 0 8px; padding: 10px 12px; border-radius: 8px; background: #fff5f5; color: #c53030; font-size: 13px; }
.t-liff .missing-h { font-weight: 700; margin-bottom: 4px; }
.t-liff .missing ul { list-style: none; }
.t-liff .missing li + li { margin-top: 2px; }
.t-liff .missing button { border: none; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; padding: 4px 0; min-height: 32px; }
.t-liff .form-field.bad .form-input, .t-liff .form-field.bad .form-select, .t-liff .form-field.bad .radio-label, .t-liff .form-field.bad .checkbox-label, .t-liff .form-field.bad .file-select-btn { border-color: #f5a5a5; }
.t-liff .form-field.flash { animation: flash 1.2s ease; border-radius: 8px; }
@media (max-width: 400px) {
  /* 360〜390 の幅で、選択肢の文字が単語の途中で折れないように、外側の余白だけ詰める */
  .t-liff #app { padding-left: 12px; padding-right: 12px; }
  .t-liff .form-page { padding-left: 0; padding-right: 0; }
  .t-liff .form-body { padding: 18px 16px; }
  .t-liff .radio-label, .t-liff .checkbox-label { padding: 10px 10px; gap: 7px; }
}

/* ── 1枚のフォーム（CRM） ───────────────────────── */
.t-mail { --bg:#f5f4f0;--card:#fff;--ink:#1f2328;--sub:#5d646d;--line:#dcdad3;--acc:#1f6f5c;--acc-ink:#fff;--acc-soft:#e6f1ed;--err:#b3261e;--err-soft:#fbeceb;--warn-soft:#fff6e0 }
.t-mail * { box-sizing: border-box; }
html:has(body.t-mail) { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body.t-mail { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI",Meiryo,sans-serif; font-size: 16px; line-height: 1.7; word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
.t-mail .top { position: sticky; top: 0; z-index: 5; background: rgba(245,244,240,.94); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.t-mail .top-in { max-width: 680px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.t-mail .brand { font-weight: 700; letter-spacing: .04em; }
.t-mail .saved { font-size: 13px; color: var(--sub); text-align: right; }
.t-mail .wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 96px; }
.t-mail .ln { display: block; }
.t-mail h1 { font-size: 22px; line-height: 1.5; margin: 4px 0 8px; }
.t-mail .lead { color: var(--sub); margin: 0 0 20px; }
.t-mail .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; margin: 0 0 16px; }
.t-mail .card h2 { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.t-mail .f { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.t-mail .f:last-child { margin-bottom: 4px; }
.t-mail .lbl, .t-mail .f legend { display: block; font-weight: 600; margin: 0 0 8px; padding: 0; font-size: 15px; }
.t-mail .req { display: inline-block; font-size: 11px; font-weight: 700; color: var(--err); border: 1px solid var(--err); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; line-height: 1.6; }
.t-mail .hint { font-size: 13px; color: var(--sub); margin: -4px 0 8px; }
.t-mail input[type=text], .t-mail input[type=tel], .t-mail input[type=email], .t-mail input[type=date], .t-mail input[type=url], .t-mail select { width: 100%; font: inherit; font-size: 16px; padding: 12px 12px; border: 1px solid #c9c6bd; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.t-mail input:disabled { background: #f0efea; color: #999; }
.t-mail input:focus, .t-mail select:focus, .t-mail button:focus-visible, .t-mail .opt input:focus-visible+span { outline: 3px solid rgba(31,111,92,.35); outline-offset: 1px; }
.t-mail .opts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.t-mail .opts.one { grid-template-columns: 1fr; }
.t-mail .opt { position: relative; display: block; }
.t-mail .opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.t-mail .opt > span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px 12px; border: 1px solid #c9c6bd; border-radius: 10px; background: #fff; cursor: pointer; }
.t-mail .opt input:checked + span { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); font-weight: 700; box-shadow: inset 0 0 0 1px var(--acc); }
.t-mail .opt .opt-note { display: inline; border: 0; padding: 0; min-height: 0; background: none; font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 4px; box-shadow: none; }
.t-mail .probs > .hint { margin: 10px 0 4px; }
.t-mail .chk { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #c9c6bd; border-radius: 10px; background: #fff; cursor: pointer; }
.t-mail .chk + .chk { margin-top: 8px; }
.t-mail .chk input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--acc); }
.t-mail .later { margin-top: 8px; }
.t-mail .later .chk { border-style: dashed; background: #fbfaf7; font-size: 14px; }
.t-mail .files { list-style: none; margin: 8px 0 0; padding: 0; }
.t-mail .files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fbfaf7; font-size: 14px; }
.t-mail .files .nm { flex: 1; min-width: 0; word-break: break-all; }
.t-mail .files .ok { color: var(--acc); font-weight: 700; flex: none; }
.t-mail .pick { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 1px dashed var(--acc); border-radius: 10px; color: var(--acc); background: var(--acc-soft); font-weight: 700; cursor: pointer; position: relative; }
.t-mail .pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.t-mail .btn-s { font: inherit; font-size: 13px; border: 1px solid #c9c6bd; background: #fff; border-radius: 8px; padding: 6px 10px; min-height: 36px; cursor: pointer; color: var(--ink); flex: none; }
.t-mail .submit { width: 100%; font: inherit; font-size: 17px; font-weight: 700; min-height: 56px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink); cursor: pointer; }
.t-mail .submit[disabled] { opacity: .55; cursor: default; }
.t-mail .problems { margin: 6px 0 0; padding: 12px 14px 12px 30px; background: var(--err-soft); color: var(--err); border-radius: 10px; font-size: 14px; }
.t-mail .problems li { margin: 2px 0; }
.t-mail .problems button { border: none; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; padding: 4px 0; min-height: 32px; }
.t-mail .note { font-size: 13px; color: var(--sub); margin: 10px 0 0; }
.t-mail .done { text-align: center; padding: 36px 18px; }
.t-mail .done h1 { margin-bottom: 12px; }
.t-mail .f.bad input, .t-mail .f.bad select, .t-mail .f.bad .opt span, .t-mail .f.bad .chk, .t-mail .f.bad .pick { border-color: var(--err); }
.t-mail .inline-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-mail .none-row { margin-top: 8px; }
.t-mail .f.flash { animation: flash 1.2s ease; border-radius: 10px; }
@media (min-width:720px) { .t-mail .wrap { padding-top: 28px; } .t-mail .card { padding: 26px 28px; } }

/* ── 見本だけの部品 ─────────────────────────────── */
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 6px rgba(229,62,62,.18); } 100% { box-shadow: 0 0 0 6px rgba(229,62,62,0); } }
.an-badge { display: none; font-size: 11px; font-weight: 700; color: #7c3aed; background: #f3e8ff; border: 1px solid #c4b5fd; border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; line-height: 1.6; white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; }
body.show-an .an-badge { display: inline-block; }
body.show-an .is-an { box-shadow: -6px 0 0 -3px #c4b5fd; }
.demo-dock { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: flex-end; gap: 8px; max-width: calc(100vw - 24px); }
.demo-chip { position: relative; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; font-size: 13px; line-height: 1.4; }
.demo-chip > button { display: flex; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.96); color: #333; border-radius: 999px; padding: 8px 12px; min-height: 40px; box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; font: inherit; white-space: nowrap; }
.demo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; flex: none; }
.demo-chip.v-now .dot { background: #94a3b8; }
.demo-panel { position: absolute; right: 0; bottom: 48px; width: 252px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 12px; color: #333; }
.demo-panel[hidden] { display: none; }
.demo-panel .dp-h { font-size: 12px; color: #64748b; margin: 0 0 6px; }
.demo-panel .dp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.demo-panel .dp-seg a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px; border: 1px solid #ddd; border-radius: 8px; color: #333; text-decoration: none; font-size: 13px; }
.demo-panel .dp-seg a.on { border-color: #7c3aed; background: #f5f0ff; color: #5b21b6; font-weight: 700; }
.demo-panel label.dp-tog { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; margin-bottom: 12px; }
.demo-panel label.dp-tog input { width: 20px; height: 20px; accent-color: #7c3aed; flex: none; }
.demo-panel label.dp-tog.off { opacity: .45; }
.demo-panel .dp-links { display: flex; justify-content: space-between; gap: 8px; }
.demo-panel .dp-links a, .demo-panel .dp-links button { color: #2563eb; font: inherit; font-size: 13px; background: none; border: none; padding: 8px 0; cursor: pointer; text-decoration: underline; min-height: 40px; }

/* ── コメント（?k= があるときだけ） ───────────────────── */
.cmt-host { position: relative; }
.cmt-host > .form-label, .cmt-host > .lbl, .cmt-host > legend { padding-right: 92px; }
.cmt-host-block { padding-top: 34px; }
.cmt-host > .cmt-btn { position: absolute; top: -6px; right: 0; }
.cmt-btn { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 8px; font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; color: #64748b; background: #fff; border: 1px solid #d5dae1; border-radius: 999px; padding: 0 10px; min-height: 30px; cursor: pointer; white-space: nowrap; letter-spacing: 0; }
.cmt-btn:hover { border-color: #b45309; color: #b45309; }
.cmt-btn.has { color: #92400e; background: #fef3c7; border-color: #f2c94c; }
.cmt-btn[aria-expanded="true"] { color: #fff; background: #b45309; border-color: #b45309; }
.cmt-thread { margin: 10px 0 4px; padding: 12px; background: #fffbeb; border: 1px solid #f2d98a; border-radius: 10px; font: 400 14px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; color: #333; text-align: left; }
.cmt-thread .cmt-for { margin: 0 0 6px; font-size: 12px; color: #92400e; font-weight: 700; }
.cmt-list { list-style: none; margin: 0; padding: 0; }
.cmt-item { padding: 8px 0; border-bottom: 1px dashed #ecd9a0; }
.cmt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #78716c; }
.cmt-meta b { color: #333; }
.cmt-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-del { margin-left: auto; font: inherit; font-size: 12px; color: #b91c1c; background: none; border: 1px solid #fecaca; border-radius: 6px; padding: 0 8px; min-height: 30px; cursor: pointer; }
.cmt-empty { margin: 0; padding: 6px 0; font-size: 13px; color: #78716c; }
.cmt-form { margin-top: 10px; display: grid; gap: 8px; }
.cmt-thread input.cmt-name, .cmt-thread textarea.cmt-body { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #e5d3a1; border-radius: 8px; background: #fff; color: #333; min-height: 40px; margin: 0; }
.cmt-thread textarea.cmt-body { resize: vertical; min-height: 76px; }
.cmt-actions { display: flex; align-items: center; gap: 8px; }
.cmt-count { margin-right: auto; font-size: 12px; color: #a8a29e; }
.cmt-save, .cmt-close { font: 700 14px/1 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; border-radius: 8px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.cmt-save { color: #fff; background: #b45309; border: 1px solid #b45309; }
.cmt-save:disabled { opacity: .6; }
.cmt-close { color: #57534e; background: #fff; border: 1px solid #d6d3d1; font-weight: 500; }
.cmt-err { margin: 0; font-size: 13px; color: #b91c1c; }
.cmt-flash { animation: cmtflash 1.6s ease; }
@keyframes cmtflash { 0%, 50% { box-shadow: 0 0 0 6px rgba(245,158,11,.45); } 100% { box-shadow: 0 0 0 6px rgba(245,158,11,0); } }
.cmt-dock-btn { display: flex; align-items: center; gap: 6px; border: 1px solid #f2c94c; background: #fffbeb; color: #92400e; border-radius: 999px; padding: 8px 12px; min-height: 40px; box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; white-space: nowrap; }
.cmt-sheet { position: fixed; z-index: 60; right: 12px; bottom: 64px; width: 400px; max-width: calc(100vw - 24px); max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain; background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 0 12px 12px; font: 400 14px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; color: #333; text-align: left; }
.cmt-sheet[hidden] { display: none; }
.cmt-sheet-h { position: sticky; top: 0; background: #fff; display: flex; align-items: center; gap: 8px; padding: 12px 0 10px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.cmt-sheet-a { margin-left: auto; display: flex; gap: 6px; }
.cmt-group { margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: #06a14a; }
.cmt-row { display: block; width: 100%; text-align: left; font: inherit; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; cursor: pointer; color: inherit; }
.cmt-row:hover { border-color: #f2c94c; background: #fffbeb; }
.cmt-row span { display: block; }
.cmt-row-f { font-weight: 700; font-size: 13px; }
.cmt-row-m { font-size: 12px; color: #78716c; }
.cmt-row-t { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmt-toast { position: fixed; z-index: 70; left: 50%; bottom: 72px; transform: translateX(-50%); background: #333; color: #fff; font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; padding: 10px 14px; border-radius: 8px; max-width: calc(100vw - 32px); }
.cmt-save, .cmt-close { white-space: nowrap; }
.cmt-sheet-h { flex-wrap: wrap; }
.cmt-sheet-h > b { white-space: nowrap; }
.cmt-sheet-a .cmt-save, .cmt-sheet-a .cmt-close { padding: 0 12px; }

/* お電話の日時：カレンダーと時間帯（11/03 小川さん） */
.t-liff .form-label + .call-cal, .t-liff .form-label + .call-time, .t-liff .form-label + .call-cands { margin-top: 6px; }
.t-liff .call-cal { border: 1.5px solid #e0e0e0; border-radius: 12px; padding: 10px; background: #fff; margin-bottom: 18px; }
.t-liff .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.t-liff .cal-head b { font-size: 16px; color: #1e293b; }
.t-liff .cal-nav { width: 44px; height: 44px; border: none; background: none; font-size: 26px; color: #475569; cursor: pointer; border-radius: 8px; font-family: inherit; }
.t-liff .cal-nav:disabled { color: #d1d5db; cursor: default; }
.t-liff .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.t-liff .cal-w { text-align: center; font-size: 12px; color: #64748b; padding: 4px 0; }
.t-liff .cal-w.sun { color: #e11d48; } .t-liff .cal-w.sat { color: #2563eb; }
.t-liff .cal-d { min-height: 44px; border: 1.5px solid transparent; border-radius: 10px; background: #f4f7f5; font-size: 16px; color: #1e293b; cursor: pointer; font-family: inherit; font-variant-numeric: tabular-nums; position: relative; }
.t-liff .cal-d:disabled { background: none; color: #cbd5e1; cursor: default; }
.t-liff .cal-d.today { border-color: #cbd5e1; }
.t-liff .cal-d.on { background: #06C755; color: #fff; border-color: #06C755; font-weight: 700; }
.t-liff .cal-d.used::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #06C755; }
.t-liff .cal-d.on.used::after { background: #fff; }
.t-liff .call-time { margin-bottom: 18px; }
.t-liff .call-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-liff .call-chip { min-height: 52px; padding: 6px 4px; border: 1.5px solid #e0e0e0; border-radius: 10px; background: #fafafa; font-size: 14px; color: #1e293b; cursor: pointer; font-family: inherit; line-height: 1.35; word-break: keep-all; }
.t-liff .call-chip.on { border-color: #06C755; background: #e8faf0; color: #047857; font-weight: 700; }
.t-liff .call-chip:disabled { color: #cbd5e1; background: #fff; cursor: default; }
.t-liff .call-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; }
.t-liff .call-range span { color: #64748b; }
.t-liff .call-sel { width: 100%; min-height: 48px; font-size: 16px; }
.t-liff .call-add { width: 100%; margin-top: 12px; min-height: 52px; border: 1.5px dashed #06C755; border-radius: 10px; background: #fff; color: #047857; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; padding: 8px 10px; }
.t-liff .call-add:disabled { border-color: #e0e0e0; color: #94a3b8; cursor: default; font-weight: 400; }
.t-liff .call-cands { margin-bottom: 18px; }
.t-liff .call-cand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #06C755; border-radius: 10px; background: #e8faf0; margin-top: 8px; }
.t-liff .call-cand small { font-size: 12px; color: #047857; white-space: nowrap; }
.t-liff .call-cand b { font-size: 16px; color: #1e293b; font-variant-numeric: tabular-nums; }
.t-liff .call-rm { min-height: 40px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #475569; font-size: 14px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.t-liff .call-note { margin-bottom: 4px; }
.t-liff .call-hero-k { font-size: 16px; color: #1e293b; margin: 4px 0; }
.t-liff .call-cand .nw { white-space: nowrap; display: inline-block; }
