/* ツール集（/tools/）。本文と同じ白地・臙脂・直角。style.css の変数を使う（2026-11-15） */

/* ---------- ページの見出し ---------- */
.tool-head { padding: 40px 0 34px; }
.tool-head h1 { margin-bottom: 10px; }
.crumb { font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }
.crumb span { margin: 0 6px; }
.tool-sec { padding: 40px 0 56px; }

/* ---------- ツール本体の枠 ---------- */
.tool { border: 1px solid var(--line-2); border-top: 3px solid var(--ink); background: var(--paper); padding: 26px; min-height: 120px; }
.tool:not(.ready)::before { content: "読み込んでいます…"; color: var(--ink-3); font-size: 14px; }
.tool noscript { color: var(--ink-2); font-size: 14px; }
.tool h2, .tool h3 { font-size: 16px; margin: 26px 0 10px; }
.tool h2:first-child, .tool h3:first-child { margin-top: 0; }
.tool p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.tool button { font-family: inherit; }
.tool button.btn { appearance: none; cursor: pointer; font-size: 14px; }
.tool button.btn:disabled { opacity: .45; cursor: default; }
.t-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.t-btns:first-child { margin-top: 0; }

/* ---------- 入力欄 ---------- */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 20px; align-items: start; }
.tf-grid + .tf-grid, .tf-grid + .seg, .seg + .tf-grid { margin-top: 16px; }
.tf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf-wide { grid-column: 1 / -1; }
.tf label, .tf-label { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.tf-in { display: flex; align-items: stretch; min-width: 0; }
.tf input, .tf select, .tf textarea { flex: 1 1 auto; min-width: 0; width: 100%; font: 16px var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.tf textarea { line-height: 1.6; resize: vertical; min-height: 90px; }
.tf input:focus, .tf select:focus, .tf textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.tf-unit { flex: none; display: flex; align-items: center; padding: 0 12px; background: var(--paper-2); border: 1px solid var(--line-2); border-left: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tf-hint { font-size: 12px !important; color: var(--ink-3) !important; line-height: 1.6 !important; margin: 0; }
.tf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.tf-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { appearance: none; font: 14px var(--sans); padding: 9px 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.seg button:hover { border-color: var(--ink); }
.seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
input[type="range"] { accent-color: var(--accent); padding: 0 !important; border: 0 !important; height: 32px; }

/* ---------- 結果 ---------- */
.t-out { margin-top: 22px; padding: 20px; background: var(--paper-2); }
.t-out[hidden] { display: none; }
.t-out > :first-child { margin-top: 0; }
.t-bigbox { margin: 0 0 14px; }
.t-biglabel { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 4px; }
.t-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.t-bignum { font: 700 44px/1.1 var(--latin); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-bigunit { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.t-bigrow { display: flex; flex-wrap: wrap; gap: 14px 40px; }
table.t-kv, table.t-list { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--line-2); }
table.t-kv th, table.t-kv td, table.t-list th, table.t-list td { display: table-cell; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); line-height: 1.7; vertical-align: top; text-align: left; }
table.t-kv th { width: 13em; white-space: normal; font-weight: 600; color: var(--ink-2); }
table.t-kv td { color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-word; }
table.t-list thead th { font-size: 12.5px; color: var(--ink-3); font-weight: 700; white-space: nowrap; width: auto; border-bottom: 1px solid var(--line-2); }
table.t-list td { color: var(--ink); font-variant-numeric: tabular-nums; }
table.t-list td:first-child { font-weight: 600; }
.t-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t-scroll table.t-list { min-width: 520px; }
.t-msg { padding: 12px 16px; border-left: 4px solid var(--line-2); background: var(--paper); margin: 14px 0 0; }
.t-out .t-msg:first-child { margin-top: 0; }
.tool > .t-msg { background: var(--paper-2); }
.t-msg strong { font-size: 14px; display: block; }
.t-msg p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.75; }
.t-msg.ok { border-color: #3f6b4f; } .t-msg.warn { border-color: #c9a24a; } .t-msg.bad { border-color: var(--accent); } .t-msg.info { border-color: var(--ink-3); }
.t-note { font-size: 12.5px !important; color: var(--ink-3) !important; line-height: 1.75 !important; margin: 12px 0 0; }
.t-copy { appearance: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 12.5px var(--sans); padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.t-copy:hover { border-color: var(--ink); color: var(--ink); }
.t-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 14px; word-break: break-all; }
.t-meter { height: 10px; background: var(--line); position: relative; }
.t-meter span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.t-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); margin-top: 16px; }
.t-stat > div { background: var(--paper); padding: 12px 14px; min-width: 0; }
.t-stat dt, .t-stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; margin: 0 0 2px; }
.t-stat dd, .t-stat .v { font: 700 20px/1.3 var(--latin); color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.t-stat .v small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }

/* ---------- 測定用の黒い面・全画面 ---------- */
.t-stage { position: relative; background: #0e0c0c; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.t-stage canvas { display: block; width: 100%; height: 100%; }
.t-fakefull { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; z-index: 3000 !important; margin: 0 !important; }
:fullscreen { width: 100%; height: 100%; }
body.t-noscroll { overflow: hidden; }
.t-fullui { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; background: rgba(14,12,12,.72); color: #fff; font-size: 13px; transition: opacity .3s; }
.t-fullui.hide { opacity: 0; pointer-events: none; }
.t-fullui button { appearance: none; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 13px var(--sans); padding: 7px 12px; cursor: pointer; }
.t-fullui button:hover, .t-fullui button.on { background: #fff; color: #0e0c0c; }

/* ---------- 説明の節（使い方・目安・質問） ---------- */
.tool-doc { border-top: 1px solid var(--line); }
.tool-doc .sec { padding: 0; }
.tool-doc section { padding: 48px 0; }
.howto { margin: 0; padding-left: 1.4em; color: var(--ink-2); font-size: 15px; }
.howto li { margin-bottom: 8px; padding-left: 4px; }
.howto li::marker { color: var(--accent); font-weight: 700; font-family: var(--latin); }
.doc-body p { color: var(--ink-2); margin-bottom: 12px; max-width: 46em; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--ink-2); font-size: 14.5px; max-width: 46em; }
.doc-body li { margin-bottom: 6px; }
.doc-body table { margin: 6px 0 14px; }
.doc-body th { width: 180px; }
.doc-body h3 { margin: 26px 0 8px; font-size: 16px; }
.doc-body h3:first-child { margin-top: 0; }

/* ---------- 関連サービスへの案内 ---------- */
.tool-cta { border: 1px solid var(--line-2); border-left: 4px solid var(--accent); background: var(--paper); padding: 22px 26px; display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tool-cta h2 { font-size: 17px; margin-bottom: 4px; }
.tool-cta p { color: var(--ink-2); font-size: 14.5px; max-width: 40em; }
.tool-cta .btn { white-space: nowrap; }

/* ---------- ツールの一覧（カード） ---------- */
.tl-bar { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.tl-search { flex: 1 1 280px; max-width: 460px; font: 16px var(--sans); padding: 11px 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.tl-search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.tl-count { font-size: 13px; color: var(--ink-3); }
.tl-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tl-jump a { font-size: 13px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); padding: 6px 12px; background: var(--paper); }
.tl-jump a:hover { border-color: var(--accent); color: var(--accent); }
.tl-cat { padding: 44px 0 0; scroll-margin-top: 84px; }
.tl-cat[hidden] { display: none; }
.tl-cat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 18px; }
.tl-cat-head h2 { font-size: 20px; }
.tl-cat-head p { font-size: 13.5px; color: var(--ink-2); }
.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tl-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); padding: 18px 18px 16px; transition: border-color .15s; }
.tl-card:hover { border-color: var(--accent); color: var(--ink); }
.tl-card[hidden] { display: none; }
.tl-card h3 { font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
.tl-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin: 0 0 12px; flex: 1; }
.tl-kind { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--tint); padding: 1px 8px; letter-spacing: .04em; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; align-items: center; }
.tl-tags .tl-kind { align-self: center; margin: 0; }
.tl-rank { color: #fff; background: var(--accent); }
.tl-none { padding: 30px 0 0; color: var(--ink-2); font-size: 14.5px; }
.tl-none[hidden] { display: none; }
.tl-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-more a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: var(--paper); padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.tl-more a:hover { border-color: var(--accent); color: var(--accent); }
.tl-more a span { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 960px) { .tl-grid, .tl-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tool-head { padding: 30px 0 26px; }
  .tool-sec { padding: 26px 0 40px; }
  .tool { padding: 16px; }
  .tool-doc section { padding: 36px 0; }
  .t-out { padding: 14px; }
  .t-bignum { font-size: 36px; }
  table.t-kv th { width: 8.5em; }
  .tool-cta { padding: 18px; }
  .doc-body th { width: auto; }
}
@media (max-width: 560px) { .tl-grid, .tl-more { grid-template-columns: 1fr; } }

/* ---------- ドット抜けチェック・階調テスト ---------- */
.dp-wrap, .gt-wrap { margin-top: 16px; }
.dp-stage, .gt-stage { height: 240px; cursor: pointer; outline-offset: 2px; border: 1px solid var(--line-2); }
.dp-stage:fullscreen, .gt-stage:fullscreen, .dp-stage.t-fakefull, .gt-stage.t-fakefull { border: 0; height: 100%; }
.dp-stage:not(.running) .t-fullui > button { display: none; }
.dp-label { min-width: 9em; }
.dp-sws { display: inline-flex; gap: 4px; }
.t-fullui .dp-sw { width: 26px; height: 26px; padding: 0; border: 2px solid rgba(255,255,255,.55); }
.t-fullui .dp-sw.on { border-color: #fff; outline: 2px solid #8c2f39; }
.gt-ui { justify-content: flex-start; }
.gt-cap { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; text-align: left; line-height: 1.6; }
.gt-desc { font-size: 12.5px; color: #d9d0d1; }
.gt-stage:not(:fullscreen):not(.t-fakefull) .gt-ui > button:last-child { display: none; }

/* ---------- リフレッシュレート・残像・画面くらべ ---------- */
.rr-graphwrap { margin-top: 16px; border: 1px solid var(--line-2); }
.rr-graph { display: block; width: 100%; height: 140px; }
.mt-wrap { margin-top: 16px; }
.mt-stage { height: 320px; touch-action: auto; }
.mt-stage.full, .mt-stage:fullscreen { height: 100%; }
.mt-close { display: none; position: absolute; right: 14px; bottom: 14px; appearance: none; border: 1px solid rgba(255,255,255,.5); background: rgba(14,12,12,.6); color: #fff; font: 13px var(--sans); padding: 7px 12px; cursor: pointer; }
.mt-stage.full .mt-close { display: block; }
.sc-wrap { margin-top: 18px; border: 1px solid var(--line-2); }
.sc-canvas { display: block; width: 100%; height: 360px; }

/* ---------- キーボードテスト ---------- */
.kb-hint { margin: 16px 0 8px; font-size: 13.5px !important; }
.kb-board { outline: 0; border: 2px solid var(--line-2); padding: 14px; background: var(--paper-2); cursor: pointer; min-width: 900px; }
.kb-board.active { border-color: var(--accent); cursor: default; }
.kb-inner { display: flex; gap: 14px; align-items: flex-start; }
.kb-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kb-main { flex: 15 1 0; } .kb-nav { flex: 3 1 0; } .kb-num { flex: 4 1 0; }
.kb-row { display: flex; gap: 4px; height: 38px; }
.kb-row:first-child { margin-bottom: 8px; }
.kb-key { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); font: 600 11.5px var(--latin), var(--sans); color: var(--ink-2); overflow: hidden; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.kb-key.done { background: #4e4648; border-color: #4e4648; color: #fff; }
.kb-key.down { background: var(--accent); border-color: var(--accent); color: #fff; }
.kb-key.chat { box-shadow: inset 0 0 0 2px #c9a24a; }
.kb-extra { margin-top: 12px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kb-chip { background: #4e4648; color: #fff; padding: 2px 8px; font-size: 12px; }

/* ---------- マウステスト・タッチテスト ---------- */
.ms-area { background: var(--paper-2); border: 2px solid var(--line-2); padding: 26px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; outline: 0; user-select: none; -webkit-user-select: none; touch-action: none; }
.ms-area:focus { border-color: var(--accent); }
.ms-msg { font-size: 13.5px !important; color: var(--ink-2) !important; text-align: center; }
.ms-mouse { width: 190px; display: grid; grid-template-columns: 1fr 44px 1fr; grid-template-rows: 92px 150px; gap: 4px; }
.ms-btn, .ms-wheel { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); font: 700 13px var(--sans); color: var(--ink-2); }
.ms-m { grid-column: 2; margin: 14px 0 22px; }
.ms-body { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line-2); position: relative; }
.ms-side { position: absolute; left: -1px; top: 12px; width: 54px; display: flex; flex-direction: column; gap: 4px; }
.ms-side .ms-btn { height: 34px; font-size: 12px; }
.ms-wheel { position: absolute; left: 50%; top: 18px; width: 44px; height: 44px; margin-left: -22px; font-size: 18px; }
.ms-btn.done, .ms-wheel.done { background: #4e4648; border-color: #4e4648; color: #fff; }
.ms-btn.down { background: var(--accent); border-color: var(--accent); color: #fff; }
.tt-wrap { margin-top: 16px; }
.tt-stage { height: 360px; }
.tt-stage.full, .tt-stage:fullscreen { height: 100%; }
.tt-info { position: absolute; left: 0; right: 0; top: 0; padding: 8px 12px; font-size: 12.5px; color: #fff; background: rgba(14,12,12,.6); pointer-events: none; line-height: 1.6; }
.tt-end { display: none; position: absolute; right: 12px; bottom: 12px; appearance: none; border: 1px solid rgba(255,255,255,.6); background: rgba(14,12,12,.7); color: #fff; font: 14px var(--sans); padding: 9px 16px; cursor: pointer; }
.tt-stage.full .tt-end { display: block; }

/* ---------- コントローラーテスト・スピーカーテスト ---------- */
.gp-id { font-size: 13px !important; color: var(--ink-3) !important; word-break: break-all; margin-bottom: 14px; }
.gp-sticks { display: flex; gap: 24px; flex-wrap: wrap; }
.gp-sticks > div { flex: 0 1 220px; min-width: 0; }
.gp-sticks h3 { margin: 0 0 8px !important; font-size: 14px !important; }
.gp-stick { display: block; width: 220px; max-width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line-2); }
.gp-sinfo { font-size: 12px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.6; min-height: 3.2em; }
.gp-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.gp-b { position: relative; height: 52px; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.gp-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(140,47,57,.28); }
.gp-bl { position: relative; font: 700 13px var(--sans); color: var(--ink); }
.gp-bn { position: relative; font-size: 10.5px; color: var(--ink-3); }
.gp-b.done { background: #e9e3e4; border-color: #4e4648; }
.gp-b.down { background: var(--accent); border-color: var(--accent); }
.gp-b.down .gp-bl, .gp-b.down .gp-bn { color: #fff; }
.gp-axes { display: grid; gap: 6px; }
.gp-axis { display: grid; grid-template-columns: 9em 1fr 4.5em; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.gp-abar { height: 10px; background: var(--line); position: relative; }
.gp-abar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.gp-abar span { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.gp-av { font-variant-numeric: tabular-nums; text-align: right; }
.sp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; background: var(--paper-2); }
.sp-bar input[type="range"] { flex: 1 1 160px; max-width: 280px; }
.sp-volv { font: 700 14px var(--latin); min-width: 3em; }
.sp-status { font-size: 13px; color: var(--ink-2); }
.sp-freq { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-freq input[type="range"] { flex: 1 1 260px; }
.sp-fval { font: 700 22px var(--latin); min-width: 6.5em; font-variant-numeric: tabular-nums; }
.tool button.btn.sp-on { background: var(--ink); border-color: var(--ink); color: #fff !important; }

/* ---------- このPCの情報 ---------- */
.si-note { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.si-ua { font-size: 12.5px; }
.tool .t-copy { padding: 9px 14px; font-size: 13.5px; }

/* ---------- CPU・GPU ベンチ、回線速度 ---------- */
.cb-prog { margin-top: 18px; height: 6px; }
.cb-status { font-size: 13.5px !important; margin-top: 8px; }
.cb-graphwrap { border: 1px solid var(--line-2); background: #fff; }
.cb-graph { display: block; width: 100%; height: 160px; }
.gb-wrap { margin-top: 16px; background: #0e0c0c; }
.gb-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* 行を増やせる入力（容量単価・騒音） */
.pg-rows { display: grid; gap: 8px; margin-top: 4px; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) 70px auto; gap: 8px; align-items: center; }
.pg-row.db-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; max-width: 420px; }
.pg-row input, .pg-row select { width: 100%; min-width: 0; font: 15px var(--sans); padding: 9px 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; }
.pg-row .tf-in { display: flex; align-items: center; gap: 6px; min-width: 0; }
@media (max-width: 560px) { .pg-row { grid-template-columns: 1fr 1fr; } .pg-row > input:first-child { grid-column: 1 / -1; } .pg-row.db-row { grid-template-columns: 1fr 1fr auto; } }
/* チェックリスト */
.ck h3 { margin: 22px 0 8px; font-size: 15px; }
.ck-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ck-list li { border-bottom: 1px solid var(--line); margin: 0; }
.ck-list label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 4px; cursor: pointer; }
.ck-list input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.ck-list strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.ck-list small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin-top: 2px; }
.ck-list input:checked + span strong { color: var(--ink-3); text-decoration: line-through; }

.ck { margin-top: 6px; }
/* 抵抗カラーコード */
.rc-res { display: flex; align-items: center; margin: 18px 0 4px; max-width: 420px; }
.rc-lead { flex: 1; height: 4px; background: #9a9a9a; }
.rc-body { display: flex; align-items: stretch; gap: 14px; padding: 0 26px; height: 54px; background: #e6d3a8; border: 1px solid #b9a36f; }
.rc-body i { display: block; width: 14px; border-left: 1px solid rgba(0,0,0,.25); border-right: 1px solid rgba(0,0,0,.25); }
.rc-body i.rc-last { margin-left: 16px; }
.rc-chips { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; }
.rc-chips span { display: inline-flex; align-items: center; gap: 5px; }
.rc-chips i { display: inline-block; width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.35); }
/* 用語じてん・ローマ字 */
.gl-list { margin: 8px 0 0; border-top: 1px solid var(--line); }
.gl-list > div { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.gl-list dt { font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.gl-list dt small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.gl-list dd { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.rj-big { font: 700 22px/1.6 ui-monospace, Consolas, monospace !important; letter-spacing: .04em; word-break: break-all; margin: 0 0 10px; color: var(--ink) !important; }
.rj-seq { display: flex; flex-wrap: wrap; gap: 6px; }
.rj-seq span { display: grid; text-align: center; border: 1px solid var(--line-2); padding: 4px 8px; background: #fff; min-width: 34px; }
.rj-seq b { font-size: 16px; } .rj-seq i { font-style: normal; font: 13px ui-monospace, Consolas, monospace; color: var(--accent); }
/* IT ツール */
.pw-list { display: grid; gap: 6px; }
.pw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line-2); background: #fff; }
.pw-row code { min-width: 0; font-size: 16px; }
.fh-drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 16px; border: 1px dashed var(--ink-3); background: var(--paper); cursor: pointer; }
.fh-drop.over { border-color: var(--accent); background: #fff; }
.fh-drop span { font-size: 13px; color: var(--ink-3); }
.fh-drop input { margin-top: 10px; max-width: 100%; font: 13px var(--sans); }
.te-area { display: block; width: 100%; box-sizing: border-box; font: 15px/1.7 var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; resize: vertical; margin-top: 12px; }
.te-area.t-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; }
.te-area[readonly] { background: var(--paper); }
.tool input[type="datetime-local"], .tool input[type="password"], .tool .tf-wide > .tf-in > input { width: 100%; font: 16px var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; box-sizing: border-box; }
/* 腕だめし */
.rt-pad { display: grid; place-content: center; gap: 6px; width: 100%; min-height: 260px; margin-top: 14px; border: 0; cursor: pointer; text-align: center; font-family: var(--sans); color: #fff; background: #2a2626; border-radius: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rt-pad strong { font-size: 26px; font-weight: 700; line-height: 1.4; }
.rt-pad span { font-size: 13.5px; opacity: .85; }
.rt-pad.wait { background: var(--accent); } .rt-pad.go { background: #2f7d4f; } .rt-pad.early { background: #8a6d1f; } .rt-pad.shown { background: #2a2626; }
.cs-pad strong { font: 700 44px/1.2 var(--latin); }
.cs-pad.idle strong { font: 700 24px/1.4 var(--sans); }
.ty-view { margin-top: 14px; padding: 16px; border: 1px solid var(--line-2); background: var(--paper); font: 20px/1.9 ui-monospace, "Cascadia Mono", Consolas, monospace; display: flex; flex-wrap: wrap; gap: 0 14px; min-height: 120px; align-content: flex-start; color: var(--ink-3); }
.ty-w.cur { color: var(--ink); border-bottom: 2px solid var(--accent); }
.ty-w i { font-style: normal; } .ty-w i.ok { color: #2f7d4f; } .ty-w i.ng { color: #fff; background: var(--accent); }
.ty-input { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; font: 20px ui-monospace, Consolas, monospace; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
.am-area { position: relative; margin-top: 14px; height: 380px; background: #2a2626; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.am-msg { position: absolute; inset: 0; display: grid; place-content: center; color: #fff !important; font-size: 16px !important; margin: 0 !important; pointer-events: none; }
.am-t { position: absolute; border: 4px solid #fff; background: var(--accent); border-radius: 0; padding: 0; cursor: crosshair; }
@media (max-width: 560px) { .am-area { height: 320px; } .rt-pad { min-height: 220px; } }
.hr-list { margin-top: 14px; border-top: 1px solid var(--line); }
.hr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.hr-row.on { background: var(--paper); }
.hr-row strong { font: 700 17px var(--latin); min-width: 96px; }
.hr-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hr-btns .btn { padding: 6px 14px; font-size: 13px; }
.t-copy.hr-y { background: #2f7d4f; border-color: #2f7d4f; color: #fff; } .t-copy.hr-n { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.tool input[type="range"] { width: 100%; max-width: 360px; accent-color: var(--accent); }
.cd-grid { display: grid; gap: 6px; max-width: 460px; margin-top: 12px; }
.cd-grid:empty { display: none; }
.cd-grid button { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
.cd-grid button.ng { opacity: .35; } .cd-grid button.ans { outline: 4px solid var(--ink); outline-offset: -4px; }
/* くらし・学習 */
.qr-wrap { margin-top: 16px; }
.qr-canvas { display: block; max-width: min(100%, 360px); height: auto; image-rendering: pixelated; border: 1px solid var(--line-2); }
.wk-table .t-scroll { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); }
.tool input[type="date"] { width: 100%; max-width: 320px; font: 16px var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; box-sizing: border-box; }
.bt-prev { margin-top: 14px; border: 1px solid var(--line-2); }
.bt-stage { position: relative; height: 240px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.bt-stage:fullscreen, .bt-stage.t-fakefull { height: 100%; width: 100%; }
.bt-text { font-weight: 700; line-height: 1.25; text-align: center; font-family: var(--sans); word-break: break-all; }
.bt-close { position: absolute; top: 12px; right: 12px; font: 13px var(--sans); padding: 8px 14px; border: 1px solid #888; background: rgba(255,255,255,.85); color: #111; cursor: pointer; border-radius: 0; }
.ir-prev { margin-top: 4px; background: var(--paper); border: 1px solid var(--line); padding: 10px; text-align: center; }
.ir-prev img { max-width: 100%; max-height: 320px; height: auto; }
.tm-disp { font: 700 clamp(48px, 14vw, 96px)/1.1 var(--latin); font-variant-numeric: tabular-nums; text-align: center; padding: 22px 0 8px; color: var(--ink); letter-spacing: .02em; }
.cc-top { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.cc-top input[type="color"] { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line-2); background: #fff; cursor: pointer; border-radius: 0; flex: none; }
.cc-sw { flex: 1; min-width: 0; display: grid; place-items: center; font: 700 20px var(--latin); border: 1px solid var(--line-2); }
.tf .tf-in > input[type="date"] { max-width: none; }
.tool-teaser { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tool-teaser .note { margin: 0 0 12px; }
.sec-body > .tl-more + .note { margin-top: 14px; }

/* ---------- 表示枠の比率（始める前の枠を 16:9 にそろえる） ---------- */
.dp-stage, .gt-stage, .mt-stage, .tt-stage, .bt-stage, .am-area { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: 72vh; }
.rt-pad { aspect-ratio: 16 / 9; min-height: 0; max-height: 60vh; }
@media (max-width: 560px) {
  .dp-stage, .gt-stage, .mt-stage, .bt-stage, .rt-pad { aspect-ratio: 4 / 3; }
  .tt-stage, .am-area { aspect-ratio: 1 / 1; }
}
.dp-stage:fullscreen, .gt-stage:fullscreen, .mt-stage:fullscreen, .tt-stage:fullscreen, .bt-stage:fullscreen,
.dp-stage.t-fakefull, .gt-stage.t-fakefull, .bt-stage.t-fakefull, .mt-stage.full, .tt-stage.full { aspect-ratio: auto !important; height: 100%; min-height: 0; max-height: none; }
.rr-graph { height: 220px; }
.dp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dp-modes { margin-top: 14px; }
.t-fullui .dp-pt { min-width: 0; padding: 4px 9px; font-size: 12.5px; }
.t-fullui .dp-pt.on { background: #8c2f39; border-color: #fff; }
.dp-sws { flex-wrap: wrap; }

/* ---------- 広告（アフィリエイトリンク）の表示 ---------- */
.ad-label { display: inline-block; margin-right: 8px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; line-height: 1.6; letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--ink-3); background: #fff; vertical-align: 1px; }
.ad-top { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.ad-box { border: 1px solid var(--line-2); background: var(--paper); padding: 18px 22px 14px; }
.ad-head { font-size: 13.5px; font-weight: 700; margin: 0 0 10px; }
.ad-box ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.ad-box li span { display: block; font-size: 12.5px; color: var(--ink-2); }
.ad-note { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: 0; }

/* ---------- ベンチマークの映像 ---------- */
.gb-wrap { position: relative; }
.gb-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px; font-size: 14px !important; font-weight: 700; color: #fff !important; background: rgba(42,31,31,.72); text-align: center; max-width: none !important; }
.cb-stagewrap { margin-top: 16px; border: 1px solid var(--line-2); }
.cb-stage { display: block; width: 100%; height: 150px; }
.cb-pic { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f3ede4; border-bottom: 1px solid var(--line-2); }
.cb-cine { font-size: 13.5px !important; margin-top: 8px; }
@media (max-width: 560px) { .cb-stage { height: 170px; } .gb-cap { font-size: 12.5px !important; padding: 6px 10px; } }

/* ---------- カレンダー・電卓・メモ帳 ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-title { font-size: 20px; font-weight: 700; text-align: center; flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.cal-wd { text-align: center; font-size: 12.5px; font-weight: 700; padding: 4px 0; color: var(--ink-2); }
.cal-day { appearance: none; min-height: 68px; padding: 6px 6px 4px; border: 1px solid var(--line-2); background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-radius: 0; min-width: 0; }
.cal-day.empty { border: 0; background: none; cursor: default; }
.cal-day:hover { border-color: var(--accent); }
.cal-n { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cal-h { font-size: 10.5px; line-height: 1.35; color: var(--accent); overflow-wrap: anywhere; }
.cal-wd.sun, .cal-day.sun .cal-n { color: #b3261e; } .cal-wd.sat, .cal-day.sat .cal-n { color: #1f5fa8; }
.cal-day.today { background: #fbeff0; border-color: var(--accent); } .cal-day.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.cx-box { max-width: 420px; outline-offset: 3px; }
.cx-disp { background: #1f1b1b; color: #fff; padding: 12px 16px 14px; text-align: right; }
.cx-expr { min-height: 22px; font-size: 14px; color: #cfc6c7; overflow-wrap: anywhere; white-space: pre-wrap; }
.cx-res { font-size: 34px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .cx-res.err { font-size: 18px; color: #ffb4ab; }
.cx-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.cx-k { appearance: none; min-height: 52px; font: 700 18px var(--sans); background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; cursor: pointer; touch-action: manipulation; }
.cx-k:hover { border-color: var(--ink); } .cx-k:active { background: var(--paper-2); }
.cx-k.f { background: var(--paper-2); font-size: 14px; } .cx-k.o { background: #efe6e7; color: var(--accent); font-size: 22px; } .cx-k.eq { background: var(--accent); border-color: var(--accent); color: #fff; } .cx-k.w { grid-column: span 2; } .cx-k.eq.w { grid-column: span 4; }
.cx-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cx-hist button { appearance: none; width: 100%; text-align: left; padding: 7px 10px; background: #fff; border: 1px solid var(--line-2); font: 14px var(--sans); color: var(--ink-2); cursor: pointer; border-radius: 0; overflow-wrap: anywhere; } .cx-hist strong { color: var(--ink); }
.np-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.np-tab { appearance: none; padding: 6px 12px; font: 13px var(--sans); background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer; border-radius: 0; }
.np-tab.on { background: #fff; border-color: var(--ink); color: var(--ink); font-weight: 700; } .np-tab.add { background: #fff; border-style: dashed; }
.np-area { min-height: 300px; resize: vertical; } .np-area.big { font-size: 20px; }
@media (max-width: 560px) { .cal-day { min-height: 54px; padding: 4px 3px; } .cal-n { font-size: 14px; } .cal-h { font-size: 9px; } .cal-title { font-size: 16px; } }

/* ---------- アイコン作成・透過画像 ---------- */
.im-prevwrap { margin-top: 14px; } .im-prev { width: 128px; height: 128px; border: 1px solid var(--line-2); background: repeating-conic-gradient(#e9e4e4 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.im-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.im-item { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 10px; background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.im-item strong { font-size: 14px; color: var(--ink); } .im-item .t-mono { font-size: 11.5px; overflow-wrap: anywhere; } .im-item .btn { margin-top: 6px; padding: 5px 12px; font-size: 13px; }
.im-thumb { width: 100%; height: 104px; display: grid; place-items: center; background: repeating-conic-gradient(#e9e4e4 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); margin-bottom: 4px; }
.im-thumb img { image-rendering: auto; max-width: 96px; max-height: 96px; }
.im-code { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.tp-wrap { display: none; margin-top: 10px; border: 1px solid var(--line-2); background: repeating-conic-gradient(#d9d2d3 0% 25%, #fff 0% 50%) 50% / 20px 20px; text-align: center; }
.tp-wrap.on { display: block; } .tp-canvas { max-width: 100%; max-height: 70vh; height: auto; cursor: crosshair; vertical-align: top; }
.cc-table code { font: 13px ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; } .cc-table td { vertical-align: top; }
.ic-table td { vertical-align: middle; overflow-wrap: anywhere; } .ic-table .btn { padding: 4px 12px; font-size: 13px; }
.ip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.ip-item { display: flex; flex-direction: column; gap: 3px; padding: 8px; background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; min-width: 0; }
.ip-item img { width: 100%; height: 110px; object-fit: contain; background: var(--paper-2); } .ip-name { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-btns { display: flex; gap: 3px; flex-wrap: wrap; } .ip-btns button { appearance: none; flex: 1; padding: 4px 2px; font: 12px var(--sans); background: #fff; border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; border-radius: 0; } .ip-btns button:disabled { opacity: .4; cursor: default; }

/* ---------- Word・テキストを PDF に ---------- */
.wp-frame { margin-top: 16px; padding: 18px; background: var(--paper-2); border: 1px solid var(--line-2); overflow-x: auto; }
.wp-doc { max-width: 170mm; margin: 0 auto; padding: 18mm 15mm; background: #fff; color: #000; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 10.5pt; line-height: 1.8; box-shadow: 0 1px 4px rgba(0,0,0,.15); overflow-wrap: anywhere; }
.wp-doc.serif { font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif; }
.wp-doc p, .wp-doc h1, .wp-doc h2, .wp-doc h3, .wp-doc h4 { margin: 0 0 .5em; color: #000; font-size: inherit; max-width: none; line-height: inherit; border: 0; padding: 0; }
.wp-doc h1 { font-size: 1.7em; } .wp-doc h2 { font-size: 1.4em; margin-top: .8em; } .wp-doc h3 { font-size: 1.2em; margin-top: .6em; } .wp-doc h4 { font-size: 1.05em; }
.wp-doc .wp-li { padding-left: 1.2em; text-indent: -1.2em; } .wp-doc .wp-li::before { content: "・"; display: inline-block; width: 1.2em; text-indent: 0; }
.wp-doc table { border-collapse: collapse; width: 100%; margin: .4em 0 .8em; } .wp-doc td { border: 1px solid #000; padding: 3px 6px; vertical-align: top; width: auto; font-size: inherit; color: #000; background: none; }
.wp-doc td p { margin: 0; } .wp-doc img { max-width: 100%; height: auto; } .wp-break { display: block; break-after: page; page-break-after: always; border-top: 1px dashed #bbb; margin: 1em 0; }
#gt-printroot { display: none; }
@media print {
  body.gt-print > *:not(#gt-printroot) { display: none !important; }
  body.gt-print #gt-printroot { display: block; }
  body.gt-print .wp-doc { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  body.gt-print .wp-break { border: 0; margin: 0; }
  @page { size: A4; margin: 18mm 15mm; }
}

/* ---------- ディスクの健康度チェック ---------- */
.dh-step { margin: 8px 0; font-size: 14.5px; } .dh-step strong { font-weight: 400; }
.dh-code { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 10px 12px; background: #1f1b1b; }
.dh-code code { flex: 1; color: #fff; font: 12.5px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.dh-code .btn { flex: none; padding: 4px 10px; font-size: 12.5px; background: #fff; color: var(--ink) !important; border-color: #fff; }
.dh-lv { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); white-space: nowrap; }
.dh-lv.lv0 { color: #2f7d4f; border-color: #2f7d4f; } .dh-lv.lv1 { color: #8a6d1f; border-color: #8a6d1f; background: #fff8e1; } .dh-lv.lv2 { color: #fff; background: #b3261e; border-color: #b3261e; }
.dh-table td { vertical-align: top; font-size: 13.5px; }

/* ---------- 3D シミュレーション ---------- */
.g3-wrap { position: relative; margin-top: 14px; border: 1px solid var(--line-2); background: #f3efee; }
.g3-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 76vh; touch-action: none; cursor: grab; outline-offset: 2px; }
.g3-canvas:active { cursor: grabbing; }
.g3-wrap:fullscreen, .g3-wrap.t-fakefull { border: 0; } .g3-wrap:fullscreen .g3-canvas, .g3-wrap.t-fakefull .g3-canvas { height: 100%; max-height: none; aspect-ratio: auto; }
.g3-hud { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.g3-hud button { appearance: none; padding: 5px 10px; font: 12.5px var(--sans); background: rgba(255,255,255,.92); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; border-radius: 0; }
.g3-hud button:hover, .g3-hud button.on { border-color: var(--ink); background: #fff; } .g3-hud button.on { font-weight: 700; }
.g3-tip { position: absolute; left: 8px; bottom: 8px; right: 8px; margin: 0; font-size: 12px !important; color: var(--ink-2) !important; background: rgba(255,255,255,.85); padding: 4px 8px; max-width: max-content !important; pointer-events: none; }
.g3-label { position: absolute; transform: translate(-50%, -50%); padding: 1px 6px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.9); border: 1px solid var(--line-2); color: var(--ink); pointer-events: none; white-space: nowrap; }
.g3-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.g3-panel { border: 1px solid var(--line-2); background: #fff; padding: 14px 16px; min-width: 0; }
.g3-panel h3 { margin: 0 0 10px !important; font-size: 15px; }
.g3-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.g3-cat button { appearance: none; padding: 8px 6px; font: 12.5px/1.5 var(--sans); background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; border-radius: 0; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.g3-cat button:hover { border-color: var(--accent); background: #fff; } .g3-cat button small { display: block; color: var(--ink-3); font-size: 11px; }
.g3-sw { display: flex; flex-wrap: wrap; gap: 4px; } .g3-sw button { appearance: none; width: 28px; height: 28px; padding: 0; border: 2px solid var(--line-2); cursor: pointer; border-radius: 0; } .g3-sw button.on { border-color: var(--ink); outline: 2px solid var(--accent); }
.g3-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.g3-label.dim { background: #8c2f39; border-color: #8c2f39; color: #fff; font-weight: 400; }
.g3-label.dim.in { background: rgba(255,255,255,.82); border-color: transparent; color: #8c2f39; font-size: 10.5px; padding: 0 3px; }
.g3-under { position: absolute; max-width: none; height: auto; pointer-events: none; transform-origin: center; user-select: none; }
.g3-shape { display: block; width: 36px; height: 36px; margin: 0 auto 4px; }
.g3-shape polygon { fill: #f3e6e7; stroke: #8c2f39; stroke-width: 1.6; stroke-linejoin: miter; }
.g3-shapes button { text-align: center; }
.g3-sep { width: 6px; }
.g3-sub { margin: 14px 0 6px !important; font-size: 13px !important; font-weight: 600; color: var(--ink-2) !important; }
.g3-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.g3-form .tf input, .g3-form .tf select { padding: 7px 9px; font-size: 15px; }
.g3-tabs { margin-top: 14px; gap: 0; } .g3-tabs button { flex: 1 1 auto; padding: 9px 10px; margin: 0 -1px -1px 0; }
.g3-tabs + .g3-panel { margin-top: 0; }
.g3-panel .seg { margin-bottom: 12px; } .g3-panel .seg button { padding: 6px 11px; font-size: 13px; }
.g3-panel .tf-wide + h3, .g3-panel .g3-cat + h3, .g3-panel .t-note + h3 { margin-top: 20px !important; }
.g3-cat button.on { border-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.g3-panel .g3-form + .seg, .g3-panel .g3-form + .tf-wide, .g3-panel .tf-wide + .tf-wide { margin-top: 12px; }
.g3-list { margin: 0; padding: 0; list-style: none; } .g3-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.g3-list li.ok::before { content: "○"; color: #2f7d4f; font-weight: 700; } .g3-list li.warn::before { content: "△"; color: #8a6d1f; font-weight: 700; } .g3-list li.bad::before { content: "×"; color: #b3261e; font-weight: 700; } .g3-list li.info::before { content: "・"; color: var(--ink-3); }
.g3-check { margin-top: 14px; }
.g3-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: g3s; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.g3-steps li { counter-increment: g3s; } .g3-steps button { appearance: none; width: 100%; text-align: left; padding: 6px 8px; font: 13px/1.5 var(--sans); background: none; border: 1px solid transparent; color: var(--ink-2); cursor: pointer; border-radius: 0; }
.g3-steps button::before { content: counter(g3s) ". "; color: var(--ink-3); } .g3-steps li.done button { color: var(--ink-3); } .g3-steps li.on button { border-color: var(--accent); color: var(--ink); font-weight: 700; background: #fff; } .g3-steps button:hover { border-color: var(--line-2); }
.g3-panel .g3-cat + .tf-grid, .g3-panel .t-note + .tf-grid { margin-top: 14px; }
.g3-panel .g3-sw + h3, .g3-panel .t-btns + h3, .g3-panel .tf-grid + h3, .g3-panel p + h3 { margin-top: 20px !important; }
/* 3D：追加用の窓・歩く操作・キーボードの説明 */
.g3-canvas.g3-placing { cursor: crosshair; }
.g3-hud button.add { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; } .g3-hud button.add:hover { background: #742630; border-color: #742630; }
.g3-over { position: absolute; inset: 0; pointer-events: none; } .g3-over > * { pointer-events: auto; }
.g3-pop { position: absolute; left: 8px; top: 44px; z-index: 6; width: min(430px, calc(100% - 16px)); max-height: calc(100% - 56px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.g3-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.g3-pop-x { appearance: none; width: 32px; height: 32px; padding: 0; font: 20px/1 var(--sans); background: none; border: 1px solid transparent; color: var(--ink); cursor: pointer; border-radius: 0; } .g3-pop-x:hover { border-color: var(--ink); }
.g3-pop-body { padding: 10px 12px 12px; overflow: auto; min-height: 0; } .g3-pop-body .seg { margin: 8px 0; } .g3-pop-body .seg button { padding: 5px 9px; font-size: 12.5px; } .g3-pop-body .t-note { margin: 8px 0 0; font-size: 12px; }
.g3-pop-body h4 { margin: 12px 0 6px; font-size: 13px; } .g3-pop-body h4:first-child { margin-top: 0; }
.g3-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 4px; }
.g3-search { width: 100%; padding: 7px 9px; font: 14px var(--sans); border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); } .g3-panel .g3-search { max-width: 320px; margin-bottom: 10px; }
.g3-keys { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 13px; } .g3-keys dt { font-weight: 700; white-space: nowrap; } .g3-keys dd { margin: 0; color: var(--ink-2); }
.g3-walk { position: absolute; right: 8px; bottom: 40px; display: grid; gap: 6px; justify-items: end; } .g3-walk[hidden] { display: none; }
.g3-walk button { appearance: none; font: 13px var(--sans); background: rgba(255,255,255,.94); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; border-radius: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.g3-walk button:hover, .g3-walk button:active { border-color: var(--ink); background: #fff; }
.g3-walk-top { display: flex; gap: 4px; } .g3-walk-top button { padding: 6px 10px; } .g3-walk-x { font-weight: 700 !important; }
.g3-walk-pad { display: grid; grid-template-columns: repeat(3, 46px); gap: 4px; } .g3-walk-pad button { height: 46px; padding: 0; font-size: 18px; }
.g3-wire { display: inline-block; width: 22px; height: 4px; margin-right: 6px; vertical-align: middle; }
@media (max-width: 860px) {
  .g3-cols { grid-template-columns: 1fr; } .g3-canvas { aspect-ratio: 4 / 3; }
  .g3-wrap:not(:fullscreen):not(.t-fakefull) .g3-hud { position: static; max-width: none; padding: 6px; background: #fff; border-top: 1px solid var(--line-2); }
  .g3-wrap:not(:fullscreen):not(.t-fakefull) .g3-tip { position: static; max-width: none !important; padding: 2px 8px 6px; background: #fff; }
  .g3-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3-form .tf-wide { grid-column: 1 / -1; }
  .g3-tabs button { padding: 8px 6px; font-size: 13px; }
  .g3-label { font-size: 10px; padding: 0 3px; }
  .g3-wrap:not(:fullscreen):not(.t-fakefull) .g3-over { bottom: auto; aspect-ratio: 4 / 3; }
  .g3-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62vh; z-index: 60; border-width: 1px 0 0; }
  .g3-walk-pad { grid-template-columns: repeat(3, 42px); } .g3-walk-pad button { height: 42px; }
  .g3-keys { grid-template-columns: 1fr; gap: 2px; } .g3-keys dd { margin-bottom: 6px; }
}

/* PDF の編集・文字の読み取り */
.pe-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: start; }
.pe-item { cursor: grab; gap: 6px; } .pe-item.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .pe-item.over { background: var(--paper-2); }
.pe-head { display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; } .pe-head input { margin: 0; flex: none; width: 16px; height: 16px; accent-color: var(--accent); } .pe-head strong { font-size: 13.5px; }
.pe-thumb { display: grid; place-items: center; height: 190px; background: var(--paper-2); overflow: hidden; } .pe-thumb canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.oc-meter { display: block; width: 100%; height: 8px; margin: 10px 0 4px; appearance: none; -webkit-appearance: none; border: 0; background: var(--paper-2); accent-color: var(--accent); } .oc-meter::-webkit-progress-bar { background: var(--paper-2); } .oc-meter::-webkit-progress-value { background: var(--accent); } .oc-meter::-moz-progress-bar { background: var(--accent); }

/* QR コードの読み取り・バーコード・文章の差分 */
.qr-result { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line-2); margin-top: 14px; min-width: 0; } .qr-result h3 { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 500; overflow-wrap: anywhere; } .qr-result h4 { margin: 8px 0 0; font-size: 14.5px; }
.qr-shot { max-width: 100%; max-height: 300px; width: auto; height: auto; justify-self: start; border: 1px solid var(--line-2); }
.qr-result textarea, .td-col textarea, .bc-item textarea { width: 100%; font: 14px/1.6 var(--mono, ui-monospace, monospace); padding: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; resize: vertical; }
.bc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.bc-item { display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line-2); min-width: 0; align-content: start; } .bc-box { overflow-x: auto; background: #fff; } .bc-box canvas { display: block; max-width: none; } .bc-val { margin: 0; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.td-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } @media (max-width: 720px) { .td-cols { grid-template-columns: 1fr; } }
.td-col { display: grid; gap: 6px; min-width: 0; } .td-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; } .td-info { font-size: 12.5px; color: var(--ink-3); }
.td-pick { font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .td-file { font: 12.5px var(--sans); max-width: 100%; }
.td-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; font-size: 13.5px; } .td-stats span { padding: 4px 10px; border: 1px solid var(--line-2); background: #fff; } .td-s-add { border-left: 4px solid #2e7d4f !important; } .td-s-del { border-left: 4px solid #b3261e !important; } .td-s-chg { border-left: 4px solid #b9770e !important; }
.td-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line-2); background: #fff; }
.td-table { border-collapse: collapse; width: 100%; font: 13.5px/1.6 var(--mono, ui-monospace, monospace); table-layout: fixed; }
.td-table th { width: 44px; padding: 1px 6px; text-align: right; color: var(--ink-3); font-weight: 400; background: var(--paper-2); user-select: none; vertical-align: top; font-size: 12px; }
.td-table td { padding: 1px 8px; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.td-table .td-l { background: #fbe9e7; } .td-table .td-r { background: #e6f4ea; } .td-table .td-none { background: var(--paper-2); }
.td-table del, .td-flow del { background: #f4b6ae; color: #6b140d; text-decoration: none; } .td-table ins, .td-flow ins { background: #a9dcb9; color: #0f4a26; text-decoration: none; }
.td-flow del { text-decoration: line-through; }
.td-sign { display: inline-block; width: 1.3em; color: var(--ink-3); font-weight: 400; user-select: none; }
.td-skip td { text-align: center; color: var(--ink-3); background: var(--paper-2); font-size: 12.5px; padding: 3px; }
.td-flow { padding: 14px; background: #fff; border: 1px solid var(--line-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; max-height: 70vh; overflow: auto; }

/* 就職・転職・アルバイト */
.ry-names { margin-top: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-2); } .ry-names summary { cursor: pointer; font-size: 14px; } .ry-names .tf-grid { margin-top: 12px; }
.ry-text { width: 100%; font: 14px/1.8 var(--sans); padding: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; resize: vertical; }
.cp-rows, .sp-rows, .es-list { display: grid; gap: 12px; margin: 16px 0; }
.cp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; background: #fff; border: 1px solid var(--line-2); }
.cp-f { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); min-width: 0; align-content: start; } .cp-wide, .cp-foot { grid-column: 1 / -1; }
.cp-row input[type=text], .cp-row select, .sp-row input, .es-item input, .es-item textarea { width: 100%; min-width: 0; font: 15px var(--sans); padding: 9px 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 0; }
.cp-row select:disabled { opacity: .45; } .cp-ym { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 6px; }
.cp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .cp-info, .sp-info { margin: 0; font-size: 13.5px; color: var(--ink-2); } .cp-info.bad, .sp-info.bad { color: #b3261e; font-weight: 600; }
.cp-del { appearance: none; padding: 6px 10px; font: 12.5px var(--sans); background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer; border-radius: 0; } .cp-del:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 560px) { .cp-row { grid-template-columns: 1fr; } }
.sp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) auto; gap: 8px 10px; align-items: end; padding: 12px; background: #fff; border: 1px solid var(--line-2); }
.sp-f { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); min-width: 0; } .sp-info { grid-column: 1 / -1; }
@media (max-width: 640px) { .sp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-row .cp-del { justify-self: start; } }
.es-item { display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line-2); min-width: 0; }
.es-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .es-head .es-title { flex: 1 1 220px; font-weight: 600; } .es-lim { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); } .es-item .es-limit { width: 92px; }
.es-item textarea { line-height: 1.8; resize: vertical; }
.es-count { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; } .es-num { font-size: 20px; font-variant-numeric: tabular-nums; } .es-num.bad { color: #b3261e; } .es-rest { font-size: 13.5px; color: var(--ink-2); }
.es-bar { margin: 0; } .es-bar.ok span { background: #2e7d4f; } .es-bar.bad span { background: #b3261e; } .es-sub { margin: 0; font-size: 12.5px; color: var(--ink-3); } .es-notes { display: grid; gap: 8px; } .es-notes .t-msg { margin: 0; } .es-btns { justify-content: flex-start; } .es-btns button { flex: none; padding: 6px 12px; }
.idp-edit { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; } @media (max-width: 720px) { .idp-edit { grid-template-columns: 1fr; } }
.idp-stage { background: var(--paper-2); padding: 10px; display: grid; place-items: center; } .idp-canvas { width: 100%; max-width: 300px; height: auto; display: block; background: #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: grab; touch-action: none; }
.idp-side { display: grid; gap: 12px; min-width: 0; } .idp-sl { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; } .idp-sl input { width: 100%; accent-color: var(--accent); }
.idp-prev { height: 160px; width: auto; max-width: 100%; border: 1px solid var(--line-2); display: block; } .idp-sheet { max-width: min(100%, 420px); height: auto; border: 1px solid var(--line-2); display: block; }

/* 一覧の「いま人気のツール」「新しく入ったツール」 */
.tl-feature { padding: 44px 0 0; } .tl-feature[hidden] { display: none; }
.tl-feature .tl-cat-head { border-top-color: var(--accent); } .tl-feature .tl-cat-head h2 { color: var(--accent); }
.tl-rank { align-self: flex-start; font: 700 12px var(--latin, var(--sans)); letter-spacing: .04em; color: #fff; background: var(--accent); padding: 2px 8px; margin-bottom: 8px; }
.doc-body { min-width: 0; } .doc-body .t-scroll table.t-list { min-width: 0; } .doc-body table.t-list th { width: auto; white-space: normal; }

/* ---- 結果を書き出す（どのツールにも付く行） ---- */
.t-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.t-export strong { color: var(--ink); font-size: 13.5px; margin-right: 2px; }
.t-export select { font: inherit; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); max-width: 100%; }
.t-export button { appearance: none; font: inherit; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; cursor: pointer; }
.t-export button:hover { background: #8c2f39; border-color: #8c2f39; }
.t-export .t-export-copy { background: #fff; color: var(--ink); border-color: var(--line-2); }
.t-export .t-export-copy:hover { background: #fff; color: #8c2f39; border-color: #8c2f39; }
.t-export-msg { flex: 1 1 200px; min-width: 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
@media print { .t-export { display: none; } }
/* 中古PC部品のページのスペック診断：スマホの幅で、長い選択肢が枠からはみ出さないようにする（このページは tools.css も読む） */
.sp-f { grid-template-columns: minmax(0, 1fr); }
/* ルーレット */
.rl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.rl-left, .rl-right { min-width: 0; }
.rl-stage { display: flex; justify-content: center; }
.rl-canvas { display: block; max-width: 100%; cursor: pointer; touch-action: manipulation; }
.rl-go { justify-content: center; margin-top: 14px; }
.rl-go .btn { min-width: 180px; justify-content: center; font-size: 16px; }
.rl-go .btn[disabled] { opacity: .6; cursor: default; }
.rl-out { margin-top: 16px; text-align: center; }
.rl-out:empty { display: none; }
.rl-grid + div h3 { margin-top: 28px; }
.rl-out .t-big { justify-content: center; }
.rl-out .t-bignum { font: 700 clamp(28px, 6vw, 44px)/1.25 var(--sans); overflow-wrap: anywhere; min-width: 0; }
.rl-out .t-msg { text-align: left; }
.rl-items { font: 16px/1.6 var(--sans); min-height: 190px; }
.rl-items[disabled] { background: var(--paper-2); }
.rl-num { align-items: end; margin-top: 16px; }
.rl-num .t-btns { margin-top: 0; }
.rl-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 16px; }
@media (max-width: 760px) { .rl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- 配信コメント（読み上げ・投票・ほかのツールとの連携） ---- */
.lv-status { font-size: 13.5px; line-height: 1.75; margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--line-2); background: var(--paper-2); overflow-wrap: anywhere; }
.lv-status.on { border-color: #3f6b4f; }
.lv-status a { color: var(--accent); }
.lv-box { margin-top: 24px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px; }
.lv-box > summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 12px 0; }
.lv-box[open] { padding-bottom: 16px; }
.lv-box[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.lv-box .t-btns { margin-top: 14px; }
.lv-info { margin-top: 14px; }
.cr-svc { margin-top: 16px; }
.cr-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 16px; }
.cr-stat:empty { display: none; }
.cr-stat + .tf-hint { margin-top: 10px; }
table.cr-list td { overflow-wrap: anywhere; }
table.cr-list td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-3); }
table.cr-list td:nth-child(2) { width: 26%; font-weight: 600; }
.cr-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.cr-links li { border: 1px solid var(--line-2); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-links a { font-weight: 700; font-size: 14.5px; color: var(--accent); }
.cr-links span { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.cr-legal a { color: inherit; }
.vp-opts { margin-top: 16px; margin-bottom: 16px; }
.vp-items { min-height: 120px; }
.vp-out { margin-top: 22px; padding: 20px; background: var(--paper-2); }
.vp-q { font: 700 clamp(18px, 3.4vw, 26px)/1.4 var(--sans); margin: 0 0 6px; overflow-wrap: anywhere; }
.vp-state { font-size: 13px; font-weight: 700; margin: 0 0 14px; color: var(--ink-3); }
.vp-state.on { color: #2e6b47; }
.vp-rows { display: grid; gap: 12px; }
.vp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; }
.vp-name { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; font-size: 16px; font-weight: 600; min-width: 0; }
.vp-name b { flex: none; font: 700 13px var(--latin); color: #fff; background: var(--ink); min-width: 24px; text-align: center; padding: 2px 6px; }
.vp-name span { overflow-wrap: anywhere; min-width: 0; }
.vp-bar { height: 22px; background: #fff; border: 1px solid var(--line-2); position: relative; }
.vp-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); transition: width .3s; }
.vp-row.top .vp-bar span { background: var(--accent); }
.vp-num { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 108px; text-align: right; }
.vp-num strong { font-size: 18px; color: var(--ink); }
.vp-plus { padding: 4px 9px !important; }
@media (prefers-reduced-motion: reduce) { .vp-bar span { transition: none; } }
.tool .btn[hidden] { display: none; }
.lv-box + div h3:first-child { margin-top: 28px; }

/* ---- リレー・RTA タイマー ---- */
.st-board { --b: #fff; --f: #1f1a1b; --m: #6b6264; --l: #cfc3c5; --hi: #f3e7e8; position: relative; background: var(--b); color: var(--f); border: 1px solid var(--l); padding: 16px 18px 14px; max-width: 560px; margin: 0 auto; font-variant-numeric: tabular-nums; }
.st-board.dark { --b: #141213; --f: #fff; --m: #b9b0b2; --l: #3a3436; --hi: #33272a; }
.st-board.green { --b: #00b140; --f: #fff; --m: #eafff0; --l: rgba(255,255,255,.55); --hi: rgba(0,0,0,.28); }
.st-board.blue { --b: #0047bb; --f: #fff; --m: #e6eeff; --l: rgba(255,255,255,.5); --hi: rgba(0,0,0,.3); }
.st-board:fullscreen, .st-board.t-fakefull { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 4vh 8vw; font-size: 130%; }
.st-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--l); }
.st-head strong { font-size: 1em; overflow-wrap: anywhere; min-width: 0; }
.st-head span { font-size: .78em; color: var(--m); white-space: nowrap; }
.st-rows { max-height: 300px; overflow-y: auto; position: relative; }
.st-board:fullscreen .st-rows, .st-board.t-fakefull .st-rows { max-height: 52vh; }
.st-row { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) 5.2em 5.6em 5.2em; gap: 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--l); font-size: .9em; }
.st-row.cur { background: var(--hi); font-weight: 700; }
.st-no { color: var(--m); font-size: .85em; text-align: right; }
.st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-seg, .st-cum, .st-row .st-diff { text-align: right; white-space: nowrap; font-family: var(--latin); }
.st-row:not(.done) .st-seg, .st-row:not(.done) .st-cum { color: var(--m); }
.st-seg { font-size: .88em; }
.st-diff.ahead { color: #1f7a45; } .st-diff.behind { color: #b3261e; } .st-diff.gold { color: #9a6b00; font-weight: 700; }
.st-board.dark .st-diff.ahead, .st-board.green .st-diff.ahead, .st-board.blue .st-diff.ahead { color: #8dffb4; }
.st-board.dark .st-diff.behind, .st-board.green .st-diff.behind, .st-board.blue .st-diff.behind { color: #ffb4ab; }
.st-board.dark .st-diff.gold, .st-board.green .st-diff.gold, .st-board.blue .st-diff.gold { color: #ffe08a; }
.st-big { font: 700 clamp(44px, 12vw, 76px)/1.1 var(--latin); text-align: right; padding: 12px 2px 2px; letter-spacing: .01em; }
.st-big.paused { opacity: .55; } .st-big.wait { color: var(--m); }
.st-now { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; align-items: baseline; min-height: 1.6em; font-size: .92em; }
.st-now strong { margin-right: auto; overflow-wrap: anywhere; min-width: 0; }
.st-now span { font-family: var(--latin); white-space: nowrap; }
.st-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--l); font-size: .78em; color: var(--m); }
.st-foot b { color: var(--f); font-family: var(--latin); }
.st-btns { justify-content: center; }
.st-btns .btn:first-child { min-width: 200px; justify-content: center; font-size: 16px; }
.st-btns .btn[disabled] { opacity: .6; cursor: default; }
.st-keys { text-align: center; margin-top: 12px !important; }
.st-opts { margin: 16px 0; }
.st-items { min-height: 150px; }
@media (max-width: 480px) { .st-row { grid-template-columns: 1.4em minmax(0, 1fr) 4.4em 5.8em; gap: 6px; } .st-row .st-seg { display: none; } .st-board { padding: 12px 10px; } }

/* ---- ベンチマーク：用途ごとの目安と、次の一歩の案内 ---- */
.fit { display: inline-block; font-weight: 700; white-space: nowrap; padding: 1px 8px; border: 1px solid var(--line-2); background: #fff; }
.fit-2 { color: #2f5a40; border-color: #3f6b4f; } .fit-1 { color: var(--ink); } .fit-0 { color: var(--accent); border-color: var(--accent); }
table.fit-table td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.fit-how { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; display: block; min-width: 15em; }
.t-next { margin: 16px 0 0; padding: 14px 16px 12px; border: 1px solid var(--line-2); border-left: 4px solid var(--accent); background: #fff; }
.t-next > strong { display: block; font-size: 14.5px; }
.t-next > p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.8; }
.t-next ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.t-next li { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; line-height: 1.7; padding-top: 6px; border-top: 1px solid var(--line); }
.t-next li span { color: var(--ink-2); flex: 0 0 17em; max-width: 100%; }
.t-next li a { font-weight: 700; flex: 1 1 16em; }
@media (max-width: 560px) { .t-next li span { flex-basis: 100%; } }

/* ---- 週ごとのランキング ---- */
.rk { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--ink); }
.rk > h3 { margin: 0; }
.rk-term { font-size: 12.5px !important; color: var(--ink-3) !important; margin: 4px 0 10px !important; }
.rk-empty { font-size: 13.5px !important; color: var(--ink-2) !important; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin: 8px 0 0 !important; }
.rk .t-scroll table.t-list { min-width: 0; }
table.rk-table td.rk-n { white-space: nowrap; width: 4.5em; font-weight: 700; }
table.rk-table td.rk-sc { white-space: nowrap; font-weight: 700; }
table.rk-table td.rk-who { word-break: break-all; }
table.rk-table td.rk-note { font-size: 12.5px; color: var(--ink-2); }
table.rk-table tr.me td { background: #f7eced; }
table.rk-table tr:nth-child(-n+3) td.rk-n { color: var(--accent); }
.rk-form { margin-top: 16px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-2); }
.rk-now { margin: 0 0 10px !important; font-size: 13.5px !important; font-weight: 700; }
.rk-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.rk-l { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex: 1 1 13em; min-width: 0; }
.rk-l input, .rk-l select { font: 16px var(--sans); padding: 9px 11px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); min-width: 0; width: 100%; }
.rk-l input:focus, .rk-l select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.rk-hw { flex: 1 1 15em; min-width: 0; display: flex; }
.rk-hw:empty { display: none; }
.rk-hw .tf-check { font-size: 13px; }
.rk-hwno { font-size: 12.5px !important; color: var(--ink-3) !important; margin: 0 !important; }
.rk-msg { font-size: 13.5px !important; margin: 10px 0 0 !important; min-height: 1.5em; }
.rk-msg.ok { color: #2f5a40 !important; font-weight: 700; } .rk-msg.bad { color: var(--accent) !important; font-weight: 700; }

/* ---- CPU・GPU スコア一覧 ---- */
table.bs-table td { vertical-align: middle; }
table.bs-table td:first-child { min-width: 13em; }
.bs-g { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.bs-idx { display: flex; align-items: center; gap: 8px; min-width: 9em; }
.bs-num { flex: 0 0 3.6em; text-align: right; font-weight: 700; }
.bs-bar { flex: 1 1 auto; height: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.bs-bar i { display: block; height: 100%; background: var(--accent); }
.bs-no { font-size: 12px; color: var(--ink-3); }
.bs-g a { color: inherit; }
.tool a.btn { text-decoration: none; font-size: 14px; }
.rk-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 10px 0 0 !important; font-size: 12.5px !important; }
.rk-del { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; cursor: pointer; text-align: left; }
.rk-del:hover { color: var(--accent); }
.rk-rep { appearance: none; margin-left: 10px; padding: 1px 8px; font: inherit; font-size: 12px; color: var(--accent); background: #fff; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap; }
.rk-rep:hover { background: var(--tint); }
@media (max-width: 560px) { .rk-l, .rk-hw { flex: 1 1 100%; } .rk-row > button, .rk-row > .btn { width: 100%; } }

/* データ移行の手順チェック */
.dm-list { margin: 0 0 8px; padding-left: 1.5em; font-size: 14px; line-height: 1.8; }
.dm-list li { margin: 5px 0; }
.dm-form { display: grid; gap: 16px; margin: 0 0 20px; }
.dm-form .dm-form { margin: 0; }
.dm-form[hidden] { display: none; }
.dm-form .tf-grid { margin: 0; }
.dm-form > .tf-hint { margin: -10px 0 0; }

/* 今週のランキング（まとめ） */
.rkh { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.rkh > .t-msg, .rkh > .t-note { grid-column: 1 / -1; margin: 0; }
.rkh-card { background: #fff; border: 1px solid var(--line-2); padding: 14px 16px; min-width: 0; }
.rkh-card h3 { margin: 0 0 8px; display: flex; flex-direction: column; gap: 3px; }
.rkh-card h3 small { font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.rkh-card .rk-empty { border: 0; padding: 6px 0; }
.rkh-go { margin: 10px 0 0 !important; font-size: 13px !important; }
.rkh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rkh-rows li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rkh-n { font-weight: 700; white-space: nowrap; }
.rkh-rows li:first-child .rkh-n { color: var(--accent); }
.rkh-who { word-break: break-all; }
.rkh-sc { font-weight: 700; white-space: nowrap; text-align: right; }
.rkh-rows small { grid-column: 2 / -1; font-size: 12px; color: var(--ink-3); }
