/* 日程調整ツールの共通の見た目。CxT AI Partner の意匠（正本: Marketing/brand/cxt-future/CxT_Future_Brand_Identity_Policy_v1.0.md
   と 008_CxtAiPartner/dashboard/app/c/[token]/Portal.module.css の themeDefault）にそろえる。2026-12-03 オーナー指示 */
:root {
  --bg: #faf7ed;          /* Warm Ivory */
  --surface: #ffffff;
  --muted-bg: #f2ede0;
  --ink: #2d2d2d;         /* Charcoal */
  --sub: #6b6b63;
  --line: #e4dfcf;
  --accent: #0f766e;      /* Deep Teal（ボタン・選んだ所） */
  --accent-strong: #2aa198; /* Teal（線・印） */
  --accent-soft: #e6f2ef;
  --attention: #c96a1f;
  --attention-bg: #fbe7d2;
  --ok: #0f766e;
  --err: #b42318;
  --err-bg: #fdecea;
  --radius: 12px;
  --btn-radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }

/* ページ上の帯（ロゴと題名） */
.band { background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; }
.band .in { max-width: 760px; margin: 0 auto; padding: 16px 16px 30px; }
.band .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.band .brand img { height: 30px; width: auto; max-width: 70vw; background: #fff; border-radius: 8px; padding: 5px 10px; }
.band .brand span { font-size: 12px; opacity: .85; }
.band .biz { font-size: 13px; margin: 0; opacity: .9; }
.band h1 { font-size: 24px; margin: 2px 0 6px; font-weight: 700; letter-spacing: .02em; }
.band p { margin: 0; opacity: .92; font-size: 14px; }
.wrap { max-width: 760px; margin: -14px auto 0; padding: 0 16px 80px; position: relative; }
.wide .band .in, .wide .wrap { max-width: 1200px; }

.sample-banner { display: flex; gap: 8px; align-items: flex-start; background: #fff8d6; border: 1px solid #e3c25a; color: #6a4b00; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h2 { font-size: 17px; margin: 0 0 12px; display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.card h2 .ic { margin-top: 5px; }
.card h2 .step { margin-top: 1px; }
.step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; align-items: center; justify-content: center; flex: none; }
.card.locked { opacity: .55; }
.card.locked .body { display: none; }
.card .hint { color: var(--sub); font-size: 13px; margin: 0 0 10px; }

/* アイコン（Codex 制作の線画。色は文字の色に合わせる） */
.ic { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -3px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-calendar { --ic: url(icons/calendar.svg); } .ic-clock { --ic: url(icons/clock.svg); }
.ic-video { --ic: url(icons/video.svg); } .ic-visit { --ic: url(icons/visit.svg); }
.ic-office { --ic: url(icons/office.svg); } .ic-phone { --ic: url(icons/phone.svg); }
.ic-message { --ic: url(icons/message.svg); } .ic-check { --ic: url(icons/check.svg); }
.ic-copy { --ic: url(icons/copy.svg); } .ic-link { --ic: url(icons/link.svg); }
.ic-close { --ic: url(icons/close.svg); } .ic-left { --ic: url(icons/chevron-left.svg); }
.ic-right { --ic: url(icons/chevron-right.svg); } .ic-alert { --ic: url(icons/alert.svg); }
.ic-sample { --ic: url(icons/sample.svg); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: var(--btn-radius); padding: 10px 14px; font-size: 15px; cursor: pointer; color: var(--ink); min-height: 44px; font-family: inherit; text-align: left; }
.choice:hover { border-color: var(--accent-strong); }
.choice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.choice:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 45%, transparent); outline-offset: 2px; }

label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 4px; }
label .req { color: var(--err); font-weight: 700; font-size: 12px; margin-left: 6px; }
label .opt { color: var(--sub); font-weight: 400; font-size: 12px; margin-left: 6px; }
.help { color: var(--sub); font-size: 12px; margin: 2px 0 0; }
input[type=text], input[type=email], input[type=tel], textarea, select { width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-family: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.field-error { color: var(--err); font-size: 13px; margin: 4px 0 0; }
input.bad, textarea.bad, select.bad { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-strong) 35%, #fff); border-radius: var(--btn-radius); padding: 12px 14px; margin: 4px 0 0; }
.summary .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.summary b { font-size: 17px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--btn-radius); padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer; min-height: 48px; font-family: inherit; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #0b5f58; }
.btn.primary[disabled] { opacity: .5; cursor: wait; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.danger { background: #fff; color: var(--err); border: 1px solid var(--err); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--btn-radius); margin-top: 12px; font-size: 14px; }
.alert .ic { margin-top: 4px; }
.alert.err { background: var(--err-bg); color: #7a1a12; border: 1px solid #f1a99f; }
.alert.info { background: var(--accent-soft); color: #134e4a; border: 1px solid color-mix(in srgb, var(--accent-strong) 35%, #fff); }
.alert.warn { background: var(--attention-bg); color: #7a3f0e; border: 1px solid #ebb784; }

.done { text-align: center; padding: 30px 20px; }
.done .mark { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; }
.done .mark .ic { width: 32px; height: 32px; }
.done .big { font-size: 22px; font-weight: 700; margin: 10px 0 4px; }
.done dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; text-align: left; max-width: 480px; margin: 18px auto 0; }
.done dt { color: var(--sub); font-size: 14px; }
.done dd { margin: 0; font-weight: 700; word-break: break-all; }
.done .next { text-align: left; max-width: 480px; margin: 20px auto 0; background: var(--muted-bg); border-radius: var(--btn-radius); padding: 12px 16px; font-size: 14px; }
.done .next p { margin: 0 0 6px; }
.empty { color: var(--sub); padding: 12px 0; }
.foot { color: var(--sub); font-size: 12px; text-align: center; margin-top: 30px; }
.loading { color: var(--sub); }

/* 案内リンクのあいさつ */
.greet { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-strong); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }

/* 週ごとのカレンダー */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.weeklabel { font-weight: 700; font-size: 15px; text-align: center; white-space: nowrap; }
.weeklabel .sm { display: none; }
.weekwrap { overflow-x: auto; }
.weekgrid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.weekgrid th { font-size: 13px; font-weight: 700; padding: 4px 2px; text-align: center; line-height: 1.3; }
.weekgrid thead th small { display: block; font-weight: 400; color: var(--sub); font-size: 11px; }
.weekgrid thead th.nofree { color: #a8a395; }
.weekgrid th.axis { width: 46px; font-size: 12px; color: var(--sub); font-weight: 400; text-align: right; padding-right: 6px; }
.weekgrid td { padding: 0; }
.slot { width: 100%; min-height: 40px; border: 1px solid color-mix(in srgb, var(--accent-strong) 45%, #fff); background: var(--accent-soft); color: #134e4a; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 600; }
.slot:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent-strong) 22%, #fff); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 45%, transparent); outline-offset: 1px; }
.noslot { display: block; min-height: 40px; line-height: 40px; text-align: center; color: #cfc9b8; background: #f6f2e6; border-radius: 8px; font-size: 12px; }
.weekend-note { color: #7a3f0e; background: var(--attention-bg); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin: 0 0 8px; }

/* 確定の欄 */
.who { border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 10px 14px; margin-top: 14px; font-size: 15px; }
.who .k { display: inline-block; min-width: 96px; color: var(--sub); font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 6px 0 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

@media (max-width: 520px) {
  .band h1 { font-size: 20px; } .card { padding: 14px; }
  .weekgrid { border-spacing: 3px; }
  .weekgrid th.axis { display: none; }
  .weekgrid .wd { display: block; }
  .weeklabel .lg { display: none; } .weeklabel .sm { display: inline; }
  .weeknav .btn.small { padding: 6px 8px; font-size: 13px; }
  .slot { font-size: 13px; padding: 0; }
  .done dl { grid-template-columns: 1fr; gap: 0 0; } .done dd { margin-bottom: 8px; }
}

/* 予約の内容（予約した人が開く画面） */
.mlist { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.mlist dt { color: var(--sub); font-size: 14px; }
.mlist dd { margin: 0; font-weight: 700; word-break: break-all; }
@media (max-width: 520px) { .mlist { grid-template-columns: 1fr; gap: 0; } .mlist dd { margin-bottom: 8px; } }

/* 一覧テーブル（管理の画面。一覧UIの標準仕様） */
.tbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tbar input[type=search] { max-width: 320px; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-family: inherit; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--muted-bg); white-space: nowrap; font-size: 13px; position: relative; }
.tbl th .h { display: flex; align-items: center; gap: 4px; }
.tbl th button.sort { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 0; color: var(--ink); }
.tbl th details { display: inline-block; }
.tbl th summary { list-style: none; cursor: pointer; font-size: 11px; color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; background: #fff; }
.tbl th summary.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.tbl th summary::-webkit-details-marker { display: none; }
.tbl th .fpop { position: absolute; z-index: 5; top: 100%; left: 0; min-width: 200px; max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 8px; font-weight: 400; white-space: normal; }
.tbl th .fpop label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 2px 0; font-size: 13px; }
.tbl th .fpop .fall { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.tbl td .sub { display: block; color: var(--sub); font-size: 12px; }
.tbl tr.off td { color: #9a958a; }
.tbl tr.off td .name { text-decoration: line-through; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--muted-bg); color: #6b5b2a; white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: #134e4a; }
.tag.warn { background: var(--attention-bg); color: #7a3f0e; }
.tag.off { background: #eeeae0; color: #8a857a; }
.iconbtn { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; color: var(--accent); font-family: inherit; white-space: nowrap; }
.iconbtn:hover { border-color: var(--accent); }

.iconbtn .ic { width: 14px; height: 14px; vertical-align: -2px; }
