/* おキャス 管理画面の見た目（2026-10-21 社長 GO「Apple のデザインの決まりだけを全画面に当てて」）。
   決まり＝pc-web-design（PC）と iphone-web-design（iPhone）の二枚：
   文字は端末の文字（system-ui）・本文 17px 以上・一覧も 16px 以上・行間 1.5／薄い灰色の字は使わない（文字と背景の差 4.5:1 以上）／
   ボタンは 36px 以上（指で触る端末は 44px）・必ず文字つき／色は青一つ、赤は消す・取り消せない操作だけ／
   説明の文は画面に書かず、丸い「i」を押したときだけ出す（.info） */
:root {
  --bg: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --muted: #515154; --line: #d2d2d7; --line-strong: #a1a1a6; --fill: #eeeef0;
  --blue: #1f58b5; --blue-dark: #174a9c; --blue-soft: #e8f0fb;
  --red: #c62828; --red-soft: #fdecea; --green: #1d6b3d; --green-soft: #e6f4ea;
  --gold: #e8b94a; --gold-soft: #fff6c8; --gold-ink: #6b4f00;
  --navy: #1f58b5; --navy-soft: #e8f0fb;   /* 古い名前（navy）は青に寄せる。画面の中で var(--navy) と書いた所もそのまま青になる */
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.3; }
small { font-size: 1em; }   /* 小さい字は作らない（<small> は「補足」の印として残すが大きさは同じ） */
code { font-size: 1em; background: var(--fill); border-radius: 4px; padding: 0 4px; }

/* ---- 上の帯（白。文字は黒、今いる所は青い下線） ---- */
header.top { background: #fff; color: var(--ink); display: flex; align-items: center; gap: 14px; padding: 10px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); position: relative; z-index: 25; }
header .brand { color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
header nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
header nav a:hover { background: var(--fill); }
nav.drawers { display: flex; gap: 4px; align-items: center; }
nav.drawers details { position: relative; }
nav.drawers summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; user-select: none; min-height: 36px; display: inline-flex; align-items: center; }
nav.drawers summary::-webkit-details-marker { display: none; }
nav.drawers summary::after { content: " ▾"; margin-left: 4px; color: var(--muted); }
nav.drawers summary:hover, nav.drawers details[open] summary { background: var(--fill); }
nav.drawers details.cur summary { box-shadow: inset 0 -3px 0 var(--blue); color: var(--blue); }
nav.drawers .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column; }
nav.drawers .menu a { color: var(--ink); background: transparent; margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 16px; white-space: nowrap; font-weight: 500; }
nav.drawers .menu a:hover { background: var(--blue-soft); color: var(--blue); }
nav.drawers .menu.menu-artists { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); min-width: 440px; max-height: 70vh; overflow-y: auto; overflow-x: hidden; }
nav.drawers .menu.menu-artists a { white-space: normal; line-height: 1.3; }
nav.drawers .menu.menu-artists a small { display: block; color: var(--muted); font-size: 16px; font-weight: 400; }
header .who { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 16px; }
header .who a { color: var(--blue); font-weight: 600; text-decoration: none; }
button.small { font-size: 16px; padding: 6px 12px; min-height: 36px; background: #fff; color: var(--blue); border: 1px solid var(--blue); }
button.small:hover { background: var(--blue-soft); color: var(--blue); }

/* ---- ログイン ---- */
main.login { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow); }
main.login h1 { font-size: 22px; margin: 0 0 16px; text-align: center; }
main.login label { display: block; margin: 12px 0; font-weight: 600; }
main.login input { width: 100%; font-size: 18px; margin-top: 4px; }
button.big { width: 100%; font-size: 18px; padding: 12px; margin-top: 12px; min-height: 48px; }

/* ---- 入力欄とボタン ---- */
select, input[type=text], input[type=number], input[type=time], input[type=date], input[type=password], input[type=search], textarea {
  font: inherit; font-size: 17px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); min-height: 36px; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
button { font: inherit; font-size: 17px; font-weight: 600; padding: 8px 16px; min-height: 36px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; cursor: pointer; }
button:hover { background: var(--blue-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
button.danger:hover { background: var(--red); color: #fff; }
button.ok { background: var(--green); }
button.ok:hover { background: #155230; }
button.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
button.ghost:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
button.ghost.on { background: var(--blue); color: #fff; border-color: var(--blue); }
button.small2 { font-size: 16px; padding: 6px 12px; }
a.btnlink { display: inline-block; background: #fff; color: var(--blue); border: 1px solid var(--blue); font-weight: 600; padding: 7px 14px; border-radius: 10px; text-decoration: none; min-height: 36px; line-height: 1.3; }
a.btnlink:hover { background: var(--blue-soft); color: var(--blue); }
/* 指で触る端末（iPhone・iPad）は押す所を 44px 以上に */
@media (pointer: coarse) {
  button, a.btnlink, select, input[type=text], input[type=number], input[type=time], input[type=date], input[type=password] { min-height: 44px; }
  button.small, button.small2 { min-height: 44px; }
}

/* ---- 本文の枠 ---- */
main { max-width: 1120px; margin: 0 auto; padding: 20px; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card.holiday { background: var(--fill); color: var(--muted); }
.card h2 { margin: 0 0 8px; font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.b-none { background: var(--fill); color: var(--muted); }
.b-skel { background: var(--gold-soft); color: var(--gold-ink); }
.b-adj  { background: var(--blue-soft); color: var(--blue); }
.b-ok   { background: var(--green-soft); color: var(--green); }
.b-open { background: var(--red-soft); color: var(--red); }
.b-end  { background: var(--fill); color: var(--muted); }
.warn { margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.warn.red { background: var(--red-soft); color: var(--red); }
.warn.yellow { background: var(--gold-soft); color: var(--gold-ink); }
.warn.info { background: var(--blue-soft); color: var(--blue); }
.meta { color: var(--muted); font-size: 16px; }
.muted { color: var(--muted); }
/* 丸い「i」（説明）：見出しや欄の横に置く。押すと下に短い文が出て、もう一度押すか外を押すと消える。
   文は data-info に持ち、管理の役割（社長）だけ「直す」で書き換えて保存できる（data-key） */
button.info { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; min-height: 0; padding: 0; margin-left: 6px; border-radius: 50%;
  border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: middle;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; }
button.info:hover, button.info.on { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (pointer: coarse) { button.info { width: 32px; height: 32px; font-size: 17px; } }
.info-pop { position: absolute; z-index: 40; max-width: 420px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.16); color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.6; white-space: pre-line; }
.info-pop a.info-edit { display: inline-block; margin-top: 8px; font-size: 16px; color: var(--blue); }
.info-pop textarea { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; width: 100%; }
section.box, details.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; box-shadow: var(--shadow); }
section.box h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
section.box h3 { margin: 18px 0 8px; font-size: 18px; color: var(--ink); }
.grid-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.grid-check label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--fill); cursor: pointer; min-height: 40px; }
.grid-check input { width: 22px; height: 22px; }
label.chk input { width: 22px; height: 22px; vertical-align: middle; }
.grp { font-weight: 700; color: var(--ink); margin: 12px 0 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 16px; }
th { background: var(--fill); font-weight: 600; color: var(--ink); }
.row-form { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
footer { text-align: center; color: var(--muted); padding: 24px; font-size: 16px; }
.done { color: var(--green); font-weight: 600; }
.notyet { color: var(--muted); }
table.kv th { width: 260px; text-align: left; background: transparent; font-weight: 600; color: var(--ink); }
table.kv td { background: #fff; }
ul.rules { margin: 0; padding-left: 24px; font-size: 17px; line-height: 1.8; }
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; background: #fff; }
.item-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 18px; }
.b-kind { background: var(--gold-soft); color: var(--gold-ink); }
.slots { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
optgroup { font-weight: 700; }

/* ---- 設定のページ（body.settings）。土台と同じ静かな見た目。一覧の行の並べ方だけここに ---- */
body.settings main { max-width: 1040px; }
body.settings h1 { font-size: 22px; font-weight: 700; margin: 6px 0 14px; }
body.settings section.box, body.settings details.box { padding: 22px 26px; margin: 14px 0; }
body.settings section.box h2 { font-size: 18px; margin: 0 0 8px; }
body.settings h2.sec { font-size: 16px; color: var(--muted); font-weight: 600; margin: 22px 0 6px; }
body.settings table.kv th { width: 220px; background: transparent; color: var(--muted); font-weight: 500; font-size: 16px; padding: 14px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
body.settings table.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); }
body.settings table.kv tr:last-child th, body.settings table.kv tr:last-child td { border-bottom: 0; }
body.settings input[type=text] { width: 100%; max-width: 560px; }
body.settings input.short { width: 140px; }
body.settings textarea { width: 100%; }
body.settings input[type=file] { font-size: 16px; }
body.settings button { font-size: 16px; }
body.settings .actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
body.settings .pic { border-radius: 8px; background: var(--fill); border-color: var(--line); }
/* カラーミーの組み合わせの表（プルダウン 1 × プルダウン 2 → 在庫）。押したときだけ開く */
body.settings table.kv.combo th, body.settings table.kv.combo td { width: auto; padding: 4px 8px; font-size: 16px; white-space: nowrap; border: 1px solid var(--line); text-align: center; }
body.settings table.kv.combo th:first-child { text-align: left; }
body.settings table.kv.combo td.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
/* 欄の型（社長だけ）：題は押して直せる（点線の下線）、× で型から消す */
body.settings span.fld-ttl { cursor: pointer; border-bottom: 1px dotted var(--blue); }
body.settings span.fld-ttl i.pen { font-style: normal; color: var(--blue); margin-left: 4px; font-size: 16px; }   /* 鉛筆の印＝押すと題を直せる（2026-10-21 社長「タイトルが変えられない」→ 押す場所を見える形に） */
body.settings span.fld-ttl:hover { background: var(--blue-soft); }
body.settings a.fld-hide { margin-left: 8px; color: var(--red); text-decoration: none; font-weight: 700; padding: 0 4px; }
/* 一覧は一行一品目。押すと中が開く */
body.settings .list-head, body.settings details.row > summary { display: grid; grid-template-columns: 48px minmax(200px, 1fr) minmax(300px, 1.1fr) 64px 56px; gap: 12px; align-items: center; }
body.settings .list-head { padding: 4px 18px; font-size: 16px; color: var(--muted); }
body.settings details.row { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 6px 0; }
body.settings details.row > summary { list-style: none; cursor: pointer; padding: 10px 18px; font-size: 16px; min-height: 44px; }
body.settings details.row > summary::-webkit-details-marker { display: none; }
body.settings details.row > summary:hover { background: var(--bg); }
body.settings details.row > summary .no { color: var(--muted); font-size: 16px; }
body.settings details.row > summary .nm { font-weight: 600; color: var(--ink); }
body.settings details.row > summary .kd { color: var(--muted); font-size: 16px; }
body.settings details.row > summary .st { font-size: 16px; color: var(--green); }
body.settings details.row > summary .st.off { color: var(--muted); }
body.settings details.row > summary .op { color: var(--blue); font-size: 16px; text-align: right; }
body.settings details.row[open] > summary { border-bottom: 1px solid var(--line); }
body.settings details.row[open] > summary .op::before { content: "閉じる"; }
body.settings details.row:not([open]) > summary .op::before { content: "開く"; }
body.settings details.row .body { padding: 10px 18px 18px; }
body.settings details.row.off > summary .nm { color: var(--muted); }
/* 「使わない」の行は行ごと灰色（設定 2・3・4・5 の一覧。一目で分かる。社長 2026-10-29 18:4x。D224） */
body.settings details.row.off { background: #e9e9ed; border-color: #d9d9de; }
body.settings details.row.off > summary { color: var(--muted); }
body.settings details.row.off > summary:hover { background: #e0e0e5; }
body.settings details.row.off > summary .no, body.settings details.row.off > summary .nm, body.settings details.row.off > summary .kd { color: var(--muted); font-weight: 400; }
body.settings details.row.off > summary .st.off { color: #6e6e73; font-weight: 700; }
body.settings details.row.off > summary .op { color: var(--muted); }
body.settings .list-head.items, body.settings details.row.items > summary { grid-template-columns: 48px minmax(220px, 1.2fr) minmax(240px, 1fr) minmax(210px, .7fr) 64px 56px; }
body.settings .list-head.items.five, body.settings details.row.items.five > summary { grid-template-columns: 48px minmax(240px, 1fr) minmax(210px, .7fr) 64px 56px; }
body.settings .list-head.items.six, body.settings details.row.items.six > summary { grid-template-columns: 104px minmax(240px, 1.2fr) 110px minmax(180px, .8fr) 64px 56px; }
body.settings .list-head.items.six .no, body.settings details.row.items.six > summary .no { white-space: nowrap; }
body.settings .list-head.items.prz, body.settings details.row.items.prz > summary { grid-template-columns: 56px minmax(200px, 1.3fr) minmax(120px, .9fr) 60px 110px 60px 64px 56px; }
body.settings .row-form label { font-size: 16px; color: var(--ink); }
body.settings table.kv.diff th { width: 110px; padding-top: 8px; }
body.settings .tag { display: inline-block; font-size: 16px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
body.settings .tag.off { color: var(--red); background: var(--red-soft); }
body.settings .tag.done { color: var(--muted); background: var(--bg); font-weight: 500; }   /* 突き合わせの「解決済み」の行（D206） */
body.settings table.kv.diff td.act { width: 1%; white-space: nowrap; text-align: right; }
body.settings details.more-box > table.kv.diff { margin: 8px 18px 14px; width: calc(100% - 36px); }
body.settings details.row.items > summary .nm small.sub-nm { display: block; font-weight: 400; color: var(--muted); font-size: 16px; margin: 0; }
body.settings table.kv th { white-space: nowrap; }
body.settings details.row.items > summary .nm, body.settings details.row.items > summary .kd { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
body.settings .tags { white-space: normal; overflow: visible; }
body.settings .tags i { display: inline-block; font-style: normal; font-size: 16px; line-height: 1.5; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 1px 8px; margin: 2px 4px 2px 0; }
body.settings td.checks label.chk { margin-right: 14px; font-size: 16px; white-space: nowrap; }
body.settings .sub { display: inline-block; margin-left: 14px; color: var(--muted); font-size: 16px; }
body.settings section.box.lot > h2 { font-size: 18px; margin-bottom: 4px; }
body.settings h3.card-h { font-size: 16px; color: var(--muted); font-weight: 600; margin: 14px 0 4px; }
body.settings small.code { color: var(--muted); font-size: 16px; font-weight: 400; margin-left: 6px; }
body.settings .pdate { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
body.settings .pdate ul.slots { margin: 4px 0 0 18px; padding: 0; color: var(--muted); font-size: 16px; }
body.settings .list-head.camp, body.settings details.row.camp > summary { grid-template-columns: 200px minmax(240px, 2fr) minmax(120px, .6fr) 64px 56px; }
body.settings details.row > summary .st.soon { color: var(--muted); }
body.settings details.row .body h2.sec { margin-top: 18px; }
body.settings details.row .body > h2.sec:first-child { margin-top: 6px; }
body.settings details.row .body table.kv { width: 100%; }
body.settings details.more > summary { cursor: pointer; color: var(--blue); font-size: 16px; font-weight: 600; list-style: none; padding: 8px 0; min-height: 36px; }
body.settings details.more > summary::-webkit-details-marker { display: none; }
body.settings details.more[open] > summary { margin-bottom: 4px; }

/* ---- 設定 5 全スケジュール＝予定表。月ごと。見出しと日付は固定。文字は 16px ---- */
body.sched-page main { max-width: none; padding: 12px 20px; }
.sched-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.sched-top .ttl { font-size: 20px; color: var(--ink); margin-right: 12px; font-weight: 700; }
.sched-months { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sched-months .mchip { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 16px; min-height: 36px; display: inline-flex; align-items: center; }
.sched-months .mchip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.sched-months .mbtn { padding: 6px 10px; color: var(--blue); text-decoration: none; font-size: 16px; }
.sched-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 16px; color: var(--ink); }
.sched-tools .legend i.sw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; vertical-align: -2px; margin: 0 3px 0 8px; border: 1px solid rgba(0,0,0,.12); }
.sched-tools .legend i.sw:first-child { margin-left: 0; }
.sched-tools .toggles label { margin-right: 10px; cursor: pointer; }
.sched-tools .toggles small { color: var(--muted); margin-left: 2px; }
.sched-tools a.src { color: var(--blue); text-decoration: none; }
.sched-wrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table.sched { table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.3; width: max-content; }
table.sched th, table.sched td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 9px; vertical-align: middle; text-align: center; background: #fff; height: 52px; overflow: hidden; }
table.sched thead th { position: sticky; top: 0; z-index: 3; background: var(--fill); color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 2px solid var(--line-strong); height: 42px; }
table.sched td.g-plan, table.sched td.g-detail, table.sched td.g-req { text-align: left; }
table.sched thead th { text-align: center; }
table.sched th.d { position: sticky; left: 0; z-index: 2; background: #fff; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; text-align: left; padding-left: 12px; border-right: 2px solid var(--line-strong); }
table.sched thead th.d { z-index: 4; background: var(--fill); text-align: center; padding-left: 9px; }
table.sched th.d a { color: inherit; text-decoration: none; }
table.sched th.d small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 1px; }
table.sched tr.wd土 th.d, table.sched tr.wd土 th.d small { color: var(--blue); }
table.sched tr.wd日 th.d, table.sched tr.wd日 th.d small, table.sched tr.holiday th.d, table.sched tr.holiday th.d small { color: var(--red); }
table.sched tr.today th.d { background: var(--gold-soft); box-shadow: inset 4px 0 0 var(--gold); }
table.sched tr.today td { box-shadow: inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
table.sched td .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
table.sched td.g-artist .t, table.sched td.g-staff .t { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; font-size: 16px; }
table.sched td.g-detail, table.sched td.g-stats { color: var(--ink); }
table.sched thead th .rz { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 5; }
table.sched thead th .rz:hover, table.sched.resizing thead th .rz { background: rgba(31,88,181,.35); }
table.sched.resizing { cursor: col-resize; user-select: none; }
table.sched thead th input.rename { font: inherit; font-size: 16px; width: 100%; padding: 2px 4px; border: 1px solid var(--blue); border-radius: 4px; text-align: inherit; min-height: 0; }
.sched-tools .editnote { flex-basis: 100%; }
.sched-tools button.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.sched-tools button.ghost:hover { background: var(--blue-soft); }
table.sched td.c-red { background: #ffd9d6; }
table.sched td.c-yellow { background: #fff2a8; }
table.sched td.c-blue { background: #d6e8ff; }
table.sched td.c-green { background: #dff5df; }
table.sched td.c-orange { background: #ffe6cc; }
table.sched td.c-pink { background: #fde0ec; }
table.sched td.c-grey { background: #e6e6e6; color: var(--ink); }
table.sched td.c-black { background: #3a3a3a; color: #fff; }
table.sched tr.past td { color: var(--muted); }
.sched-tools .legend i.sw.red { background: #ffd9d6; } .sched-tools .legend i.sw.yellow { background: #fff2a8; } .sched-tools .legend i.sw.blue { background: #d6e8ff; }
.sched-tools .legend i.sw.black { background: #3a3a3a; margin-left: 2px; } .sched-tools .legend i.sw.grey { background: #e6e6e6; }

/* ---- 期間の写真とグッズ ---- */
.big-name { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.pic { background: var(--fill); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic .none { color: var(--muted); font-size: 16px; }
.pic.banner { width: 320px; height: 180px; flex: none; }
.pic.artist { width: 100%; aspect-ratio: 3 / 2; }
.pic.goods { width: 140px; height: 140px; flex: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.photo-card.empty { border-style: dashed; }
.photo-card.borrowed .pic { outline: 3px solid var(--gold); outline-offset: -3px; }
.photo-card .nm { font-weight: 700; font-size: 18px; margin-top: 6px; }
.photo-card .nm small { font-weight: 400; color: var(--muted); font-size: 16px; margin-left: 4px; }
.photo-card .from { background: var(--gold-soft); color: var(--gold-ink); border-radius: 8px; padding: 4px 8px; font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.35; }
.photo-card .up { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.photo-card input[type=file] { font-size: 16px; width: 100%; }
.photo-card form + form { margin-top: 6px; }
.goods-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); }
.goods-row:first-of-type { border-top: 0; }
.goods-row .fields { flex: 1; min-width: 0; }
input[type=file] { font: inherit; font-size: 16px; }

/* ---- 受注一覧（受注・依頼の表）。白い表、文字 16px、横スクロールなし ---- */
main:has(.ledger) { max-width: 1900px; padding-top: 0; }
/* 見出しの帯：上に貼り付く（社長 2026-10-23「今日が何日かは、常に見えるように」）。白の半透明にぼかし（iPhone の上の帯）。
   文字は 受注一覧・日付・締め切り・番組終了・回戦・ゲームの結果・今日 だけ */
.ledger-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 -20px 12px; padding: 10px 20px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
/* 帯の作り直し（社長 2026-10-26 00:0x「見た目をちゃんとしろ」。PC の規範：名前・値・操作だけ、押せる物は押せると分かる形に）：
   左＝画面の名前「受注一覧」（濃い字）＋小さい ⓘ／真ん中＝放送日の箱（薄い灰色の角丸の押す物。字の幅に合わせ、矢印は中の右端）／右＝今日の日付（小さく静かに） */
.ledger-head h1 { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink); display: inline-flex; align-items: center; letter-spacing: .02em; }
.ledger-head h1 button.info { width: 22px; height: 22px; margin-left: 6px; border-width: 1px; }   /* 帯の ⓘ は字と同じくらいの大きさに（社長 2026-10-25 23:5x GO。文字は 16px のまま＝D40） */
.ledger-head .daypick { display: inline-flex; align-items: center; }
.ledger-head .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger-head .daypick select, .ledger-head .bigday { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.ledger-head .daypick select { border: 0; background-color: var(--fill); padding: 5px 38px 5px 14px; min-height: 40px; border-radius: 10px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23515154' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.ledger-head .daypick select:hover { background-color: var(--line); }   /* 幅は選んでいる字に合わせて JS が決める（ledger.html の fitDaypick。矢印が字から離れて浮かない） */
.ledger-head .bigday { background: var(--fill); padding: 5px 14px; min-height: 40px; border-radius: 10px; display: inline-flex; align-items: center; }
.ledger-head .todaytag { font-size: 16px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 12px; line-height: 1.4; }
.ledger-head .today { margin-left: auto; font-size: 16px; color: var(--muted); white-space: nowrap; }
.ledger-head .today b { color: var(--ink); font-size: 16px; font-weight: 600; margin-left: 4px; }
/* 帯の下の一行：締め切り・番組終了・回戦・ゲームの結果（貼り付かない） */
.ledger-tools { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 0 12px; font-size: 16px; }
.ledger-tools .rounds { margin-left: 0; flex-wrap: wrap; }
.rounds .round-tg span { white-space: nowrap; }
@media (max-width: 600px) {
  .ledger-head { padding: 8px 16px; gap: 6px 10px; }
  .ledger-head h1 { font-size: 16px; }
  .ledger-head .daypick select, .ledger-head .bigday { font-size: 20px; }
  .ledger-head .daypick select { padding: 4px 32px 4px 12px; background-position: right 11px center; }
  .ledger-head .today { font-size: 16px; }
  .ledger-head .today b { font-size: 16px; }
  .rounds { gap: 10px; padding: 5px 10px; }
}
p.origin { margin: 0; padding: 12px 18px 0; font-size: 16px; color: var(--muted); }
/* 数字・取り込み・絞り込み：押したときだけ開く（社長 2026-10-23「出どころから検索までは、開いたらでるようにする」）。見出しの行には数字の要点だけ。中の枠は線で区切るだけ（枠の中に枠を作らない） */
details.more-box { padding: 0; overflow: hidden; }
details.more-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 12px 18px; min-height: 48px; font-size: 16px; user-select: none; }
details.more-box > summary::-webkit-details-marker { display: none; }
details.more-box > summary:hover { background: var(--bg); }
details.more-box > summary .t { font-weight: 600; color: var(--ink); }
details.more-box > summary .digest { color: var(--muted); font-variant-numeric: tabular-nums; }
details.more-box > summary .digest b { color: var(--ink); font-weight: 700; }
details.more-box > summary .chev { margin-left: auto; margin-right: 4px; width: 10px; height: 10px; border-right: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); transform: rotate(45deg); transition: transform .2s ease-out; }
details.more-box[open] > summary { border-bottom: 1px solid var(--line); }
details.more-box[open] > summary .chev { transform: rotate(-135deg); }
details.more-box > .tiles { margin: 12px 0; padding: 0 18px; }
details.more-box > section.box, details.more-box > details.box { border: 0; border-radius: 0; box-shadow: none; margin: 0; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; align-items: stretch; }   /* 160px＝ジャケット 3＋数の札 5＋目標 2 の 10 列が 1,800px に一段で収まる幅。字は 16px のまま（D40）。社長 2026-10-27 23:5x */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.tile .k { color: var(--muted); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tile .k2 { color: var(--muted); font-size: 16px; margin-top: 4px; }
.tile .v { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 16px; color: var(--muted); font-weight: 600; }
.tile.ok .v { color: var(--green); }
.tile.camp { grid-column: span 3; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.tile.camp .jk { width: 96px; height: 96px; flex: 0 0 96px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--fill);
                 display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.3; }
.tile.camp .jk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.camp .ct { flex: 0 1 160px; min-width: 0; line-height: 1.35; }
.tile.camp .t1 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tile.camp .t2 { font-size: 16px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.tile.camp .k2 { margin-top: 4px; }
.tile.camp .nums { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.tile.camp .n .k { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile.camp .n .v { font-size: 22px; margin-top: 0; white-space: nowrap; }
.tile.camp .n .v small { font-size: 16px; margin-left: 1px; }
.tile.camp .n .v.prev { color: var(--muted); font-weight: 700; }
.tile.camp .n .v.good { color: var(--green); }
@media (max-width: 1100px) { .tile.camp { grid-column: span 2; } }
@media (max-width: 640px) { .tile.camp { grid-column: span 1; } .tile.camp .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 受注一覧の「目標」の箱：上の段の右端に 2 列ぶん。中は 2 列（社内目標｜セットの何日目／毎日この目標｜保存／公開の目標）、一番下に出どころの一行。はみ出さない（min-width 0・1 行で省略）。社長 2026-10-27 23:5x */
.tile.settings { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
.tile.settings .gl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; margin-top: 8px; align-items: end; }
.tile.settings label { display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 600; color: var(--ink); min-width: 0; }
.tile.settings label.chk { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; min-height: 36px; white-space: nowrap; }
.tile.settings .sv { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; }
.tile.settings .pub { grid-column: 1 / -1; font-size: 16px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.tile.settings .pub a { margin-left: 4px; white-space: nowrap; }
.tile.settings input, .tile.settings select { font-size: 16px; padding: 6px 8px; width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.tile.settings label.chk input { width: 22px; height: 22px; flex: 0 0 22px; }
.tile.settings .src { margin-top: auto; padding-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
@media (max-width: 640px) { .tile.settings { grid-column: span 1; } .tile.settings .gl { grid-template-columns: minmax(0, 1fr); } }
.chips-box { padding: 12px 16px; }
.chips { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; padding: 5px 0; }
.chips + .chips { border-top: 1px dashed var(--line); }
.chips .lbl { font-weight: 700; color: var(--ink); width: 56px; font-size: 16px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 16px; text-decoration: none; border: 2px solid transparent; line-height: 1.5; min-height: 36px; }
.chip b { font-weight: 700; margin-left: 2px; }
.chip:hover { border-color: var(--blue); }
.chip.on { border-color: var(--blue); background: #fff; font-weight: 700; }
.chip.item { color: var(--ink); }
.chip.item[style*="--c"] { background: color-mix(in srgb, var(--c) 30%, #fff); }   /* 品目の色は薄めて使う（原色のまま塗らない。2026-10-23） */
.chip.other { background: #fff; border-color: var(--line); }
.chip.red { background: var(--red-soft); border-color: var(--red); color: var(--red); font-weight: 700; }
.badge.b-red { background: var(--red-soft); color: var(--red); font-weight: 700; }
.badge.b-yellow { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; }   /* 突き合わせが止まっている（D175） */
/* 状態 9 つの色（社長 2026-10-05：受付済・確認中＝青、キャンセル＝赤、取消＝黒）。2026-10-23「どぎつい色にしない」：全部うすい下地に濃い字（べた塗りをやめる） */
.chip.st-accepted { background: #e8f0fb; color: #1f4e9a; }
.chip.st-checking { background: #d5e3f8; color: #143f85; }
.chip.st-cancelled { background: var(--red-soft); color: var(--red); }
.chip.st-void { background: #e5e5ea; color: #3a3a3c; }
.chip.st-assigned { background: var(--gold-soft); color: var(--gold-ink); }
.chip.st-made { background: #ececf0; color: #3a3a3c; }
.chip.st-checked { background: var(--green-soft); color: var(--green); }
.chip.st-sent { background: #d4ecdb; color: #155230; }
.chip.st-opened { background: #ece4f5; color: #4a2778; }
.chips.search input[type=text] { font-size: 16px; padding: 6px 10px; }
.table-box { padding: 12px 14px; }
/* 横スクロールはしない（社長 2026-10-05）。表は画面の幅に収め、列の幅は見出し（th）の class で決める。狭い画面では重要でない列を畳む */
.ledger-table { font-size: 16px; line-height: 1.35; table-layout: fixed; width: 100%; border-collapse: collapse; }   /* 全部の罫線は #ededed の小さな点線（社長 2026-11-07 ⑤「全ての罫線をいれてください。色は、＃edededで小さな点線」。D351）。線を重ねずに一本にする */
/* 列の幅は割合（合計が 100% を超えないので、表が画面からはみ出さない）。AI の読みは残りの幅 */
.ledger-table .c-read { width: 3.1%; }
.ledger-table .c-no { width: 3.4%; }   /* No・繰越は狭く左寄せ（社長 2026-10-26 23:5x）。「枚数外」の札が切れないように、マスの左右の余白を 2px にした（下の td.num）。前は 3.9%（10/25 23:5x）*/
.ledger-table .c-pub { width: 2.0%; }
.ledger-table td.num:not(.qty), .ledger-table th.c-no, .ledger-table th.c-pub { text-align: left; }   /* No・繰越は左寄せ（数は右のまま） */
.ledger-table td.num:not(.qty) { padding-left: 2px; padding-right: 2px; }
.ledger-table .c-order { width: 132px; }   /* 受注番号は 9 桁が必ず全部見える幅（px で固定。割合にしない。6% だと 1,920px でも「2239152…」と切れた。社長 2026-10-29 16:2x「この桁数は全部見えないと仕事にならない」。D219） */
.ledger-table .c-mark { width: 2.4%; }
.ledger-table .c-name { width: 6%; }
.ledger-table .c-nick { width: 6%; }
.ledger-table .c-msg { width: 6.2%; }
.ledger-table .c-kind { width: 2.4%; }
.ledger-table .c-item { width: 11.5%; }   /* リク内容は広く（社長 2026-10-26 23:5x「もう少し大きく」。前は 9%） */
.ledger-table .c-who { width: 5.6%; }
.ledger-table .c-amt { width: 3%; }
.ledger-table .c-qty { width: 2.2%; }
.ledger-table .c-time { width: 3.8%; }
.ledger-table .c-note { width: 6.5%; }
.ledger-table .c-remark { width: auto; }   /* 備考は残りの幅（備考が正。2026-10-26 23:4x：AI の読みを半分にして、余りは備考へ） */
/* AI読みの列を三分割（社長 2026-11-07「セット | 確 | AI」。D351）：セット（.c-who。前の担当の欄がここへ）・確（小さなチェック）・AI（印だけ）。前の AI の読みの幅 8.6% は、印だけになったので備考（残りの幅）へ */
.ledger-table .c-set { width: 5.2%; }   /* セット＝実際に置く人（普段は空。名簿の一人）。担当（.c-who）は元の場所のまま（社長 2026-11-07「担当がなくなってるぞ」→ 三つの定義。D352） */
.ledger-table .c-chk { width: 2.2%; }
.ledger-table .c-ai { width: 3%; }
.ledger-table td.chk { text-align: center; }
input.chkbox { width: 15px; height: 15px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--red); }
button.aiic { display: inline-block; min-width: 30px; min-height: 0; padding: 1px 6px; border-radius: 5px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; background: var(--blue-soft); color: var(--blue); border: 1px solid transparent; cursor: pointer; box-shadow: none; white-space: nowrap; }   /* AI の印（社長 2026-11-07 ①「今のAI読みをAIのアイコンにして」。押すと真下に読みが開く）。PC の受注一覧では 13px（下の body.ledger-pc） */
button.aiic.staff { background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold-ink); }
button.aiic.err { background: var(--red-soft); color: var(--red); }
button.aiic.unread { background: var(--fill); color: var(--muted); }
button.aiic.on, button.aiic:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.aipop { position: absolute; z-index: 70; max-width: 420px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.14); padding: 8px 10px; font-size: 16px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; animation: okyasu-open .2s ease-out; }   /* AI の読みの吹き出し（印の真下に 0.2 秒で開く。原則 24の2）。PC の受注一覧では 14px（下の body.ledger-pc） */
.aipop .l + .l { margin-top: 4px; }
.aipop .l.note { color: var(--gold-ink); }
.aipop .l.err { color: var(--red); }
.ledger-table td.item[style*="color:#fff"] small.note, .ledger-table td.item[style*="color:#fff"] .okwlab, .ledger-table td.item[style*="color:#fff"] .val { color: inherit; }   /* 濃い色のマス（歌リク・3回戦）の中の字は白のまま */
.ledger-table .c-view { width: 2.4%; }     /* 「観」の列（AI の読みの後ろ。社長 23:3x「AI読みの後ろに出そう」。D187） */
.ledger-table td.view { text-align: center; }
.ledger-table td.num .badge { padding: 0 4px; }   /* No の列の札（枚数外・取消）は詰めて、列の中に収める */
.ledger-table .c-status { width: 8.4%; }   /* 「！ OK」と状態の選択肢を一行に並べる幅（社長 2026-11-01 22:3x「OK が入ってる事により二行になっていて見にくい」。前は 6.4%。余りは備考から。D271） */
/* 狭い画面では重要でない列を畳む（横スクロールはしない）：1800px 以下＝繰越・商・通・時間、1400px 以下＝追記・指定ア・AI の読み・観（担当からの一言の列は 2026-10-23 に外した） */
@media (max-width: 1800px) { .ledger-table .c-pub, .ledger-table .c-mark, .ledger-table .c-kind, .ledger-table .c-time,
  .ledger-table td.pub, .ledger-table td.mark, .ledger-table td.kind, .ledger-table td.time { display: none; }
  .ledger-table .c-status { width: 10.5%; } }
@media (max-width: 1400px) { .ledger-table .c-note, .ledger-table .c-msg, .ledger-table .c-ai, .ledger-table .c-chk, .ledger-table .c-set, .ledger-table .c-view,
  .ledger-table td.note-cell, .ledger-table td.msg, .ledger-table td.ai, .ledger-table td.chk, .ledger-table td.setc, .ledger-table td.view { display: none; }
  /* 残った列に幅を配り直す（AI の読みも畳み、備考を広く取る。備考が正。AI の読みは備考の吹き出しに入っている） */
  .ledger-table .c-read { width: 5%; } .ledger-table .c-no { width: 5.4%; } .ledger-table .c-order { width: 132px; } .ledger-table .c-name { width: 10%; } .ledger-table .c-nick { width: 10%; }
  .ledger-table .c-item { width: 14%; } .ledger-table .c-who { width: 9%; } .ledger-table .c-amt { width: 5%; } .ledger-table .c-qty { width: 4%; } .ledger-table .c-remark { width: 14.1%; } .ledger-table .c-status { width: 12.5%; } }
.ledger-table td.note-cell { color: var(--ink); }
.ledger-table td.ai { color: var(--ink); }
.ledger-table td.ai small.note { display: block; color: var(--gold-ink); }   /* 人の判断が要る行は「！」の札だけで示す（マスの黄色い下地は 2026-10-23 にやめた） */
.ledger-table tr:not(.open) td.ai small.note { display: inline; margin-left: 6px; }
.ledger-table th { position: sticky; top: var(--lh, 0px); background: var(--fill); color: var(--ink); font-size: 16px; font-weight: 600; padding: 6px 6px; white-space: normal; line-height: 1.2; vertical-align: bottom; z-index: 1; overflow: hidden; overflow-wrap: anywhere; border: 1px dotted #ededed; }   /* 罫線は全部 #ededed の小さな点線（社長 2026-11-07 ⑤。D351） */
.ledger-table td { padding: 6px 6px; border: 1px dotted #ededed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.ledger-table td.clip { cursor: pointer; }
.ledger-table tr.open td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.ledger-table tr.open td.clip { background-color: var(--gold-soft); }
/* 備考の「写す」（D280。2026-11-02）：閉じているときは出さず、備考を押して開いたときだけ文の下に */
.ledger-table td.remark button.rcopy { display: none; }
.ledger-table tr.open td.remark button.rcopy { display: inline-block; margin-top: 6px; }
/* 備考開く（D367。社長 2026-11-08 19:3x「押すと、全ての備考が開き、最期の文字まで読めるようにする」）：表に remopen が付いている間は備考の列を折り返して最後の字まで出す（「写す」も出る）。行を押して開く tr.open とは別に効く */
.ledger-table.remopen td { vertical-align: top; }
.ledger-table.remopen td.remark { white-space: normal; overflow-wrap: anywhere; }
.ledger-table.remopen td.remark button.rcopy { display: inline-block; margin-top: 6px; }
.lc details.rem button.rcopy { margin-top: 6px; }
.ledger-table tbody tr:hover:not(.st-cancelled):not(.st-void) td { background: var(--blue-soft); }   /* なでた薄い青。キャンセル・取消の行には当てない（下地だけ薄い青になって字が消えていた。社長 2026-11-09 22:1x「触れても動かないようにしてください」「誤作動といいます。改めてください」。D376） */
.ledger-table tr.alt td { background: #f4f4f4; }   /* 受注ごとに薄いグレーを交互に敷く（受注の切れ目が一目で分かる。社長 2026-11-01 22:3x「薄いグレーを交互に入れてくれ」。D271）。色は #f4f4f4（社長 2026-11-07 ④「受注番号ごとの互い違いのグレーは「＃f4f4f4」の色にしてください」。D351）。なでた青・戻った金・観覧の橙・選んだ青・確の赤は後ろの行で上書きして勝つ */
.ledger-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-table td.muted, .ledger-table .muted { color: var(--muted); }
.ledger-table td.no { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; text-overflow: clip; }   /* 受注番号は … で切らない（幅は .c-order の px で確保。D219） */
.ledger-table td.name { font-weight: 600; }
.ledger-table tr { scroll-margin-top: 56px; }
.ledger-table tr:target td { background: var(--gold-soft); }
.ledger-table td.mark { text-align: center; }
.mk { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 6px; font-size: 16px; font-weight: 700; text-align: center; background: var(--fill); color: var(--ink); }
.mk-キ { background: var(--blue-soft); color: var(--blue); }
.mk-会 { background: var(--gold-soft); color: var(--gold-ink); }
.mk-他 { background: var(--fill); color: var(--muted); }
.kd { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.kd-voice { background: #E6F0FF; color: #1F4E9A; }
.kd-image { background: #FDE9EF; color: #A6264D; }
.kd-viewing { background: #FFC078; color: #7A3E00; }                 /* 観覧の「観」はオレンジ（社長 2026-10-27 00:5x 取り決め 2。前は黄色。D187） */
.ledger-table tr.viewing td { background: #FFEEDD; }                 /* 観覧の受注の行は薄いオレンジ（PC の表） */
.lc.alt { background: #f4f4f4; }                                     /* スマホの札も受注ごとに薄いグレーを交互に（D271。色は社長 2026-11-07 ④ の #f4f4f4） */
.lc.viewing { background: #FFEEDD; }                                 /* 観覧の受注の札は薄いオレンジ（スマホの札） */
.ledger-table tr.chk td { background: #ffdede; }                     /* 「確」をチェックした行は赤く（社長 2026-11-07 ③「そこがチェックされたら、全体を赤くしてください」。濃さは Claude の作り：字が読める薄い赤。交互のグレー・観覧の橙より後ろに書いて勝つ。D351） */
.lc.chk { background: #ffdede; }
.ledger-table td.nick { font-weight: 600; }
.ledger-table td.msg small { color: var(--muted); }
.ledger-table td.msg.sub { color: var(--muted); font-weight: 400; }   /* 2 行目以降の指定ア＝同じご注文は同じ人（薄い字。社長 2026-10-29。D228） */
.ledger-table td.item { font-weight: 600; }
.ledger-table td.item[style*="--c"] { box-shadow: inset 4px 0 0 var(--c); background-color: color-mix(in srgb, var(--c) 16%, #fff); }   /* 品目の色：左の細い帯＋ごく薄い下地（原色で塗らない。2026-10-23） */
.ledger-table td.item small.note { font-weight: 400; color: var(--ink); margin-left: 6px; }
.ledger-table tr.open td.item small.note { display: block; margin-left: 0; }
.ledger-table td.remark { color: var(--ink); }
/* 行の色は受注ごとの交互の薄いグレーだけ（D271。状態ごとの色分けは 2026-10-23 にやめた）。
   キャンセル・取消の行：マスの下地 #353435・字 #c1c1c1・横線（社長 2026-11-07 12:5x「キャンセルは行は#353435の色に。文字はc1c1c1で横線」。D356）。交互のグレー（alt）・確の赤（chk）より強い */
.ledger-table tr.st-cancelled td, .ledger-table tr.st-void td,
.ledger-table tr.alt.st-cancelled td, .ledger-table tr.alt.st-void td, .ledger-table tr.chk.st-cancelled td, .ledger-table tr.chk.st-void td { background: #353435; color: #c1c1c1; text-decoration: line-through; }
.ledger-table tr.st-cancelled td :not(select):not(button):not(input), .ledger-table tr.st-void td :not(select):not(button):not(input) { color: #c1c1c1; }
.ledger-table tr.st-cancelled td .val, .ledger-table tr.st-cancelled td .val.empty, .ledger-table tr.st-cancelled td .val.anon, .ledger-table tr.st-cancelled td small, .ledger-table tr.st-cancelled td .grip,
.ledger-table tr.st-void td .val, .ledger-table tr.st-void td .val.empty, .ledger-table tr.st-void td .val.anon, .ledger-table tr.st-void td small, .ledger-table tr.st-void td .grip { color: #c1c1c1; }   /* 空の値（—・（使い道なし））の薄い字も同じ色に（暗い下地で見えなくならないように） */
/* キャンセル・取消の行はマウスが触れても動かない（社長 2026-11-09 22:1x「キャンセルになおすものはありません。触れても動かないようにしてください」。D376）：なでても下地はそのまま、並べ替えのつまみも出さない */
.ledger-table tr.st-cancelled:hover td, .ledger-table tr.st-void:hover td { background: #353435; }
.ledger-table tr.st-cancelled td.no .grip, .ledger-table tr.st-void td.no .grip { display: none; }
.ledger-table tr.st-cancelled td.status, .ledger-table tr.st-cancelled td.read,
.ledger-table tr.st-void td.status, .ledger-table tr.st-void td.read { text-decoration: none; }
/* CD メッセージの行（msgrow）の薄い下地は 2026-11-01 にやめた（受注ごとの交互のグレーに置き換え。D271） */
.ledger-table form { margin: 0; }
.ledger-table .badge { font-size: 16px; padding: 0 8px; }
select.st-sel { font-size: 16px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; min-height: 36px; max-width: 100%; }
select.st-sel.st-accepted { background: #e8f0fb; color: #1f4e9a; }
select.st-sel.st-checking { background: #d5e3f8; color: #143f85; }
select.st-sel.st-cancelled { background: var(--red-soft); color: var(--red); }
select.st-sel.st-void { background: #e5e5ea; color: #3a3a3c; }
select.st-sel.st-assigned { background: var(--gold-soft); color: var(--gold-ink); }
select.st-sel.st-made { background: #ececf0; color: #3a3a3c; }
select.st-sel.st-checked { background: var(--green-soft); color: var(--green); }
select.st-sel.st-sent { background: #d4ecdb; color: #155230; }
select.st-sel.st-opened { background: #ece4f5; color: #4a2778; }
select.st-sel:disabled { opacity: .7; cursor: not-allowed; }
/* 読上の印：丸い印。押すと青く塗られて ✓（iPhone の選択の丸。緑のべた塗りは 2026-10-23 にやめた） */
button.readbtn { width: 22px; height: 22px; min-height: 22px; padding: 0; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }   /* PC の ○ は細く小さく 22px・線 1.5px（社長 2026-10-26 23:5x「でかい。もっと細い〇で小さく」。前は 26px・2px） */
button.readbtn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
button.readbtn:hover { border-color: var(--blue); background: var(--blue-soft); }
button.readbtn.on:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
@media (pointer: coarse) { button.readbtn { width: 40px; height: 40px; min-height: 40px; } }
/* 一覧の行でその場で入れる。押せるマスは、なでると青い点線。空のマスは ▾ */
.ledger-table td.edit { cursor: pointer; }
.ledger-table td.edit:hover { outline: 2px dashed var(--blue); outline-offset: -2px; }
.ledger-table td.edit .val.empty { color: var(--muted); font-weight: 400; }
.ledger-table td.edit .val.empty::after { content: ' ▾'; color: var(--blue); font-weight: 700; }
.ledger-table td.editing { overflow: visible; padding: 2px 3px; outline: none; }
/* 字を打つマス（ニックネーム・量・数・時間・追記）：入力中は ！・✓・字・補足を隠し、入力の欄だけをそのマスの上にかぶせる（右に押し出されて隣の列にかぶらない。
   社長 2026-11-01 22:5x「入力が横に出て、何が何だかわからなくなってる。上にしてください」。D271） */
.ledger-table td.typing > .nbang, .ledger-table td.typing > .okc, .ledger-table td.typing > .val, .ledger-table td.typing > small { display: none; }
.ledger-table td.typing { overflow: hidden; }
.ledger-table td.typing .cell-ed { display: block; }
.ledger-table td.saving { opacity: .55; }
.cell-ed { font: inherit; font-size: 16px; font-weight: 600; width: 100%; max-width: 100%; min-width: 0; padding: 4px 6px; margin: 0; min-height: 32px;
  border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: var(--ink); box-sizing: border-box; }
/* リク内容・担当の自前の一覧：必ずマスの真下。動きの演出なし（社長 2026-10-29 23:0x。D227） */
.dd { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.14);
  max-height: min(60vh, 520px); overflow: auto; padding: 6px; box-sizing: border-box; font-size: 16px; }
.dd .hd { display: flex; gap: 6px; align-items: stretch; margin: 0 0 6px; }
.dd .in { display: block; flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 600; padding: 8px 10px; min-height: 44px;
  border: 2px solid var(--blue); border-radius: 6px; margin: 0; color: var(--ink); background: #fff; }
.dd .x { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 6px; background: var(--fill); color: var(--ink); border: 1px solid var(--line-strong);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; }
.dd .x:hover { background: var(--line); color: var(--ink); }
.dd .now { padding: 4px 10px 6px; color: var(--muted); font-size: 16px; }
.dd .g { padding: 8px 10px 2px; color: var(--muted); font-size: 16px; font-weight: 700; }
.dd .it { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 10px 12px; min-height: 44px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; box-shadow: none; line-height: 1.3; }
.dd .it:hover, .dd .it.hl { background: var(--blue-soft); color: var(--ink); }
.dd .it.cur { font-weight: 700; }
.dd .it.cand { color: var(--gold-ink); font-weight: 600; }
.dd .it.clear { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px;
  border-radius: 10px; font-weight: 600; font-size: 16px; z-index: 50; opacity: 0; transition: opacity .2s ease-out; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; }
#toast.bad { background: var(--red); }
details.items-box { padding: 12px 16px; }
details.items-box summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 17px; list-style-position: inside; min-height: 36px; }
details.items-box summary .meta { font-weight: 400; }
details.items-box .chips:first-of-type { margin-top: 6px; }
.chip.pick { border-color: var(--line); }
.chip form.inline { display: inline; margin: 0; }
.chip button.x { background: transparent; color: var(--red); padding: 0 6px; min-height: 0; font-size: 16px; font-weight: 700; border: 0; margin-left: 2px; line-height: 1; border-radius: 50%; }
.chip button.x:hover { background: var(--red); color: #fff; }
.chip small.muted { color: var(--muted); font-weight: 400; }
.chips.add-item input[type=text] { font-size: 16px; padding: 6px 10px; }
.chips.add-item select { font-size: 16px; padding: 6px 8px; }
.chips.add-item label { font-size: 16px; font-weight: 600; }
/* AI が備考を読んだ結果：候補は「候補：」を添えて出し、✓ 一つで確定 */
.ledger-table td.edit .val.cand { color: var(--gold-ink); font-style: italic; font-weight: 600; }
.ledger-table td.edit .val.cand::before { content: '候補：'; font-weight: 400; color: var(--muted); font-style: normal; }
button.okc { width: 28px; height: 26px; min-height: 0; padding: 0; margin-left: 4px; border-radius: 6px; background: var(--gold); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1; vertical-align: middle; }
button.okc:hover { background: var(--green); color: #fff; }
.aibadge { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 16px; font-weight: 700; background: var(--blue-soft); color: var(--blue); margin-right: 4px; cursor: help; vertical-align: middle; }
.ledger-table tr.cont td.item, .ledger-table tr.cont td.who, .ledger-table tr.cont td.amt, .ledger-table tr.cont td.qty { color: var(--muted); font-weight: 400; }
.ledger-table td .val.cont { color: var(--muted); }
.ledger-table td.remark.same { color: var(--muted); }   /* 同じ受注の二行目からの備考は「〃」（量の 〃 と同じ薄い字。社長 2026-11-08「同じ内容の備考は置かない。1行目だけ。〃マークにする」。D367） */
.ledger-table td.nick .val.anon { color: var(--muted); font-weight: 400; }
/* ニックネームの ！（D257）：人が入れていない欄・AI の読みが違う欄に赤い ！。候補（AI の読み）は灰色で、✓ 一押しで入る */
.nbang { display: inline-block; min-width: 22px; padding: 0 6px; margin-right: 4px; border-radius: 5px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 16px; line-height: 1.5; text-align: center; vertical-align: middle; }
.ledger-table td.nick .val.cand { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 4px; }
.ledger-table td.nick .val.cand::before { content: ''; }
.ledger-table td.nick.bang { background: #fff7f7; }
.chip.st-nick, .chip.st-bang { background: var(--red-soft); color: var(--red); cursor: default; }   /* ニックネーム！ と、決まっていない受注の ！ n（D281） */
html.restoring { visibility: hidden; }   /* 受注一覧を自分で読み直したあと、同じ位置へ戻し終わるまで見せない（上から飛ぶ動きを見せない。D283） */
.lc .nm .nbang { margin-left: 6px; }
.ledger-table td.nick small.hint { display: block; color: var(--gold-ink); font-weight: 400; white-space: normal; }
/* 注意の理由は 1 行に切る（行の高さをそろえる）。行を開く（備考のマスを押す）と全文 */
.ledger-table td.status small.issue { display: none; color: var(--gold-ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 注意の字は二段目に出さず、欄のふきだし（title）で読む。行を一段に（社長 2026-11-04 13:5x「行が二行にならないように、全体が型崩れしないように」。D319） */
.ledger-table tr.open td.status small.issue { white-space: normal; }
.ledger-table td.status small.issue:empty { display: none; }
.aibadge.staff { background: var(--gold-soft); color: var(--gold-ink); }
.aibadge.err { background: var(--red-soft); color: var(--red); }
/* 行の「！ OK」（押すとその行の AI の候補を OK。D158）：見た目は印のまま小さく、押す所は見えない余白で 44px に。
   状態の選択肢と同じ一行に並べる（.stl）。前は選択肢の上に置いていて行が二行になっていた（社長 2026-11-01 22:3x「OK が入ってる事により二行になっていて、本当にみにくい」。D271） */
form.f-aiok { display: inline; margin: 0; }
button.aibadge { border: 1px solid var(--gold-ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; min-height: 0; line-height: 1.5; padding: 1px 6px; position: relative; white-space: nowrap; }
button.aibadge::after { content: ""; position: absolute; inset: -10px -8px; }
button.aibadge:hover { filter: brightness(0.95); }
@media (pointer: coarse) { button.aibadge { min-height: 0; } }
td.status .stl, .lc .st .stl { display: flex; align-items: center; gap: 4px; min-width: 0; }
td.status .stl form.f-status, .lc .st .stl form.f-status { flex: 1 1 auto; min-width: 0; }
td.status .stl select.st-sel { width: 100%; }
td.status .stl form.f-aiok, .lc .st .stl form.f-aiok { display: block; flex: 0 0 auto; margin: 0; }
.stl button.aibadge { margin-right: 0; }
.lc .st .stl { gap: 8px; }
.hitbadge { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: 16px; font-weight: 700; background: var(--green-soft); color: var(--green); margin-left: 4px; text-decoration: none; vertical-align: middle; white-space: nowrap; }
.hitbadge:hover { background: #d4ecdb; }
.hitbadge.win { background: var(--gold-soft); color: var(--gold-ink); }
.hitbadge.win:hover { background: #f7ebb0; }
.hitbadge.half { background: #fdebd9; color: #8a4600; }
.hitbadge.okw { background: #ece4f5; color: #4a2778; }
.okwlab { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 16px; font-weight: 400; white-space: nowrap; }   /* おかわりの小さな札「19:00過ぎに予約」（名前には付けない。社長 2026-11-01 13:2x「小さくていい。混雑しないように」） */
.showend { font-size: 16px; white-space: nowrap; color: var(--muted); }
.showend b { color: var(--ink); }
.showend .showend-btn { background: #fff; color: var(--blue); border: 1px solid var(--blue); font-weight: 600; }
.showend .showend-btn:hover { background: var(--blue-soft); }
.showend form.inline { display: inline; margin-left: 4px; }
.showend button.x { background: transparent; color: var(--muted); border: 0; padding: 0 8px; min-height: 32px; font-size: 18px; font-weight: 700; line-height: 1; border-radius: 8px; }   /* 取り消す ×：静かに（濃い四角にしない） */
.showend button.x:hover { background: var(--red-soft); color: var(--red); }
.game .hits-table input[type=text] { font-size: 16px; padding: 4px 8px; }
.prizebadge { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: 16px; font-weight: 600; background: var(--blue-soft); color: var(--blue); margin-left: 3px; vertical-align: middle; white-space: nowrap; }
.prizebadge.unpaid { background: var(--gold-soft); color: var(--gold-ink); }
.prizebadge.off { background: var(--fill); color: var(--muted); text-decoration: line-through; }
.ledger-tools .cutoff { display: inline-flex; align-items: center; padding: 4px 10px; min-height: 36px; border-radius: 8px; color: var(--muted); font-size: 16px; text-decoration: none; }
.ledger-tools .cutoff b { color: var(--ink); font-size: 17px; margin-left: 4px; }
.ledger-tools .cutoff:hover { background: var(--fill); }
.ledger-tools .gamelink { display: inline-flex; align-items: center; padding: 4px 12px; min-height: 36px; border-radius: 8px; color: var(--blue); font-weight: 600; font-size: 16px; text-decoration: none; }
.ledger-tools .copybtn { min-height: 36px; }
/* 受注検索（コピーの右。社長 2026-11-07 12:5x「検索をコピーの横」「「受注検索」と書いてもってきて」→ 15:5x「!はいらない」＝ ⓘ は出さない。D356）：小さな字と入力だけ */
.ledger-tools .topsearch { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 4px; }
.ledger-tools .topsearch .lbl { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ledger-tools .topsearch input[type=text] { width: 220px; min-height: 30px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; }   /* 字の大きさ（14px）はスタッフの PC 画面の塊（body.ledger-pc）で */
.ledger-tools .remopen { margin-left: auto; }   /* 備考開く：帯の下の一行の右端（社長 2026-11-08「受注一覧の右側に」。D367）。色と囲みは body.ledger-pc の塊で */
/* この日の決めの窓（D369。社長 2026-11-09 10:30「①」＝一日の入力を畳む）：「締め切り」は押せる字（見た目は前の字のまま）。押すとその真下に白い窓が 0.2 秒で開く（位置と透け具合だけ。原則 24の2）。
   形は AI の読みの吹き出し（.aipop）と同じ：白地・薄い線・小さな影。字の大きさは PC で 14px（下の body.ledger-pc の塊）、スマホは 16px のまま */
.ledger-tools .daywrap { position: relative; display: inline-flex; }
.ledger-tools button.cutoff { background: transparent; border: 0; box-shadow: none; color: var(--muted); font-weight: 400; cursor: pointer; }
.ledger-tools button.cutoff:hover, .ledger-tools button.cutoff.on { background: var(--fill); color: var(--muted); }
.daypop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 70; width: 460px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.14); padding: 10px 12px; font-size: 16px; line-height: 1.5; color: var(--ink); text-align: left; white-space: normal; animation: okyasu-open .2s ease-out; }
.daypop[hidden] { display: none; }
.daypop .dp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; }
.daypop label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 400; }
.daypop label.dp-block { display: block; white-space: normal; margin: 0 0 8px; }
.daypop input[type=text], .daypop select { font-size: 16px; min-height: 32px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; }
.daypop input[name=cutoff] { width: 84px; }
.daypop textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 2px; font-size: 16px; }
.daypop .dp-act { margin: 10px 0 0; gap: 8px; }
.daypop .dp-act .dp-close { background: #fff; color: var(--ink); border: 1px solid #c1c1c1; }
.chips.search .qnow { font-weight: 600; color: var(--ink); }
/* 行を選ぶ（D217）：受注番号のマスを押す。選んだ行は柔らかい青に光る（濃い枠は付けない。社長 2026-10-28 23:4x「ブルーが柔らかく光って選択してる状態に上品で」） */
.ledger-table td.no { cursor: pointer; }
.ledger-table tr.sel td { background: #eef4ff; }
.ledger-table tr.sel { outline: 2px solid rgba(31, 88, 181, 0.32); outline-offset: -2px; }
.ledger-table tr.sel td.no { color: var(--blue); }
.lc.sel { background: #f4f8ff; border-color: rgba(31, 88, 181, 0.45); box-shadow: 0 0 0 3px rgba(31, 88, 181, 0.12); }   /* 浮かせない・動きの演出なし（動きの決め 一。D271） */
.lc .l1 span.no { cursor: pointer; }
/* つかんで並べ替え（D218。YouTube の再生リストの形）：取っ手 ⋮⋮ は行に乗せると見える。つかむと行の写しが浮いて影つき、元の場所は青い置き場。放すと静かに光る */
.ledger-table td.no .grip { display: inline-block; width: 16px; margin-right: 4px; color: var(--line-strong); cursor: grab; opacity: 0; transition: opacity 0.15s ease; user-select: none; touch-action: none; font-size: 16px; letter-spacing: -3px; text-align: center; vertical-align: middle; }
.ledger-table tr:hover td.no .grip, .ledger-table tr.sel td.no .grip { opacity: 1; }
.ledger-table td.no .grip:hover { color: var(--blue); }
/* 列の境目をつまんで幅を変える（PC の表。Excel と同じ）：見出しの右端 8px が取っ手。なでると青い線。幅はこのブラウザが覚える（社長 2026-10-29 16:2x「手動で幅を決めれる仕様」→ GO。D219） */
.ledger-table th .colrs { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.ledger-table th .colrs:hover, .ledger-table th .colrs.on { background: linear-gradient(to right, transparent 3px, var(--blue) 3px, var(--blue) 5px, transparent 5px); }
body.resizing-col, body.resizing-col * { cursor: col-resize !important; user-select: none; }
body.dragging-row, body.dragging-row * { cursor: grabbing !important; user-select: none; }
.ledger-table tr.placeholder td { background: #e6efff !important; box-shadow: inset 0 0 0 2px rgba(31, 88, 181, 0.28); }
.ledger-table tr.placeholder td > * { visibility: hidden; }
.ghost-table { position: fixed; z-index: 1000; pointer-events: none; table-layout: fixed; border-collapse: collapse; background: #fff; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(31, 88, 181, 0.28); border-radius: 10px; overflow: hidden; transform: scale(1.008); font-size: 16px; line-height: 1.35; }
.ghost-table td { padding: 6px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; background: #fff; border-bottom: 0; }
.ledger-table tr.moved td { animation: row-glow 3.2s ease-out; }
@keyframes row-glow { 0% { background-color: #d6e4ff; } 60% { background-color: #eef4ff; } }   /* 100% は書かない＝終わると元の色（受注ごとの交互のグレー）に戻る（D271） */
/* コピーの元の文：画面の外に置く（hidden だと iPhone で選べない）。2026-10-23 */
.copysrc { position: fixed; left: -9999px; top: 0; width: 10px; height: 10px; opacity: 0; font-size: 16px; }
.ledger-tools .gamelink:hover { background: var(--blue-soft); }
.history h2 { font-size: 18px; margin: 14px 0 4px; }
.history h2:first-child { margin-top: 0; }
.history .hday { display: flex; justify-content: space-between; max-width: 360px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 40px; }
.history .hday:hover { background: var(--blue-soft); }
.history .hday .n { color: var(--muted); }
.game .round h2 { font-size: 20px; margin: 0 0 8px; }
.game .round h3 { font-size: 18px; margin: 14px 0 6px; }
.game .winner-table { width: auto; min-width: 420px; max-width: 100%; }
.game .winner-table th, .game .winner-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.game .winner-table tr.won td { background: var(--green-soft); }
.game .winner-table td.num, .game .winner-table th.num { text-align: right; }
.badge.b-won { background: var(--green); color: #fff; font-size: 16px; padding: 1px 10px; }
.game .hits-table th, .game .hits-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; vertical-align: middle; }
.game .hits-table tr.drawn td { background: #f6faf7; }
.game .hits-table select { font-size: 16px; padding: 4px 6px; max-width: 320px; }
.game .hits-table td.no a { color: var(--blue); }
section.ai-box { padding: 12px 16px; }
section.ai-box h2 { font-size: 18px; margin-bottom: 8px; }
section.ai-box .row-form form { margin: 0; }
section.ai-box .import-row { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
section.ai-box details.linetext { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
section.ai-box details.linetext summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; min-height: 36px; }
section.ai-box textarea { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; margin-top: 6px; width: 100%; }
section.ai-box .text-ai { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
section.ai-box .text-ai.accepted { background: #f6faf7; }
section.ai-box .text-ai.discarded { opacity: .6; }
section.ai-box .text-ai ul { margin: 4px 0 8px 18px; }
section.ai-box .text-ai .row-form form { margin: 0; }
.prizebadge.addon { background: var(--blue-soft); color: var(--blue); }
.prizebadge.addon.unpaid { background: var(--gold-soft); color: var(--gold-ink); }

/* ---- 特典（スタッフ）（管理 → 8。PC。社長 2026-10-23 17:3x・17:5x「デザインは基本設定と同じように PC で」）：設定の画面と同じ作り。セット／郵送 は上のボタンで切り替え ---- */
body.settings main:has(.staffp) { max-width: 1500px; }
.staffp .stafftop { margin: 0 0 14px; gap: 10px 16px; flex-wrap: nowrap; align-items: center; }
/* ==== スタッフの PC 画面（特典（スタッフ）の見出し .staffp .stafftabs） ==== */
/* 見出し（九つ）は一列に、小さく（社長 2026-11-03 00:0x「タイトルは小さくていいから、一列に綺麗に。PC で見やすく」→ 00:3x「少し大きく、ボタンとボタンの間の間隔を少し開けて」。D293）。字は 14px、間は 12px（スタッフの PC 画面。D287。16px の決め D40 はこの塊を見ない） */
.staffp .stafftabs { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; min-width: 0; overflow-x: auto; }
body.settings .staffp .stafftabs a.btnlink { font-size: 14px; font-weight: 500; padding: 5px 12px; min-height: 34px; line-height: 1.3; border-radius: 8px; white-space: nowrap; }
/* ==== 特典（スタッフ）の見出し ここまで ==== */
/* 観覧の受付（特典（スタッフ）→ 観覧）はスマホ専用の一画面 viewing.html に移した（見た目はその中。2026-10-27 03:0x）。下の .vwbox/.vwlist は古い札の分（使われていない。消す許可待ち） */
.vwbox .vwseg { display: flex; gap: 8px; margin: 0 0 12px; }
.vwbox .segb { flex: 1 1 0; min-height: 44px; font-size: 1.0625rem; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); }
.vwbox .segb.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.vwlist { list-style: none; margin: 0; padding: 0; }
.vwlist.hidden { display: none; }
.vwlist .vwrow { margin: 0 0 8px; }
.vwlist .vwrow .sw { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 1.0625rem; line-height: 1.5; transition: transform .2s ease-out, opacity .2s ease-out; touch-action: pan-y; }
.vwlist .vwrow .sw.lift { box-shadow: 0 8px 20px rgba(0,0,0,.14); }   /* 浮かせない（動きの決め 一。D271） */
.vwlist .vwrow .sw.out { transform: translateX(-110%) !important; opacity: 0 !important; }
.vwlist .vwrow.in .sw { background: #EEF9F0; border-color: #BFE3C6; }
.vwlist .vwrow .n { color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 2.2em; text-align: right; }
.vwlist .vwrow .no { font-variant-numeric: tabular-nums; font-weight: 700; flex: 0 0 auto; }
.vwlist .vwrow .nm { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vwlist .vwrow .seats, .vwlist .vwrow .at, .vwlist .vwrow .st { color: var(--muted); font-size: 1rem; flex: 0 0 auto; }
.vwlist .vwrow .b { flex: 0 0 auto; min-width: 64px; min-height: 44px; padding: 0 14px; font-size: 1.0625rem; font-weight: 600; border-radius: 12px; border: 1px solid var(--blue); background: #fff; color: var(--blue); }
.vwlist .vwrow .b.back { border-color: var(--line-strong); color: var(--ink); }
.vwbox .vwhint { margin-top: 10px; }   /* アーティストのページの観覧の札の見た目は me.html の中（そのページは自分の style を持つ） */
.staffp .stafftop label { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.staffp .stafftop a.btnlink.on { background: var(--blue); color: #fff; }
table.stafftbl { font-size: 16px; }
/* 8. 検収（2026-10-23 GO）：NG の印と違いだけ赤。OK は黒、要約は薄く */
table.accept th, table.accept td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line, #e5e5ea); vertical-align: top; }
table.accept .ngmark, table.accept .notes { color: var(--red); font-weight: 600; }
table.stafftbl th { position: sticky; top: 0; background: var(--fill); z-index: 1; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.stafftbl td { vertical-align: middle; }
table.stafftbl td.no { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
table.stafftbl td.no small { color: var(--muted); font-weight: 400; }
table.stafftbl td.name, table.stafftbl td.d { font-weight: 600; white-space: nowrap; }
table.stafftbl td.item { font-weight: 600; }
table.stafftbl td.item .amt { color: var(--blue); font-weight: 700; margin-left: 4px; white-space: nowrap; }
/* 字は折り返さない（社長 2026-10-23）：品目・担当・状態は一行。備考・追記は 1 行に切って押すと開く（表の自動の幅では td の max-width が効かないので、中の span で切る） */
table.stafftbl td.item, table.stafftbl td.who, table.stafftbl td.st, table.stafftbl td.nick { white-space: nowrap; }
table.stafftbl td.remark { cursor: pointer; }
table.stafftbl .rt { display: block; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.stafftbl tr.open .rt { white-space: normal; max-width: none; overflow-wrap: anywhere; }
table.stafftbl .nt { display: block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.stafftbl tr.open .nt { white-space: normal; max-width: none; overflow-wrap: anywhere; }
table.stafftbl .it2 { display: inline-block; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
table.stafftbl .nk { display: inline-block; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* 郵送の表は列が多い。ふつうの PC（1366px）に収める：品目・追記を少し短く、1500px 以下では放送日を畳む（郵送日が主） */
table.stafftbl.mail .it2 { max-width: 200px; }
table.stafftbl.mail .nt { max-width: 160px; }
@media (max-width: 1500px) { table.stafftbl.mail .c-bday, table.stafftbl.mail td.bday, table.stafftbl.mail .c-nick, table.stafftbl.mail td.nick { display: none; } }   /* 1366px の PC に収める（放送日・ニックネームを畳む。氏名と受注番号で足りる） */
/* 狭い画面（ノート PC の半分 1000px 前後）では 備考・ニックネーム・放送日 を畳み、品目・追記を短く切る（横スクロールはしない） */
@media (max-width: 1100px) {
  table.stafftbl.mail .c-remark, table.stafftbl.mail td.remark, table.stafftbl.mail .c-nick, table.stafftbl.mail td.nick, table.stafftbl.mail .c-bday, table.stafftbl.mail td.bday { display: none; }
  table.stafftbl .it2 { max-width: 170px; }
  table.stafftbl .nt { max-width: 150px; }
  table.stafftbl th, table.stafftbl td { padding: 6px 5px; }
  table.stafftbl.mail .c-note, table.stafftbl.mail td.note { display: none; }   /* 郵送の表は列が多いので、狭い画面では追記も畳む */
}
table.stafftbl.sets { table-layout: fixed; }   /* 列の幅は colgroup で固定：「編集」の欄（colspan の行）を開いても表が横に伸びない */
table.stafftbl.sets td, table.stafftbl.sets th { overflow: hidden; }
table.stafftbl.sets td.vid { white-space: normal; }   /* 動画の列：再生・削除・セット・編集。入らなければ次の行へ */
table.stafftbl.sets td.vid form.upf { display: inline-block; }
table.stafftbl td.vid form.upf { display: inline; margin: 0; }
table.stafftbl td.vid .prog { color: var(--blue); font-weight: 600; }
table.stafftbl td.vid .meta { margin: 0 6px; }
/* 「編集」（トップ・エンド・テロップ。社長 2026-10-23 17:5x）：紫は編集だけの色。押すと、その行の下の一行（tr.edrow）に欄が横長で開く */
table.stafftbl td.vid button.edtoggle { margin-left: 6px; color: #5B3FA6; border-color: #5B3FA6; background: #fff; cursor: pointer; font-size: 16px; }
table.stafftbl td.vid button.edtoggle:hover, table.stafftbl td.vid button.edtoggle.on { background: #EFEAFB; }
table.stafftbl tr.edrow td { background: #F5F1FC; padding: 10px 14px; white-space: normal; }
table.stafftbl form.edform { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0; width: 0; min-width: 100%; }   /* width 0＋min-width 100%：表の幅を広げず、行の幅いっぱいに折り返して並ぶ */
table.stafftbl form.edform .edt { font-weight: 700; color: #5B3FA6; }
table.stafftbl form.edform label { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; white-space: nowrap; }
table.stafftbl form.edform label > span { color: var(--muted); }
table.stafftbl form.edform label input[type=text] { width: 200px; font-size: 16px; padding: 6px 8px; min-height: 36px; }
table.stafftbl form.edform label.btnlink.go { display: inline-flex; justify-content: center; background: #5B3FA6; color: #fff; border-color: #5B3FA6; cursor: pointer; }
table.stafftbl form.edform label.btnlink.go.off { pointer-events: none; background: var(--line); color: var(--muted); border-color: var(--line); }
table.stafftbl form.edform .capcnt.t-over { color: var(--red); font-weight: 700; }
table.stafftbl form.edform .capcnt.t-large .tier { color: var(--green); }
table.stafftbl form.edform .capcnt.t-small .tier { color: #A85300; }
table.stafftbl form.edform .prog { color: #5B3FA6; font-weight: 600; }
table.stafftbl td.vid .jobl { display: inline-block; font-weight: 600; color: #5B3FA6; background: #F5F1FC; border-radius: 8px; padding: 4px 10px; }
table.stafftbl td.vid .jobl.failed { color: var(--red); background: var(--red-soft); margin-bottom: 4px; white-space: normal; }
table.stafftbl label.btnlink { cursor: pointer; }
table.stafftbl label.btnlink input[type=file] { display: none; }
table.stafftbl tr.st-sent td { color: var(--muted); }
table.stafftbl tr.mailed td { color: var(--muted); }
table.stafftbl button.txt { background: transparent; border: 0; color: var(--red); font-size: 16px; font-weight: 600; padding: 4px 6px; min-height: 32px; }
table.stafftbl button.txt:hover { text-decoration: underline; }
table.stafftbl label.chk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; font-weight: 600; }
table.stafftbl td.st .ok { color: var(--green); font-weight: 600; }
table.stafftbl td.st .ng { color: var(--muted); }
.staffp details.mailed-box > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 10px 0; min-height: 40px; list-style: none; }
.staffp details.mailed-box > summary::-webkit-details-marker { display: none; }
.staffp details.mailed-box > summary::before { content: "▸ "; }
.staffp details.mailed-box[open] > summary::before { content: "▾ "; }

/* ---- 「上へ」ボタン（右下に固定。少し下に動かしたら現れる） ---- */
#totop { position: fixed; right: 18px; bottom: 18px; z-index: 50; padding: 10px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
#totop.show { opacity: 1; pointer-events: auto; }
#totop:hover { background: var(--blue-soft); }

/* ---- 一つ前に戻す（画面の一番上。ログイン中の左） ---- */
.undo-form { margin-left: auto; display: inline; }
.undo-form[hidden] { display: none; }
/* 「ログイン中」から後ろは、いつも右寄せ（社長 2026-11-10 19:2x「ログイン中から後ろは右寄せでした。ですが、今は、中央にきてしまっています。これも一切指示はしてませんが」）。
   「↶ 戻す」が出ているときだけ、その右隣に 12px で並ぶ。隠れているとき（その日に操作が無いとき）にもこの 12px が効いて、右寄せ（.who の margin-left: auto）が外れていた（10/13 からの私の抜け。D383） */
header .undo-form:not([hidden]) ~ .who { margin-left: 12px; }
button.undo { font-size: 16px; padding: 6px 12px; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
button.undo:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* ---- 全部の日から探す（探す欄の下に当たりを出す） ---- */
.found { margin: 10px 0 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.found .fh { font-size: 16px; margin: 0 0 6px; }
.found .fh b { font-size: 18px; }
.foundtbl { width: 100%; font-size: 16px; border-collapse: collapse; table-layout: auto; }
.foundtbl th, .foundtbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.foundtbl th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.foundtbl td.d, .foundtbl td.no { white-space: nowrap; }
.foundtbl tr.here { background: var(--gold-soft); }
.foundtbl tr.off td { color: var(--muted); }
.foundtbl .chip { white-space: nowrap; }

/* ---- 窓（dialog）とその中の候補 ---- */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 16px; max-width: 760px; box-shadow: 0 12px 32px rgba(0,0,0,.2); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h3 { margin: 0 0 8px; font-size: 18px; }
dialog .redo-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
dialog .redo-c { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
dialog .redo-c.off { color: var(--muted); background: var(--fill); cursor: default; }
dialog .warn { color: var(--red); display: inline; padding: 0; margin: 0; background: transparent; }
dialog .ok { color: var(--green); }
dialog .btns { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
tr.st-redo td { color: var(--muted); }
tr.st-redo td.item, tr.st-redo td.who { text-decoration: line-through; }

/* ---- 回戦の ON／OFF＝iPhone のスイッチ（青基調。社長 2026-10-22 23:4x「こういうので青を基調として、綺麗に作れ、アイフォンデザインから学べ」） ---- */
.rounds { display: inline-flex; align-items: center; gap: 18px; margin-left: 14px; padding: 5px 16px; background: var(--fill); border-radius: 22px; }
.rounds .round-tg { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.rounds .round-tg:has(.ios-switch.on) { color: var(--ink); }   /* ON の回戦は名前も濃く（文字は回戦の名前だけ。社長 23:4x「小さくていい、洗練されたデザインに」） */
.rounds form.inline { display: inline-flex; margin: 0; }
.ios-switch { position: relative; display: inline-block; width: 51px; height: 31px; min-height: 31px; padding: 0; border: 0; border-radius: 16px; background: #e9e9ea; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); transition: background-color .2s ease-out; cursor: pointer; vertical-align: middle; }
.ios-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .2s ease-out; }   /* 動かすのは transform だけ・0.2 秒・ease-out（画面の動きの決め ⑤。D264・D271） */
button.ios-switch:hover { background: #dcdcde; }
.ios-switch.on, button.ios-switch.on:hover { background: var(--blue); }
.ios-switch.on::after { transform: translateX(20px); }   /* 前は left: 22px（left を動かしていた）。D264 */
button.ios-switch:disabled { opacity: .4; cursor: not-allowed; }
.ios-switch.locked { opacity: .4; cursor: not-allowed; }   /* 過ぎた日：動かせない（社長 2026-10-23 20:1x） */
/* 押したあとの吹き出し（反映しました）。2 秒ほどで消える */
.toast { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); background: #1c1c1e; color: #fff; font-size: 17px; font-weight: 600; padding: 10px 22px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 1000; animation: toast-fade 2.4s ease-out forwards; pointer-events: none; }
@keyframes toast-fade { 0% { opacity: 0; transform: translate(-50%, -8px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }
/* 行の操作（！ OK など）のあと、その行に戻って数秒光らせる（社長 2026-10-26 20:1x「どこを OK にしたか分からなくなる」。PC の表の行とスマホの札の両方。D180）
   貼り付いた帯の下に隠れないよう scroll-margin を取る。光りは 4 秒で消える */
tr[id^="r"], article.lc { scroll-margin-top: 150px; }
tr.flash > td { animation: row-flash 4s ease-out; }
article.lc.flash { animation: card-flash 4s ease-out; }
@keyframes row-flash { 0%, 70% { background-color: #fff1b8; } }   /* 100% は書かない＝終わると元の色（受注ごとの交互のグレー）に戻る。forwards で透明に固定すると交互の色が消えるため（D271） */
@keyframes card-flash { 0%, 70% { box-shadow: 0 0 0 4px #ffd54a inset; } }
/* ---- 受注一覧のスマホ版（社長 2026-10-25 12:5x GO）：幅 700px 以下では表のかわりに札（1 行＝1 枚）。横スクロールなし。文字 17px（rem）、押す所 44px。
   札は白、左の細い帯＝品目の色（受注一覧の決め 2026-10-23）。状態は「状態」の選択肢の色だけ ---- */
.lcards { display: none; }
@media (max-width: 700px) {
  .table-box { display: none; }
  .ledger-tools .remopen { display: none; }   /* 備考開くは表（PC）だけ。札では出さない（D367） */
  .ledger-tools .daywrap .daypop { width: calc(100vw - 32px); font-size: 16px; }   /* この日の決めの窓はスマホでは画面の幅いっぱい。字は 16px（PC の 14px の決め body.ledger-pc .daypop より強い選び方で戻す。D369） */
  .ledger-tools .daywrap .daypop input[type=text], .ledger-tools .daywrap .daypop select, .ledger-tools .daywrap .daypop textarea { font-size: 16px; min-height: 32px; }
  .lcards { display: block; padding: 10px 12px; }
  .lcards > p.meta { margin: 2px 4px 8px; font-size: 1rem; }
  .lc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 18px; margin: 0 0 10px; overflow: hidden; font-size: 1.0625rem; line-height: 1.5; scroll-margin-top: 60px; }
  .lc[style*="--c"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
  .lc:target { background: var(--gold-soft); }
  .lc.st-cancelled .nm, .lc.st-cancelled .it, .lc.st-void .nm, .lc.st-void .it { color: var(--muted); text-decoration: line-through; }
  /* 札の頭＝○・No.・受注番号を左から一行に（社長 2026-10-25 13:5x「○が無意味にでかい。○No. 受注番号にする」）。
     ○は見た目 26px の小さな丸。押す所は 44px のまま（丸のまわりの透明な部分も押せる） */
  .lc .l1 { display: flex; align-items: center; gap: 4px; min-height: 44px; }
  .lc .l1 form { margin: 0; display: inline-flex; }
  .lc .l1 button.readbtn { position: relative; width: 44px; height: 44px; min-height: 44px; margin-left: -9px; padding: 0; background: transparent; border: none; color: transparent; font-size: 16px; }
  .lc .l1 button.readbtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
  .lc .l1 button.readbtn.on::before { background: var(--blue); border-color: var(--blue); }
  .lc .l1 button.readbtn.on::after { content: "✓"; position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
  .lc .l1 button.readbtn:hover, .lc .l1 button.readbtn.on:hover { background: transparent; border-color: transparent; }
  .lc .l1 button.readbtn:hover::before { border-color: var(--blue); }
  .lc .l1 .num { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .lc .l1 .no { margin-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .lc .l1 .no small { font-weight: 600; color: var(--muted); }
  .lc .nm { font-size: 1.125rem; font-weight: 800; margin-top: 4px; overflow-wrap: anywhere; }
  .lc .nm .nick { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
  .lc .bd { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .lc .it { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-weight: 700; }
  .lc .it .val.empty, .lc .it .val.cont { color: var(--muted); font-weight: 400; }
  .lc .it .amt { color: var(--blue); }
  .lc .it .qty, .lc .it .tm { color: var(--muted); font-weight: 600; }
  .lc .it .who { font-weight: 600; color: var(--muted); }
  .lc .who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; color: var(--muted); font-size: 1rem; }
  .lc .who b { color: var(--ink); }
  .lc .nt { margin-top: 4px; color: var(--ink); font-size: 1rem; }
  .lc details.rem { margin-top: 6px; }
  .lc details.rem summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 1rem; min-height: 44px; display: flex; align-items: center; gap: 6px; }
  .lc details.rem summary::-webkit-details-marker { display: none; }
  .lc details.rem summary::after { content: "　開く"; color: var(--muted); font-weight: 400; }
  .lc details.rem[open] summary::after { content: "　閉じる"; }
  .lc details.rem .rt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; padding: 4px 0 6px; }
  .lc details.rem .ai { font-size: 1rem; color: var(--ink); background: var(--fill); border-radius: 10px; padding: 8px 10px; }
  .lc .st { margin-top: 8px; }
  .lc .st form { margin: 0; }
  .lc .st select.st-sel { width: 100%; min-height: 44px; font-size: 1.0625rem; padding: 8px 12px; border-radius: 12px; }
  .lc .st small.issue { display: block; margin-top: 4px; color: var(--gold-ink); font-size: 1rem; }
  .lcards p.notyet { padding: 20px 8px; }
  /* 上の帯・道具・絞り込みも一列で収める */
  .ledger-tools { gap: 8px 12px; }
  .chips .lbl { width: auto; margin-right: 4px; }
  .chips.search input[type=text] { width: 100% !important; }
}
/* 上の引き出し（設定・管理・抽選・特典・HP）：狭い画面では字を折らない（受注一覧のスマホ版 2026-10-25） */
@media (max-width: 700px) {
  header.top { padding: 8px 12px; gap: 6px 10px; }
  header.top h1, header.top .brand { font-size: 1rem; }
  nav.drawers { flex-wrap: wrap; gap: 2px; }
  nav.drawers summary { white-space: nowrap; padding: 6px 8px; min-height: 44px; }
  nav.drawers .menu { min-width: 220px; max-width: calc(100vw - 24px); }
  nav.drawers .menu.menu-artists { grid-template-columns: 1fr; min-width: 220px; }
}


/* ---- 問い合わせ（管理 → 10。社長 GO 2026-10-30。仕様書_問い合わせ仕分け_No03）：右上の札・返信の窓・一覧 ---- */
.inq-stack { position: fixed; top: 72px; right: 16px; z-index: 900; width: 360px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.inq-stack > * { pointer-events: auto; }
.inq-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.inq-open { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.inq-open[hidden] { display: none; }
.inq-sound { min-height: 36px; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 16px; }
.inq-sound.off { color: var(--muted); }

/* ==== スタッフの PC 画面（受注一覧 body.ledger-pc）：カラーミーの管理画面と同じ静かさ。字は 14px 基準（札・ボタンは 13px）、太字は見出しだけ、
   ボタンは青い平らな形、赤い札は塗らずに線、品目の色はマスの薄い下地だけ（左の帯は無し）。
   社長 2026-11-02 19:5x「文字もとにかく全部太くて、主張が強い。全部主張するから、うるさいだけ」「フォントも全体として大きいよ。お客様画面じゃねーんだよ」
   「写すのボタンが汚い。ブルーの綺麗なボタンにし」「左側のハンパなやつはなんだよ。マスの色変えれば十分だろ」。D287。
   16px の決め（D40・原則 24）はお客様とアーティストの画面のもの。この塊の決めは全部 body.ledger-pc の中だけ ==== */
body.ledger-pc .ledger-table { font-size: 14px; line-height: 1.4; }
body.ledger-pc .ledger-table th { font-size: 13px; font-weight: 600; color: #3a3a3c; padding: 7px 6px; background: #f2f2f5; }
body.ledger-pc .ledger-table td { padding: 5px 6px; font-size: 14px; }   /* 共通の th, td の 16px を上書き（表の字は 14px） */
body.ledger-pc .ledger-table td.no { font-weight: 500; }
body.ledger-pc .ledger-table td.name, body.ledger-pc .ledger-table td.nick, body.ledger-pc .ledger-table td.item { font-weight: 400; }
body.ledger-pc .ledger-table td.item[style*="--c"] { box-shadow: none; background-color: color-mix(in srgb, var(--c) 22%, #fff); }
body.ledger-pc .ledger-table td.edit .val.empty::after { font-weight: 400; }
body.ledger-pc .ledger-table td.edit .val.cand { font-weight: 400; }
body.ledger-pc .ledger-table .badge, body.ledger-pc .ledger-head .badge { font-size: 13px; font-weight: 500; padding: 0 8px; }
body.ledger-pc .mk, body.ledger-pc .kd, body.ledger-pc .aibadge, body.ledger-pc .hitbadge, body.ledger-pc .nbang { font-size: 13px; font-weight: 600; }
body.ledger-pc .okwlab { font-size: 13px; font-weight: 400; }
body.ledger-pc .mk { min-width: 24px; }
body.ledger-pc .nbang { min-width: 20px; line-height: 1.4; }
body.ledger-pc .ledger-table td.status small.issue, body.ledger-pc .ledger-table td.ai small.note, body.ledger-pc .ledger-table td.item small.note, body.ledger-pc .ledger-table td.nick small.hint { font-size: 13px; }
body.ledger-pc .ledger-table select, body.ledger-pc .ledger-table input[type=text], body.ledger-pc .ledger-table .cell-ed { font-size: 13px; min-height: 28px; padding: 2px 6px; border-radius: 4px; }
body.ledger-pc button.aibadge { font-size: 13px; font-weight: 600; }
body.ledger-pc button.aiic { font-size: 13px; font-weight: 600; }
body.ledger-pc .aipop { font-size: 14px; }
body.ledger-pc .ledger button:not(.info):not(.readbtn):not(.okc):not(.x):not(.aibadge):not(.aiic):not(.rcopy):not(.cutoff) { font-size: 13px; font-weight: 500; min-height: 28px; padding: 3px 12px; border-radius: 4px; box-shadow: none; }   /* 写す（.rcopy）は丸い印なので、この長方形の決めからは外す（D368）。締め切り（.cutoff）は押せる字（前の見た目のまま）なので同じく外す（D369） */
body.ledger-pc .ledger-table button.rcopy { width: 20px; height: 20px; min-height: 20px; padding: 0; border: 0; border-radius: 50%; background: #d9d9d9; color: #555; font-size: 13px; font-weight: 600; line-height: 20px; text-align: center; box-shadow: none; margin-top: 4px; margin-left: 6px; vertical-align: middle; }   /* 写すは灰色の丸に C の小さな印（社長 2026-11-08 23:5x「写すがうるさいんだよな。。Cのグレーの丸いアイコンで十分なんだよ。開くと、写すばかり目に入ってきて、目が痛い」→ 11/9 00:0x GO。D368）。11/2 20:1x の「上品な水色」の写すはこれで置き換わった。字との間の空き（margin-left）はそのまま */
body.ledger-pc .ledger-table button.rcopy:hover, body.ledger-pc .lc button.rcopy:hover { background: #c4c4c4; color: #333; }
body.ledger-pc .lc button.rcopy { width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: #d9d9d9; color: #555; font-size: 16px; font-weight: 600; line-height: 36px; text-align: center; box-shadow: none; margin-top: 4px; margin-left: 6px; vertical-align: middle; }   /* 札（指で押す）は同じ印を少し大きく。字は 16px（札の字は 16px 未満にしない。D136）。表の決めとは別の行に書く（.lc の行に 13px を書かない） */
body.ledger-pc .ledger-head h1 { font-size: 16px; font-weight: 600; }
body.ledger-pc .ledger-head .daypick select, body.ledger-pc .ledger-head .bigday { font-size: 18px; font-weight: 600; min-height: 34px; padding-top: 3px; padding-bottom: 3px; border-radius: 8px; }
body.ledger-pc .ledger-head .todaytag { font-size: 13px; font-weight: 600; }
body.ledger-pc .ledger-head .today, body.ledger-pc .ledger-head .today b { font-size: 13px; font-weight: 500; }
body.ledger-pc .ledger-head .badge.b-red { background: #fff; color: var(--red); border: 1px solid var(--red); }
body.ledger-pc .ledger-head .badge.b-yellow { border: 1px solid var(--gold-ink); }
body.ledger-pc .chips-box { padding: 8px 14px; }
body.ledger-pc .chips { gap: 4px 6px; padding: 3px 0; }
body.ledger-pc .chips .lbl { font-size: 13px; font-weight: 600; width: 48px; }
body.ledger-pc .chip { font-size: 13px; min-height: 28px; padding: 3px 10px; border-width: 1px; }
body.ledger-pc .chip.on, body.ledger-pc .chip b, body.ledger-pc .chip.red { font-weight: 600; }
body.ledger-pc .chips.search input[type=text], body.ledger-pc .chips.add-item input[type=text], body.ledger-pc .chips.add-item select, body.ledger-pc .chips.add-item label { font-size: 13px; }
body.ledger-pc .ledger .meta { font-size: 13px; }
body.ledger-pc .inq-open { background: #fff; color: var(--red); border: 1px solid var(--red); box-shadow: none; font-size: 13px; font-weight: 600; min-height: 28px; padding: 2px 10px; }
body.ledger-pc .inq-sound { font-size: 13px; min-height: 28px; padding: 2px 10px; }
body.ledger-pc #toast { font-size: 14px; }
body.ledger-pc .toast { font-size: 14px; font-weight: 500; }
body.ledger-pc .ledger-table td.no .grip { font-size: 14px; }
body.ledger-pc .ledger-table tr { scroll-margin-top: 52px; }
body.ledger-pc .ledger-tools .topsearch .lbl, body.ledger-pc .ledger-tools .topsearch input[type=text] { font-size: 14px; }   /* 受注検索（コピーの右。ⓘ は無し。D356） */
body.ledger-pc .ledger button.remopen { background: #fff; color: var(--ink); border: 1px solid #c1c1c1; }   /* 備考開く＝灰色の囲み（白地・灰色の線。社長 2026-11-08「グレーの囲みで」。D367）。上書きは色まで書く */
body.ledger-pc .ledger button.remopen:hover { background: #f4f4f4; }
body.ledger-pc .daypop { font-size: 14px; }   /* この日の決めの窓（D369）：PC では受注一覧の字と同じ 14px。スマホ（700px 以下）は上の ≤700px の塊で 16px に戻す（この塊の決めは全部 body.ledger-pc で始める。D287 ⑥） */
body.ledger-pc .daypop input[type=text], body.ledger-pc .daypop select, body.ledger-pc .daypop textarea { font-size: 14px; min-height: 28px; }
/* ==== スタッフの PC 画面 ここまで ==== */
.inq-card { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 64px; padding: 10px 14px 10px 16px; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 8px solid var(--blue); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 16px; line-height: 1.4; cursor: pointer; text-decoration: none; animation: okyasu-fade .15s ease-out; }   /* 札が出るときは 0.15 秒のフェード（動きの決め 三。横から滑り込む動きはやめた。D271） */
.inq-card.red { border-left-color: var(--red); }
.inq-card.red .inq-c-head { color: var(--red); }
.inq-card.blue .inq-c-head { color: var(--blue); }
.inq-card:hover { background: var(--bg); }
.inq-card .inq-c-head { font-weight: 700; }
.inq-card .inq-c-body { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-card.more { border-left-color: var(--line-strong); color: var(--blue); font-weight: 600; justify-content: center; }
.inq-win { position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.inq-win[hidden] { display: none; }
.inq-box { width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.3); display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.inq-l, .inq-r { padding: 20px 22px; }
.inq-l { border-right: 1px solid var(--line); }
.inq-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.inq-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; background: var(--blue-soft); color: var(--blue); }
.inq-tag.red { background: var(--red-soft); color: var(--red); }
.inq-order { font-weight: 600; }
.inq-name { font-size: 20px; font-weight: 700; margin: 2px 0 4px; }
.inq-body { margin-top: 12px; padding: 12px 14px; background: var(--fill); border-radius: 10px; white-space: pre-wrap; word-break: break-word; font-size: 17px; line-height: 1.6; max-height: 46vh; overflow: auto; }
.inq-sent { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--green); background: var(--green-soft); color: var(--ink); white-space: pre-wrap; border-radius: 8px; font-size: 16px; }
.inq-tpl { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.inq-tpl button { min-width: 44px; min-height: 36px; font-size: 16px; font-weight: 700; background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.inq-tpl button:hover { background: var(--blue-soft); }
.inq-r textarea { width: 100%; font: inherit; font-size: 17px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical; }
.inq-r textarea[readonly] { background: var(--fill); }
.inq-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inq-actions button[hidden] { display: none; }
.inq-send { background: var(--red); color: #fff; border: 1px solid var(--red); min-height: 40px; padding: 6px 22px; font-size: 17px; font-weight: 700; }
.inq-send:hover { background: #a61f1f; }
.inq-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 860px) { .inq-box { grid-template-columns: 1fr; } .inq-l { border-right: 0; border-bottom: 1px solid var(--line); } .inq-body { max-height: 30vh; } }
.inq-top { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.inq-day { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inq-day input[type=date] { font: inherit; font-size: 16px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; min-height: 36px; }
.btn-nav { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-nav:hover { background: var(--blue-soft); }
.inq-counts { font-size: 17px; }
.inq-counts b.on { color: var(--red); }
.inq-before { font-weight: 700; color: var(--red); }
.inq-filters { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.inq-fset { display: inline-flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.pill:hover { background: var(--bg); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.red.on { background: var(--red); border-color: var(--red); }
.pill.blue.on { background: var(--blue); border-color: var(--blue); }
.inq-search { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.inq-search input[type=search] { font: inherit; font-size: 16px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; min-height: 36px; width: 200px; max-width: 50vw; }
table.inq-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.inq-table thead th { position: sticky; top: 0; z-index: 2; }
table.inq-table td { height: 44px; }
tr.inq-row { cursor: pointer; }
tr.inq-row:hover { background: var(--blue-soft); }
tr.inq-row:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
tr.inq-row.done td { color: var(--muted); }
tr.inq-row.red td.c-kind .inq-tag { background: var(--red-soft); color: var(--red); }
.inq-st { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.inq-st.open { background: var(--gold-soft); color: var(--gold-ink); }
.inq-st.done { background: var(--green-soft); color: var(--green); }
td.c-sum { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { table.inq-table .c-who { display: none; } td.c-sum { max-width: 200px; } }
@media (max-width: 640px) { table.inq-table .c-order, table.inq-table .c-sum, table.inq-table .c-time { display: none; } .inq-search { margin-left: 0; }
  .inq-stack { top: auto; bottom: 16px; flex-direction: column-reverse; } }   /* スマホでは上の帯に重ならないよう、札は下から */
.inq-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inq-tpl-cell { display: flex; flex-direction: column; gap: 4px; }
.inq-tpl-slot { font-weight: 700; color: var(--blue); font-size: 17px; }
.inq-tpl-cell textarea { font: inherit; font-size: 16px; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
@media (max-width: 860px) { .inq-tpl-grid { grid-template-columns: 1fr; } }
/* メールの口の状態（第二段階。一覧の上。.inq-box は窓の箱なので別の名前）と、窓の件名 */
.inq-ports { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.inq-port { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 16px; font-weight: 600; white-space: nowrap; }
.inq-port.bad { background: var(--red-soft); color: var(--red); }
.inq-port.off { background: var(--fill); color: var(--ink); font-weight: 500; }
.inq-subj { margin-top: 10px; font-size: 17px; font-weight: 700; word-break: break-word; }
.inq-subj[hidden] { display: none; }
.inq-r .warn { white-space: normal; overflow-wrap: anywhere; }
/* 一覧の「選んで消す」（2026-10-30 19:0x。小さなチェック。動き（アニメーション）なし） */
table.inq-table th.c-del, table.inq-table td.c-del { width: 40px; text-align: center; padding-left: 6px; padding-right: 6px; }
.inq-sel, .inq-selall { width: 20px; height: 20px; margin: 0; vertical-align: middle; accent-color: var(--blue); cursor: pointer; transition: none; }
tr.inq-row.selected td { background: var(--blue-soft); transition: none; }
tr.inq-row, tr.inq-row td { transition: none; }
.inq-del-sel { min-height: 36px; padding: 4px 12px; border: 1px solid var(--red); border-radius: 8px; background: #fff; color: var(--red); font-size: 16px; font-weight: 600; cursor: pointer; transition: none; }
.inq-del-sel[hidden] { display: none; }
.inq-del-sel:disabled { opacity: .5; cursor: default; }

/* ==== 画面の動きの決め（社長 2026-11-01 22:3x「ボタンと開閉の動きを次に統一する」。仕組みの原則 No17 の 24の2。D271。
   10/31 の決め（D264）のうち ③「押すと少し縮んで光る」と ④「行・マスの色も溶ける」はこれに置き換えた） ====
   一、ボタンは押した瞬間（0秒）に色だけ変える。縮めない・浮かせない・跳ねさせない。
   二、パネル・ⓘ・折りたたみが開くときは 0.2秒・ease-out（最後に減速）。動かすのは transform（translate）と opacity だけ。高さや top/left を動かさない。バウンス・スプリングは禁止。
   三、一覧の行や札が出るときは 0.15秒のフェード。
   四、全部をまとめて動かす書き方（all）は使わない。動かす性質を名指しする。
   五、押せる物に touch-action: manipulation と -webkit-tap-highlight-color: transparent。
   六、処理中は即座にボタンを無効にする（base.html の送信の押さえ。その場で保存する物はそれぞれの所で disabled）。
   10/31 の決めで残る分：① 絵・動画は枠の大きさを先に決める（aspect-ratio）・画面の高さは 100dvh。⑥ 動きを減らす設定の人には動きを止める。⑦ 字は端末の標準（body の font-family）。Web フォントは読まない。 */
@keyframes okyasu-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes okyasu-fade { from { opacity: 0; } to { opacity: 1; } }
/* 五、押せる物 */
a, button, input, select, textarea, summary, label, [role=button], .btnlink, .chip, .b, .okc, .readbtn, .hitbadge, .ledger-table td.edit, .ledger-table td.clip, .ledger-table td.no, .lc .l1 span.no {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* 一、ボタン：なでたときの色は 0.15 秒で溶ける。押した瞬間は 0 秒で色だけ（少し暗く）。transform は動かさない */
button, .btnlink, a.btnlink, .chip, .b, summary, .okc, .readbtn, button.aibadge, label.b, .st-sel, select, .nm[role=button], .card[data-cph] .nm, button.info, .hitbadge, .dd .it, .dd .x, #totop, .inq-open, .inq-sound {
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, filter .15s ease-out; }
button:active, .btnlink:active, a.btnlink:active, .chip:active, .b:active, summary:active, .okc:active, .readbtn:active, button.aibadge:active, label.b:active, .nm[role=button]:active, button.info:active, .hitbadge:active, .dd .it:active, .dd .x:active, #totop:active, .inq-open:active, .inq-sound:active {
  transition: none; filter: brightness(0.9); }
/* 二、開く物（自前の一覧 .dd・ⓘ の文・上の引き出し・窓・問い合わせの窓・折りたたみの中身）：0.2 秒・ease-out・transform と opacity だけ */
.dd, .info-pop, nav.drawers details[open] > .menu, dialog[open], .inq-win:not([hidden]) .inq-box,
details.more-box[open] > :not(summary), details.box[open] > :not(summary), details.items-box[open] > :not(summary), body.settings details.row[open] > .body, body.settings details.more[open] > :not(summary),
section.ai-box details.linetext[open] > :not(summary), .staffp details.mailed-box[open] > :not(summary), .lc details.rem[open] > :not(summary) { animation: okyasu-open .2s ease-out; }
dialog[open]::backdrop { animation: okyasu-fade .2s ease-out; }
/* 10/31 の決めの残り：① 枠の大きさ・100dvh、⑥ 動きを減らす設定の人 */
.file img, .file video, .files img, .files video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
@supports (height: 100dvh) { .sched-wrap { max-height: calc(100dvh - 150px); } .inq-box { max-height: calc(100dvh - 32px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==== スタッフの PC 画面（静かな表 .qpage。D383） ==== */
/* 設定・管理の「見るための一覧」の様式（社長 2026-11-10 19:2x：不足の検査「デザイン汚い」・テレワーク動画「酷い型崩れ」・動画の編集状況と変更記録「みにくい」→「全部 GO」）。
   ポイント一覧・特典進捗と同じ：字は 14px・太字は見出しだけ・色を塗らない・薄い灰色の見出しと細い線・行は必ず一行（入らない字は … で切り、全文はカーソルを当てたとき）・押し物は小さく同じ形（原則 24）。
   16px の決め D40 はお客様とアーティストの画面のもので、この塊は見ない。使うのは 不足の検査・テレワーク動画・動画の編集状況・変更記録 の四つ */
main:has(.qpage), body.settings main:has(.qpage) { max-width: 1360px; }   /* 設定の画面の型（body.settings）の幅 1,040px と題の太字より強く当てる */
.qpage h1, body.settings .qpage h1 { font-size: 20px; font-weight: 400; margin: 0 0 10px; }
.qpage h2 { font-size: 14px; font-weight: 600; margin: 18px 0 6px; color: var(--ink); }
.qpage .qbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; margin: 0 0 10px; color: var(--ink); }
.qpage .qbar .sp { flex: 1; }
.qpage .qmuted { color: var(--muted); }
.qpage table.qt { border-collapse: collapse; font-size: 14px; width: 100%; border: 1px solid #d5d8de; table-layout: fixed; background: #fff; }
.qpage table.qt th { font-size: 14px; font-weight: 400; color: #333; background: #eef0f3; text-align: left; padding: 5px 8px; border: 1px solid #d5d8de; position: sticky; top: 0; z-index: 3; }
.qpage table.qt td { font-size: 14px; font-weight: 400; padding: 4px 8px; border: 1px solid #e3e5e9; vertical-align: middle; line-height: 1.5; color: var(--ink); background: #fff; }
.qpage table.qt th, .qpage table.qt td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpage table.qt th.n, .qpage table.qt td.n { text-align: right; font-variant-numeric: tabular-nums; }
.qpage table.qt td a { color: var(--blue, #1f58b5); text-decoration: none; }
.qpage .qcell { display: flex; align-items: center; gap: 6px; }
.qpage .qcell .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qpage .qbtn, .qpage a.qbtn, .qpage button.qbtn, .qpage label.qbtn { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-height: 28px; padding: 0 10px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 400; line-height: 1; border: 1px solid #D5D5D5; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.qpage .qbtn:hover, .qpage button.qbtn:hover { background: var(--fill); color: var(--ink); }
.qpage form.qin { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.qpage input.qinp, .qpage textarea.qinp { font: inherit; font-size: 14px; border: 1px solid #D5D5D5; border-radius: 6px; background: #fff; color: var(--ink); }
.qpage input.qinp { height: 28px; min-height: 28px; padding: 0 8px; }
.qpage textarea.qinp { width: 100%; min-height: 150px; line-height: 1.5; padding: 8px; }
/* ==== 静かな表 ここまで ==== */
/* スマホで開いたときは 16px にして、表だけを横に送る（ページははみ出さない） */
@media (max-width: 700px) {
  .qpage .qwrap { overflow-x: auto; }
  .qpage table.qt { min-width: 900px; }
  .qpage h2, .qpage .qbar, .qpage table.qt, .qpage table.qt th, .qpage table.qt td, .qpage .qbtn, .qpage a.qbtn, .qpage button.qbtn, .qpage label.qbtn, .qpage input.qinp, .qpage textarea.qinp { font-size: 16px; }
  .qpage .qbtn, .qpage a.qbtn, .qpage button.qbtn, .qpage label.qbtn, .qpage input.qinp { height: 44px; min-height: 44px; }
}