/* ============================================================
   顧客画面だけ（案件の作成・共有・確認事項・プレビュー等）。
   **運営コンソールは読まないので、ここは自由に変えてよい。**

   2026-08-16: style.css（867行）を画面ごとに分けたもの。読み込む順は
   index.html / operator.html の <link> の並びが正で、その順に連結すると
   元の style.css と同じ適用順になる。順番を入れ替えないこと。
   ============================================================ */
.brand-icon{ width:26px; height:26px; object-fit:contain; flex:none; }

/* ============================================================
   Stepper - a real sequence, so it is numbered
   ============================================================ */
.stepbar{ background:var(--card); border-bottom:1px solid var(--line); }
.stepbar-in{
  max-width:var(--wrap-max); margin:0 auto; padding:0 20px;
  display:flex; gap:0; overflow-x:auto;
}
.step{
  display:flex; align-items:center; gap:12px; padding:16px 22px 14px;
  border-bottom:4px solid transparent; color:var(--ink-3); white-space:nowrap;
  background:none; border-left:0; border-right:0; border-top:0; cursor:pointer;
  min-height:60px;
}
.step .n{
  width:32px; height:32px; flex:0 0 32px; border-radius:50%;
  display:grid; place-items:center; font-size:.92em; font-weight:700;
  background:var(--line-2); color:var(--ink-3);
}
.step .t{ font-size:.98em; }
.step[data-state="done"]{ color:var(--ink-2); }
.step[data-state="done"] .n{ background:var(--green-soft); color:var(--green); }
.step[aria-current="step"]{ color:var(--ink); border-bottom-color:var(--accent); }
.step[aria-current="step"] .n{ background:var(--accent); color:var(--on-accent); }
.step[aria-current="step"] .t{ font-weight:700; }
/* A step you have not reached yet stays visible - it tells you what is coming -
   but it is not a shortcut: the wizard only moves forward one step at a time. */
.step[disabled]{ cursor:default; opacity:.45; pointer-events:none; }
.step[disabled]:hover{ background:none; }
.sect-h .note{ font-size:.86em; color:var(--ink-3); }

/* Google のブランドガイドラインに沿った、中立色のサインインボタン。
   自社の --accent（オレンジ）で塗ると「Googleの色」に見えなくなるため
   ここだけは意図的に固定色にしている。 */
.btn-google{ background:#fff; border-color:#dadce0; color:#3c4043; gap:12px; }
.btn-google:hover{ background:#f8f9fa; box-shadow:0 1px 2px rgba(60,64,67,.3); }
.btn-google svg{ flex-shrink:0; }

/* Choice cards ----------------------------------------------- */
.choice{
  display:flex; flex-direction:column; gap:14px; text-align:left;
  padding:26px 26px 24px; background:var(--card);
  border:2px solid var(--line); border-radius:var(--radius);
  cursor:pointer; box-shadow:var(--shadow); height:100%;
}
.choice:hover{ border-color:var(--accent); background:var(--card-2); }
.choice[aria-pressed="true"]{ border-color:var(--accent); background:var(--accent-soft); }
.choice .glyph{
  width:60px; height:60px; border-radius:50%; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent-ink); font-size:1.5em;
}
.choice[aria-pressed="true"] .glyph{ background:var(--card); }
.choice h3{ font-size:1.16em; }
.choice p{ color:var(--ink-2); font-size:.94em; }
.choice .meta{ margin-top:auto; font-size:.84em; color:var(--ink-3); padding-top:6px; }

/* Tabs -------------------------------------------------------- */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.tab{
  min-height:48px; padding:0 20px; border-radius:var(--radius);
  border:1px solid var(--line); background:var(--card); cursor:pointer; color:var(--ink-2);
}
.tab[aria-selected="true"]{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:700; }
.panel{ display:none; }
.panel.on{ display:block; }

/* Recorder ---------------------------------------------------- */
.rec{ display:flex; gap:26px; align-items:center; flex-wrap:wrap; }
.rec-btn{
  width:112px; height:112px; border-radius:50%; border:0; cursor:pointer;
  background:var(--clay); color:#fff; display:grid; place-items:center;
  font-weight:700; font-size:.94em; box-shadow:var(--shadow-lg);
}
.rec-btn .dot{ display:block; width:26px; height:26px; border-radius:50%; background:#fff; margin:0 auto 6px; }
.rec.live .rec-btn{ background:var(--ink); }
.rec.live .rec-btn .dot{ border-radius:4px; width:22px; height:22px; }
.rec-state{ flex:1 1 260px; }
.rec-state .big{ font-size:1.14em; font-weight:700; }
.rec-state .t{ color:var(--ink-3); font-size:.9em; }
.wave{ display:flex; align-items:flex-end; gap:4px; height:52px; margin-top:12px; }
.wave i{ width:5px; background:var(--line); border-radius:2px; height:14%; }
.rec.live .wave i{ background:var(--clay); animation:b .9s ease-in-out infinite; }
.wave i:nth-child(3n){ animation-delay:.15s; }
.wave i:nth-child(3n+1){ animation-delay:.35s; }
@media (prefers-reduced-motion:reduce){ .wave i{ animation:none !important; height:52% !important; } }

/* Drop zone --------------------------------------------------- */
.drop{
  border:2px dashed var(--control-line); border-radius:var(--radius); background:var(--card-2);
  padding:40px 26px; text-align:center;
}
.drop .big{ font-size:1.14em; font-weight:700; margin-bottom:6px; }
.drop .t{ color:var(--ink-3); font-size:.9em; }
.filelist{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:10px; }
.filelist li{
  display:flex; align-items:center; gap:14px; padding:14px 16px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--card);
}
.filelist .fx{
  font-size:.74em; font-weight:700; letter-spacing:.06em; padding:4px 8px;
  border-radius:4px; background:var(--accent-soft); color:var(--accent-ink);
}
.filelist .nm{ margin-right:auto; }
.filelist .sz{ color:var(--ink-3); font-size:.86em; }

/* Chips / pills ----------------------------------------------- */
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  display:inline-flex; align-items:center; gap:10px; padding:9px 14px;
  border:1px solid var(--line); border-radius:999px; background:var(--card);
  font-size:.94em;
}
.chip .sw{ width:12px; height:12px; border-radius:3px; }
.chip button{ border:0; background:none; cursor:pointer; color:var(--ink-3); font-size:1.1em; line-height:1; }
.chip.add{ border-style:dashed; color:var(--accent-ink); cursor:pointer; }
/* .rowacts は shared/components.css へ移動（2026-08-16）。admin でも使うため。 */
.rowtools{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-top:16px; }
.rowtools .note{ color:var(--ink-3); font-size:.88em; }

/* Question and answer ---------------------------------------- */
.qa-list{ display:grid; gap:16px; }
.qa{
  border:1px solid var(--line); border-radius:var(--radius); background:var(--card-2);
  padding:20px 22px;
}
.qa.answered{ background:var(--green-soft); border-color:var(--green); }
.qa-top{ display:flex; gap:14px; align-items:flex-start; }
.qa-main{ flex:1 1 auto; }
.qn{
  flex:0 0 auto; width:32px; height:32px; border-radius:50%; display:grid; place-items:center;
  background:var(--card); border:1px solid var(--line); font-size:.86em; font-weight:700;
}
.qa.answered .qn{ background:var(--green); color:var(--on-green); border-color:var(--green); }
.qq{ font-weight:700; }
.qm{ color:var(--ink-3); font-size:.86em; margin-top:4px; }
.qa-ans{ margin:16px 0 0 46px; }
.qa-ans label{ display:block; font-weight:700; font-size:.92em; margin-bottom:8px; }
.qa-foot{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.qa-to{ color:var(--ink-3); font-size:.86em; margin-right:auto; }
.qa-done{ margin:14px 0 0 46px; }
.qa-done .qd{ font-size:1.02em; }
.qa-done .qd .k{
  display:inline-block; font-size:.78em; font-weight:700; color:var(--green);
  border:1px solid var(--green); border-radius:4px; padding:1px 8px; margin-right:10px;
  vertical-align:.15em;
}
.qa-done .btn{ min-height:44px; padding:0 18px; margin-top:12px; font-size:.92em; }
.newrow{ background:var(--green-soft); }
.applied{ color:var(--green); font-weight:700; }
.opt .ot{ font-weight:700; }
.opt .od{ color:var(--ink-3); font-size:.88em; }
.opt .oc{ margin-left:auto; flex:0 0 auto; }
.switch{ display:inline-flex; align-items:center; gap:12px; cursor:pointer; }
.switch input{ position:absolute; opacity:0; width:0; height:0; }
.track{ width:60px; height:34px; border-radius:999px; background:var(--control-line); position:relative; transition:background .15s; }
.track::after{ content:""; position:absolute; top:4px; left:4px; width:26px; height:26px; border-radius:50%; background:var(--card); transition:transform .15s; box-shadow:var(--shadow); }
.switch input:checked + .track{ background:var(--accent); }
.switch input:checked + .track::after{ transform:translateX(26px); }
.switch input:focus-visible + .track{ outline:3px solid var(--focus); outline-offset:2px; }
.switch .lb{ font-weight:700; min-width:3.2em; }

/* Slide previews ---------------------------------------------- */
.slides{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:1199.98px){ .slides{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:767.98px){ .slides{ grid-template-columns:repeat(2,1fr); } }
.slide{ border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--card); }
.slide .thumb{ aspect-ratio:16/9; background:var(--card-2); padding:9px; display:grid; gap:4px; }
.slide .cap{ padding:9px 11px; font-size:.82em; color:var(--ink-2); border-top:1px solid var(--line-2); }
.bar{ background:var(--line); border-radius:2px; height:5px; }
.bar.w40{ width:40%; } .bar.w60{ width:60%; } .bar.w80{ width:80%; }
.bar.ink{ background:var(--ink-3); height:7px; }
.lanes{ display:grid; gap:3px; }
.lane{ display:flex; gap:3px; align-items:center; height:11px; }
.lane .lb{ width:16%; background:var(--line); border-radius:1px; height:100%; }
.lane .bd{ flex:1; background:var(--card); border:1px solid var(--line-2); border-radius:1px; height:100%; position:relative; }
.nodesq{ position:absolute; top:2px; height:7px; width:16%; border-radius:1px; }
.thumb.dark{ background:var(--ink); }
.grid5{ display:grid; grid-template-columns:repeat(5,1fr); gap:3px; }
.cellg{ height:8px; background:var(--line-2); border-radius:1px; }
.cellg.h{ background:var(--ink-3); }

/* Home list --------------------------------------------------- */
.projects{ display:grid; gap:12px; }
.proj{
  display:flex; gap:18px; align-items:center; flex-wrap:wrap;
  padding:20px 22px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow);
}
.proj .pn{ font-size:1.08em; font-weight:700; }
.proj .pm{ color:var(--ink-3); font-size:.88em; }
.proj .pr{ margin-left:auto; display:flex; gap:10px; align-items:center; }
:root[data-role="viewer"] .stepbar{ display:none; }
.vonly{ display:none; }
:root[data-role="viewer"] .vonly{ display:block; }
:root[data-role="viewer"] span.vonly{ display:inline; }

/* Saving, resuming, failing ----------------------------------- */
.save{ display:inline-flex; align-items:center; gap:8px; color:var(--ink-3); font-size:.88em; }
.save::before{
  content:""; width:9px; height:9px; border-radius:50%; background:var(--green); flex:0 0 9px;
}
.save[data-s="saving"]{ color:var(--ink-2); }
.save[data-s="saving"]::before{ background:var(--amber); animation:pulse 1s ease-in-out infinite; }
.save[data-s="error"]{ color:var(--clay); font-weight:700; }
.save[data-s="error"]::before{ background:var(--clay); }
/* 未保存。2026-08-16 に自動保存をやめてから要るようになった。
   **これは点滅させない。**「保存しています」の途中経過とちがって、
   人が一時保存を押すまで出しっぱなしになる状態なので、動くと目障りになる。 */
.save[data-s="dirty"]{ color:var(--amber); font-weight:700; }
.save[data-s="dirty"]::before{ background:var(--amber); }
@media (prefers-reduced-motion:reduce){ .save[data-s="saving"]::before{ animation:none; } }

/* .locked と .locked.warn は shared/components.css へ移動（2026-08-16）。
   定義が admin.css と user.css に割れていて、単体で読むと壊れて見えたため。 */

.resume{
  display:flex; gap:16px; align-items:center; padding:14px 18px; margin-bottom:20px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--accent-soft); color:var(--accent-ink);
}
.resume .k{ font-weight:700; white-space:nowrap; }
.resume .x{
  margin-left:auto; border:1px solid var(--line); background:var(--card); color:var(--ink-2);
  border-radius:var(--radius); min-height:44px; padding:0 14px; cursor:pointer;
}
.prog{ height:10px; border-radius:999px; background:var(--line-2); overflow:hidden; margin:14px 0 8px; }
.prog i{ display:block; height:100%; width:0%; background:var(--accent); transition:width .35s ease; }
.failbox{
  display:flex; gap:16px; padding:20px 22px; border-radius:var(--radius);
  border:1px solid var(--clay); background:var(--clay-soft);
}
.failbox .k{ font-weight:700; color:var(--clay); white-space:nowrap; }

/* Editing lock, in-app notices, offline ----------------------- */
.lockchip{
  display:inline-flex; align-items:center; gap:9px; padding:5px 12px; border-radius:999px;
  background:var(--amber-soft); color:var(--amber); font-size:.86em; font-weight:700;
}
.lockchip::before{ content:"●"; font-size:.7em; }
.lockchip.mine{ background:var(--green-soft); color:var(--green); }

/* 通知・グループ管理などの低頻度操作。文字ラベルを外し正方形のアイコン
   ボタンにする（実在サービスの実画面を根拠にした変更は index.html 側の
   コメント参照）。 */
.icon-btn{
  position:relative; width:44px; height:44px; min-height:44px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
}
.icon-btn .ico{ color:var(--ink-2); }
.icon-btn:hover .ico{ color:var(--ink); }
.badge{
  position:absolute; top:-6px; right:-6px; min-width:23px; height:23px; padding:0 6px;
  border-radius:999px; background:var(--clay); color:#fff; font-size:.72em; font-weight:700;
  display:grid; place-items:center; border:2px solid var(--card);
}
.nlist{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.nrow{
  display:grid; grid-template-columns:64px 1fr 132px; gap:16px; align-items:center;
  padding:16px 18px; border:1px solid var(--line-2); border-radius:var(--radius);
  background:var(--card);
}
.nrow + .nrow{ margin-top:0; }
.nrow.unread{ border-color:var(--line); background:var(--card-2); }
.ntype{
  justify-self:start; width:100%; text-align:center; padding:5px 0; border-radius:5px;
  font-size:.78em; font-weight:700; letter-spacing:.04em;
  background:var(--line-2); color:var(--ink-2);
}
.ntype.done{ background:var(--green-soft); color:var(--green); }
.ntype.fail{ background:var(--clay-soft); color:var(--clay); }
.ntype.share{ background:var(--accent-soft); color:var(--accent-ink); }
.ntype.reply{ background:var(--teal-soft); color:var(--teal); }
.ntype.wait{ background:var(--amber-soft); color:var(--amber); }
.nrow .nb{ min-width:0; }
.nrow .nt{ font-weight:700; line-height:1.5; }
.nrow.unread .nt::before{
  content:""; display:inline-block; width:8px; height:8px; border-radius:50%;
  background:var(--accent); margin-right:9px; vertical-align:.12em;
}
.nrow .nd{ color:var(--ink-3); font-size:.85em; margin-top:3px; }
/* one width, one height - a column of buttons that each hug their label reads
   as an unfinished list */
.nrow .btn{ width:100%; min-height:46px; padding:0 10px; font-size:.92em; }
.shrow .btn{ width:auto; min-width:152px; min-height:46px; padding:0 14px; font-size:.92em; }
@media (max-width:767.98px){
  .nrow{ grid-template-columns:64px 1fr; }
  .nrow .btn{ grid-column:2; }
}

.offbar{
  background:var(--amber-soft); border-bottom:1px solid var(--amber);
  color:var(--ink); position:sticky; top:0; z-index:40;
}
.offbar-in{
  max-width:var(--wrap-max); margin:0 auto; padding:12px 20px;
  display:flex; gap:14px; align-items:center; flex-wrap:wrap;
}
.offbar .k{ font-weight:700; color:var(--amber); white-space:nowrap; }
.offbar{ display:block; }

.shgrp{ margin-bottom:22px; }
.shgrp > h3{
  font-size:.86em; color:var(--ink-2); letter-spacing:.06em; margin-bottom:10px;
}
.shlist{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.shrow{
  display:flex; align-items:center; gap:14px; padding:12px 14px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--card);
}
.shav{
  width:42px; height:42px; flex:0 0 42px; border-radius:8px; display:grid; place-items:center;
  font-weight:700; font-size:.9em; background:var(--accent-soft); color:var(--accent-ink);
}
.shav.person{ border-radius:50%; background:var(--teal-soft); color:var(--teal); }
.shnm{ margin-right:auto; }
.shnm .n1{ font-weight:700; }
.shnm .n2{ color:var(--ink-3); font-size:.84em; }
.shrow select{ width:auto; min-width:132px; min-height:46px; padding:0 12px; }
.shrow .rm{
  border:1px solid var(--line); background:var(--card); border-radius:var(--radius);
  min-height:46px; padding:0 14px; cursor:pointer; color:var(--ink-2);
}
.shrow.owner .shnm .n2{ color:var(--green); font-weight:700; }
.shadd{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.shadd .f{ flex:1 1 260px; }
.shadd .f label{ display:block; font-weight:700; font-size:.9em; margin-bottom:6px; }
.shadd select{ width:auto; min-width:132px; min-height:54px; }
.mkgrp{
  margin-top:14px; padding:16px 18px; border:1px dashed var(--line);
  border-radius:var(--radius); background:var(--card-2);
}
.mkgrp .t{ font-weight:700; margin-bottom:4px; }
.mkgrp .d{ color:var(--ink-3); font-size:.86em; }

/* Real rendered slides replace the schematic thumbnails: what you
   see here is the file you are about to download. */
.slides img.shot{
  display:block; width:100%; height:auto; border:1px solid var(--line);
  border-radius:6px; background:var(--card);
}
.slides .slide{ cursor:zoom-in; }
.shotdlg{ max-width:min(96vw,1400px); }
.shotdlg img{ width:100%; height:auto; display:block; }

.filelist li .rm{
  margin-left:10px; background:none; border:0; cursor:pointer;
  color:var(--ink-3); font-size:1.1em; line-height:1; padding:4px 8px;
}
.filelist li .rm:hover{ color:var(--clay); }

.busy{ opacity:.6; pointer-events:none; }

/* 何も起きていないときは保存表示ごと消す（常時「保存しました」は嘘になる） */
.save:empty{ display:none; }

/* 運営が代理アクセスしているあいだ、画面の一番上に出す帯。
   誰の画面を見ているのか分からないまま操作するのが一番危ないので、
   スクロールしても常に見えるようにする。 */
.opbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #7a2e2e;
  color: #fff;
  font-size: .95em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.opbar .btn {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.opbar .btn:hover { background: rgba(255, 255, 255, .12); }
