/* 『個人情報』たたき台
   デザイン方針：ゲーム画面ではなく「実在のPC画面」に見せる。
   OS標準のウィンドウ枠・ボタン・フォントを使い、地味で実在寄りに統一する。 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1b1b1b; --ink2: #5a5a5a; --line: #a6a6a6; --line-soft: #d6d6d6;
  --dlg: #f0f0f0; --accent: #0078d7; --accent-dark: #005a9e;
  --danger: #c42b1c;
  --q0: #8a8a8a; --q1: #2b5fc7; --q2: #a67c00;
}
html, body { height: 100%; }
body {
  font-family: "Yu Gothic UI", "Segoe UI", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  background: #111; color: var(--ink); overflow: hidden;
  -webkit-user-select: none; user-select: none; font-size: 14px;
}
input, textarea { user-select: text; -webkit-user-select: text; font: inherit; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ===== ステージ（PC画面そのもの） ===== */
#stage { position: fixed; inset: 0; display: flex; flex-direction: column; }
#wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 110%, rgba(30,70,50,.35), transparent 60%),
    linear-gradient(160deg, #7ba7cc 0%, #5b8ab5 40%, #476f96 75%, #3c5f80 100%);
}
/* デスクトップアイコン */
#deskIcons { position: absolute; top: 12px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.desk-icon { width: 84px; text-align: center; color: #fff; cursor: pointer; padding: 7px 2px 5px; border: 1px solid transparent; border-radius: 2px; }
.desk-icon:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.desk-icon:active { background: rgba(255,255,255,.28); }
.di-img { font-size: 30px; line-height: 1.1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.di-label { font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.5); margin-top: 3px; line-height: 1.3; }
/* テスト環境の印（第53報）：デスクトップ右上の隅に小さく固定表示する。
   ウィンドウ（z-index:10）より前面に置き、どの画面でもテスト環境と
   分かるようにする。クリックは透過させ、下の操作を邪魔しない。
   本番では hidden のままで一切出ない */
.test-badge { position: absolute; top: 10px; right: 12px; z-index: 30; pointer-events: none;
  background: rgba(176, 32, 32, .92); color: #fff; font-size: 11.5px; letter-spacing: .12em;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* 紹介ページへの導線：デスクトップ左下、タスクバー（44px）の上に小さく置く。
   ウィンドウ（z-index:10）より後ろなので、窓を開けば隠れる */
.desk-links { position: absolute; left: 14px; bottom: 56px; z-index: 3; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.desk-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 1px; }
.desk-links a:hover { border-bottom-color: #fff; }
.desk-links-sep { margin: 0 8px; opacity: .7; }

/* ===== ウィンドウ（OS標準風） ===== */
/* z-index階層：壁紙(0) ＜ デスクトップアイコン(3) ＜ ウィンドウ画面(10) ＜ タスクバー(4・画面とは重ならない)
   ＜ モーダル(40) ＜ 逮捕ムービー(100)。ウィンドウは必ずアイコンより前面に出す。 */
.screen { position: relative; z-index: 10; flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 0; }
.win {
  background: var(--dlg); border: 1px solid #6e6e6e;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  width: min(1180px, 97vw); height: 100%; max-height: calc(100dvh - 72px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 4px;
}
.win-titlebar {
  background: #fff; border-bottom: 1px solid var(--line-soft);
  padding: 0 0 0 10px; height: 34px; font-size: 12.5px; display: flex; align-items: center; gap: 7px; flex: none;
}
.win-appicon { font-size: 14px; }
.win-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }
.titlebar-right { margin-left: auto; color: var(--ink2); font-size: 12px; padding-right: 8px; }
.win-captions { margin-left: auto; display: flex; align-self: stretch; }
.titlebar-right + .win-captions { margin-left: 0; }
.win-captions span { width: 44px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #333; cursor: pointer; }
.win-captions span:hover { background: #e5e5e5; }
.win-captions .cap-close:hover { background: #e81123; color: #fff; }

/* ===== タスクバー ===== */
/* ステージ（flex column）の下端に全幅で固定する。DOM上は最後の子だが、
   ウィンドウ（.screen）が全て閉じているデスクトップではタスクバーが唯一の
   フロー内要素になり、そのままだと列の先頭＝上端に張り付いてしまう。
   margin-top:auto で余白を上に吸収させ、常に下端へ押し付ける。
   ウィンドウ表示中は .screen（flex:1）が余白を吸うため auto は 0 になり、
   従来どおり画面の下に続く（ウィンドウがタスクバーの裏に潜ることはない）。 */
#taskbar {
  position: relative; z-index: 4; height: 44px; flex: none; margin-top: auto;
  background: rgba(24,24,24,.96); color: #eee; display: flex; align-items: stretch;
  font-size: 13px;
}
.tb-start { width: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-start:hover { background: rgba(255,255,255,.12); }
.tb-winlogo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 17px; height: 17px; }
.tb-winlogo i { background: #fff; display: block; }
.tb-search { width: 220px; background: #fff; color: #666; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; margin: 5px 4px 5px 0; }
.tb-apps { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.tb-app { width: 40px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; border-bottom: 2px solid transparent; }
.tb-app:hover { background: rgba(255,255,255,.12); }
.tb-center { flex: 1; display: flex; align-items: center; justify-content: center; color: #bdbdbd; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.tb-tray { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.tb-tray-icons { font-size: 12px; color: #ddd; letter-spacing: 2px; }
.tb-clock { font-size: 12px; text-align: center; line-height: 1.25; white-space: pre; }

/* ===== 攻略中（音楽を選んで標的サイトに入ってから、デスクトップに戻るまで） ===== */
/* タスクバーは不要なので消し、その分をブラウザ／抽出の表示領域に充てる。
   ウィンドウのキャプションボタン（―／□／✕）も消して「自分のPC画面そのもの」に没入させる。
   付け外しは app.js の enterSite()／closeToDesktop() が #stage.raiding で行う。 */
#stage.raiding #taskbar { display: none; }
#stage.raiding .win { max-height: none; }
#stage.raiding .browser-caps,
#stage.raiding .extract-win .win-captions { visibility: hidden; }

/* ===== 標準ボタン ===== */
.btn {
  font: inherit; font-size: 13px; padding: 6px 18px; min-height: 30px;
  background: #e1e1e1; border: 1px solid #adadad; color: #111; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: #e5f1fb; border-color: var(--accent); }
.btn:active { background: #cce4f7; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-plain { background: #e1e1e1; }
.btn-primary { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #1683dd; border-color: var(--accent-dark); }
.btn-primary:active { background: var(--accent-dark); }
.btn-danger { background: #e1e1e1; border-color: var(--danger); color: var(--danger); font-weight: 600; }
.btn-danger:hover { background: #fdecea; border-color: var(--danger); }
.btn-block { width: 100%; margin-top: 12px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn-disconnect { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; background: #e1e1e1; border: 1px solid #888; }
.btn-disconnect:hover { background: #fdecea; border-color: var(--danger); color: var(--danger); }

/* ===== グループボックス（OS標準の区切り） ===== */
.group-box { border: 1px solid var(--line-soft); background: #fafafa; padding: 12px 14px; position: relative; }
.group-title { font-size: 12px; font-weight: 600; color: #333; margin-bottom: 8px; }
.group-box .group-title:not(:first-child) { margin-top: 14px; }
.grow { flex: 1; }

/* ===== フォルダ（ハブ） ===== */
.folder-path { background: #fff; border-bottom: 1px solid var(--line-soft); padding: 6px 12px; font-size: 12px; color: var(--ink2); flex: none; }
.hub-body { display: flex; gap: 12px; padding: 12px; overflow: auto; min-height: 0; background: #fff; flex: 1; }
.hub-left { width: 360px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.hub-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; }
.hub-right .group-box { flex: none; }
.ranking-list { max-height: 34vh; overflow-y: auto; }
.memo-list { max-height: 30vh; overflow-y: auto; }
.status-table { border-collapse: collapse; font-size: 13px; width: 100%; }
.status-table th { text-align: left; font-weight: 500; color: var(--ink2); padding: 3px 8px 3px 0; width: 110px; }
.status-table td { padding: 3px 0; font-weight: 600; }
.map-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.map-cell { aspect-ratio: 1; background: #dde3e8; border-radius: 1px; }
.map-cell.lit { background: #e8a33d; box-shadow: 0 0 5px rgba(232,163,61,.7); }
.map-note { font-size: 11.5px; color: var(--ink2); margin-top: 6px; }
.tools-mini-list { font-size: 13px; line-height: 1.7; }
.folder-btns { display: flex; gap: 8px; margin-top: 12px; }
.folder-btns .btn { flex: 1; }
.ranking-list { font-size: 13px; display: flex; flex-direction: column; }
.rank-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; border-bottom: 1px solid #e6e6e6; }
.rank-row:nth-child(odd) { background: #f7f9fb; }
.rank-row .r-pos { font-weight: 600; color: var(--ink2); width: 26px; text-align: right; flex: none; }
.rank-row .r-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .r-money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
/* 内訳は意味の区切り（件数／日数／標的数／痕跡数）ごとの span に分け、
   折り返しは区切りの間でのみ起こるようにする（第41報） */
.rank-row .r-meta { font-size: 11.5px; color: var(--ink2); display: flex; flex-wrap: wrap; column-gap: 4px; row-gap: 1px; min-width: 0; }
.rank-row .r-seg { white-space: nowrap; }
.rank-row .r-seg + .r-seg::before { content: "・"; margin-right: 4px; }
.rank-row .r-end { font-size: 11px; padding: 0 7px; border: 1px solid var(--line-soft); border-radius: 99px; color: var(--ink2); background: #fff; white-space: nowrap; flex: none; }
.rank-row .r-note { white-space: nowrap; }
.rank-row .r-end.arrested { color: var(--danger); border-color: #e5b4b0; }
.rank-empty { color: var(--ink2); font-size: 12.5px; padding: 6px 0; }
/* 記録欄のタブ（自分の記録／全国ランキング・第50報） */
.rank-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.rank-tab { font-size: 12px; padding: 3px 12px; border: 1px solid var(--line-soft); border-radius: 99px; background: #fff; color: var(--ink2); cursor: pointer; }
.rank-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.online-status { font-size: 11.5px; color: var(--ink2); min-height: 15px; margin-top: 6px; }
.rank-row .r-otitle { font-size: 11px; color: #a87f14; margin-left: 6px; white-space: nowrap; }

/* ===== ブラウザ ===== */
/* ブラウザは実在ブラウザの「最大化」状態に寄せる：ステージ幅いっぱい・高さいっぱい、枠なし */
#scr-browser { padding: 0; }
.browser-win { background: #fff; width: 100%; max-width: none; max-height: none; border: none; border-radius: 0; box-shadow: none; }
/* ブラウザの枠まわり（タブ帯・ツールバー・警戒バー）の縦の余白は支障のない範囲で
   詰め、サイト表示領域を最大化する（第12報） */
.browser-tabstrip { background: #dee1e6; display: flex; align-items: flex-end; padding: 4px 8px 0; gap: 4px; flex: none; }
.browser-tab {
  background: #fff; border-radius: 8px 8px 0 0; padding: 5px 12px; font-size: 12.5px;
  display: flex; align-items: center; gap: 8px; width: 250px; color: #333;
}
.tab-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-close { color: #777; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; }
.tab-close:hover { background: #e8eaed; color: #111; }
.browser-caps { margin-left: auto; align-self: stretch; display: flex; }
/* 標的ページに入った後はブラウザを閉じられないようにする（タブ✕・キャプション✕を消す） */
.browser-win.locked .tab-close, .browser-win.locked .browser-caps .cap-close { visibility: hidden; pointer-events: none; }
.browser-caps span { width: 44px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #333; cursor: pointer; }
.browser-caps span:hover { background: rgba(0,0,0,.08); }
.browser-caps .cap-close:hover { background: #e81123; color: #fff; }
.browser-toolbar { display: flex; gap: 4px; align-items: center; padding: 4px 10px; background: #fff; flex: none; }
.tb-btn { font: inherit; width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; cursor: pointer; font-size: 15px; color: #444; flex: none; }
.tb-btn:hover { background: #eef0f2; }
.url-wrap { flex: 1; display: flex; align-items: center; gap: 7px; background: #f1f3f4; border-radius: 99px; padding: 0 14px; height: 30px; border: 1px solid transparent; }
.url-wrap:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.url-lock { font-size: 11px; }
#urlBar { flex: 1; border: none; outline: none; font-size: 13px; background: transparent; min-width: 0; color: #222; }
.toolbar-alert { flex: none; font-size: 12px; color: var(--ink2); padding: 0 6px 0 10px; white-space: nowrap; }
.toolbar-alert b { color: var(--danger); font-variant-numeric: tabular-nums; }
/* クリック警戒の注意書き（第47報）：標的9〜11のシステム側にいる間だけ、
   警戒表示の隣に小さく出す。フェアのための明示で、演出はしない */
.toolbar-click-note { flex: none; font-size: 10px; color: var(--danger); border: 1px solid var(--danger); border-radius: 99px; padding: 1px 7px; margin-right: 4px; white-space: nowrap; opacity: .85; }
.alert-bar { height: 3px; background: #eee; flex: none; }
#alertFill { height: 100%; width: 0%; background: #d9a514; transition: width .3s; }
/* サイト本文はテキスト選択・コピーを許可する（第36報）：IDやパスワード等の
   文字列をプレイヤーが拾えるように。UI側（body）の選択禁止はそのまま */
.site-view { flex: 1; overflow: auto; background: #fff; min-height: 0; -webkit-user-select: text; user-select: text; }
/* ゲーム内ブラウザのダウンロード棚（実ファイルは落とさず、この表示だけで完結させる） */
.dl-shelf { flex: none; display: flex; align-items: center; gap: 9px; background: #fff; border-top: 1px solid #d8dbdf; box-shadow: 0 -2px 8px rgba(0,0,0,.12); padding: 6px 14px; font-size: 12.5px; color: #333; }
.dl-icon { font-size: 13px; color: var(--accent-dark); }
.dl-text { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-done { color: var(--ink2); }
.dl-close { margin-left: auto; color: #777; cursor: pointer; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; }
.dl-close:hover { background: #e8eaed; color: #111; }
/* 下部領域（アクセスログ＋操作列）は高さを固定し、ダウンロード棚の出現や
   一括抽出ボタンの表示で寸法が変わらないようにする。ログが状態によって圧縮されて
   縮むのを防ぐため、伸縮するのはサイト表示側（.site-view）だけにする（第12報） */
.browser-bottom { flex: none; height: 100px; border-top: 1px solid var(--line-soft); background: var(--dlg); padding: 6px 10px; display: flex; gap: 10px; align-items: stretch; }
.op-log { flex: 1; min-width: 0; overflow: auto; overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; font-size: 11px; background: #fff; border: 1px solid var(--line); color: #333; padding: 6px 9px; line-height: 1.6; }
.op-log .log-warn { color: #9a6b00; }
.op-log .log-bad { color: var(--danger); }
.op-log .log-good { color: #177245; }
.browser-actions { flex: none; width: 300px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.exploit-state { font-size: 11.5px; color: var(--ink2); text-align: center; line-height: 1.4; }
.exploit-state.open { color: #177245; font-weight: 700; }
.actions-row { display: flex; gap: 6px; }
.actions-row .btn { flex: 1; min-height: 28px; padding-top: 4px; padding-bottom: 4px; }

/* ブラウザのスタートページ（新しいタブ） */
.startpage { padding: 24px 40px; }
.startpage h2 { font-size: 20px; font-weight: 500; color: #333; margin-bottom: 4px; }
.startpage .sp-sub { font-size: 13px; color: #777; margin-bottom: 22px; }
.sp-section { font-size: 12.5px; font-weight: 600; color: #555; margin: 18px 0 10px; }
.target-list { display: flex; flex-direction: column; border: 1px solid #e0e0e0; }
.target-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e8e8e8; }
.target-row:last-child { border-bottom: none; }
.target-row.playable { cursor: pointer; }
.target-row.playable:hover { background: #f0f6fd; }
.target-row.locked { opacity: .55; background: #fafafa; }
.target-row.sealed { background: #f7f2ec; }
.target-row.sealed .target-logo { filter: grayscale(.45); }
.target-row.sealed .target-name, .target-row.sealed .target-desc, .target-row.sealed .target-meta { opacity: .62; }
.target-logo { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; border-radius: 4px; }
.target-main { flex: 1; min-width: 0; }
.target-name { font-weight: 600; font-size: 15px; }
.target-name .t-done { font-size: 11px; color: #177245; border: 1px solid #9fd4ba; border-radius: 99px; padding: 0 7px; margin-left: 8px; font-weight: 500; }
.target-name .t-sealed { display: inline-block; font-size: 11px; color: #b03a3a; border: 2px solid #b03a3a; border-radius: 4px; padding: 0 6px; margin-left: 9px; font-weight: 700; transform: rotate(-3deg); background: rgba(255, 255, 255, .65); vertical-align: 2px; }
.target-go.sealed { color: #b03a3a; font-weight: 700; }
.target-desc { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.target-meta { display: flex; gap: 14px; font-size: 12px; margin-top: 5px; color: var(--ink2); flex-wrap: wrap; }
.target-meta b { color: var(--ink); font-weight: 600; }
.target-go { font-size: 13px; color: var(--accent); white-space: nowrap; }

/* ほのぼの商店（少し古い小さい通販サイト） */
.shop-site { color: #333; background: #fff; font-size: 13px; }
.shop-head { background: #fdf3e3; border-bottom: 3px solid #d9a05a; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.shop-logo { font-size: 20px; font-weight: 700; color: #9c5a13; letter-spacing: .05em; }
.shop-logo small { display: block; font-size: 10px; font-weight: 400; color: #a58a68; letter-spacing: 0; }
.shop-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.shop-nav a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.shop-body-wrap { display: flex; }
.shop-side { width: 168px; flex: none; border-right: 1px solid #e8dcc4; padding: 14px 12px; background: #fffaf1; }
.shop-side h4 { font-size: 12px; color: #9c5a13; border-bottom: 1px solid #e8dcc4; padding-bottom: 5px; margin-bottom: 8px; }
.shop-side ul { list-style: none; font-size: 12.5px; line-height: 2.0; }
.shop-side ul a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.shop-side .side-note { font-size: 11px; color: #999; margin-top: 14px; line-height: 1.7; }
.shop-main { padding: 12px 20px; flex: 1; min-width: 0; }
.shop-main h2 { font-size: 16px; margin-bottom: 8px; color: #333; border-left: 4px solid #d9a05a; padding-left: 8px; }
.shop-main p { font-size: 12.5px; line-height: 1.85; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-top: 10px; }
.goods { border: 1px solid #e0d4bd; background: #fff; }
.goods-img { height: 80px; background: #f4efe6; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #a08b76; border-bottom: 1px solid #eee2cc; text-align: center; padding: 4px; }
/* 実写真がある商品は、店が自分で撮った写真らしく枠いっぱいに素朴に置く */
.goods-img.photo { padding: 0; }
.goods-img.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-body { padding: 7px 9px; font-size: 12px; }
.goods-name { font-weight: 600; }
.goods-price { color: #b3541e; font-weight: 700; margin-top: 2px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.order-table th, .order-table td { border: 1px solid #e0d4bd; padding: 6px 10px; text-align: left; }
.order-table th { background: #fdf3e3; width: 120px; font-weight: 600; }
.site-note { margin-top: 14px; font-size: 11px; color: #999; line-height: 1.7; border-top: 1px dotted #ccc; padding-top: 8px; }
.csv-btn { margin-top: 12px; font: inherit; font-size: 12.5px; padding: 6px 14px; border: 1px solid #b8a888; background: #f5efe0; cursor: pointer; border-radius: 2px; }
.csv-btn:hover { background: #efe6cf; }
.other-banner { background: #fdf0ef; border: 1px solid #e5b4b0; color: #8c2b21; padding: 8px 11px; font-size: 12px; margin-bottom: 12px; line-height: 1.6; }
.site-error { padding: 36px 22px; text-align: center; color: #666; }
.site-error .err-code { font-size: 28px; font-weight: 700; color: #bbb; }
.mypage-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mypage-links button { font: inherit; font-size: 12.5px; padding: 6px 14px; border: 1px solid #b8a888; background: #fff; cursor: pointer; border-radius: 2px; }
.mypage-links button:hover { background: #fdf3e3; }
.shop-foot { border-top: 1px solid #e8dcc4; padding: 8px 20px; font-size: 11px; color: #999; text-align: center; }

/* 湯宿 まつのや（和風で古い作りの小さな温泉旅館サイト。藍と生成りの地味な配色） */
.rk-site { color: #333; background: #fdfbf5; font-size: 13px; }
.rk-head { background: #f3edda; border-bottom: 4px double #3a4f6d; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.rk-logo { font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; font-size: 21px; font-weight: 700; color: #2e3d55; letter-spacing: .1em; }
.rk-logo small { display: block; font-size: 10px; font-weight: 400; color: #8a7f63; letter-spacing: .18em; margin-top: 2px; }
.rk-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.rk-nav a { color: #2f4a6b; text-decoration: underline; cursor: pointer; }
.rk-body-wrap { display: flex; }
.rk-side { width: 170px; flex: none; border-right: 1px solid #ddd5ba; padding: 14px 12px; background: #faf6ea; }
.rk-side h4 { font-size: 12px; color: #2e3d55; border-bottom: 1px solid #ddd5ba; padding-bottom: 5px; margin-bottom: 8px; }
.rk-side ul { list-style: none; font-size: 12.5px; line-height: 2.0; }
.rk-side ul a { color: #2f4a6b; text-decoration: underline; cursor: pointer; }
.rk-side .side-note { font-size: 11px; color: #999; margin-top: 14px; line-height: 1.7; }
.rk-main { padding: 12px 20px; flex: 1; min-width: 0; }
.rk-main h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; font-size: 16px; margin-bottom: 8px; color: #2e3d55; border-left: 4px solid #3a4f6d; padding-left: 8px; }
.rk-main h3 { font-size: 13.5px; margin: 14px 0 6px; color: #2e3d55; }
.rk-main p { font-size: 12.5px; line-height: 1.85; }
.rk-news { list-style: none; font-size: 12.5px; line-height: 2.0; }
.rk-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.rk-photo { height: 90px; background: #e9e4d2; display: flex; align-items: center; justify-content: center; color: #8a7f63; font-size: 11px; border: 1px solid #ddd5ba; text-align: center; padding: 4px; line-height: 1.7; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.rk-table th, .rk-table td { border: 1px solid #ddd5ba; padding: 6px 10px; text-align: left; }
.rk-table th { background: #f3edda; width: 170px; font-weight: 600; }
.rk-cal { border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.rk-cal td { border: 1px solid #ddd5ba; padding: 4px 7px; text-align: center; line-height: 1.5; background: #fff; }
.rk-form { border: 1px solid #ddd5ba; background: #fff; padding: 14px 16px; max-width: 520px; margin-top: 10px; }
.rk-form label { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 10px; }
.rk-form input { border: 1px solid #b3a888; padding: 6px 8px; font: inherit; font-size: 13px; width: 220px; background: #fff; }
.rk-btn { font: inherit; font-size: 12.5px; padding: 6px 16px; border: 1px solid #8a7f63; background: #f3edda; cursor: pointer; border-radius: 2px; color: #333; }
.rk-btn:hover { background: #ece3c8; }
.rk-error { background: #fdf0ef; border: 1px solid #e5b4b0; color: #8c2b21; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.7; }
.rk-error a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.rk-err-foot { margin-top: 6px; font-size: 12px; color: #666; }
.rk-photo.photo { padding: 0; }
.rk-photo.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-fig { margin: 0; }
.rk-fig figcaption { font-size: 11px; color: #8a7f63; text-align: center; margin-top: 3px; }
.rk-map { margin-top: 12px; border: 1px solid #ddd5ba; background: #f7f4e8; }
.rk-map svg { display: block; }
.rk-map-cap { font-size: 11px; color: #8a7f63; text-align: center; padding: 4px 0 6px; }
.rk-staffmenu { margin-top: 18px; border: 1px solid #c9cfd6; background: #f4f6f8; padding: 10px 14px; max-width: 420px; }
.rk-staffmenu h3 { font-size: 13px; margin-bottom: 6px; color: #2f4a6b; }
.rk-staffmenu ul { list-style: none; }
.rk-staffmenu li { padding: 3px 0; font-size: 13px; }
.rk-staffmenu a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.rk-actions { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }

/* あおぞらクリニック（清潔な水色と白基調の、小さな診療所の公式サイト） */
.cl-site { color: #333; background: #fff; font-size: 13px; }
.cl-head { background: #e8f2f8; border-bottom: 3px solid #5b93b8; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.cl-logo { font-size: 20px; font-weight: 700; color: #2c5f7c; letter-spacing: .06em; }
.cl-logo small { display: block; font-size: 10px; font-weight: 400; color: #7d99a8; letter-spacing: .14em; margin-top: 2px; }
.cl-nav { margin-left: auto; display: flex; gap: 13px; font-size: 12.5px; flex-wrap: wrap; }
.cl-nav a { color: #2c5f7c; text-decoration: underline; cursor: pointer; }
.cl-body-wrap { display: flex; }
.cl-side { width: 170px; flex: none; border-right: 1px solid #d7e5ee; padding: 14px 12px; background: #f4f9fc; }
.cl-side h4 { font-size: 12px; color: #2c5f7c; border-bottom: 1px solid #d7e5ee; padding-bottom: 5px; margin-bottom: 8px; }
.cl-side ul { list-style: none; font-size: 12.5px; line-height: 2.0; }
.cl-side ul a { color: #2c5f7c; text-decoration: underline; cursor: pointer; }
.cl-side .side-note { font-size: 11px; color: #999; margin-top: 14px; line-height: 1.7; }
.cl-main { padding: 12px 20px; flex: 1; min-width: 0; }
.cl-main h2 { font-size: 16px; margin-bottom: 8px; color: #2c5f7c; border-left: 4px solid #5b93b8; padding-left: 8px; }
.cl-main h3 { font-size: 13.5px; margin: 14px 0 6px; color: #2c5f7c; }
.cl-main p { font-size: 12.5px; line-height: 1.85; }
.cl-foot { border-top: 1px solid #d7e5ee; padding: 8px 20px; font-size: 11px; color: #999; text-align: center; }
.cl-table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 8px 0; }
.cl-table th, .cl-table td { border: 1px solid #d7e5ee; padding: 6px 9px; text-align: left; }
.cl-table th { background: #f4f9fc; color: #2c5f7c; font-weight: 600; white-space: nowrap; }
.cl-form { border: 1px solid #d7e5ee; background: #fbfdfe; padding: 12px 14px; max-width: 430px; margin: 10px 0; }
.cl-form label { display: block; font-size: 12.5px; margin-bottom: 10px; }
.cl-form input, .cl-form select { display: block; width: 100%; margin-top: 4px; padding: 6px 8px; font: inherit; font-size: 13px; border: 1px solid #b9cfdd; background: #fff; }
.cl-btn { display: inline-block; font: inherit; font-size: 12.5px; padding: 6px 16px; border: 1px solid #5b93b8; background: #e8f2f8; cursor: pointer; border-radius: 2px; color: #2c5f7c; text-decoration: underline; }
.cl-btn:hover { background: #d9eaf4; }
.cl-results { list-style: none; margin-top: 12px; }
.cl-results li { padding: 7px 0; border-bottom: 1px solid #eef4f8; font-size: 13px; }
.cl-results li a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.cl-results li span { display: block; font-size: 11px; color: #6a8a52; margin-top: 2px; }
.rk-login { max-width: 380px; margin: 14px auto; border: 1px solid #c9c0a4; background: #fff; padding: 18px 20px; }
.rk-login label { display: block; font-size: 12.5px; margin-bottom: 12px; }
.rk-login input { display: block; margin-top: 5px; border: 1px solid #b3a888; padding: 6px 8px; font: inherit; font-size: 13px; width: 100%; background: #fff; }
.rk-table-wrap { overflow-x: auto; }
.rk-arrivals { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; background: #fff; }
.rk-arrivals th, .rk-arrivals td { border: 1px solid #ddd5ba; padding: 5px 8px; text-align: left; white-space: nowrap; }
.rk-arrivals th { background: #f3edda; font-weight: 600; }
.rk-foot { border-top: 1px solid #ddd5ba; padding: 8px 20px; font-size: 11px; color: #999; text-align: center; }

/* ===== 抽出（転送モニタ＝地味な道具） ===== */
.extract-body { display: flex; gap: 12px; padding: 12px; min-height: 0; flex: 1; background: #fff; }
.ext-left { flex: 1.5; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; position: relative; }
.ext-right { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 250px; min-height: 0; }
.counters { display: flex; gap: 12px; }
.counter { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px #fff, inset 2px 2px 4px rgba(0,0,0,.06); padding: 10px 14px; }
.counter-label { font-size: 11.5px; color: var(--ink2); }
.counter-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.counter-value { font-size: clamp(21px, 3.2vw, 34px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: .01em; min-width: 0; }
.counter-sub { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; min-width: 0; }
.stream-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 600; color: #333; }
.stream-legend { font-weight: 400; color: var(--ink2); font-size: 11.5px; }
.lg { display: inline-block; width: 9px; height: 9px; margin: 0 3px 0 8px; }
.lg0 { background: var(--q0); } .lg1 { background: var(--q1); } .lg2 { background: var(--q2); }
.stream-view { flex: 1; background: #fff; border: 1px solid var(--line); box-shadow: inset 2px 2px 4px rgba(0,0,0,.06); overflow: hidden; padding: 6px 9px; font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.75; color: #333; min-height: 48px; }
.srow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .sq { display: inline-block; width: 8px; height: 8px; margin-right: 7px; }
.sq0 { background: var(--q0); } .sq1 { background: var(--q1); } .sq2 { background: var(--q2); }
.srow.q2 { font-weight: 700; }
.ext-log { height: 78px; overflow: auto; background: #fafafa; border: 1px solid var(--line-soft); padding: 6px 9px; font-size: 12px; line-height: 1.65; color: var(--ink2); }
.ext-log .ev-warn { color: var(--danger); font-weight: 600; }
.det-bar { height: 18px; background: #e6e6e6; border: 1px solid var(--line); margin-top: 4px; }
#detFill { height: 100%; width: 0%; background: #5aa15f; transition: width .15s linear, background .3s; }
.det-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 5px; font-size: 12.5px; }
.det-value { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.speed-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.speed-btn.active { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.speed-note { font-size: 12px; color: var(--ink2); margin-top: 6px; font-variant-numeric: tabular-nums; }
/* イベント通知は左カラム（転送ログ）の上へのオーバーレイ表示にする。
   レイアウトには一切参加しないので、バナーが出ても右カラムの操作列（切断ボタン含む）の
   高さ・位置は変わらず、常時見えて押せる。イベント内容は extLog にも残る。 */
.event-banner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; box-shadow: 0 -2px 10px rgba(0,0,0,.18); border: 1px solid #d9c27a; background: #fdf6da; padding: 9px 11px; font-size: 12.5px; line-height: 1.6; color: #5c4a08; }
.event-banner.bad { background: #fdf0ef; border-color: #e5b4b0; color: #8c2b21; }
.cut-progress { position: relative; height: 28px; background: #e6e6e6; border: 1px solid var(--line); overflow: hidden; }
.cut-progress #cutFill { height: 100%; width: 0%; background: var(--accent); }
.cut-progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.ext-hint { font-size: 11.5px; color: var(--ink2); text-align: center; }

/* ===== ニュース（精算） ===== */
.news-win { background: #fff; }
.news-topbar { display: flex; gap: 18px; padding: 7px 22px; background: #26355c; color: #cfd9ec; font-size: 12px; flex: none; }
.news-topbar span { cursor: pointer; }
.news-top-right { margin-left: auto; }
.news-masthead { padding: 12px 22px 8px; border-bottom: 1px solid #ddd; flex: none; }
.news-logo { font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; font-size: 25px; font-weight: 800; color: #16233f; }
.news-body { padding: 14px 22px 20px; overflow: auto; min-height: 0; }
.news-crumb { font-size: 11.5px; color: #888; margin-bottom: 8px; }
.news-body h1 { font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; font-size: clamp(18px, 2.4vw, 25px); line-height: 1.5; margin-bottom: 8px; color: #111; }
.news-meta { font-size: 12px; color: #888; display: flex; gap: 14px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 12px; }
.news-lead { font-size: 13.5px; line-height: 1.9; font-weight: 600; }
.news-text { font-size: 13px; line-height: 1.95; color: #333; margin-top: 8px; }
.settle-flex { display: flex; gap: 22px; margin-top: 18px; align-items: flex-start; }
.settle-main { flex: 1; min-width: 0; }
.private-box { border: 1px solid var(--line-soft); background: #fafafa; padding: 14px 16px; }
.settle-h { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #222; }
.settle-side .settle-h { margin-top: 16px; }
.settle-side .settle-h:first-child { margin-top: 0; }
.settle-table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.settle-table th, .settle-table td { border: 1px solid #ccc; padding: 6px 11px; text-align: right; font-variant-numeric: tabular-nums; }
.settle-table th:first-child, .settle-table td:first-child { text-align: left; }
.settle-table thead th { background: #efefef; font-weight: 600; }
.settle-table tfoot td { font-weight: 700; background: #f7f7f7; }
.settle-run { font-size: 12.5px; line-height: 1.85; margin-top: 12px; color: #333; }
.news-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.settle-side { width: 240px; flex: none; border-left: 1px solid #eee; padding-left: 18px; }
.related { list-style: none; font-size: 12px; line-height: 1.6; color: #1a56c4; }
.related li { padding: 5px 0; border-bottom: 1px dotted #ddd; cursor: pointer; }
.related li:hover { text-decoration: underline; }

/* ===== ショップ ===== */
.shop-win { background: #fff; }
.shop-note { padding: 10px 16px 0; font-size: 12px; color: var(--ink2); }
.shop-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; overflow: auto; align-items: stretch; align-content: flex-start; }
.shop-card { flex: 1 1 270px; max-width: 350px; border: 1px solid var(--line-soft); background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.shop-state { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: #eee; color: #666; }
.shop-state.on { background: #1a56c4; color: #fff; }
.shop-state.off { background: #f3e2c7; color: #8a5a12; }
.shop-card:hover { border-color: var(--accent); }
.shop-name { font-weight: 700; font-size: 15px; }
.shop-sys { font-size: 11px; color: var(--ink2); }
/* 説明文は3行分の最小高さを確保し、折返しの違いで内部の揃いが崩れないようにする */
.shop-desc { font-size: 12px; line-height: 1.65; color: var(--ink2); min-height: calc(12px * 1.65 * 2); }
/* レベル・価格・購入ボタンはフッターにまとめ、カード下端に揃える */
.shop-foot { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.shop-level { display: flex; gap: 4px; }
.lv-dot { width: 22px; height: 7px; background: #e0e0e0; }
.lv-dot.on { background: var(--accent); }
.shop-price { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-actions { padding: 0 16px 14px; display: flex; justify-content: flex-end; }

/* ===== ラン終了 ===== */
.runend-win { background: #fff; }
/* flex:1／min-height:0 で、縦 flex の .win の中でボディが内容より小さく
   縮めるようにし、overflow:auto を実際に効かせる（.hub-body／.news-body
   と同じ型、第45報）。これが無いとボディは内容の高さまで伸びて .win の
   overflow:hidden に切り取られ、画面の低い環境では末尾（名前入力・
   ボタン類）まで辿り着けなかった */
.runend-body { padding: 20px 24px; overflow: auto; flex: 1; min-height: 0; }
.runend-summary { font-size: 14px; line-height: 2.0; }
.runend-summary .big { font-size: 22px; font-weight: 800; }
.name-label { display: block; margin: 16px 0; font-size: 12.5px; color: var(--ink2); }
.name-label input { display: block; margin-top: 6px; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); width: min(340px, 90%); background: #fff; }
/* Xポスト導線は記録画面のトーンに合わせた素朴なボタン（リンク）にする */
.x-post-btn { display: inline-block; margin-top: 10px; text-decoration: none; text-align: center; }

/* ===== モーダル（OSダイアログ風） ===== */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(20,20,20,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border: 1px solid #6e6e6e; box-shadow: 0 8px 32px rgba(0,0,0,.5); padding: 20px 22px; width: min(600px, 94vw); max-height: 92dvh; overflow: auto; border-radius: 4px; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal-desc { font-size: 12.5px; color: var(--ink2); line-height: 1.8; }
.music-choices { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: stretch; }
/* カード内部の構造を全カードで統一し、ジャンル／曲名／説明文の開始位置と段の高さを
   揃える（第12報）。曲名は2行分・説明文は3行分の最小高さを確保し、折返しの違いで
   段がずれないようにする（第3報の道具カードと同じ考え方） */
.music-card { flex: 1; min-width: 148px; border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; cursor: pointer; background: #fff; text-align: left; font: inherit; display: flex; flex-direction: column; }
.music-card:hover { background: #e5f1fb; border-color: var(--accent); }
.music-genre { font-size: 11px; font-weight: 700; color: var(--accent-dark); letter-spacing: .06em; line-height: 1.5; }
.music-name { font-size: 15px; font-weight: 700; margin-top: 3px; line-height: 1.45; min-height: calc(15px * 1.45 * 2); }
.music-mood { font-size: 12px; color: var(--ink2); margin-top: 4px; line-height: 1.6; min-height: calc(12px * 1.6 * 3); }
.modal-btns { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

/* ===== 逮捕ムービー ===== */
#arrestOverlay { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; }
#arrestVideo { width: 100%; height: 100%; object-fit: contain; }

/* ===== 初回起動シーケンス（第44報） =====
   人生の初回起動の時だけ、PCの電源を入れたような起動画面を出してから
   デスクトップに入る。z-index は逮捕ムービー（100）より上の 200 で、
   画面全体を覆う。縦持ち回転と入力モードの対象にも加えてある
   （下の @media (orientation: portrait) と html.input-mode の規則）。 */
#bootScreen { position: fixed; inset: 0; z-index: 200; background: #000; color: #c9ced4; overflow: hidden; }
#bootScreen.boot-fade { opacity: 0; transition: opacity .6s ease; }
.boot-fw { position: absolute; left: 6%; top: 9%; font-family: "Consolas", "Menlo", monospace; font-size: 14px; line-height: 1.9; }
.boot-logo { font-size: 30px; font-weight: 700; letter-spacing: .35em; color: #e8ecf0; }
.boot-fw-sub { font-size: 12px; letter-spacing: .12em; color: #8a929c; margin: 2px 0 18px; }
.boot-line { white-space: pre; }
.boot-os { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.boot-os-name { font-size: 34px; letter-spacing: .18em; color: #eef1f4; }
.boot-bar { width: min(320px, 60%); height: 4px; background: #23282e; }
#bootBarFill { height: 100%; width: 0%; background: #9fb2c8; transition: width .08s linear; }
.boot-title { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.boot-title.boot-title-in { opacity: 1; }
.boot-skip { position: absolute; right: 18px; bottom: 14px; font-size: 11px; letter-spacing: .08em; color: #6d757f; }

/* ===== 強制横画面：縦持ち時は画面ごと90度回転して常に横画面表示にする ===== */
/* 回転方向は rotate(90deg)（第10報で確定）。幾何は『クルマを壊すオンライン』の
実績実装と同じ形：要素を left:0／top:-100vw に置き、transform-origin: bottom left で
rotate(90deg) すると、
・要素の幅（width:100svh＝物理の可視の高さ）が画面の縦方向に、
・要素の高さ（height:100vw＝物理の幅）が画面の横方向に
対応する。
配置寸法の単位（第11報で改訂）：幅軸は svh で取る。vh は iOS ではブラウザの
ツールバー裏まで含む大きい方のビューポートで計算され、ステージ幅が可視高さを
超えて、幅軸の遠端にある要素（タイトルバー末端のキャプションボタン、最大化した
ウィンドウの端、モーダル、サイト内ヘッダーの右寄せナビ）が一様に画面外へ落ち、
スクロールでも届かない不具合があった。dvh はツールバーの開閉やキーボードで
変動するため採らない。svh は最小ビューポート（ツールバー表示時の可視高さ）で、
ステージが可視範囲を超えることはない。svh 非対応環境向けに、各所で vh の宣言を
フォールバックとして直前に残してある。高さ軸は従来どおり vw で固定する。
【確定の根拠（第10報）】ユーザーの倒し方は反時計回り（画面の上が左へ行く向き）。
タスクバーがステージ下端に来た第9報（回転 -90deg＋タスクバー下端）では、
ユーザーの実機報告は「タスクバーは下に来たが上下逆（左右が鏡像）」だった。
タスクバーを下端に置いたまま回転だけを +90deg に変えたこの組み合わせが、
倒した時にタスクバーが下に来て、並びも文字も正しくなる確定形
（第9報までの組み合わせでは未試行だった最後の組み合わせ）。
【経緯と教訓】第2報で入れた -90deg は、当時タスクバーがステージ上端に
張り付く構造（第9報で判明・修正）と組み合わさっており、符号だけでは
正誤を切り分けられなかった。第3報の JS クラス方式（applyOrientationClass）と
第4報の rot-latch は、キーボード対策として入れたが回転そのものを壊してきた。
第5〜7報の +90deg はタスクバー上端のままだったため下に来ず、第8報の
-90deg は鏡像になった。第9報でタスクバーを下端へ移して初めて、
回転の符号だけが残りの変数になり、第10報で +90deg に確定した。
**今後この幾何（+90deg＋タスクバー下端）を変えない。**
【付け外しの方式】
回転は @media (orientation: portrait) のみで担う。回転に関するJS判定は
置かない（第3報のクラス方式・第4報のラッチは上記のとおり撤去済み）。
キーボード表示中の扱いは第13報で確定した：入力中は回転を外して縦表示にする
「入力モード」（html.input-mode、末尾の専用ブロック）。第12報で入れた回転保持の
補助は、帯に圧縮されてURL欄が見切れるため第13報で置き換えた。
回転の付け外し自体は引き続き @media のみが担う。詳細は第13報の記録。 */
@media (orientation: portrait) {
#stage {
inset: auto;
left: 0; top: -100vw;
width: 100vh;
width: 100svh;
height: 100vw;
transform: rotate(90deg); transform-origin: bottom left;
}
/* 回転後の座標系では、見かけの幅＝物理svh（可視の高さ）／見かけの高さ＝物理vw。
vw・dvh 基準で書かれた寸法は svh・vw へ読み替える */
.win { width: min(1180px, 97vh); width: min(1180px, 97svh); max-height: calc(100vw - 72px); }
.browser-win { width: 100%; max-height: none; }
/* #stage の外にある全画面要素（モーダル／逮捕ムービー／起動画面）も同じ回転で揃える */
.modal, #arrestOverlay, #bootScreen {
inset: auto;
left: 0; top: -100vw;
width: 100vh;
width: 100svh;
height: 100vw;
transform: rotate(90deg); transform-origin: bottom left;
}
.modal-box { width: min(600px, 94vh); width: min(600px, 94svh); max-height: 92vw; }
.news-body h1 { font-size: clamp(18px, 2.4svh, 25px); }
/* 回転表示時の見かけの高さは物理幅ぶん（スマホで約400px）しかないため、
「小さい横画面」向けの詰め調整も回転時に併用する
（@media (max-height:500px) は物理の高さで判定され、縦持ちでは発火しない） */
.counter-value { font-size: 25px; }
.hub-left { width: 310px; }
.desk-icon { width: 66px; padding: 4px 2px 3px; }
.di-img { font-size: 23px; }
/* 下部領域は固定高さ（コンパクト時は 86px）。ログはその内側いっぱいに広がり、
   固定 height は持たない。ブラウザの枠まわりもさらに詰める（第12報） */
.browser-bottom { height: 86px; }
.browser-tabstrip { padding: 3px 6px 0; }
.browser-tab { padding: 4px 10px; }
.browser-toolbar { padding: 3px 8px; }
.dl-shelf { padding: 5px 12px; }
.ext-log { height: 56px; }
.startpage { padding: 20px 24px; }
/* 道具の調達：見かけの高さが小さく、カードの内容（名前＋説明3行＋レベル＋
   価格＋ボタンで約200px）がウィンドウの残り高さに収まらない。素のままだと
   .shop-list が flex 列の中で縮み、カード枠だけが潰れて価格と購入ボタンが
   枠外にはみ出す（実機で確認）。リストは残りの高さを取って内部でスクロール
   させ、カードは自然な高さにして枠内に収める（第13報・追加修正） */
.shop-list { flex: 1; min-height: 0; align-items: flex-start; }
/* 抽出画面：見かけの高さが小さいので全体を詰め、切断ボタンを常時表示に収める。
イベント通知はオーバーレイなので、ここでも操作列の寸法には影響しない */
.extract-body { padding: 8px; gap: 8px; }
.ext-left { gap: 6px; }
.ext-right { gap: 8px; min-width: 210px; }
.counters { gap: 8px; }
.counter { padding: 6px 10px; }
.counter-value { font-size: 22px; }
.stream-view { min-height: 24px; }
.ext-log { height: 44px; }
.extract-body .group-box { padding: 8px 10px; }
.det-bar { height: 12px; }
.det-value { font-size: 16px; }
.btn-disconnect { padding: 8px; font-size: 14px; }
.ext-hint { display: none; }
.event-banner { padding: 6px 9px; font-size: 12px; }
}
/* ===== 文字入力中の表示（第13報・入力モード） =====
   第12報の KBHold（入力中も回転を保持する補助）は、実機確認の結果を受けた
   ユーザーの方針変更で廃止し、この「入力モード」に置き換えた。キーボードは
   端末の向きで縦に出るのが仕様なので、入力中は画面も縦でよい、という決定。
   回転保持のままだと表示がキーボード上の細い帯に圧縮され、URL欄が見切れて
   編集中のURLが見えなかった。
   入力モード：縦持ち回転の文脈でゲーム内のテキスト入力にフォーカスし、
   キーボードが開いたら、app.js の InputMode が html.input-mode を付ける。
   ここではステージの回転を外し、キーボードを除いた可視領域
   （visualViewport の現在の寸法とオフセット＝CSS変数 --im-x／--im-y／
   --im-w／--im-h）にステージをぴったり合わせて縦表示にする。入力が主役で、
   最優先は「URL欄が画面内に完全に入り、編集中のURLが読める」こと。
   ブラウザのタブ／アドレスバーはステージ上端のフロー内にあり常に見える。
   サイト表示側（.site-view）はこの間、縮小してもよい。
   キーボードが閉じる／フォーカスが外れたら class と変数を外し、従来の
   回転した横画面に正確に戻る。ベースの @media 回転（+90deg 幾何・svh・
   タスクバー下端）には触らない。横向き・PC では付かない。 */
html.input-mode #stage {
  inset: auto;
  left: var(--im-x, 0px); top: var(--im-y, 0px);
  width: var(--im-w, 100vw); height: var(--im-h, 100dvh);
  transform: none;
}
html.input-mode .modal, html.input-mode #arrestOverlay, html.input-mode #bootScreen {
  inset: auto;
  left: var(--im-x, 0px); top: var(--im-y, 0px);
  width: var(--im-w, 100vw); height: var(--im-h, 100dvh);
  transform: none;
}
/* portrait ブロックの svh 基準の寸法（.win の 97svh 等）は、入力モードの幅
   （＝物理の画面幅）に対して大きすぎてはみ出すため、画面幅基準へ戻す。
   ウィンドウはステージ幅いっぱいにし、縦の詰めも効かせて、アドレスバーを
   含むブラウザ枠が可視領域の上端に収まるようにする */
html.input-mode .win { width: 100%; max-height: none; }
html.input-mode .modal-box { width: min(600px, 94vw); max-height: calc(var(--im-h, 100dvh) * 0.92); }
html.input-mode .screen { padding: 6px; }
html.input-mode .news-body h1 { font-size: 20px; }
/* ===== 小さい横画面（スマホ横持ち） ===== */
@media (max-height: 500px) {
  .win { max-height: calc(100dvh - 56px); }
  .browser-win { max-height: none; }
  .counter-value { font-size: 25px; }
  .hub-left { width: 310px; }
  .desk-icon { width: 66px; padding: 4px 2px 3px; } .di-img { font-size: 23px; }
  .browser-bottom { height: 86px; }
  .browser-tabstrip { padding: 3px 6px 0; }
  .browser-tab { padding: 4px 10px; }
  .browser-toolbar { padding: 3px 8px; }
  .dl-shelf { padding: 5px 12px; }
  .ext-log { height: 56px; }
  .startpage { padding: 20px 24px; }
  /* 道具の調達：高さが小さい画面ではカード枠が潰れて中身がはみ出すため、
     リストは残りの高さ＋内部スクロール、カードは自然な高さにする
     （第13報・追加修正。portrait ブロックと同じ対策） */
  .shop-list { flex: 1; min-height: 0; align-items: flex-start; }
  /* 抽出画面：高さが小さいので全体を詰め、切断ボタンを常時表示に収める */
  .extract-body { padding: 8px; gap: 8px; }
  .ext-left { gap: 6px; }
  .ext-right { gap: 8px; min-width: 210px; }
  .counters { gap: 8px; }
  .counter { padding: 6px 10px; }
  .counter-value { font-size: 22px; }
  .stream-view { min-height: 24px; }
  .ext-log { height: 44px; }
  .extract-body .group-box { padding: 8px 10px; }
  .det-bar { height: 12px; }
  .det-value { font-size: 16px; }
  .btn-disconnect { padding: 8px; font-size: 14px; }
  .ext-hint { display: none; }
  .event-banner { padding: 6px 9px; font-size: 12px; }
}

/* 調査メモと手がかりリンク */
.memo-list { font-size: 12px; line-height: 1.8; }
.memo-row { padding: 5px 0; border-bottom: 1px solid #e6e2d4; }
.memo-target { display: inline-block; font-size: 10.5px; color: #8a7f63; border: 1px solid #ddd5ba; padding: 0 6px; margin-right: 7px; border-radius: 2px; background: #faf6ea; }
.clue-link { color: inherit; text-decoration: none; cursor: inherit; }
.news-side { margin: 14px 0 4px; border-top: 1px solid #e3e3e3; padding-top: 8px; }
.news-side-title { font-size: 11px; color: #888; letter-spacing: .12em; margin-bottom: 5px; }
.news-side ul { list-style: none; font-size: 12.5px; line-height: 1.9; color: #444; }
.news-side li::before { content: "・"; color: #bbb; }
.super-site { color: #333; background: #fff; font-size: 13px; }
.super-head { background: #fdf1ec; border-bottom: 3px solid #c0392b; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.super-logo { font-size: 20px; font-weight: 700; color: #b03a2e; letter-spacing: .05em; }
.super-logo small { display: block; font-size: 9px; font-weight: 400; color: #c08a80; letter-spacing: .18em; }
.super-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.super-nav a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.super-body { padding: 16px 20px 20px; }
.super-h { font-size: 17px; color: #b03a2e; border-bottom: 2px solid #f0d5cf; padding-bottom: 6px; margin-bottom: 12px; }
.super-sub { font-size: 14px; color: #b03a2e; margin: 16px 0 8px; }
.super-hero { background: linear-gradient(135deg, #fdecea, #fff6e5); border: 1px solid #f0d5cf; border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.super-hero-big { font-size: 22px; font-weight: 800; color: #c0392b; margin-bottom: 4px; }
.super-list { list-style: none; line-height: 2; }
.super-list li::before { content: "・"; color: #cbb; }
.super-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.super-table td, .super-table th { border: 1px solid #e8e0da; padding: 6px 8px; text-align: left; }
.super-price { color: #c0392b; font-weight: 700; }
.super-note { font-size: 11.5px; color: #999; margin-top: 8px; }
.super-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.super-form input { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.super-form button { padding: 7px 14px; border: 1px solid #b03a2e; background: #c0392b; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.super-error { color: #c0392b; font-size: 12.5px; width: 100%; }
.super-voice { background: #fdf8f5; border: 1px solid #f0e2da; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.8; }
.super-portal { max-width: 520px; }
.super-foot { border-top: 1px solid #eee; padding: 10px 20px; font-size: 11.5px; color: #999; }
.super-foot a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.super-sale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.super-sale-item { border: 1px solid #f0d5cf; border-radius: 8px; padding: 10px 12px; background: #fffaf7; }
.super-sale-name { font-size: 12.5px; margin-bottom: 2px; }
.super-sale-item .super-price { font-size: 16px; }
.super-sale-note { font-size: 11px; color: #999; margin-top: 2px; }
.super-point { border: 1px solid #f0d5cf; background: #fdf6ec; border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
.super-point-title { font-weight: 700; color: #b03a2e; font-size: 13.5px; margin-bottom: 4px; }
.super-point p { line-height: 1.8; }
.super-date { color: #999; font-size: 11.5px; margin-right: 8px; }
.super-info { margin-top: 16px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 2px; font-size: 12px; color: #666; }
/* ===== 第52報：標的4の厚み付け（商品案内／サービス／お知らせ／チラシ拡充） ===== */
.super-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.super-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.super-cat { border: 1px solid #f0d5cf; border-radius: 10px; overflow: hidden; background: #fff; }
.super-cat-photo { height: 132px; background: #f7ece7; }
.super-cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.super-cat-body { padding: 10px 12px 12px; }
.super-cat-name { font-weight: 700; color: #b03a2e; font-size: 14.5px; margin-bottom: 4px; }
.super-cat-desc { font-size: 12px; color: #777; line-height: 1.75; margin-bottom: 6px; }
.super-cat-items { list-style: none; font-size: 12.5px; line-height: 1.9; }
.super-cat-items li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted #eee; }
.super-news-item { border-bottom: 1px solid #f0e2da; padding: 10px 2px; }
.super-news-title { font-weight: 700; font-size: 13.5px; color: #333; }
.super-news-body { font-size: 12.5px; color: #666; line-height: 1.85; margin-top: 3px; }
@media (max-width: 640px) {
  .super-cats { grid-template-columns: 1fr; }
  .super-head { flex-wrap: wrap; }
  .super-nav { margin-left: 0; justify-content: flex-start; }
}

/* ===== 調査メモ（メモ帳ウィンドウ。第23報でハブから独立ファイルへ移動） ===== */
.memo-body { flex: 1; min-height: 0; overflow-y: auto; background: #fff; padding: 16px 18px; }
.memo-body .memo-list { max-height: none; overflow: visible; font-size: 13px; }

/* ===== 標的5：中古車販売サイト（カーセンターみなみ） ===== */
.car-site { color: #333; background: #fff; font-size: 13px; }
.car-head { background: #fff; border-bottom: 3px solid #1f4e79; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.car-logo { font-size: 20px; font-weight: 700; color: #1f4e79; letter-spacing: .05em; }
.car-logo small { display: block; font-size: 9px; font-weight: 400; color: #7d99b4; letter-spacing: .14em; }
.car-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.car-nav a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.car-body { padding: 16px 20px 20px; }
.car-h { font-size: 17px; color: #1f4e79; border-bottom: 2px solid #d7e3ef; padding-bottom: 6px; margin-bottom: 12px; }
.car-sub { font-size: 14px; color: #1f4e79; margin: 16px 0 8px; }
.car-hero { background: linear-gradient(135deg, #eef4fa, #fdf3e7); border: 1px solid #d7e3ef; border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.car-hero-big { font-size: 20px; font-weight: 800; color: #1f4e79; margin-bottom: 4px; }
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.car-card { border: 1px solid #d7e3ef; border-radius: 8px; overflow: hidden; background: #fff; }
.car-card a { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.car-photo { height: 110px; background: #e8eef4; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card-name { font-size: 13px; font-weight: 700; padding: 8px 10px 0; }
.car-card-meta { font-size: 11.5px; color: #777; padding: 2px 10px 0; }
.car-card-price { font-size: 17px; font-weight: 800; color: #d35400; padding: 4px 10px 10px; }
.car-card-price span { font-size: 10.5px; font-weight: 400; color: #999; margin-left: 4px; }
.car-detail-photo { height: 220px; background: #e8eef4; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.car-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.car-table td, .car-table th { border: 1px solid #e2e8ee; padding: 6px 8px; text-align: left; }
.car-price { color: #d35400; font-weight: 700; }
.car-point { margin-top: 10px; line-height: 1.8; }
.car-note { font-size: 11.5px; color: #999; margin-top: 8px; }
.car-list { list-style: none; line-height: 2; }
.car-list li::before { content: "・"; color: #b9c9d8; }
.car-date { color: #999; font-size: 11.5px; margin-right: 8px; }
.car-info { margin-top: 16px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 2px; font-size: 12px; color: #666; }
.car-voice { background: #f7fafc; border: 1px solid #e2ecf4; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.8; }
.car-share-box { border: 1px solid #f0ddc8; background: #fdf8f1; border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
.car-share-title { font-weight: 700; color: #1f4e79; font-size: 13.5px; margin-bottom: 4px; }
.car-share-box p { line-height: 1.8; }
.car-share-box a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.car-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.car-form input { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.car-form button { padding: 7px 14px; border: 1px solid #1f4e79; background: #1f4e79; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.car-foot { border-top: 1px solid #eee; padding: 10px 20px; font-size: 11.5px; color: #999; }

/* ===== 標的5：ファイル共有サービス「ファイル便」 ===== */
.share-site { color: #333; background: #f5f6f8; font-size: 13px; min-height: 100%; }
.share-head { background: #37474f; color: #fff; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.share-logo { font-size: 16px; font-weight: 700; }
.share-head-note { font-size: 11.5px; color: #b0bec5; }
.share-crumb { padding: 10px 20px 0; font-size: 12.5px; color: #666; }
.share-crumb a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.share-body { padding: 12px 20px 20px; }
.share-h { font-size: 15px; color: #37474f; margin-bottom: 10px; }
.share-file-row { background: #fff; border: 1px solid #e0e4e8; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.share-file-row a { color: #1a56c4; text-decoration: underline; cursor: pointer; font-size: 13.5px; }
.share-file-icon { font-size: 16px; }
.share-file-meta { margin-left: auto; font-size: 11.5px; color: #999; }
.share-note { font-size: 11.5px; color: #999; margin-top: 8px; line-height: 1.7; }
.share-actions { margin-top: 12px; }
.share-actions button { padding: 8px 16px; border: 1px solid #37474f; background: #37474f; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.share-body a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.share-foot { padding: 10px 20px; font-size: 11.5px; color: #999; }

/* ===== 標的6：婚活アプリ（スマホ画面＋通信キャプチャ） ===== */
.kk-wrap { display: flex; gap: 14px; align-items: flex-start; background: #f4f1ea; padding: 12px; }
.kk-phone { width: 330px; flex: none; background: #fff; border: 2px solid #444; border-radius: 18px; overflow: hidden; font-size: 13px; color: #333; }
.kk-apphead { background: #e75480; color: #fff; padding: 8px 12px; font-weight: bold; }
.kk-apphead-sub { font-weight: normal; font-size: 11px; opacity: 0.85; }
.kk-title { padding: 8px 12px 0; font-weight: bold; font-size: 14px; }
.kk-body { padding: 8px 12px 12px; min-height: 260px; }
.kk-tabs { display: flex; border-top: 1px solid #ddd; }
.kk-tabs a { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; color: #555; cursor: pointer; border-right: 1px solid #eee; }
.kk-tabs a:last-child { border-right: none; }
.kk-card { display: flex; gap: 10px; padding: 8px; border: 1px solid #eee; border-radius: 10px; margin-top: 8px; background: #fff; }
.kk-vip { border-color: #d9a441; background: #fffaf0; }
.kk-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #f6d7e0; color: #a33; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.kk-nick { font-weight: bold; }
.kk-age { font-weight: normal; color: #777; font-size: 12px; }
.kk-meta { color: #666; font-size: 12px; margin-top: 2px; }
.kk-intro { color: #666; font-size: 12px; margin-top: 4px; }
.kk-vip-badge { background: #d9a441; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.kk-note { color: #888; font-size: 12px; margin-top: 8px; }
.kk-field { font-weight: bold; margin-top: 10px; }
.kk-regions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kk-region { border: 1px solid #e75480; color: #e75480; border-radius: 14px; padding: 4px 12px; cursor: pointer; font-size: 12px; }
.kk-table { border-collapse: collapse; margin-top: 8px; }
.kk-table td { border: 1px solid #eee; padding: 5px 10px; font-size: 12px; }
.kk-table td:first-child { background: #faf5f7; color: #777; }
.kk-news { margin: 8px 0 0 16px; color: #555; font-size: 12px; line-height: 1.9; }
.kk-cap { flex: 1; background: #1e2430; color: #cfd8e3; border-radius: 10px; padding: 10px 12px; font-size: 12px; min-height: 200px; }
.kk-cap-head { font-weight: bold; color: #9fd0ff; margin-bottom: 8px; }
.kk-cap-row { display: block; padding: 5px 6px; border-radius: 4px; cursor: pointer; color: #cfd8e3; }
.kk-cap-row:hover { background: #2a3345; }
.kk-method { color: #ffd479; font-weight: bold; }
.kk-status { color: #8be08b; }
.kk-json { font-family: monospace; white-space: pre-wrap; background: #141a24; border-radius: 6px; padding: 8px; margin-top: 8px; line-height: 1.6; }
.kk-cap .kk-note { color: #8fa3bb; }
.kk-cap a { color: #9fd0ff; cursor: pointer; }
.kk-tool { margin-top: 12px; border: 1px dashed #ffd479; border-radius: 6px; padding: 8px; }
.kk-tool-head { color: #ffd479; font-weight: bold; margin-bottom: 4px; }

/* ===== 標的7：地方銀行（ひだまり銀行＋委託先デモ環境） ===== */
.bank-site { color: #333; background: #fff; font-size: 13px; }
.bank-head { background: #eef4ec; border-bottom: 3px solid #2e6b34; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.bank-logo { font-size: 20px; font-weight: 700; color: #2e6b34; letter-spacing: .05em; }
.bank-logo small { display: block; font-size: 9px; font-weight: 400; color: #7fa383; letter-spacing: .14em; }
.bank-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.bank-nav a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.bank-body { padding: 16px 20px 20px; }
.bank-body a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.bank-h { font-size: 17px; color: #2e6b34; border-bottom: 2px solid #d8e6d5; padding-bottom: 6px; margin-bottom: 12px; }
.bank-sub { font-size: 14px; color: #2e6b34; margin: 16px 0 8px; }
.bank-hero { background: linear-gradient(135deg, #eef6ea, #fdf9ec); border: 1px solid #d8e6d5; border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.bank-hero-big { font-size: 20px; font-weight: 800; color: #2e6b34; margin-bottom: 4px; }
.bank-list { list-style: none; line-height: 2; }
.bank-list li::before { content: "・"; color: #a9c4a4; }
.bank-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.bank-table td, .bank-table th { border: 1px solid #dde5da; padding: 6px 8px; text-align: left; }
.bank-note { font-size: 11.5px; color: #999; margin-top: 8px; line-height: 1.7; }
.bank-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.bank-form input { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.bank-form button { padding: 7px 14px; border: 1px solid #2e6b34; background: #2e6b34; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.bank-error { color: #c0392b; font-size: 12.5px; width: 100%; }
.bank-date { color: #999; font-size: 11.5px; margin-right: 8px; }
.bank-info { margin-top: 16px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 2px; font-size: 12px; color: #666; }
.bank-voice { background: #f6faf4; border: 1px solid #e0ebdc; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.9; }
.bank-foot { border-top: 1px solid #eee; padding: 10px 20px; font-size: 11.5px; color: #999; }
.demo-head { background: #eef1f5; border-bottom: 3px solid #546e7a; }
.demo-site .bank-logo { color: #455a64; }
.demo-site .bank-logo small { color: #90a4ae; }
.demo-site .bank-h { color: #455a64; border-bottom-color: #d9e0e5; }
.demo-site .bank-sub { color: #455a64; }
.demo-site .bank-form button { border-color: #546e7a; background: #546e7a; }

/* ===== 標的8：全国チェーンEC（あおばマート） =====
   実在の総合通販サイトの体裁に寄せたデザイン（第33報で磨き上げ）。
   ヘッダー（ユーティリティ帯＋検索＋カート）／カテゴリナビ／商品カード／
   注文カード／追跡タイムライン／領収書／クーポン／フッターリンク群。 */
.ec-site { color: #333; background: #fff; font-size: 13px; line-height: 1.6; }
.ec-site * { box-sizing: border-box; }
/* ユーティリティ帯 */
.ec-topbar { background: #0d2c56; color: #c8d6ea; font-size: 11px; padding: 4px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ec-topbar .ec-fl { margin-left: 14px; }
.ec-fl { cursor: pointer; }
.ec-fl:hover { text-decoration: underline; }
/* ヘッダー */
.ec-head { background: #fff; padding: 10px 20px 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ec-logo { font-size: 24px; font-weight: 800; color: #123f7b; letter-spacing: .04em; cursor: pointer; text-decoration: none; line-height: 1.1; }
.ec-logo::before { content: ""; display: inline-block; width: 15px; height: 15px; border-radius: 50% 50% 50% 4px; background: linear-gradient(135deg, #2e9e5b, #7cc24f); margin-right: 7px; transform: rotate(-18deg); }
.ec-logo small { display: block; font-size: 9px; font-weight: 600; color: #7d94b8; letter-spacing: .34em; margin-left: 23px; }
.ec-search { flex: 1 1 260px; display: flex; border: 2px solid #123f7b; border-radius: 6px; overflow: hidden; min-width: 200px; }
.ec-search input { flex: 1; border: none; padding: 8px 10px; font-size: 13px; outline: none; min-width: 0; }
.ec-search-btn { background: #123f7b; color: #fff; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ec-search-btn:hover { background: #1a56c4; }
.ec-head-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ec-pt-chip { background: #fff7e0; border: 1px solid #f0d48a; color: #7a5b12; border-radius: 99px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.ec-pt-chip b { font-size: 14px; }
.ec-cart { position: relative; font-weight: 700; color: #123f7b; cursor: pointer; font-size: 13px; padding-right: 4px; }
.ec-cart-badge { position: absolute; top: -9px; right: -10px; background: #e60012; color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
/* カテゴリ＋アカウントのナビ帯 */
.ec-nav { background: #123f7b; padding: 0 20px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ec-cat { color: #dbe7f7; font-size: 12.5px; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
.ec-cat:hover { background: #1a56c4; color: #fff; }
.ec-nav-r { margin-left: auto; display: flex; }
.ec-nav-r a { color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ec-nav-r a:hover { background: #1a56c4; text-decoration: underline; }
/* 本文 */
.ec-body { padding: 16px 20px 24px; background: #fff; }
.ec-body a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.ec-h { font-size: 18px; color: #222; border-bottom: 2px solid #123f7b; padding-bottom: 7px; margin-bottom: 14px; }
.ec-sub { font-size: 15px; color: #222; margin: 20px 0 10px; padding-left: 9px; border-left: 4px solid #123f7b; line-height: 1.35; }
/* キャンペーン帯とヒーロー */
.ec-campaign { background: linear-gradient(90deg, #c8102e, #e5533a); color: #fff; font-weight: 700; font-size: 13.5px; text-align: center; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; letter-spacing: .03em; }
.ec-hero { background: linear-gradient(120deg, #123f7b 55%, #2f6db3); color: #eaf2fd; border-radius: 10px; padding: 26px 24px; margin-bottom: 6px; box-shadow: 0 3px 10px rgba(18,63,123,.25); position: relative; overflow: hidden; }
.ec-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,63,123,.90) 42%, rgba(18,63,123,.28) 78%, rgba(18,63,123,.08)); }
.ec-hero > *:not(.ec-hero-img) { position: relative; z-index: 1; }
.ec-hero-big { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: .02em; }
.ec-hero-sub { font-size: 13px; opacity: .92; }
.ec-hero-btn { display: inline-block; margin-top: 14px; background: #ff8a00; color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 22px; border-radius: 99px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ec-hero-btn:hover { background: #ffa02e; }
/* 商品カード */
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.ec-card { border: 1px solid #e3e7ee; border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.ec-card:hover { box-shadow: 0 5px 16px rgba(20,40,80,.16); transform: translateY(-2px); }
.ec-pimg { aspect-ratio: 4 / 3; background: #f2f4f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ec-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-pimg-art span { font-weight: 800; letter-spacing: .28em; font-size: 15px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.25); padding-left: .28em; }
.ec-art-audio { background: linear-gradient(135deg, #23272f, #4a5160); }
.ec-art-kettle { background: linear-gradient(135deg, #7d94b8, #b9c9de); }
.ec-art-daily { background: linear-gradient(135deg, #2e9e5b, #8fd0a8); }
.ec-art-daily2 { background: linear-gradient(135deg, #3a9bb5, #93d3e2); }
.ec-art-light { background: linear-gradient(135deg, #e8a13a, #f6cf7d); }
.ec-pimg-s { aspect-ratio: auto; width: 76px; height: 60px; flex: none; border-radius: 6px; }
.ec-pimg-s span { font-size: 9px; }
.ec-pimg-s img { border-radius: 6px; }
.ec-card-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.ec-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.ec-badge { font-size: 10px; font-weight: 700; color: #fff; border-radius: 3px; padding: 1px 6px; line-height: 1.6; }
.ec-badge.sale { background: #e60012; }
.ec-badge.ship { background: #2e9e5b; }
.ec-badge.stock { background: #123f7b; }
.ec-badge.fresh { background: #3a9bb5; }
.ec-badge.ltd { background: #b8860b; }
.ec-pname { font-size: 12.5px; line-height: 1.5; color: #222; }
.ec-stars { color: #f39800; font-size: 12px; letter-spacing: 1px; }
.ec-stars-n { color: #1a56c4; font-size: 11px; letter-spacing: 0; }
.ec-price { color: #cc0000; font-size: 12px; margin-top: 2px; }
.ec-price-num { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.ec-price-tax { color: #666; font-size: 10.5px; }
.ec-price-old { color: #999; text-decoration: line-through; font-size: 11.5px; }
.ec-pt { color: #b8860b; font-size: 11px; }
/* 閲覧履歴 */
.ec-history { display: flex; gap: 12px; flex-wrap: wrap; }
.ec-hist { width: 168px; border: 1px solid #e3e7ee; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.ec-hist .ec-pimg-s { width: 100%; height: 84px; }
.ec-hist-name { font-size: 11.5px; line-height: 1.45; color: #333; }
.ec-hist-price { color: #cc0000; font-weight: 700; font-size: 13px; }
/* お知らせ・汎用リスト */
.ec-list { list-style: none; line-height: 2; }
.ec-list li::before { content: "・"; color: #9db4d4; }
.ec-news li { border-bottom: 1px dotted #e0e4ea; padding: 2px 0; }
.ec-date { color: #999; font-size: 11.5px; margin-right: 8px; }
.ec-info { margin-top: 18px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 2px; font-size: 12px; color: #666; }
/* 表 */
.ec-table { border-collapse: collapse; width: 100%; font-size: 12.5px; background: #fff; }
.ec-table td, .ec-table th { border: 1px solid #dde3ec; padding: 7px 9px; text-align: left; vertical-align: top; }
.ec-table th { background: #f2f6fc; color: #123f7b; }
.ec-table tr td:first-child { background: #fafcfe; color: #555; width: 150px; }
.ec-bill tr td:first-child { background: #fff; color: #333; width: auto; }
.ec-bill-row td { background: #fafcfe !important; text-align: right; }
.ec-bill-row td:last-child { text-align: right; }
.ec-bill-total td { background: #fff4f2 !important; font-weight: 800; color: #cc0000; font-size: 14px; text-align: right; }
.ec-bill-total td:last-child { font-size: 16px; }
/* 会員カードとメニュー */
.ec-member { background: linear-gradient(120deg, #123f7b, #2f6db3); color: #fff; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 3px 10px rgba(18,63,123,.25); }
.ec-member-name { font-size: 18px; font-weight: 800; }
.ec-member-meta { font-size: 12px; opacity: .9; margin-top: 2px; }
.ec-member-pt { margin-left: auto; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 16px; text-align: center; font-size: 11.5px; }
.ec-member-pt b { font-size: 22px; margin: 0 3px; }
.ec-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ec-menu-card { border: 1px solid #dde3ec; border-radius: 8px; padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; background: #fff; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.ec-body a.ec-menu-card { text-decoration: none; color: #222; }
.ec-menu-card b { color: #123f7b; font-size: 13.5px; }
.ec-menu-card span { color: #888; font-size: 11.5px; }
.ec-menu-card:hover { border-color: #123f7b; box-shadow: 0 4px 12px rgba(20,40,80,.14); }
/* 注文カードと配送ステップ */
.ec-order { border: 1px solid #dde3ec; border-radius: 10px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,40,80,.06); }
.ec-order-head { background: #f2f6fc; padding: 8px 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #555; border-bottom: 1px solid #e3e9f2; }
.ec-order-total { font-weight: 700; color: #222; }
.ec-chip { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 10px; color: #fff; }
.ec-chip.ship { background: #1a56c4; }
.ec-chip.done { background: #8a94a6; }
.ec-order-body { display: flex; gap: 13px; padding: 12px 14px; align-items: center; }
.ec-order-main { flex: 1; min-width: 0; }
.ec-order-item { font-weight: 700; font-size: 13.5px; margin-bottom: 7px; }
.ec-btn-s { border: 1px solid #123f7b; color: #123f7b !important; border-radius: 6px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap; background: #fff; box-shadow: 0 1px 2px rgba(20,40,80,.15); }
.ec-btn-s:hover { background: #eef4fd; }
.ec-steps { display: flex; align-items: flex-start; max-width: 460px; }
.ec-steps span { flex: 1; text-align: center; font-size: 10.5px; color: #aab4c2; position: relative; padding-top: 13px; line-height: 1.4; }
.ec-steps span::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: #d5dce6; z-index: 1; }
.ec-steps span::after { content: ""; position: absolute; top: 4px; left: calc(-50% + 6px); right: calc(50% + 6px); height: 2px; background: #d5dce6; }
.ec-steps span:first-child::after { display: none; }
.ec-steps span.on { color: #123f7b; font-weight: 600; }
.ec-steps span.on::before { background: #123f7b; }
.ec-steps span.on::after { background: #123f7b; }
.ec-steps span.now::before { background: #ff8a00; box-shadow: 0 0 0 3px rgba(255,138,0,.25); }
.ec-steps-l { max-width: 560px; margin: 4px 0 6px; }
.ec-status-banner { display: flex; align-items: center; gap: 10px; background: #eef4fd; border: 1px solid #cfdff5; border-radius: 8px; padding: 10px 14px; font-weight: 600; margin-bottom: 12px; }
/* 2カラムの情報ブロック */
.ec-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.ec-block { border: 1px solid #e3e7ee; border-radius: 8px; padding: 12px 14px; background: #fcfdff; margin-top: 14px; }
.ec-cols .ec-block { margin-top: 0; }
.ec-block h4 { font-size: 13px; color: #123f7b; margin-bottom: 5px; }
.ec-block p { font-size: 12.5px; line-height: 1.8; }
/* 配送追跡タイムライン */
.ec-timeline { margin: 6px 0 16px 6px; }
.ec-tl-item { display: flex; gap: 12px; position: relative; padding: 0 0 16px 0; }
.ec-tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: #d5dce6; }
.ec-tl-item:last-child::before { display: none; }
.ec-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: #123f7b; flex: none; margin-top: 4px; position: relative; z-index: 1; }
.ec-tl-item.todo .ec-tl-dot { background: #d5dce6; }
.ec-tl-item.now .ec-tl-dot { background: #ff8a00; box-shadow: 0 0 0 4px rgba(255,138,0,.22); }
.ec-tl-item b { font-size: 13.5px; display: block; }
.ec-tl-item.todo b { color: #aab4c2; }
.ec-tl-time { font-size: 11.5px; color: #888; }
/* 領収書 */
.ec-receipt { max-width: 520px; margin: 8px auto 14px; background: #fff; border: 1px solid #d8dce3; box-shadow: 0 4px 16px rgba(20,30,50,.12); padding: 26px 30px 22px; position: relative; }
.ec-receipt::before, .ec-receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, #123f7b 0 14px, #fff 14px 20px); opacity: .55; }
.ec-receipt::before { top: 0; }
.ec-receipt::after { bottom: 0; }
.ec-receipt-head { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: .3em; padding-left: .3em; color: #222; border-bottom: 3px double #999; padding-bottom: 10px; }
.ec-receipt-meta { text-align: right; font-size: 11.5px; color: #666; margin-top: 8px; }
.ec-receipt-name { font-size: 16px; font-weight: 700; border-bottom: 1px solid #bbb; display: inline-block; padding: 2px 14px 2px 2px; margin-top: 10px; }
.ec-receipt-amt { font-size: 23px; font-weight: 800; text-align: center; margin: 16px 0 10px; letter-spacing: .03em; }
.ec-receipt-but { font-size: 12.5px; line-height: 1.8; }
.ec-receipt-foot { margin-top: 16px; font-size: 12px; line-height: 1.8; text-align: right; color: #444; }
/* パネル・フォーム */
.ec-panel { border: 1px solid #e3e7ee; border-radius: 10px; padding: 16px 18px; background: #fff; box-shadow: 0 1px 3px rgba(20,40,80,.06); margin-bottom: 14px; }
.ec-note { font-size: 11.5px; color: #999; margin-top: 8px; line-height: 1.7; }
.ec-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.ec-form label { font-size: 12.5px; color: #555; }
.ec-form input { padding: 8px 10px; border: 1px solid #c4ccd8; border-radius: 6px; font-size: 13px; margin-left: 4px; }
.ec-form input:focus { border-color: #1a56c4; outline: 2px solid rgba(26,86,196,.2); }
.ec-form button { padding: 8px 18px; border: 1px solid #123f7b; background: linear-gradient(#1a56c4, #123f7b); color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; box-shadow: 0 2px 5px rgba(18,63,123,.3); }
.ec-form button:hover { filter: brightness(1.12); }
.ec-form button.ec-btn-danger { background: linear-gradient(#d33, #b00); border-color: #900; box-shadow: 0 2px 5px rgba(160,0,0,.3); }
.ec-error { color: #c0392b; font-size: 12.5px; width: 100%; font-weight: 600; }
/* 受取予定の掲示ボード */
.ec-board { background: #fdf6e3; border: 1px solid #e8d9a8; border-radius: 6px; padding: 10px 12px; box-shadow: inset 0 0 0 3px #fffdf4, 0 2px 6px rgba(120,90,10,.12); }
.ec-board .ec-table { background: transparent; }
.ec-board .ec-table td, .ec-board .ec-table th { border-color: #e8d9a8; background: transparent !important; }
.ec-board .ec-table tr td:first-child { width: auto; }
/* クーポン */
.ec-coupon { display: flex; border: 1px solid #f0d48a; border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: #fffdf4; max-width: 560px; }
.ec-coupon-stub { background: linear-gradient(160deg, #f39800, #e56b00); color: #fff; font-weight: 800; font-size: 19px; text-align: center; padding: 12px 16px; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; }
.ec-coupon-stub span { font-size: 11px; letter-spacing: .2em; }
.ec-coupon-main { padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; border-left: 2px dashed #f0d48a; }
.ec-coupon-main b { font-size: 13px; }
.ec-coupon-main span { font-size: 11.5px; color: #888; }
/* フッター */
.ec-foot { background: #f4f6f9; border-top: 1px solid #e0e4ea; padding: 20px 20px 14px; font-size: 11.5px; color: #777; }
.ec-foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ec-foot-col h4 { font-size: 12px; color: #444; margin-bottom: 7px; }
.ec-foot-col .ec-fl { display: block; line-height: 2; color: #777; }
.ec-foot-col .ec-fl:hover { color: #1a56c4; }
.ec-foot-base { border-top: 1px solid #e0e4ea; padding-top: 10px; text-align: center; color: #999; }
/* 狭い幅（スマートフォン） */
@media (max-width: 640px) {
  .ec-head { gap: 10px; padding: 10px 12px 8px; }
  .ec-topbar, .ec-body { padding-left: 12px; padding-right: 12px; }
  .ec-nav { padding: 0 8px; }
  .ec-nav-r { margin-left: 0; }
  .ec-hero { padding: 20px 16px; }
  .ec-hero-big { font-size: 21px; }
  .ec-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .ec-order-body { flex-wrap: wrap; }
  .ec-table tr td:first-child { width: 104px; }
  .ec-receipt { padding: 20px 16px 18px; }
  .ec-member-pt { margin-left: 0; }
}

/* ===== 第30報：ブラッシュアップ（メモ小窓／称号／差分行／ヒント／コレクション／ムービーのスキップ） ===== */
/* 調査メモは非モーダルの小窓：ステージ右上に浮かせ、窓の外はクリックを通す
   （後ろのブラウザ等をそのまま操作できる）。窓本体だけが操作を受ける */
#scr-memo {
  position: absolute; top: 52px; right: 16px; bottom: auto; left: auto;
  z-index: 30; flex: none; width: min(440px, 94vw); padding: 0; pointer-events: none;
}
#scr-memo .memo-win {
  pointer-events: auto; width: 100%; height: auto; max-height: calc(100dvh - 120px);
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
}
.memo-num { font-weight: 700; color: #7a5b12; background: rgba(232,163,61,.14); padding: 0 1px; border-radius: 2px; }
/* ランキングの称号マーク（痕跡コンプリート・控えめに小さく） */
.rank-row .r-title { color: #b8860b; font-size: 10px; margin-left: 5px; vertical-align: 2px; }
/* 精算ニュースの差分行 */
.news-extra { border-top: 1px dashed #d8d2c0; padding-top: 8px; color: #555; }
/* 初見ヒント：ブラウザの隅に小さく（下部の操作列に重ならない高さ） */
.browser-win { position: relative; }
.first-hint {
  position: absolute; right: 14px; bottom: 116px; z-index: 8; max-width: 300px;
  background: rgba(255,251,230,.97); border: 1px solid #d9c27a; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: 9px 11px;
  font-size: 12px; line-height: 1.7; color: #5c4a08;
}
/* ムービーのスキップボタン（右下・控えめ） */
.movie-skip {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  font: inherit; font-size: 13px; padding: 7px 16px; cursor: pointer;
  background: rgba(30,30,30,.75); color: #eee; border: 1px solid rgba(255,255,255,.4); border-radius: 99px;
}
.movie-skip:hover { background: rgba(60,60,60,.85); }
/* 裏画廊コレクション */
.collection-list { font-size: 13px; line-height: 1.8; }
.collection-row { padding: 7px 0; border-bottom: 1px solid #e6e2d4; display: flex; flex-direction: column; }
.collection-name { font-weight: 600; }
.collection-special { font-size: 10.5px; color: #8a2f2f; border: 1px solid #d9a7a3; border-radius: 2px; padding: 0 5px; margin-left: 7px; background: #fdf1f0; }
.collection-meta { font-size: 11.5px; color: var(--ink2); }
.collection-actions { margin-top: 14px; text-align: right; }
/* 回転表示では見かけの高さが物理幅ぶんなので、メモ小窓もそれに合わせる */
@media (orientation: portrait) {
  #scr-memo { width: min(440px, 94svh); top: 46px; right: 10px; }
  #scr-memo .memo-win { width: 100%; max-height: calc(100vw - 110px); }
  .first-hint { bottom: 102px; }
}

/* ===== 第52報：調査メモをデスクトップのファイルとして開く独立ウィンドウ =====
   デスクトップの「調査メモ.txt」アイコンからは、浮動小窓ではなく、
   コレクション等と同じ作法の独立ウィンドウ（ステージ中央に置かれ、
   他の画面とは排他）で開く。ゲーム内（標的11の鍵画面など）から開く
   場合は従来どおり上の浮動小窓のまま。中身は同じ #memoList の共用描画 */
#scr-memo.memo-windowed {
  position: relative; top: auto; right: auto; bottom: auto; left: auto;
  z-index: 10; flex: 1; width: auto; padding: 14px; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
}
#scr-memo.memo-windowed .memo-win {
  width: min(720px, 97vw); height: 100%; max-height: calc(100dvh - 72px);
}
@media (orientation: portrait) {
  #scr-memo.memo-windowed { width: auto; top: auto; right: auto; padding: 10px; }
  #scr-memo.memo-windowed .memo-win { width: min(720px, 97svh); max-height: calc(100vw - 72px); }
}

/* ===== 第36報：自由メモ帳（非モーダルの小窓） =====
   調査メモ（右上）とは反対の左上に浮かせ、窓の外はクリックを通す。
   開いたまま後ろのサイトを見て、IDやパスワードを入力できる */
#scr-notepad {
  position: absolute; top: 52px; left: 16px; bottom: auto; right: auto;
  z-index: 30; flex: none; width: min(380px, 94vw); padding: 0; pointer-events: none;
}
#scr-notepad .notepad-win {
  pointer-events: auto; width: 100%; height: auto; max-height: calc(100dvh - 120px);
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
}
.notepad-body { background: #fff; padding: 10px 12px; }
#notepadText {
  width: 100%; height: 200px; resize: none; display: block;
  border: 1px solid var(--line-soft); background: #fffef7; padding: 8px 9px;
  font-size: 13px; line-height: 1.7; color: var(--ink);
}
.notepad-note { font-size: 11px; color: var(--ink2); margin-top: 6px; text-align: right; }
@media (orientation: portrait) {
  #scr-notepad { width: min(380px, 94svh); top: 46px; left: 10px; }
  #scr-notepad .notepad-win { width: 100%; max-height: calc(100vw - 110px); }
}

/* ===== 標的9：ソーシャルゲーム（スマホ画面＋通信キャプチャ） =====
   婚活アプリ（.kk-）と同じスマホ枠の流儀だが、ゲームらしく濃色＋発光系の
   バナーで差別化する。痕跡の名前は通常文字のまま（.clue-link の流儀）。 */
.gm-wrap { display: flex; gap: 14px; align-items: flex-start; background: #171a26; padding: 12px; }
.gm-phone { width: 330px; flex: none; background: #10131d; border: 2px solid #3a4160; border-radius: 18px; overflow: hidden; font-size: 13px; color: #dfe4f2; }
.gm-apphead { background: linear-gradient(90deg, #3b2d6b, #6b2d5c); color: #fff; padding: 8px 12px; font-weight: bold; }
.gm-apphead-sub { font-weight: normal; font-size: 11px; opacity: 0.85; }
.gm-test-badge { display: inline-block; margin-left: 8px; background: #c0392b; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.gm-title { padding: 8px 12px 0; font-weight: bold; font-size: 14px; color: #fff; }
.gm-body { padding: 8px 12px 12px; min-height: 260px; line-height: 1.7; }
.gm-body a { color: #9fd0ff; cursor: pointer; text-decoration: underline; }
.gm-tabs { display: flex; border-top: 1px solid #2a3049; background: #0c0f16; }
.gm-tabs a { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; color: #aeb8d4; cursor: pointer; border-right: 1px solid #1d2233; }
.gm-tabs a:last-child { border-right: none; }
.gm-hero { background: linear-gradient(160deg, #2c3e70, #5c2d6b 60%, #8a2f5c); border-radius: 10px; padding: 18px 14px; margin-top: 4px; color: #fff; position: relative; overflow: hidden; }
.gm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-hero-title, .gm-hero-sub { position: relative; z-index: 1; }
.gm-hero-title { font-size: 21px; font-weight: 800; letter-spacing: .06em; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.gm-hero-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.gm-player { display: flex; justify-content: space-between; align-items: center; background: #1a1f30; border: 1px solid #2e3550; border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.gm-player-name { font-weight: bold; color: #fff; }
.gm-rank { font-size: 11px; color: #ffd479; font-weight: normal; }
.gm-player-meta { font-size: 11.5px; color: #93a0c0; }
.gm-gem { font-weight: bold; color: #9fe8ff; }
.gm-banner { border-radius: 10px; padding: 10px 12px; margin-top: 10px; color: #fff; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.gm-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-banner b, .gm-banner span { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.gm-banner span { font-size: 11.5px; opacity: 0.92; }
.gm-banner-gacha { background: linear-gradient(120deg, #7a4b12, #c98a1b); }
.gm-banner-event { background: linear-gradient(120deg, #14532d, #1f7a4d); }
.gm-sub { font-size: 13.5px; color: #fff; margin: 14px 0 6px; border-left: 3px solid #ffd479; padding-left: 7px; }
.gm-news { margin: 6px 0 0 2px; list-style: none; line-height: 2; font-size: 12.5px; }
.gm-date { color: #8fa3bb; font-size: 11.5px; margin-right: 8px; }
.gm-note { color: #8fa3bb; font-size: 12px; margin-top: 8px; }
.gm-table { border-collapse: collapse; margin-top: 8px; width: 100%; }
.gm-table td, .gm-table th { border: 1px solid #2e3550; padding: 5px 8px; font-size: 12px; text-align: left; }
.gm-table th { background: #1a1f30; color: #c8d2ea; }
.gm-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.gm-form input { padding: 6px 8px; border: 1px solid #3a4160; border-radius: 6px; font-size: 13px; background: #0c0f16; color: #eef; }
.gm-form button { padding: 7px 14px; border: 1px solid #6b5ce7; background: #4a3fb5; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.gm-form .gm-btn-danger { border-color: #a33; background: #8a2f2f; }
.gm-ops-hit { background: #2a1414; border: 1px solid #a33; border-radius: 8px; padding: 8px 10px; margin-top: 10px; color: #ffb3ab; }
.gm-cap { flex: 1; background: #141a24; color: #cfd8e3; border-radius: 10px; padding: 10px 12px; font-size: 12px; min-height: 200px; }
.gm-cap-head { font-weight: bold; color: #9fd0ff; margin-bottom: 8px; }
.gm-cap-row { display: block; padding: 5px 6px; border-radius: 4px; cursor: pointer; color: #cfd8e3; }
.gm-cap-row:hover { background: #232c3d; }
.gm-method { color: #ffd479; font-weight: bold; }
.gm-status { color: #8be08b; }
.gm-json { font-family: monospace; white-space: pre-wrap; background: #0d1119; border-radius: 6px; padding: 8px; margin-top: 8px; line-height: 1.6; }
.gm-cap .gm-note { color: #8fa3bb; }
.gm-cap a { color: #9fd0ff; cursor: pointer; }

/* ===== 標的10：大手プラットフォーム（ひかりストリーム＋委託先デモ） ===== */
.pf-site { color: #222; background: #fff; font-size: 13px; line-height: 1.6; }
.pf-head { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid #e5e7eb; }
.pf-logo { font-size: 19px; font-weight: 800; color: #0f7ab5; cursor: pointer; letter-spacing: .03em; }
.pf-logo small { display: block; font-size: 9px; font-weight: 400; color: #9db8c6; letter-spacing: .16em; }
.pf-search { flex: 1; max-width: 420px; display: flex; border: 1px solid #cfd8de; border-radius: 99px; overflow: hidden; }
.pf-search input { flex: 1; border: none; padding: 7px 14px; font-size: 13px; outline: none; }
.pf-search-btn { background: #eef4f7; padding: 7px 16px; color: #567; font-size: 12.5px; }
.pf-head-r { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #456; }
.pf-main { display: flex; align-items: stretch; }
.pf-side { width: 150px; flex: none; border-right: 1px solid #eef1f3; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.pf-side a { color: #345; cursor: pointer; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; }
.pf-side a:hover { background: #f2f7fa; }
.pf-side-note { margin-top: 14px; font-size: 11px; color: #9aa; line-height: 1.7; }
.pf-body { flex: 1; padding: 16px 18px 20px; min-width: 0; }
.pf-body a { color: #0f7ab5; cursor: pointer; text-decoration: underline; }
.pf-h { font-size: 17px; color: #123c52; border-bottom: 2px solid #dcebf2; padding-bottom: 6px; margin-bottom: 12px; }
.pf-sub { font-size: 14px; color: #123c52; margin: 16px 0 8px; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-chip { background: #eef1f3; border-radius: 99px; padding: 3px 12px; font-size: 12px; color: #456; }
.pf-chip.on { background: #123c52; color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pf-card { cursor: pointer; }
.pf-thumb { aspect-ratio: 16 / 9; border-radius: 8px; display: flex; align-items: flex-end; padding: 6px 8px; color: rgba(255,255,255,.85); font-size: 10px; letter-spacing: .18em; position: relative; overflow: hidden; }
.pf-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb span { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.pf-channel-ava img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pf-art-lecture { background: linear-gradient(140deg, #33506b, #6b8cae); }
.pf-art-town { background: linear-gradient(140deg, #7a5c2e, #c2a15a); }
.pf-art-game { background: linear-gradient(140deg, #3b2d6b, #8a5cff); }
.pf-art-cook { background: linear-gradient(140deg, #8a4a2f, #d98d5f); }
.pf-art-car { background: linear-gradient(140deg, #37474f, #78909c); }
.pf-art-trip { background: linear-gradient(140deg, #2e6b5e, #63a68f); }
.pf-art-talk { background: linear-gradient(140deg, #5c4a7a, #9a86c2); }
.pf-art-news { background: linear-gradient(140deg, #6b2d2d, #b0563f); }
.pf-card-title { font-weight: 600; font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.pf-card-meta { font-size: 11.5px; color: #789; margin-top: 2px; }
.pf-channel-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pf-channel-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #33506b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; }
.pf-channel-name { font-size: 16px; font-weight: 700; }
.pf-info { margin-top: 16px; border-top: 1px solid #eee; padding-top: 10px; font-size: 12px; color: #678; }
.pf-list { list-style: none; line-height: 2; }
.pf-list li::before { content: "・"; color: #9db8c6; }
.pf-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.pf-table td, .pf-table th { border: 1px solid #dde5ea; padding: 6px 8px; text-align: left; }
.pf-table td:first-child { background: #f7fafc; color: #567; width: 180px; }
.pf-note { font-size: 11.5px; color: #999; margin-top: 8px; line-height: 1.7; }
.pf-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.pf-form input, .pf-form select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.pf-form button { padding: 7px 14px; border: 1px solid #0f7ab5; background: #0f7ab5; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.pf-form .pf-btn-danger { border-color: #a33; background: #a33; }
.pf-btn-danger { padding: 7px 14px; border: 1px solid #a33; background: #a33; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.pf-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-kpi { flex: 1; min-width: 150px; background: #f7fafc; border: 1px solid #e2ebf0; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-kpi span { font-size: 11px; color: #789; }
.pf-kpi b { font-size: 17px; color: #123c52; }
.pf-linked { background: #fdf3e3; border: 1px solid #e0b96a; border-radius: 8px; padding: 8px 10px; margin-top: 10px; color: #7a5c12; font-weight: 600; }
.pf-demo-head { background: #f4f6f8; border-bottom: 3px solid #546e7a; }
.pf-demo .pf-logo { color: #455a64; }
.pf-demo .pf-logo small { color: #90a4ae; }
.pf-demo-nav { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.pf-demo-nav a { color: #1a56c4; cursor: pointer; text-decoration: underline; }
.pf-foot { border-top: 1px solid #eee; padding: 10px 18px; font-size: 11.5px; color: #999; }
/* 第42報：公開サイトの厚み（ページ増設・フッターのリンク群・再生ページ等） */
.pf-art-music { background: linear-gradient(140deg, #274156, #5b84a8); }
.pf-art-pet { background: linear-gradient(140deg, #7a4a56, #c28a97); }
.pf-art-diy { background: linear-gradient(140deg, #5d4a2a, #a8894f); }
.pf-art-fish { background: linear-gradient(140deg, #1f4d5a, #4f93a8); }
.pf-side-head { margin-top: 12px; padding: 4px 8px 2px; font-size: 11px; font-weight: 700; color: #9db8c6; letter-spacing: .06em; }
.pf-chip { cursor: pointer; }
a.pf-chip { text-decoration: none !important; }
.pf-dummy { cursor: pointer; }
.pf-thumb .pf-dur { position: absolute; right: 6px; bottom: 6px; left: auto; background: rgba(0,0,0,.72); color: #fff; padding: 0 5px; border-radius: 3px; font-size: 10px; letter-spacing: .02em; text-shadow: none; }
.pf-card a { text-decoration: none !important; color: inherit !important; }
.pf-card-title a { color: #222 !important; }
.pf-card-meta a { color: #789 !important; }
.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; }
.pf-sec-head .pf-sub { margin-top: 0; }
.pf-sec-head a { font-size: 12px; white-space: nowrap; }
.pf-rank-list { display: flex; flex-direction: column; }
.pf-rank-row { display: flex; gap: 10px; align-items: center; padding: 7px 6px; border-bottom: 1px solid #f0f3f5; cursor: pointer; text-decoration: none !important; color: inherit !important; }
.pf-rank-row:hover { background: #f7fafc; }
.pf-rank-num { font-size: 19px; font-weight: 800; color: #0f7ab5; width: 26px; flex: none; text-align: center; }
.pf-rank-thumb { width: 132px; flex: none; }
.pf-rank-thumb .pf-thumb { width: 100%; }
.pf-rank-body { min-width: 0; display: flex; flex-direction: column; }
.pf-rank-title { font-weight: 600; font-size: 12.5px; line-height: 1.5; }
.pf-live-badge { position: absolute !important; top: 6px; left: 6px; background: #c0392b; color: #fff; padding: 0 6px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-shadow: none !important; }
.pf-shorts { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.pf-thumb-v { aspect-ratio: 9 / 16; }
.pf-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pf-cat-tile { display: block; border: 1px solid #e2ebf0; border-radius: 8px; padding: 10px 12px; background: #fcfdfe; color: #222 !important; text-decoration: none !important; cursor: pointer; }
.pf-cat-tile:hover { border-color: #9db8c6; box-shadow: 0 2px 8px rgba(15,60,82,.10); }
.pf-cat-tile b { display: block; color: #123c52; font-size: 13.5px; margin-bottom: 2px; }
.pf-cat-tile span { display: block; font-size: 11.5px; color: #789; line-height: 1.7; }
.pf-watch-wrap { display: flex; gap: 18px; align-items: flex-start; }
.pf-watch-main { flex: 1; min-width: 0; }
.pf-related { width: 264px; flex: none; }
.pf-related .pf-sub { margin-top: 0; }
.pf-player { aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pf-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-play { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; background: rgba(10,30,45,.62); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; padding-left: 5px; }
.pf-player .pf-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; padding: 0 6px; border-radius: 3px; font-size: 11px; }
.pf-watch-title { font-size: 16.5px; color: #123c52; margin: 12px 0 4px; line-height: 1.5; }
.pf-channel-row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.pf-ava-sm { width: 40px; height: 40px; font-size: 16px; }
.pf-channel-who { display: flex; flex-direction: column; min-width: 0; }
.pf-channel-who a { font-weight: 700; color: #123c52 !important; text-decoration: none !important; }
.pf-sub-btn { margin-left: auto; background: #123c52; color: #fff; border-radius: 99px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.pf-actions span { background: #eef1f3; border-radius: 99px; padding: 4px 12px; font-size: 12px; color: #456; cursor: pointer; }
.pf-desc { background: #f7fafc; border: 1px solid #e8eff3; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.pf-comment { display: flex; gap: 10px; margin: 10px 0; }
.pf-comment-ava { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #b9cfdd; color: #33506b; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pf-comment-body { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.7; }
.pf-comment-body b { font-size: 12px; color: #456; }
.pf-rel-row { display: flex; gap: 8px; padding: 6px 4px; cursor: pointer; text-decoration: none !important; color: inherit !important; border-radius: 6px; }
.pf-rel-row:hover { background: #f7fafc; }
.pf-rel-thumb { width: 132px; flex: none; }
.pf-rel-body { min-width: 0; display: flex; flex-direction: column; }
.pf-banner { height: 84px; border-radius: 8px; margin-bottom: 12px; position: relative; overflow: hidden; }
.pf-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-tabs { display: flex; gap: 16px; border-bottom: 1px solid #e8eff3; margin: 12px 0 4px; font-size: 12.5px; color: #678; }
.pf-tabs span { padding: 4px 2px 6px; cursor: pointer; }
.pf-tabs span.on { color: #123c52; font-weight: 700; border-bottom: 2px solid #123c52; }
.pf-post { border: 1px solid #e5ebee; border-radius: 8px; padding: 10px 12px; margin: 8px 0; line-height: 1.8; }
.pf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 6px; }
.pf-svc { border: 1px solid #e2ebf0; border-radius: 8px; padding: 10px 12px; background: #fcfdfe; }
.pf-svc b { display: block; color: #123c52; font-size: 13px; margin-bottom: 2px; }
.pf-svc span { font-size: 12px; line-height: 1.7; color: #456; }
.pf-steps { margin: 4px 0 4px 20px; line-height: 1.9; }
.pf-doc h4 { color: #123c52; margin: 14px 0 4px; font-size: 13px; }
.pf-doc p { line-height: 1.9; margin-bottom: 6px; }
.pf-table th { background: #f7fafc; color: #567; border: 1px solid #dde5ea; padding: 6px 8px; text-align: left; }
.pf-date { color: #999; font-size: 11.5px; margin-right: 10px; }
.pf-newslist { list-style: none; line-height: 2.1; }
.pf-newslist li { border-bottom: 1px dotted #e3ebef; }
.pf-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 4px 0 10px; }
.pf-foot-col b { display: block; color: #678; font-size: 12px; margin-bottom: 4px; }
.pf-foot-col a { display: block; color: #999 !important; text-decoration: none !important; cursor: pointer; line-height: 1.9; }
.pf-foot-col a:hover { text-decoration: underline !important; }
.pf-foot-base { border-top: 1px dotted #eee; padding-top: 8px; }
@media (max-width: 700px) {
  .pf-main { flex-direction: column; }
  .pf-side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid #eef1f3; }
  .pf-side-head { width: 100%; margin-top: 6px; }
  .pf-side-note { width: 100%; }
  .pf-watch-wrap { flex-direction: column; }
  .pf-related { width: auto; }
  .pf-cards { grid-template-columns: 1fr; }
  .pf-foot-cols { grid-template-columns: repeat(2, 1fr); }
  .pf-rank-thumb { width: 104px; }
  .pf-rel-thumb { width: 104px; }
}

/* ===== 標的11：医療連携データベース（堅い業務システム） ===== */
.md-site { color: #263238; background: #f7f8f7; font-size: 13px; line-height: 1.7; }
.md-head { background: #fff; border-bottom: 3px solid #33523f; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.md-logo { font-size: 17px; font-weight: 700; color: #33523f; cursor: pointer; letter-spacing: .04em; }
.md-logo small { display: block; font-size: 9.5px; font-weight: 400; color: #8aa392; letter-spacing: .1em; }
.md-nav { display: flex; gap: 14px; font-size: 12.5px; }
.md-nav a { color: #1a56c4; cursor: pointer; text-decoration: underline; }
.md-admin-btn { margin-left: auto; background: #8a2f2f; color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 6px rgba(138,47,47,.35); }
.md-body { padding: 16px 20px 20px; background: #fff; }
.md-body a { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.md-h { font-size: 16.5px; color: #33523f; border-bottom: 2px solid #dbe5dd; padding-bottom: 6px; margin-bottom: 12px; }
.md-sub { font-size: 14px; color: #33523f; margin: 16px 0 8px; }
.md-hero { background: linear-gradient(135deg, #eef4ee, #f4f7fb); border: 1px solid #dbe5dd; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.md-hero-big { font-size: 19px; font-weight: 800; color: #33523f; margin-bottom: 4px; }
.md-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.md-stat { flex: 1; min-width: 150px; border: 1px solid #e2e8e2; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: #fcfdfc; }
.md-stat span { font-size: 11px; color: #78917f; }
.md-stat b { font-size: 15px; color: #263238; }
.md-list { list-style: none; line-height: 2; }
.md-list li::before { content: "・"; color: #a9c4ae; }
.md-date { color: #999; font-size: 11.5px; margin-right: 8px; }
.md-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.md-table td, .md-table th { border: 1px solid #dde3dd; padding: 6px 8px; text-align: left; }
.md-table th { background: #f0f4f0; }
.md-table td:first-child { background: #f7faf7; color: #56705c; width: 170px; }
.md-table th:first-child { width: auto; }
.md-note { font-size: 11.5px; color: #999; margin-top: 8px; line-height: 1.7; }
.md-fine { font-size: 10.5px; color: #a5a5a5; margin-top: 10px; line-height: 1.6; }
.md-doc { border: 1px solid #e0e4e0; border-radius: 6px; padding: 6px 16px 14px; background: #fff; }
.md-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.md-form input { padding: 6px 8px; border: 1px solid #bbb; border-radius: 4px; font-size: 13px; }
.md-form button { padding: 7px 14px; border: 1px solid #33523f; background: #33523f; color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.md-form .md-btn-danger { border-color: #8a2f2f; background: #8a2f2f; }
.md-form .md-btn-sub { background: #fff; color: #33523f; }
.md-btn-danger { padding: 7px 14px; border: 1px solid #8a2f2f; background: #8a2f2f; color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.md-form.md-lock2 { flex-direction: column; align-items: flex-start; }
.md-error { color: #c0392b; font-size: 12.5px; width: 100%; }
.md-warn { background: #fdf6e0; border: 1px solid #e3cf8a; border-radius: 6px; padding: 8px 10px; margin-top: 10px; font-size: 12.5px; }
.md-admin-panel { border: 2px solid #8a2f2f; border-radius: 8px; padding: 14px 16px; background: #fdf6f6; }
.md-lock { border: 1px solid #d5dcd5; border-radius: 8px; padding: 4px 14px 12px; margin-top: 14px; background: #fbfcfb; }
.md-evidence { border: 1px solid #c9b458; border-radius: 8px; padding: 4px 14px 12px; margin-top: 14px; background: #fffdf2; line-height: 1.9; }
.md-test-head { background: #eef2ee; border-bottom: 3px solid #607d6b; }
.md-test .md-logo { color: #41584a; }
.md-foot { border-top: 1px solid #e5e5e5; padding: 10px 20px; font-size: 11.5px; color: #999; background: #fff; }
/* 第40報：公開サイトの作り込み（写真・リンク・ページの厚み） */
.md-utility { display: flex; gap: 14px; justify-content: flex-end; padding: 4px 20px; font-size: 11px; background: #33523f; }
.md-utility a { color: #dce8de !important; text-decoration: none !important; cursor: pointer; }
.md-utility a:hover { text-decoration: underline !important; }
.md-head { flex-wrap: wrap; }
.md-nav { flex-wrap: wrap; }
.md-body img { max-width: 100%; }
.md-dummy { cursor: pointer; }
.md-hero-photo { padding: 0; overflow: hidden; }
.md-hero-photo img { display: block; width: 100%; height: 250px; object-fit: cover; }
.md-hero-cap { padding: 14px 18px 16px; }
.md-wide-img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.md-more { margin-top: 6px; font-size: 12.5px; }
.md-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 6px; }
.md-card { display: block; border: 1px solid #e2e8e2; border-radius: 8px; overflow: hidden; background: #fcfdfc; color: #263238 !important; text-decoration: none !important; cursor: pointer; }
.md-card:hover { border-color: #a9c4ae; box-shadow: 0 2px 8px rgba(51,82,63,.12); }
.md-card img { display: block; width: 100%; height: 110px; object-fit: cover; }
.md-card b { display: block; padding: 8px 10px 2px; font-size: 13.5px; color: #33523f; }
.md-card span { display: block; padding: 0 10px 10px; font-size: 12px; line-height: 1.6; color: #5a6a5e; }
.md-photo-row { display: flex; gap: 16px; margin: 14px 0 6px; align-items: flex-start; }
.md-photo-row img { width: 300px; max-width: 45%; height: 190px; object-fit: cover; border-radius: 8px; flex: none; }
.md-photo-row > div { flex: 1; min-width: 0; }
.md-banners { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.md-banner { flex: 1; min-width: 220px; display: block; border: 1px solid #dbe5dd; border-radius: 8px; padding: 10px 14px; background: linear-gradient(135deg, #f2f7f2, #f7fafc); color: #263238 !important; text-decoration: none !important; cursor: pointer; }
.md-banner b { display: block; color: #33523f; font-size: 13.5px; }
.md-banner span { font-size: 12px; color: #5a6a5e; }
.md-newslist { list-style: none; line-height: 2.1; }
.md-newslist li { border-bottom: 1px dotted #e0e6e0; }
.md-tag { display: inline-block; font-size: 10.5px; color: #33523f; background: #eef4ee; border: 1px solid #cfddd1; border-radius: 3px; padding: 0 6px; margin-right: 8px; line-height: 1.7; }
.md-faq { margin-bottom: 6px; }
.md-faq dt { font-weight: 700; color: #33523f; margin-top: 12px; }
.md-faq dd { margin: 2px 0 0 0; line-height: 1.8; }
.md-steps { margin: 4px 0 4px 20px; line-height: 1.9; }
.md-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 6px 0 10px; }
.md-foot-col b { display: block; color: #56705c; font-size: 12px; margin-bottom: 4px; }
.md-foot-col a { display: block; color: #888 !important; text-decoration: none !important; cursor: pointer; line-height: 1.9; }
.md-foot-col a:hover { text-decoration: underline !important; }
.md-foot-addr span { display: block; line-height: 1.9; }
.md-foot-base { border-top: 1px dotted #e5e5e5; padding-top: 8px; }
@media (max-width: 700px) {
  .md-cards { grid-template-columns: 1fr; }
  .md-photo-row { flex-direction: column; }
  .md-photo-row img { max-width: 100%; width: 100%; }
  .md-foot-cols { grid-template-columns: repeat(2, 1fr); }
  .md-hero-photo img { height: 160px; }
  .md-utility { justify-content: flex-start; flex-wrap: wrap; }
}

/* ===== 特殊エンディング（第34報） ===== */
.r-note { font-size: 10.5px; color: #8a2f2f; margin-left: 4px; }
.shop-card.antique-special { border-color: #c9b458; background: #fffdf2; }

/* ===== 狭い幅での大きな数字対策（第39報） =====
   金額・件数は終盤ほど桁が大きくなる（例：名簿 28,267,108件／¥848,013,240、
   推定価値 ¥2,043,・・・）と、スマホ幅ではセルやパネルの幅に収まらず
   数字の途中が見切れていた。数字そのものはゲームの意味を持つので
   省略・短縮（億単位への丸め等）はせず、フォントサイズとレイアウトで収める。
   PC幅の見た目は変えないよう、狭い幅向けの調整はこのブロックに閉じ込める。
   あわせてベース規則側では、カウンタに min-width:0 と counter-line の
   flex-wrap、大数字への clamp() を入れてある（収まる幅では従来どおり）。 */
@media (max-width: 700px) {
  /* 抽出モニタ：カウンタ2枚（件数／推定価値）を縦積みにし、
     大きな数字にカラムの全幅を使わせる */
  .counters { flex-direction: column; }
  /* 精算ニュース：本文とサイドを縦積みにして内訳表に全幅を使わせ、
     表の文字とセル余白を落として全列を収める（横スクロールにはしない） */
  .settle-flex { flex-direction: column; }
  .settle-side { width: auto; border-left: none; padding-left: 0; }
  .news-body { padding: 12px 14px 16px; }
  .private-box { padding: 12px 10px; }
  .settle-table { font-size: 10.5px; }
  .settle-table th, .settle-table td { padding: 5px 6px; }
  /* ランキング：行を折り返し可能にし、大きな金額がはみ出さないようにする */
  .rank-row { flex-wrap: wrap; }
  .rank-row .r-meta { min-width: 0; }
  /* フォルダ画面：パネル群（現在の状況／記録 ― ランキング）を縦積みにし、
     各パネルに全幅を使わせる。横並びのまま押し潰されると、ランキング行の
     内訳が変な位置で折り返し、バッジが潰れて文字が縦に割れた（第41報） */
  .hub-body { flex-direction: column; }
  .hub-left { width: auto; flex: none; }
  .hub-right { flex: none; overflow-y: visible; }
  .ranking-list { max-height: none; }
  /* 活動の広がり：狭い幅では列数を落とし、自然な面で並べる（縦一列の帯にしない） */
  .map-grid { grid-template-columns: repeat(8, 1fr); }
  /* ラン終了画面：鑑定書カード（今夜の目玉）がはみ出して文字が切れ、明細が
     細い帯に押し潰された（第45報）。ボディを縦 flex にして並び順を
     数字パネル→明細→鑑定書→名前入力→ボタンの順に付け替え、鑑定書カードを
     明細の下へ全幅で積む。カード内の文章はカード幅の中で折り返させる */
  .runend-body { display: flex; flex-direction: column; padding: 14px 12px 18px; }
  .runend-figures { order: 1; }
  .runend-summary { order: 2; font-size: 13px; overflow-wrap: break-word; }
  #runEndSpotlight { order: 3; margin-top: 14px; }
  .runend-body .name-label { order: 4; }
  #btnShareImage { order: 5; }
  #btnRegister { order: 6; }
  #btnPostX { order: 7; }
  /* 大数字パネル：総額と流出件数を縦に積み、大きな数字は幅に合わせて縮める。
     オークション速報の上乗せ額のような10桁の金額もはみ出させない */
  .runend-fig { display: block; margin-right: 0; }
  .runend-fig + .runend-fig { margin-top: 8px; }
  .runend-total-num { font-size: clamp(24px, 8vw, 40px); }
  .runend-records-num { font-size: clamp(19px, 6vw, 27px); }
  /* 鑑定書カード：余白を詰め、鑑定額は幅に合わせて縮め、購入価格と倍率の
     注記は鑑定額の下の行に分ける。鑑定評・来歴・速報の行も折り返させる */
  .spotlight { padding: 12px 12px 10px; }
  .spotlight-name { font-size: 19px; overflow-wrap: break-word; }
  .spotlight-value { font-size: clamp(18px, 5.8vw, 26px); overflow-wrap: break-word; }
  .spotlight-mult { display: block; margin-left: 0; margin-top: 3px; }
  .spotlight-sub { overflow-wrap: break-word; }
  .appr-line, .appr-sub { overflow-wrap: break-word; }
  .auction-flash { overflow-wrap: break-word; }
}

/* ===== 第43報：ラン終了の演出（大数字・称号・今夜の目玉）と鑑定の遊び ===== */
.runend-figures { background: linear-gradient(160deg, #101820, #1d2c3d); color: #e6edf2; border: 2px solid #c9a227; border-radius: 6px; padding: 16px 20px 13px; margin-bottom: 14px; cursor: pointer; }
.runend-fig { display: inline-block; margin-right: 34px; vertical-align: bottom; }
.runend-fig-label { display: block; font-size: 11.5px; color: #9fb2c1; letter-spacing: .14em; margin-bottom: 2px; }
.runend-total-num { font-size: 40px; font-weight: 800; color: #ffd94d; font-variant-numeric: tabular-nums; line-height: 1.15; }
.runend-records-num { font-size: 27px; font-weight: 800; color: #f5d67b; font-variant-numeric: tabular-nums; line-height: 1.15; }
.runend-fig-unit { font-size: 14px; color: #9fb2c1; margin-left: 3px; }
.runend-rank { margin-top: 9px; font-size: 13.5px; color: #cfd8de; }
.runend-rank-name { font-weight: 800; color: #f5d67b; font-size: 18px; }
.runend-note { color: #e0a3a3; font-size: 12px; margin-left: 8px; }
.spotlight { border: 2px solid #c9a227; background: radial-gradient(ellipse at 50% 0%, #fdf6d8 0%, #fffdf2 55%, #f7ecd0 100%); border-radius: 6px; padding: 15px 20px 13px; margin-bottom: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.spotlight-head { font-size: 12px; letter-spacing: .3em; color: #8a6d1f; text-align: center; border-bottom: 1px solid #d9c98a; padding-bottom: 6px; margin-bottom: 9px; }
.spotlight-name { font-size: 22px; font-weight: 800; text-align: center; font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }
.spotlight-value { font-size: 26px; font-weight: 800; color: #8a6d1f; text-align: center; margin: 5px 0; font-variant-numeric: tabular-nums; }
.spotlight-mult { font-size: 13px; color: var(--ink2); font-weight: 400; margin-left: 8px; }
.spotlight-sub { font-size: 12.5px; color: var(--ink2); text-align: center; line-height: 1.7; }
.appr-line { padding: 6px 9px; border-left: 3px solid #ddd; margin: 5px 0; line-height: 1.6; }
.appr-line.appr-silver { border-left: 3px solid #a8b0b8; }
.appr-line.appr-gold { border: 1.5px solid #c9a227; background: #fffdf2; border-radius: 4px; }
.appr-line.appr-kokuhou { border: 2px solid #c9a227; background: #fff8dc; border-radius: 4px; }
.appr-line.appr-special { border: 1.5px solid #d9a7a3; background: #fdf6f5; border-radius: 4px; }
.appr-sub { font-size: 12px; color: var(--ink2); padding-left: 12px; line-height: 1.6; }
.appr-secret { color: #8a2f2f; }
.appr-fake { color: #b03a2e; font-weight: 600; }
.appr-fake-cleared { color: #2e6da4; }
.appr-auction, .auction-flash { color: #8a6d1f; font-weight: 600; }
.grade-chip { font-size: 10.5px; border-radius: 2px; padding: 0 5px; margin-left: 7px; border: 1px solid #999; color: #555; background: #f4f4f4; vertical-align: 2px; }
.grade-chip.grade-silver { border-color: #a8b0b8; color: #5a6672; background: #eef1f3; }
.grade-chip.grade-gold { border-color: #c9a227; color: #8a6d1f; background: #fff6d8; }
.grade-chip.grade-kokuhou { border-color: #a33327; color: #fff; background: #a33327; font-weight: 700; }
.collection-sub { font-size: 11.5px; color: var(--ink2); padding-left: 10px; line-height: 1.6; }
.collection-row.appr-gold { border: 1.5px solid #c9a227; background: #fffdf2; border-radius: 4px; padding: 7px 9px; }
.collection-row.appr-kokuhou { border: 2px solid #c9a227; background: #fff8dc; border-radius: 4px; padding: 7px 9px; }
.collection-blank { background: #20262c; color: #cfd4d8; border: 1.5px dashed #6b7680; border-radius: 4px; padding: 10px 12px; margin-top: 10px; }
.collection-blank .collection-meta { color: #9aa4ac; }
.collection-note { font-size: 10.5px; color: #e8c87a; border: 1px solid #8a6d1f; border-radius: 2px; padding: 0 5px; margin-left: 7px; }
