/* 画面の色（11/21）：設定の「画面の色」で切り替える（html の data-theme。core/theme.js）。色はここの変数で決める */
:root {
  color-scheme: dark;
  --bg: #1b1d22;
  --panel: #24272e;
  --raise: #2c3038;
  --line: #363a44;
  --text: #e6e3dc;
  --muted: #9a978f;
  --faint: #6b6963;
  --accent: #c9a45c;
  --bad: #d06a5a;
  --good: #7fb27a;
  --gate: #c9a45c;
  --training: #7aa3c9;
  --money: #9fbf6b;
  --crit: #f0c24a;
  --levelup: #8fc6ff;
  --elite: #e58f5a;
  --tower: #b58ad6;
  --tower-line: #5a4a6a;
  --paused: #e0b85a;
  --st-paralyze: #e0c341;
  --st-poison: #8fd16a;
  --st-curse: #c08ae8;
  --rich: #e6c35c;
  --gender-m: #6fa8ff;
  --gender-f: #ff8fb8;
  --hero: #e8b84a;
  --unit-name: #6fd0c0; /* 見せ場などの味方の名前（11/23） */
  --guide-line: #7aa3c9; /* 説明の窓の枠・題（11/23。物語の窓は --accent） */
  --guide-bg: #212a35;
}
/* 明るい（白）・紙（生成り）：白い地で読めるように、文字の色を濃くする */
:root[data-theme="light"], :root[data-theme="sepia"] {
  color-scheme: light;
  --bg: #f2f1ed;
  --panel: #ffffff;
  --raise: #ebe9e3;
  --line: #d2cfc6;
  --text: #24221e;
  --muted: #67635a;
  --faint: #98948a;
  --accent: #8a6516;
  --bad: #b23f2c;
  --good: #357530;
  --gate: #8a6516;
  --training: #2d679b;
  --money: #4c7619;
  --crit: #a86a00;
  --levelup: #1d68b8;
  --elite: #b5521c;
  --tower: #7646a3;
  --tower-line: #c6b3da;
  --paused: #966c00;
  --st-paralyze: #857000;
  --st-poison: #3a8419;
  --st-curse: #7a3cad;
  --rich: #956f00;
  --gender-m: #2a68cc;
  --gender-f: #c63f77;
  --hero: #a86a00;
  --unit-name: #12796c;
  --guide-line: #3d6d9c;
  --guide-bg: #eef4fa;
}
:root[data-theme="sepia"] {
  --bg: #ece2cc;
  --panel: #f7efdd;
  --raise: #e6d9be;
  --line: #cbb994;
  --text: #36291b;
  --muted: #72624a;
  --faint: #9f8c6c;
  --guide-bg: #e9ece6;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
header, footer { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); border-bottom: none; }
h1 { font-size: 18px; margin: 0; }
h1 small { color: var(--muted); font-weight: normal; }
h2 { font-size: 16px; margin: 0; color: var(--accent); }
h3 { font-size: 14px; margin: 12px 0 6px; color: var(--muted); font-weight: normal; }
#status { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
#status b { color: var(--text); font-weight: normal; }

main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  grid-template-rows: 1fr;
  gap: 14px;
  padding: 14px 20px;
}
section { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; min-height: 0; overflow: auto; }
.panel-head { margin-bottom: 10px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); }

/* ダンジョンの一覧 */
.dungeon {
  display: grid;
  grid-template-columns: 4.2em 1fr auto; /* 11/22：「やり込み」の4文字が入る幅 */
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.dungeon:hover { border-color: var(--faint); }
.dungeon.selected { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.dungeon.locked { opacity: .55; }
.dungeon .kind { grid-row: span 2; font-size: 12px; text-align: center; border: 1px solid currentColor; border-radius: 3px; padding: 1px 0; }
.kind.gate { color: var(--gate); }
.kind.training { color: var(--training); }
.kind.money { color: var(--money); }
.kind.special { color: var(--accent); white-space: nowrap; } /* やり込み（11/22） */
.dungeon .name { font-weight: bold; }
.dungeon .meta { color: var(--muted); font-size: 13px; grid-column: 2; }
.dungeon .state { grid-row: span 2; font-size: 13px; text-align: right; color: var(--muted); }
.state.done { color: var(--good); }
.state.cond { color: var(--faint); }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--muted); }

/* 出撃 */
table { width: 100%; border-collapse: collapse; }
td, th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: normal; font-size: 13px; }
tr.unavailable td { color: var(--faint); }
select, button { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; font: inherit; }
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.go-row { display: flex; gap: 12px; align-items: center; margin: 4px 0 8px; }
#go { padding: 8px 22px; border-color: var(--accent); }
#go-reason { color: var(--muted); font-size: 13px; }
#result { min-height: 1.6em; margin-bottom: 10px; }
.rankup { color: var(--accent); font-weight: bold; }
#message { color: var(--bad); margin-right: auto; }
#update-note { color: var(--accent); }
/* 指の画面（12/01）：説明の付いた所を押せる物にする（iPhone は押せる物でないと click を送らない。renderer/help.js） */
@media (pointer: coarse) { [data-help], [title]:not(button) { cursor: pointer; } } /* ブラウザ版の更新の知らせ（12/01） */
.clear { color: var(--good); }
.wipe { color: var(--bad); }
.retreat { color: var(--muted); }
.hurt { color: var(--bad); }
#log { margin: 6px 0 0; padding-left: 2.2em; }
#log li { color: var(--muted); }

/* 出発前の設定 */
.muted { color: var(--muted); }
.hint { color: var(--faint); font-size: 13px; margin: 4px 0 6px; }
.num { text-align: right; }
button.link { background: none; border: none; padding: 2px 0; color: var(--text); text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
button.link:hover { color: var(--accent); }
.roster tr.placed td:nth-child(2) { color: var(--accent); }
/* 出撃の設定の2行目（11/22）：装備とスキル。1行目と1組に見えるよう、間の線を消して小さめの字 */
.roster tr.main-row > td:not([rowspan]) { border-bottom: none; padding-bottom: 1px; }
.roster tr.main-row > td[rowspan] { vertical-align: top; }
.roster tr.sub-row td { padding-top: 0; font-size: 13px; white-space: normal; vertical-align: top; }
.sub-label { color: var(--muted); margin-right: 6px; }
.lent { color: var(--accent); } /* やり込みの貸し出し・そろう Lv（11/22） */
.sub-label:not(:first-child) { margin-left: 18px; }
.skill-tag + .skill-tag::before { content: "・"; color: var(--muted); }
.plan-row td { background: var(--raise); }
.plan-phase { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 4px 0; }
.plan-label { width: 3.5em; color: var(--muted); }
.skill-list { display: flex; flex-wrap: wrap; gap: 4px 14px; flex-basis: 100%; padding-left: 3.5em; }
.group { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.group h3 { color: var(--accent); margin: 0 0 8px; font-size: 15px; }
.field { display: grid; grid-template-columns: 6em 1fr; gap: 8px; margin-bottom: 10px; }
.field-label { color: var(--muted); padding-top: 2px; }
.volume { display: flex; align-items: center; gap: 10px; }
.volume input { width: 240px; accent-color: var(--accent); }
.volume span { min-width: 2.5em; text-align: right; font-variant-numeric: tabular-nums; }
.radio { display: block; margin: 2px 0; cursor: pointer; }
.radio input { accent-color: var(--accent); margin-right: 4px; }
.bag { background: var(--raise); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; margin: 6px 0; }
.bag-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.bag-head .link { margin-left: auto; }
.items td, .items th { padding: 2px 6px; border-bottom: none; }
.items input { width: 5em; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; font: inherit; text-align: right; }
.roster td { white-space: nowrap; }
.roster td:last-child { white-space: normal; }
.items { width: auto; min-width: 360px; }

/* 画面の切り替え */
[hidden] { display: none !important; }
.tabs { display: flex; gap: 2px; margin-left: 12px; }
.tabs button { border-color: transparent; color: var(--muted); white-space: nowrap; padding-left: 9px; padding-right: 9px; }
header h1, #status { white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.view.single { grid-template-columns: minmax(0, 960px); justify-content: center; }
.tabs .tab-right { margin-left: 10px; }
#treat-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text); }
#treat-table td { white-space: nowrap; }

/* 戦闘ログ */
.bl-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; position: sticky; top: -12px; background: var(--panel); padding: 4px 0 8px; margin-top: -4px; z-index: 1; border-bottom: 1px solid var(--line); }
#bl-pick { margin-left: auto; max-width: 340px; }
#bl-body { padding: 4px 2px 8px; }
.bl-floor { border-bottom: 1px solid var(--line); padding: 6px 0; }
.bl-floor summary { color: var(--text); cursor: pointer; }
.bl-brief { font-size: 13px; color: var(--muted); }
/* 11/25：畳んだ階の見出しは横並びの欄（アイコン・見出し・勝利と経験値）。敵の名前の長さによらず「勝利」と経験値が縦にそろう。
   アイコンは1階に3種類まで、見出しは「部隊1　10階　」込みで9割が収まる幅（長すぎるものだけ欄の中で折り返す）。経験値が長いときは右の欄の中で折り返す */
.bl-floor > summary { display: flex; align-items: flex-start; gap: 0; list-style: none; }
.bl-floor > summary::-webkit-details-marker { display: none; }
.bl-floor > summary::before { content: "▶"; flex: none; width: 1.3em; font-size: 0.75em; line-height: 2.2; }
.bl-floor[open] > summary::before { content: "▼"; }
.bl-sum-icons { flex: none; width: calc(24px * 3 + 4px * 2 + 8px); }
.bl-sum-icons .bl-enemy-icons { margin-right: 0; }
.bl-sum-head { flex: none; width: 20em; margin-right: 1em; line-height: 1.6; }
.bl-floor > summary .bl-brief { flex: 1; min-width: 0; line-height: 1.85; }
.bl-brief .bl-money { display: inline-block; min-width: 5.5em; padding-left: 0.6em; }
.bl-floor > summary .bl-ev-mark { flex: none; }
.bl-line.cont .bl-t { visibility: hidden; }
.bl-floor-head { color: var(--text); font-weight: bold; margin-bottom: 2px; }
.bl-floor-head.boss { color: var(--accent); }
.bl-line { font-size: 14px; padding: 1px 0 1px 1em; font-variant-numeric: tabular-nums; }
.bl-line.enemy { color: var(--muted); }
.bl-line.down { color: var(--bad); }
.bl-t { display: inline-block; width: 3.5em; color: var(--faint); }
.bl-trap { color: var(--accent); padding-left: 1em; }
.crit { color: var(--crit); font-weight: bold; }
.bl-reward { margin: 6px 0 2px 1em; padding: 6px 10px; background: var(--raise); border-left: 3px solid var(--line); border-radius: 3px; font-size: 14px; }
.bl-loot { color: var(--text); }
.bl-loot-more { padding-left: 3em; } /* 「入手：」の後ろにそろえる（11/27） */
.bl-levelup { color: var(--levelup); font-weight: bold; }
.bl-join { color: var(--good); font-weight: bold; }
.bl-end-block { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--line); }
.bl-end { margin: 0 0 6px; font-weight: bold; font-size: 16px; }
.bl-end-block .rankup { margin: 0 0 6px; }
.bl-totals { width: auto; min-width: 420px; margin-top: 6px; }
.bl-totals th { width: 5em; vertical-align: top; }

/* 確認の窓 */
dialog#confirm-dialog {
  min-width: 360px; max-width: 520px; padding: 18px 20px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
dialog#confirm-dialog::backdrop, dialog#goal-dialog::backdrop, dialog#result-dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog#goal-dialog {
  min-width: 400px; max-width: 560px; padding: 14px 20px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
#goal-dialog h3 { margin: 0 0 8px; }
#goal-list table { width: 100%; }
#goal-list td { padding: 6px 8px 6px 0; }
.goal-row { margin: 4px 0; }
#cf-msg { margin: 0 0 16px; line-height: 1.8; }
.cf-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.cf-buttons button { min-width: 6em; }
button.primary { border-color: var(--accent); }

/* 設定 */
#settings-panel h3 { color: var(--accent); margin: 14px 0 8px; }
label.check { display: block; margin: 4px 0 10px; cursor: pointer; }
.radio.inline { display: inline-block; margin-right: 14px; }
.row { display: flex; gap: 10px; }

/* 派遣：ダンジョンの一覧 → 出撃の設定 */
#back-to-list { margin-bottom: 4px; }
.now-rank { color: var(--accent); }
.past-open { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
#past details { margin: 0 0 8px; }

/* 魔族商人・所持品 */
.shop-head { margin-top: 26px; padding-top: 14px; border-top: 2px solid var(--line); }
input.qty { width: 5em; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; font: inherit; text-align: right; }
#shop-table td, #inv-items td { white-space: nowrap; }
#inventory-panel h3 { color: var(--accent); margin: 16px 0 6px; }
#inventory-panel table { width: auto; min-width: 480px; }

/* 設定：セーブ */
.path { font-family: Consolas, monospace; color: var(--muted); user-select: all; }
button.danger { color: var(--bad); border-color: var(--bad); }
button.danger:hover:not(:disabled) { background: rgba(208, 106, 90, .12); border-color: var(--bad); }
.danger-row { margin-top: 14px; align-items: center; }
dialog#confirm-dialog.danger { border-color: var(--bad); }
dialog#confirm-dialog.danger #cf-yes { color: var(--bad); border-color: var(--bad); }

/* 10/25 */
.bl-elite { color: var(--elite); }
.bl-floor-head.bl-elite { color: var(--elite); }
.treat-rules { color: var(--muted); font-size: 13px; margin: 4px 0 8px !important; }
.hist-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.hist-head p { flex-basis: 100%; }
#hist-order { margin-left: auto; }

/* 所持品：素材の分類 */
#inv-materials tr.group-row td { color: var(--accent); font-size: 13px; padding-top: 12px; border-bottom: 1px solid var(--line); }
#inv-materials tr.zero td { color: var(--faint); }
#shop-table td.effect { white-space: normal; color: var(--muted); font-size: 13px; min-width: 16em; }

/* 装備 */
.equip-sum { text-align: left; white-space: normal; font-size: 13px; }
/* 11/25：長い装備の名前は「／」の区切りで折り返す（1つの装備の名前の途中では折り返しにくく） */
.equip-sum .equip-part { display: inline-block; }
/* 装備の欄は列の幅を広げない（名前・Lv・疲労の列の幅の中で折り返す） */
.roster .equip-line { display: flex; align-items: baseline; width: 24em; min-width: 100%; }
.roster .equip-line .sub-label { flex: none; }
.equip-slot { display: flex; gap: 10px; align-items: center; margin: 4px 0; }
.equip-slot select { max-width: 560px; }
#inv-equipment h4 { margin: 10px 0 4px; color: var(--muted); font-weight: normal; }
.equip-table { width: 100%; }
.equip-table td.small, #shop-equip-buy td { font-size: 14px; }
.equip-table td.actions { white-space: nowrap; text-align: right; }
.up-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#treat-panel h3, #market-panel h3 { color: var(--accent); margin: 18px 0 6px; }
#shop-craft .fit { color: var(--good); }
ul.odds { margin: 4px 0; padding-left: 1.4em; columns: 2; font-size: 14px; }
.craft-result { margin-top: 8px; padding: 6px 10px; background: var(--raise); border-left: 3px solid var(--accent); }
#message.ok { color: var(--good); }
#roster-msg { min-height: 1.2em; margin: 2px 0 6px; }
#roster-msg.ok { color: var(--good); }
#roster-msg.bad { color: var(--bad); }
#roster-table td.acts { white-space: nowrap; }
#roster-table td.acts button + button { margin-left: 12px; }
#inventory-panel table.equip-table { width: 100%; }
.equip-slot .plan-label { width: 6.5em; flex: none; }
.elem-row .plan-label { width: 6em; flex: none; } /* 属性の枠の名前（11/26） */
.elem-all { margin-bottom: 6px; }

/* 試練の塔 */
.kind.tower { color: var(--tower); }
.dungeon.tower { border-color: var(--tower-line); }
.state.paused { color: var(--paused); }
#trial-go { padding: 8px 22px; border-color: var(--accent); }
#trial-go-reason { color: var(--muted); font-size: 13px; }
.trial-paused { border: 1px solid var(--tower-line); border-radius: 4px; padding: 8px 12px; margin: 8px 0; }
.trial-blocks tr.done-row td:nth-child(2) { color: var(--good); }
.lineup-pick { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0; }
.lineup-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bl-block-head { margin: 14px 0 4px; padding: 3px 8px; border-left: 3px solid var(--tower); color: var(--tower); font-weight: bold; }
.trial-roster { width: auto; min-width: 420px; }
.trial-roster td, .trial-roster th { padding-right: 18px; }
.trial-blocks th { white-space: nowrap; }
.bl-totals th { white-space: nowrap; }
#rename-input { width: 11em; }
button.link.danger-link { color: var(--bad); text-decoration-color: var(--bad); }
input[type=text] { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px; font: inherit; }
input[type=text]:focus { outline: none; border-color: var(--accent); }
.debug-badge { color: var(--bad); border: 1px solid var(--bad); border-radius: 3px; padding: 0 6px; font-size: 12px; }
.shift { color: var(--accent); }
#credits h4 { margin: 12px 0 4px; color: var(--muted); font-weight: normal; }
table.credits td { padding: 6px 12px 6px 0; vertical-align: top; }
table.credits button.link { white-space: nowrap; }
.bl-resume { color: var(--muted); text-align: center; margin: 14px 0; }

/* シナリオ */
dialog#story-dialog {
  width: min(760px, 92vw); padding: 20px 28px 16px;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
dialog#story-dialog::backdrop { background: rgba(0, 0, 0, .7); }
/* 説明の窓（@when guide の場面。11/23 ユーザー決定：物語の窓と色を変える） */
dialog#story-dialog.sc-guide { background: var(--guide-bg); border-color: var(--guide-line); border-width: 2px; }
dialog#story-dialog.sc-guide #sc-title { color: var(--guide-line); }
/* 強調（11/23、renderer/glow.js）：説明している所・チュートリアルの次のボタン */
.tut-glow, .tut-next { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; animation: tut-pulse 1.6s ease-in-out infinite; }
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 16px 6px color-mix(in srgb, var(--accent) 60%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .tut-glow, .tut-next { animation: none; box-shadow: 0 0 10px 3px color-mix(in srgb, var(--accent) 50%, transparent); }
}
dialog#story-dialog.sc-marked::backdrop { background: rgba(0, 0, 0, .25); }
dialog#story-dialog.sc-marked.sc-bottom { margin-top: auto; margin-bottom: 16px; }
dialog#story-dialog.sc-marked.sc-top { margin-top: 16px; margin-bottom: auto; }
#sc-title { margin: 0 0 12px; color: var(--accent); }
#sc-body { min-height: 220px; max-height: 60vh; overflow-y: auto; line-height: 2; font-size: 16px; } /* 11/23：高さは場面の一番長いページ（scenario-view.js）。下限は物語 220px・説明 120px */
dialog#story-dialog.sc-guide #sc-body { min-height: 120px; }
.sc-buttons .sc-sound { text-decoration: none; min-width: 0; padding: 4px 6px; color: var(--muted); display: inline-flex; align-items: center; }
.sc-buttons .sc-sound:hover { color: var(--text); }
.sc-buttons .sc-sound.muted-on { color: var(--muted); }
#sc-body p { margin: 0 0 14px; }
.sc-speaker { color: var(--accent); margin-right: 2px; }
.sc-buttons { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.sc-buttons #sc-page { margin-left: auto; }
.sc-buttons button:not(.link) { min-width: 7em; }
#story-list { display: flex; flex-direction: column; gap: 6px; }
.story-item { display: flex; gap: 14px; align-items: baseline; text-align: left; padding: 10px 14px; }
.story-item.locked { border: 1px solid var(--line); border-radius: 6px; opacity: .6; }
.story-item .num { color: var(--faint); min-width: 2em; text-align: right; }
.story-item .meta { color: var(--muted); font-size: 13px; margin-left: auto; }
.story-group { margin: 14px 0 2px; font-size: 15px; color: var(--accent); }
.story-item .state { color: var(--good); font-size: 13px; }
dialog#player-dialog {
  width: min(560px, 92vw); padding: 18px 24px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
dialog#player-dialog::backdrop { background: rgba(0, 0, 0, .7); }
#player-dialog h3 { margin: 0 0 8px; color: var(--accent); }
.pronoun-chips { margin-left: 12px; font-size: 14px; }

/* キャラのアイコン（renderer/icons.js） */
.u-icon { display: inline-block; flex: none; border-radius: 6px; object-fit: contain; vertical-align: middle; }
.u-icon.fallback { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: hsl(var(--hue) 30% 28%); color: hsl(var(--hue) 45% 82%); line-height: 1; user-select: none; }
.ic-24 { width: 24px; height: 24px; font-size: 12px; }
.ic-32 { width: 32px; height: 32px; font-size: 16px; }
.ic-48 { width: 48px; height: 48px; font-size: 24px; }
.ic-64 { width: 64px; height: 64px; font-size: 32px; }
.hue-0 { --hue: 0; }
.hue-1 { --hue: 30; }
.hue-2 { --hue: 60; }
.hue-3 { --hue: 90; }
.hue-4 { --hue: 120; }
.hue-5 { --hue: 150; }
.hue-6 { --hue: 180; }
.hue-7 { --hue: 210; }
.hue-8 { --hue: 240; }
.hue-9 { --hue: 270; }
.hue-10 { --hue: 300; }
.hue-11 { --hue: 330; }
.u-icon.pixel { image-rendering: pixelated; border-radius: 0; } /* ドット絵はぼかさずに拡大 */
.u-named { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.sc-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
/* 11/25：絵の列（48px＋間 12px）。絵の出るセリフがない場面は列を取らない（説明の窓など） */
#sc-body:not(.sc-gutter) .sc-noicon { display: none; }
#sc-body.sc-gutter .sc-noicon { flex: none; width: 48px; }
#sc-body.sc-gutter .sc-para { margin-left: 60px; }
.sc-line .u-icon { margin-top: 0; margin-bottom: -12px; } /* 絵の高さで行の間が広がらないよう、下の余白にはみ出させる（絵のセリフが続いても重ならない） */
#sc-body .sc-line p { margin: 0; }
.bl-enemy-icons { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.bl-floor-head { display: flex; align-items: center; }
.dungeon.has-boss { grid-template-columns: 48px 4.2em 1fr auto; }
.dungeon.has-boss .boss-icon { grid-row: span 2; display: flex; }
.dungeon.has-boss .meta { grid-column: 3; }
table.icon-table td { padding: 4px 12px 4px 0; vertical-align: middle; }
table.icon-table button + button { margin-left: 10px; }
#icon-enemies { margin: 8px 0 4px; }
#icon-enemies summary { cursor: pointer; color: var(--muted); }

/* 図鑑 */
.seg { display: inline-flex; gap: 0; margin-top: 6px; }
.seg button { border-radius: 0; }
.seg button:first-child { border-radius: 5px 0 0 5px; }
.seg button:last-child { border-radius: 0 5px 5px 0; margin-left: -1px; }
.seg button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); position: relative; }
.bs-list { display: flex; flex-direction: column; gap: 4px; }
.bs-item { border: 1px solid var(--line); border-radius: 6px; }
.bs-item.locked { display: flex; gap: 12px; align-items: center; padding: 6px 12px; opacity: .55; }
.bs-head { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: none; background: none; padding: 6px 12px; }
.bs-head .meta { margin-left: auto; color: var(--muted); font-size: 13px; }
.bs-item.open { border-color: var(--accent); }
.bs-desc { margin: 2px 12px 8px 56px; color: var(--text, inherit); line-height: 1.7; }
table.bs-detail { margin: 0 12px 10px 56px; width: auto; }
table.bs-detail th { text-align: left; color: var(--muted); font-weight: normal; padding: 4px 16px 4px 0; vertical-align: top; white-space: nowrap; }
.bs-elem { margin-right: 14px; white-space: nowrap; }
table.bs-floors th { text-align: left; color: var(--muted); font-weight: normal; padding: 6px 16px 6px 0; vertical-align: top; white-space: nowrap; }
.bs-combo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.bs-enemy { display: inline-flex; align-items: center; gap: 4px; }
.bs-boss { color: var(--accent); margin-left: 6px; font-size: 12px; }
table.bs-floors th { width: 7em; }
.cover { color: var(--muted); }
.bl-learn { color: var(--accent); }
.passive { border-bottom: 1px dotted var(--muted); cursor: help; }
.fade { color: var(--muted); }
/* 状態異常の間の名前（戦闘ログ） */
.st-paralyze { color: var(--st-paralyze); }
.st-poison { color: var(--st-poison); }
.st-curse { color: var(--st-curse); }
.st-multi { text-decoration: underline dotted; text-underline-offset: 3px; }
.bl-legend { font-size: 12px; color: var(--muted); margin: 0 0 8px; }

/* 画面の「?」と、その説明（11/09、renderer/help.js） */
.help-mark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 50%;
  border: 1px solid var(--faint); color: var(--muted); font-size: 11px; font-weight: bold; line-height: 1; cursor: help; vertical-align: 2px; user-select: none; }
.help-mark:hover, .help-mark:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
h2 .help-mark, h3 .help-mark { vertical-align: 3px; }
.field-label:has(.help-mark) { white-space: nowrap; }
#help-tip { position: fixed; z-index: 1000; max-width: 340px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--raise); color: var(--text); font-size: 13px; font-weight: normal; line-height: 1.7; white-space: pre-line;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); pointer-events: none; }

/* 負けたときのヒント（11/09） */
.bl-hints { margin: 8px 0 10px; padding: 9px 14px; border-left: 3px solid var(--accent); background: var(--raise); border-radius: 4px; }
.bl-hints h4 { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.bl-hints ul { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.bl-hints.pending { border-left-color: var(--line); }

/* ボスの前までのログを流している間はタブに移れない（11/27） */
body.nav-locked .tabs button:not(.active) { opacity: .35; cursor: not-allowed; }
/* ボスの前（11/26）：物語の窓に近い見た目 */
dialog#boss-dialog {
  width: min(720px, 92vw); max-height: 88vh; padding: 18px 24px 14px; overflow: auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
dialog#boss-dialog::backdrop { background: rgba(0, 0, 0, .7); }
#bp-title { margin: 0 0 8px; color: var(--accent); }
#boss-dialog .bp-lead { line-height: 1.9; font-size: 15px; margin: 0 0 10px; }
#boss-dialog .bp-boss { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 10px; }
#boss-dialog table { border-collapse: collapse; width: 100%; margin: 4px 0 8px; }
#boss-dialog th, #boss-dialog td { padding: 3px 8px; border-bottom: 1px solid var(--line, #444); text-align: right; white-space: nowrap; }
#boss-dialog th:first-child, #boss-dialog td:first-child { text-align: left; }
#boss-dialog tr.down td { color: var(--muted); }
#boss-dialog .bp-odds { font-size: 18px; margin: 10px 0 2px; }
#boss-dialog .bp-odds b { color: var(--accent); }

/* 派遣の結果（11/10） */
dialog#result-dialog {
  min-width: 460px; max-width: 640px; max-height: 86vh; padding: 14px 20px 14px; overflow: auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: 8px;
}
#result-dialog h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: normal; }
#result-dialog .bl-end-block { margin-top: 0; padding-top: 0; border-top: none; }
#result-dialog .bl-totals { min-width: 0; width: 100%; }
#result-dialog.clear { border-color: var(--good); }
#result-dialog.wipe { border-color: var(--bad); }

/* 道中の出来事（11/13） */
.bl-event { margin: 2px 0; color: var(--text); }
.bl-event.chest { color: var(--accent); }
.bl-event.rare { color: var(--good); font-weight: bold; }
.bl-event.rich { color: var(--rich); font-weight: bold; }
.bl-ev-mark { margin-left: 8px; font-size: 12px; color: var(--muted); }
.bl-ev-mark.chest { color: var(--accent); }
.bl-ev-mark.rich { color: var(--rich); }

/* キャラの言葉（11/13） */
.bl-voices { margin: 8px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.bl-voice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-say { font-size: 15px; }
.bl-voice.placeholder .bl-say { color: var(--muted); }
.bl-voice-note { font-size: 12px; color: var(--muted); }

/* 戦闘の見せ場（11/13） */
.bl-show { margin: 8px 0 10px; padding: 8px 14px; background: var(--raise); border-radius: 4px; }
.bl-show h4 { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.bl-show-sec { display: flex; gap: 10px; }
.bl-show-h { flex: 0 0 3em; font-size: 12px; color: var(--muted); padding-top: 3px; }
.bl-show ul { margin: 0; padding-left: 1.1em; line-height: 1.8; }
.bl-show li.hl-finisher, .bl-show li.hl-comeback, .bl-show li.hl-rich { color: var(--accent); }

/* 図鑑の NEW（11/13） */
.new-mark { display: inline-block; margin-left: 8px; padding: 0 5px; border-radius: 3px; background: var(--bad); color: #fff;
  font-size: 10px; font-weight: bold; line-height: 16px; letter-spacing: .5px; vertical-align: 2px; }
.new-dot { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--bad); vertical-align: 6px; }

/* ダンジョンの決まり（11/20） */
#sortie-rules { margin: 4px 0; padding: 4px 8px; border-left: 3px solid var(--accent); background: var(--raise); }
.rule-mark { padding: 0 4px; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent); font-size: 0.85em; }
.bl-prayer { color: var(--good); }

/* エンディングロール（11/21） */
#ending-dialog { width: min(760px, 92vw); height: min(560px, 86vh); padding: 24px 32px; background: var(--bg); border: 1px solid var(--line); display: none; flex-direction: column; }
#ending-dialog[open] { display: flex; }
#ending-dialog::backdrop { background: rgba(0, 0, 0, 0.85); }
#ed-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; opacity: 0; transition-property: opacity; }
#ed-body.shown { opacity: 1; }
.ed-line { display: flex; align-items: center; gap: 16px; text-align: left; max-width: 620px; }
.ed-line p { margin: 0; font-size: 1.15em; line-height: 1.7; }
.ed-speaker { display: block; color: var(--accent); font-size: 0.85em; }
.ed-para { font-size: 1.2em; line-height: 1.9; margin: 0; }
.ed-credit h4 { color: var(--accent); margin: 0 0 10px; letter-spacing: 0.2em; }
.ed-credit p { margin: 4px 0; }
.ed-buttons { display: flex; justify-content: flex-end; }

/* キャラの性別（11/21） */
.gender { margin-left: 3px; font-weight: normal; }
.gender-m { color: var(--gender-m); }
.gender-f { color: var(--gender-f); }

/* 戦闘ログ（11/21）：英雄の証・経験値の表・「進む」 */
.bl-hero { color: var(--hero); font-weight: bold; }
.bl-rare { color: var(--good); font-weight: bold; } /* 珍しい入手品（11/23） */
.hl-unit { color: var(--unit-name); font-weight: bold; } /* 見せ場・言葉・加入の味方の名前（11/23） */
.bl-exp-grid { display: inline-grid; grid-template-columns: max-content max-content max-content; column-gap: 0.8em; row-gap: 2px; }
.bl-next { display: block; margin: 12px auto; padding: 6px 28px; font-size: 1.05em; }

/* タイトル画面（11/21） */
#title-dialog { width: min(640px, 92vw); padding: 28px 32px; background: var(--bg); border: 1px solid var(--line); }
#title-dialog::backdrop { background: var(--bg); }
.tt-title { margin: 0 0 4px; color: var(--accent); letter-spacing: 0.1em; }
#tt-slots { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tt-slot { display: grid; grid-template-columns: 5.5em 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.tt-no { color: var(--accent); font-weight: bold; }
.tt-go { color: var(--accent); }
#clear-slot { max-width: 34em; }

/* 冒険の記録（11/21） */
.ed-record table, .record-table { border-collapse: collapse; margin: 0 auto; }
.ed-record th, .record-table th { text-align: left; font-weight: normal; color: var(--muted, #999); padding: 3px 18px 3px 0; }
.ed-record td, .record-table td { text-align: right; padding: 3px 0; }
#story-record h3 { margin-top: 24px; }
.record-table { margin: 0; }

/* 称号（11/21） */
.titles-proof { margin: 8px 0 14px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--raise); }
.titles-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.titles-table th, .titles-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.titles-table .num, .titles-table td:last-child { text-align: right; white-space: nowrap; }
.title-not td { color: var(--muted, #999); }
.title-not td b { color: inherit; }
.title-badge { color: var(--accent); }
#titles-panel h3 { color: var(--accent); margin: 18px 0 6px; }

/* 起動できなかったとき（11/21） */
#boot-error { margin: 40px auto; max-width: 720px; padding: 16px 24px; border: 1px solid var(--line); background: var(--raise); }
#boot-error pre { white-space: pre-wrap; color: var(--muted, #999); }

/* キャラの絵を選ぶ（11/21） */
.icon-pick-row td { background: var(--raise); }
/* キャラのタブの詳細（11/22） */
.unit-open { color: inherit; padding: 0; }
.unit-open .caret { display: inline-block; width: 1.1em; color: var(--muted); }
.roster-tools button + button { margin-left: 12px; }
tr.unit-detail > td { background: var(--raise); padding: 10px 12px 12px 18px; white-space: normal; }
.ud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; }
.ud-block h4 { margin: 0 0 4px; font-size: 13px; font-weight: normal; color: var(--accent); }
.ud-block > div { margin: 2px 0; }
.ud-wide { grid-column: 1 / -1; }
table.stat-grid { width: auto; }
table.stat-grid th, table.stat-grid td { padding: 2px 14px 2px 0; border: none; text-align: right; white-space: nowrap; }
.equip-effect { margin-left: 4px; font-size: 13px; }
.stat-plus { color: var(--good); margin-left: 2px; font-size: 12px; }
/* キャラのタブのペンの印（11/22） */
.pen { background: none; border: 0; padding: 2px 4px; margin-left: 4px; color: var(--muted); cursor: pointer; vertical-align: middle; line-height: 0; }
.pen:hover, .pen:focus-visible { color: var(--accent); }
.icon-edit { position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; flex: none; }
.icon-edit .pen-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45); color: #fff; border-radius: 6px; opacity: 0; transition: opacity 0.12s; }
.icon-edit:hover .pen-over, .icon-edit:focus-visible .pen-over { opacity: 1; }
.icon-pick { padding: 4px; margin: 0 4px; border: 2px solid transparent; background: none; vertical-align: middle; }
.icon-pick.on { border-color: var(--accent); }
/* 宝箱などの小さな絵（11/21） */
.mark-icon { vertical-align: -6px; margin-right: 4px; }
.bl-ev-mark .mark-icon { vertical-align: -7px; margin-right: 2px; }
.equip-mismatch { color: var(--bad); font-size: .9em; margin-left: .5em; } /* 合わない武器（11/23） */
.tactic-warn { color: var(--bad); font-size: 14px; margin: 4px 0; } /* 作戦と編成が合わないかもしれない（11/23） */

.nowrap { white-space: nowrap; }

/* 称号の表（11/25）：節ごとの表でも列がそろうように幅を決める */
.titles-table { table-layout: fixed; width: 100%; }
.titles-table col.tt-name { width: 22%; }
.titles-table col.tt-cond { width: 28%; }
.titles-table col.tt-prog { width: 13%; }
.titles-table col.tt-reward { width: 24%; }
.titles-table col.tt-act { width: 13%; }
.titles-table td, .titles-table th { overflow-wrap: anywhere; }
/* 図鑑の味方（11/25） */
.bs-desc p { margin: 0 0 6px; }
table.bs-stats { border-collapse: collapse; }
table.bs-stats th, table.bs-stats td { padding: 2px 10px 2px 0; font-weight: normal; }
table.bs-stats td.num, table.bs-stats th.num { text-align: right; }
table.bs-detail th.bs-sub { color: var(--accent); padding-top: 10px; }

/* お気に入りの戦闘ログ（11/25） */
#bl-fav-tools { display: inline-flex; gap: 6px; align-items: center; }
#bl-fav-memo { margin: 4px 0 8px; white-space: pre-wrap; color: var(--muted); }
#fav-dialog { width: min(520px, 90vw); }
.fav-field { display: block; margin: 8px 0; }
.fav-field input, .fav-field textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; }
#fav-note { color: var(--bad); min-height: 1.2em; margin: 4px 0; }

/* プレイヤーの絵（11/25） */
.pl-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.icon-pick.pl-none { min-width: 56px; min-height: 56px; color: var(--muted); border: 2px dashed var(--line); }
.icon-pick.pl-none.on { border: 2px solid var(--accent); color: var(--text); }

/* 上の帯のプレイヤー（11/25）：絵・称号・名前 */
.player-badge { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.player-badge .u-icon { margin: -6px 0; }
.player-badge .player-name { font-weight: bold; }

/* 編成のプリセット（11/25） */
.preset-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 8px 10px; background: var(--raise); border-radius: 6px; }
.preset-bar select { min-width: 12em; }
.preset-msg { flex-basis: 100%; font-size: 13px; }
#text-dialog { width: min(420px, 90vw); }
.td-input { width: 100%; box-sizing: border-box; font: inherit; margin: 8px 0 4px; }
#mk-modes { margin-bottom: 6px; } /* 訓練所・商人の中の切り替え（11/26） */

/* 所持品の装備の表（11/26）：武器・防具・アクセサリーで列をそろえる。絵のない装備も文字の頭をそろえる */
.equip-table { table-layout: fixed; }
.equip-table col.et-name { width: 30%; }
.equip-table col.et-stat { width: 21%; }
.equip-table col.et-eff { width: 23%; }
.equip-table col.et-who { width: 12%; }
.equip-table col.et-act { width: 14%; }
.equip-table td { overflow-wrap: anywhere; }
.ic-pad { display: inline-block; flex: none; margin-right: 4px; } /* 絵（img）の右の余白と同じだけ */

/* ---------------------------------------------------------------- 狭い画面（スマホ。12/01、ブラウザ版の②）
   PC 版は窓の幅が 900px より狭くならない（main.cjs）ので、ここは効かない。
   並べ方：窓の中の欄をそれぞれ動かすのをやめて、ページ全体を上下に動かす。タブは横に動かす。表は欄の中で横に動かす。
   下の帯（知らせ）はいつも見える所に。iPhone の切り欠き・下のバーの分だけ内側に寄せる（viewport-fit=cover） */
@media (max-width: 700px) {
  html, body { height: auto; min-height: 100%; }
  body { font-size: 15px; -webkit-text-size-adjust: 100%; }
  header { padding: calc(6px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 6px calc(10px + env(safe-area-inset-left)); gap: 4px 10px; }
  header h1 { font-size: 16px; }
  .tabs { order: 3; flex-basis: 100%; margin-left: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 6px 9px; }
  .tabs .tab-right { margin-left: 0; }
  #status { order: 2; margin-left: 0; flex-basis: 100%; white-space: normal; font-size: 13px; }
  #status > span { white-space: nowrap; }
  footer { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 6px calc(10px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); font-size: 13px; }
  main, .view.single { display: block; padding: 8px calc(6px + env(safe-area-inset-right)) 8px calc(6px + env(safe-area-inset-left)); }
  main > section + section { margin-top: 10px; }
  section { overflow: visible; padding: 10px 10px; min-width: 0; }
  /* 表だけを横に動かす（欄ごと動かすと、表の下の文まで右にはみ出す） */
  section table, dialog table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  select { max-width: 100%; min-width: 0; }
  /* 横に並べたボタンの列は折り返す（WebKit は選ぶ欄の幅を中の一番長い文に合わせるため、折り返さないと右にはみ出す） */
  .row { flex-wrap: wrap; }
  .row > select { flex: 1 1 100%; }
  /* iPhone は 16px より小さい入力欄を押すと画面を拡大する */
  input, select, textarea { font-size: 16px; }
  /* 指で押しやすく */
  button, select { min-height: 36px; }
  button.link { min-height: 0; padding: 6px 0; }
  .help-mark { width: 22px; height: 22px; }
  /* ダンジョンの一覧：右の状態は名前の下に */
  .dungeon, .dungeon.has-boss { grid-template-columns: 3.6em 1fr; }
  .dungeon.has-boss { grid-template-columns: 40px 3.6em 1fr; }
  .dungeon .state { grid-row: auto; grid-column: -2; text-align: left; }
  .dungeon .meta { grid-column: -2; }
  /* 表：決まった幅をやめる（収まらないものは欄の中で横に動かす） */
  .items, .bl-totals, .trial-roster, #inventory-panel table { min-width: 0; }
  .roster .equip-line { width: auto; }
  #shop-table td.effect { min-width: 10em; }
  .field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .volume input { width: auto; flex: 1; }
  .lineup-cols { grid-template-columns: 1fr; }
  #bl-pick { max-width: 100%; margin-left: 0; }
  .bl-head { top: 0; }
  /* 窓：画面の幅に合わせる */
  dialog#confirm-dialog, dialog#goal-dialog, dialog#result-dialog { min-width: 0; width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  dialog#story-dialog, dialog#boss-dialog, dialog#player-dialog, #title-dialog, #ending-dialog, #text-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); padding: 14px 14px 12px; }
  dialog { max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; }
  #sc-body { min-height: 160px; font-size: 15px; line-height: 1.9; }
  .sc-buttons button:not(.link) { min-width: 5em; }
  .tt-slot { grid-template-columns: 4.5em 1fr; }
  .tt-slot > :last-child { grid-column: 1 / -1; }
  #help-tip { max-width: calc(100vw - 16px); }
  /* 表の見出し・表の中のボタン・キャラの名前は折り返さない（細切れになって読めないため。収まらなければ欄の中で横に動かす） */
  th, td button, .u-named, .u-named b { white-space: nowrap; }
}
