/* ==================================================================
   デザイン変更前の見た目に戻したあとも残す「機能のための見た目」（2026-10-13）。
   デザイン第1版（theme.css）・第2版（theme2.css）は読み込まず、元の見た目（style.css）に
   次のものだけを足す: オリジナルのアイコン・未確認の色付け・電脳仕入の専用設定と中央データ・セット本の検索中表示。
   ================================================================== */

/* ---------- オリジナルのアイコン（js/icons.js） ---------- */
.nav__item__icon .hs-ic { width: 22px; height: 22px; }
.nav__item__icon .ic-fill { opacity: .22; }
#module-top .tile-icon.hs-tile-ic {
  display: flex !important; align-items: center; justify-content: center; color: rgba(233,248,242,.95);
  -webkit-mask-image: none !important; mask-image: none !important; --hs-ic-bg: #334155;
}
#module-top .tile-icon.hs-tile-ic::before, #module-top .tile-icon.hs-tile-ic::after { content: none !important; display: none !important; }
#module-top .tile-icon.hs-tile-ic .hs-ic { width: 28px; height: 28px; }
#module-top .tile-icon.hs-tile-ic .ic-fill { opacity: .25; }

/* セット本仕入れの上のアイコン（名前つき） */
.ame-page .ame-topbar-icons { gap: 6px; flex-wrap: wrap; }
.ame-page .ame-topbar-icons .hs-ame-ic {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: auto; height: auto; min-width: 66px; padding: 6px 5px 4px; line-height: 1.1; text-decoration: none;
}
.ame-topbar-icons .hs-ame-ic .hs-ic { width: 24px; height: 24px; }
.ame-topbar-icons .hs-ame-ic .ic-fill { opacity: .22; }
.hs-ame-lbl { font-size: 10px; color: #555; white-space: nowrap; font-weight: 600; }
.ame-page .ame-topbar-icons .hs-ame-sold { color: #d2562f; }
.ame-page .ame-topbar-icons .hs-ame-new { color: #c98a0b; }
.ame-page .ame-topbar-icons .hs-ame-adap { color: #5b5fc7; }
.ame-page .ame-topbar-icons .hs-ame-faview { color: #d6455a; }
.ame-page .ame-topbar-icons .hs-ame-karitori { color: #0f7c72; }
.ame-page .ame-topbar-icons .hs-ame-searchlog { color: #47637a; }
.ame-page .ame-topbar-icons .hs-ame-kakari { color: #2e6f9e; }
@media (max-width: 720px) {
  .ame-page .ame-topbar-icons { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; }
  .ame-page .ame-topbar-icons .hs-ame-ic { width: 100%; min-width: 0; padding: 6px 0 4px; box-sizing: border-box; }
  .ame-topbar-icons .hs-ame-ic .hs-ic { width: 22px; height: 22px; }
  .hs-ame-lbl { font-size: 8.6px; letter-spacing: -.02em; }
}

/* ---------- まだ結果表示していないスキャン（未確認） ---------- */
.scan-unviewed > td { background: #fff4dd !important; }
.scan-unviewed > td:first-child { box-shadow: inset 4px 0 0 #d98a14; }
.p2j-qitem.scan-unviewed { background: #fff4dd; box-shadow: inset 4px 0 0 #d98a14; }
.unviewed-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 99px;
  background: #d98a14; color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; white-space: nowrap;
}
.unviewed-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ftPulse 1.4s ease-in-out infinite; }
@keyframes ftPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 720px) {
  .dn-queue-table tr.scan-unviewed { background: #fff4dd !important; border-color: #f1d49a !important; box-shadow: inset 4px 0 0 #d98a14; }
  .dn-queue-table tr.scan-unviewed > td { background: transparent !important; box-shadow: none !important; }
}
@media (prefers-reduced-motion: reduce) { .unviewed-badge::before, .dn-central__dot.is-on { animation: none; } }

/* ---------- 電脳仕入: 専用の設定欄（BO優先｜プロファイル） ---------- */
.dn-qc { position: relative; }
.dn-qc > summary { cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid #ddd; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dn-qc > summary::-webkit-details-marker { display: none; }
.dn-qc .qc-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 300px; max-width: 86vw; padding: 14px; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.dn-qc .qc-body .row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dn-qc .qc-body .label { min-width: 84px; font-weight: 700; font-size: 13px; }
.dn-qc .qc-body select { flex: 1; min-width: 0; font-size: 16px; padding: 6px 8px; border-radius: 8px; border: 1px solid #ccc; }
.dn-qc .qc-body input { width: 80px; font-size: 16px; padding: 6px 8px; border-radius: 8px; border: 1px solid #ccc; }
.dn-qc .qc-body hr { border: none; border-top: 1px solid #eee; margin: 8px 0 10px; }
.dn-qc .qc-body .actions { text-align: right; }
.dn-qc .qc-body .btn-save { padding: 8px 18px; border: 1px solid #0b5ed7; background: #0d6efd; color: #fff; border-radius: 8px; cursor: pointer; font-weight: 700; }
@media (max-width: 720px) { .dn-qc .qc-body { right: auto; left: 0; } }

/* 電脳仕入: 中央データの集まり具合 */
.dn-central { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e5ea; }
.dn-central__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dn-central__dot { width: 9px; height: 9px; border-radius: 50%; background: #b9c4c2; }
.dn-central__dot.is-on { background: #22a04b; box-shadow: 0 0 0 4px rgba(34,160,75,.2); animation: ftPulse 1.4s ease-in-out infinite; }
.dn-central__bar { height: 8px; margin: 8px 0 6px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.dn-central__bar > div { height: 100%; min-width: 2px; background: #22a04b; border-radius: 99px; }
.dn-central__nums { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: #6b7280; }
.dn-central__nums b { color: #1f2430; }
.dn-current[hidden], .dn-central[hidden] { display: none !important; }

/* ---------- セット本仕入れ: 検索中の表示・空欄のときの案内 ---------- */
.ame-page .is-searching { position: relative; pointer-events: none; opacity: .85; }
.ame-page .is-searching::after { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ftSpin .7s linear infinite; }
@keyframes ftSpin { to { transform: rotate(360deg); } }
.ame-page .ame-need-input { border-color: #d98a14 !important; box-shadow: 0 0 0 3px rgba(217,138,20,.25) !important; animation: ftShake .3s ease-in-out 2; }
@keyframes ftShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* DataBank の中央データ（2026-10-13） */
.db-central-table { margin-top: 12px; max-width: 640px; }
.db-central-table th { width: 160px; text-align: left; white-space: nowrap; }
.db-central-table td { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 720px) { .db-central-table th { width: 96px; white-space: normal; } .db-central-table { width: 100%; table-layout: fixed; } }

/* セット本仕入れ: 押した方のボタンが緑（主ボタンの色）になる（2026-10-14 ユーザー指示）。触れた瞬間に少し沈む。 */
.ame-page #ameActionRow button { transition: background-color .08s, color .08s, transform .08s; }
.ame-page #ameActionRow button.is-pressed, .ame-page #ameActionRow button:active { transform: scale(.97); }

/* 複数検索のスキャンデータ入力（2026-10-14 ユーザー指示）
   パソコン: 左にEAN/ISBNの入力欄（横幅1/3程度）、右にメモ・説明・大きな開始ボタン（上から順に）。
   スマホ: メモ → 説明 → 入力欄 → ボタン の縦並び。 */
.scan-entry { display: grid; grid-template-columns: minmax(280px, 34%) 1fr; grid-template-areas: "input memo" "input hint" "input action"; column-gap: 28px; row-gap: 4px; align-items: start; }
.scan-entry__memo { grid-area: memo; margin-top: 0 !important; max-width: 520px; }
.scan-entry__hint { grid-area: hint; margin: 4px 0 8px !important; }
.scan-entry__input { grid-area: input; width: 100%; min-height: 190px; box-sizing: border-box; }
.scan-entry__action { grid-area: action; align-self: end; }
#purchase-panel-search .scan-entry__action #purchase-scan-button { font-size: 20px; font-weight: 700; padding: 22px 44px; border-radius: 12px; min-width: 300px; margin: 0; }
@media (max-width: 720px) {
  .scan-entry { grid-template-columns: 1fr; grid-template-areas: "memo" "hint" "input" "action"; row-gap: 6px; }
  .scan-entry__memo { max-width: none; margin-top: 10px !important; }
  .scan-entry__input { min-height: 120px; }
  #purchase-panel-search .scan-entry__action #purchase-scan-button { width: 100%; min-width: 0; padding: 16px; font-size: 18px; margin-top: 6px; }
}

/* スマホの引っ張って更新（2026-10-14）。ブラウザ標準の引っ張り更新は止めて、こちらだけにする */
html, body { overscroll-behavior-y: contain; }
.ptr-bar {
  position: fixed; top: 0; left: 50%; z-index: 10000; transform: translate(-50%, -56px); opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 0 0 14px 14px;
  background: #fff; color: #1f2430; box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: 13px; font-weight: 700; pointer-events: none;
}
.ptr-bar .ptr-icon { display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; font-size: 16px; line-height: 0; }
.ptr-bar.is-ready { color: #0a7a3d; }
.ptr-bar.is-loading .ptr-icon { animation: ftSpin .7s linear infinite; }

/* スキャンデータ入力（パソコン）: メモの入力欄と「キューに登録して取得開始」を同じ長さに（2026-10-14） */
@media (min-width: 721px) {
  .scan-entry__memo { max-width: 380px; }
  #purchase-panel-search .scan-entry__action #purchase-scan-button { width: 380px; min-width: 0; max-width: 100%; padding-left: 12px; padding-right: 12px; }
}

/* スキャンデータ入力（パソコン）: 開始ボタンは2/3の大きさで、メモの入力欄の右端にそろえる（2026-10-14） */
@media (min-width: 721px) {
  .scan-entry__action { width: 380px; max-width: 100%; display: flex; justify-content: flex-end; }
  #purchase-panel-search .scan-entry__action #purchase-scan-button { width: 254px; font-size: 15px; padding: 15px 10px; border-radius: 10px; }
}

/* その場に出す小さなお知らせ（2026-10-14） */
.hs-toast { position: fixed; left: 50%; bottom: 28px; z-index: 10001; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 10px; background: #1f7a4d; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.hs-toast.is-ng { background: #c0392b; }
.hs-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 仕入れ判定プロファイル設定のスマホ表示（2026-10-14 ユーザー指示「スマホで見るとおかしいので調査・修正」）。
   PCの見た目は変えない。スマホでは「項目名」の下に入力欄を並べ、画面の右へはみ出さないようにする。
   ランク対応表は小さめの文字・入力欄で画面幅に収め、保存ボタンは右下に置く。 */
@media (max-width: 720px) {
  #purchase-judge-profiles .profile-block { padding: 10px; }
  #purchase-judge-profiles table:not(.compact-table),
  #purchase-judge-profiles table:not(.compact-table) tbody,
  #purchase-judge-profiles table:not(.compact-table) tr,
  #purchase-judge-profiles table:not(.compact-table) th,
  #purchase-judge-profiles table:not(.compact-table) td { display: block; width: auto; }
  #purchase-judge-profiles table:not(.compact-table) tr { padding: 6px 0; border-bottom: 1px solid var(--border); }
  #purchase-judge-profiles table:not(.compact-table) th { white-space: normal; font-weight: 700; padding: 0 0 4px; }
  #purchase-judge-profiles table:not(.compact-table) td { padding: 0; overflow-wrap: anywhere; }
  #purchase-judge-profiles td label { display: inline-block; margin: 2px 12px 2px 0; }
  #purchase-judge-profiles .inline { white-space: normal; margin: 2px 0; }
  #purchase-judge-profiles select { max-width: 100%; }
  #purchase-judge-profiles .profile-header input[type="text"] { width: 100% !important; max-width: 220px; }
  #purchase-judge-profiles .compact-table { font-size: 11px; table-layout: fixed; }
  #purchase-judge-profiles .compact-table th { white-space: normal; line-height: 1.25; padding: 2px 1px; }
  #purchase-judge-profiles .compact-table thead th:first-child,
  #purchase-judge-profiles .compact-table tbody th { width: 64px; text-align: left; }
  #purchase-judge-profiles .compact-table td { padding: 2px 1px; }
  #purchase-judge-profiles .compact-table input[type="number"] { width: 100% !important; min-width: 0; box-sizing: border-box; padding: 4px 2px; }
  #purchase-judge-profiles { padding-bottom: 64px; }
  #purchase-panel-judge-settings #purchase-judge-save-button { left: auto; right: 12px; width: auto; min-width: 120px; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
}

/* 仕入れ判定プロファイル設定「デフォルトに戻す」（2026-10-14） */
#purchase-judge-profiles .judge-default-btn { margin-left: 8px; padding: 3px 10px; font-size: 13px; }
@media (max-width: 720px) {
  #purchase-judge-profiles .judge-default-btn { display: block; margin: 8px 0 0; padding: 8px 12px; min-height: 0; }
}

/* 👮 かかりかん・かかりかんset のスマホ表示（2026-10-14 ユーザー指示「スマホのかかりかんを横スクロール無しで表示」）。
   PCは実機どおりの表のまま。スマホ（768px以下）では1冊ずつのカードにする:
   左に画像・右にタイトルと価格、その下に検索語＋4つのサイト、ASIN・在庫検索・取得日。 */
@media (max-width: 768px) {
  .ame-page .ame-kakari .tablewrap { overflow-x: visible; }
  .ame-page .ame-kakari table, .ame-page .ame-kakari tbody { display: block; min-width: 0; width: 100%; }
  .ame-page .ame-kakari tr:has(> th) { display: none; }
  .ame-page .ame-kakari tr[data-asin] {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px;
    border: 1px solid #ccc; border-radius: 6px; padding: 8px; margin-bottom: 10px; background: #fff;
  }
  .ame-page .ame-kakari tr[data-asin] > td { display: block; border: 0; padding: 0; min-width: 0; max-width: none; width: auto; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(1) img { max-width: 76px !important; height: auto; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(2) { grid-column: 2; grid-row: 1; padding: 0 !important; overflow-wrap: anywhere; }
  .ame-page .ame-kakari tr[data-asin] .icon-btns {
    position: static !important; margin: 8px 0 0 calc(-76px - 10px); flex-wrap: wrap; gap: 6px !important;
  }
  .ame-page .ame-kakari tr[data-asin] .icon-btns input { flex: 1 1 100%; width: auto !important; min-width: 0; box-sizing: border-box; }
  .ame-page .ame-kakari tr[data-asin] .icon-btns img { width: 36px; height: 36px; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(3) {
    grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed #ddd; text-align: left !important; white-space: normal;
  }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(3) > div:first-child { margin: 0 !important; }
  .ame-page .ame-kakari tr[data-asin] .cross-trigger img { width: 36px; height: 36px; display: inline-block !important; margin: 0 !important; }
  .ame-page .ame-kakari tr[data-asin] .cross-search { margin: 0; flex: 1 1 140px; min-width: 0; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(4) { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; color: #666; white-space: normal; }
  .ame-page .ame-kakari tr[data-asin] > td:nth-child(4)::before { content: "データ取得日: "; }
  .ame-page .ame-kakari tr:not([data-asin]) > td { display: block; border: 0; }
}

/* 仕入れの上部メニュー（2026-10-15 ユーザー指示）。
   PC: 全項目を1行（「仕入値」の前に区切り線）。折りたたみボタンは出さない。
   スマホ: 複数検索〜OCR仕入の5つを1列（1行）に並べ、残りは「仕入値・設定 ▼」の折りたたみの中。 */
.topbar-more { display: contents; }
.topbar-more__toggle { display: none; }
@media (max-width: 900px) {
  .topbar .topbar__sep--more { display: none; }
  .topbar:has(.topbar-more) { flex-wrap: wrap; gap: 0; }
  .topbar:has(.topbar-more) > .topbar__item {
    flex: 1 1 auto; justify-content: center; padding: 9px 2px; font-size: 12px; letter-spacing: -0.02em;
  }
  .topbar-more__toggle {
    display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; flex: 0 0 auto;
    margin: 6px 0 8px; padding: 6px 10px; font-size: 14px; color: #000; text-align: left;
    background: #f8fafc; border: 1px solid #ddd; border-radius: 8px; cursor: pointer;
  }
  .topbar-more__toggle.is-current { font-weight: 600; border-color: var(--accent); }
  .topbar-more__arrow { font-size: 12px; transition: transform .15s; }
  .topbar.is-more-open .topbar-more__arrow { transform: rotate(180deg); }
  .topbar-more { display: none; }
  .topbar.is-more-open .topbar-more {
    display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 100%; gap: 4px; margin: -4px 0 10px;
    padding: 8px; background: #fff; border: 1px solid #ddd; border-radius: 8px;
  }
  .topbar-more .topbar__sep { display: none; }
  .topbar-more .topbar__item { justify-content: flex-start; padding: 10px 8px; font-size: 14px; border-bottom: 0; border-radius: 6px; }
  .topbar-more .topbar__item--active { background: #eef4ff; color: var(--accent); }
}

/* セット本仕入れ・かかりかんの各サイトの正規マーク（2026-10-15 ユーザー指示）。四角いマークの角を少し丸める */
.ame-page img[src$=".png"][src*="/images/ame/"] { border-radius: 6px; border: 1px solid #ddd; box-sizing: border-box; background: #fff; }

/* かかりかん／かかりかん（セット）の切り替え（2026-10-15） */
.ame-page .ame-kakari .kk-switch { display: flex; gap: 0; margin: 0 0 14px; border: 2px solid #2e6f9e; border-radius: 10px; overflow: hidden; max-width: 520px; }
.ame-page .ame-kakari .kk-switch__tab {
  flex: 1 1 50%; text-align: center; padding: 10px 6px; font-size: 16px; font-weight: 700;
  color: #1d4466; background: #fff; text-decoration: none;
}
.ame-page .ame-kakari .kk-switch__tab + .kk-switch__tab { border-left: 2px solid #2e6f9e; }
.ame-page .ame-kakari .kk-switch__tab.is-on { background: #2e6f9e; color: #fff; }

/* 🆕 新発売の一覧（2026-10-15 ユーザー指示「スマホでASINが縦に長くなっているので見やすく」）。
   ASINは1行で折り返さず、タイトル側を折り返す */
.ame-page .ame-newtable { border-collapse: collapse; width: 100%; }
.ame-page .ame-newtable td, .ame-page .ame-newtable th { padding: 6px 8px; border: 1px solid #ccc; vertical-align: top; }
.ame-page .ame-newtable td:nth-child(-n+2), .ame-page .ame-newtable th:nth-child(-n+2) { white-space: nowrap; width: 1%; }
@media (max-width: 768px) {
  .ame-page .ame-newtable { font-size: 13px; }
  .ame-page .ame-newtable td:nth-child(2) { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
  .ame-page .ame-newtable td:last-child { overflow-wrap: anywhere; }
}

/* 📺 映像化の「放映時期を選択してください」（2026-10-15 ユーザー指示「小さくて弱いので見やすく」スマホ・PC） */
.ame-page .ame-adapform {
  display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 4px 0 18px; padding: 14px 16px;
  background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.ame-page .ame-adapform > label { font-size: 17px; font-weight: 800; color: #1e4e8c; }
.ame-page .ame-adapform__row { display: flex; gap: 8px; }
.ame-page .ame-adapform select {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 12px; font-size: 18px; font-weight: 700;
  border: 2px solid #2b6cb0; border-radius: 8px; background: #fff; color: #111;
}
.ame-page .ame-adapform button[type=submit] {
  flex: 0 0 auto; height: 46px; padding: 0 22px; font-size: 17px; font-weight: 800; color: #fff;
  background: #2b6cb0; border: 0; border-radius: 8px; cursor: pointer;
}
.ame-page .ame-adapform button[type=submit]:hover { background: #1e4e8c; }
.ame-page .ame-adapform .ame-home { align-self: flex-start; }

/* 🍅 売れ筋ランキングのデザイン（2026-10-15 ユーザー指示「全てのデザインを変更。内容は同じ。イメージは神々しさ」）。
   天上の光をイメージ: 象牙色の地に上から差す光（放射状の光線）、金のグラデーション、明朝体の見出し、
   金の縁取りのカード、光輪をまとった金のメダル（順位）。HTMLは変えず、見た目だけ上書きする。 */
.ame-page .ame-sold {
  --bg: #fffdf6; --surface: #ffffff; --surface-2: #fffaf0; --line: #ead9b0; --ink: #2b2213; --ink-dim: #7c6a48;
  --gold: #c9971f; --gold-dim: #e9cf8a; --profit: #1f7a4d; --profit-bg: #eaf7ef;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% -10%, #fff6d8 0%, rgba(255,246,216,0) 60%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf8 40%, #fbf6ea 100%);
  color: var(--ink); border-radius: 14px;
}
/* 上から差す光線 */
.ame-page .ame-sold::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -420px; width: 1100px; height: 1100px; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,215,120,.20) 0deg 4deg, rgba(255,215,120,0) 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.6) 30%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.6) 30%, transparent 62%);
  animation: hs-sold-rays 120s linear infinite; pointer-events: none;
}
@keyframes hs-sold-rays { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ame-page .ame-sold::before { animation: none; } }

.ame-page .ame-sold .page-header {
  position: relative; text-align: center; padding: 34px 16px 22px; border-bottom: 0; background: none;
}
.ame-page .ame-sold .page-header::after {
  content: ""; display: block; width: min(420px, 80%); height: 1px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #c9971f 30%, #f4dc94 50%, #c9971f 70%, transparent);
}
.ame-page .ame-sold .eyebrow {
  font-family: 'Cinzel', 'Times New Roman', serif; font-size: 11px; letter-spacing: .38em; color: #a77c16; margin-bottom: 8px;
}
.ame-page .ame-sold .page-header h1 {
  position: relative; display: inline-block; margin: 0 0 16px; padding: 0 34px;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif; font-size: 32px; font-weight: 800; letter-spacing: .12em;
  background: linear-gradient(180deg, #f7e3a1 0%, #d4a52d 45%, #9b6d0e 70%, #e6c467 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 0 14px rgba(240,200,90,.45));
}
.ame-page .ame-sold .page-header h1::before, .ame-page .ame-sold .page-header h1::after {
  content: "✦"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 16px; color: #d4a52d; -webkit-text-fill-color: #d4a52d;
}
.ame-page .ame-sold .page-header h1::before { left: 4px; }
.ame-page .ame-sold .page-header h1::after { right: 4px; }
.ame-page .ame-sold .tab-nav { justify-content: center; gap: 10px; }
.ame-page .ame-sold .tab-btn {
  padding: 9px 18px; border: 1px solid #e3cc8f; background: rgba(255,255,255,.85); color: #6b5426;
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(201,151,31,.12);
}
.ame-page .ame-sold .tab-btn--accent {
  color: #3a2a05; border-color: #c9971f;
  background: linear-gradient(180deg, #fbe8a6 0%, #e2b443 55%, #c9971f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 4px 14px rgba(201,151,31,.35);
}
.ame-page .ame-sold .notice { color: #8a7650; font-family: inherit; font-size: 11.5px; }

.ame-page .ame-sold .list { gap: 14px; }
.ame-page .ame-sold .item-card {
  align-items: center; padding: 14px 16px 14px 14px; border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fffdf8) padding-box,
    linear-gradient(135deg, #f3dc95, #c9971f 40%, #f7e7b4 60%, #d8b155) border-box;
  box-shadow: 0 6px 18px rgba(186,140,30,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .15s, box-shadow .15s;
}
.ame-page .ame-sold .item-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(186,140,30,.18); }
.ame-page .ame-sold .item-card::before { left: 84px; top: 14px; bottom: 14px; border-left: 1px solid #f0e2bc; }
/* 光輪をまとった金のメダル */
.ame-page .ame-sold .rank-ticket {
  flex: 0 0 62px; width: 62px; height: 62px;
  background: radial-gradient(circle at 32% 28%, #fffbe6 0%, #f6dc8a 22%, #d9a73a 55%, #a8750f 85%, #c9971f 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e2c26c, 0 0 18px 4px rgba(244,205,96,.55);
}
.ame-page .ame-sold .rank-ticket::after {
  top: 7px; left: 14px; width: 18px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(1px);
}
.ame-page .ame-sold .rank-ticket span { color: #3a2804; font-size: 13.5px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ame-page .ame-sold .rank-ticket small { color: #5c4210; opacity: .85; letter-spacing: .08em; }
.ame-page .ame-sold .item-body { padding-left: 14px; }
.ame-page .ame-sold .item-title { font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif; font-size: 15px; font-weight: 700; color: #2b2213; }
.ame-page .ame-sold .item-title .asin-link { color: #a77c16; border-bottom: 1px dotted #d4a52d; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.ame-page .ame-sold .stat-row { color: #8a7650; }
.ame-page .ame-sold .stat-row .val { color: #2b2213; }
.ame-page .ame-sold .profit-hot { background: linear-gradient(180deg, #fff7d6, #fde9a6); color: #7a4f00; border: 1px solid #e2b443; box-shadow: 0 0 10px rgba(244,205,96,.45); }
.ame-page .ame-sold .profit-hot::before { content: "✦"; color: #c9971f; }
.ame-page .ame-sold .action-link {
  color: #6b5426; background: #fffaf0; border: 1px solid #e3cc8f; border-radius: 999px; padding: 4px 12px;
}
.ame-page .ame-sold .action-link:hover { background: #fff3cf; }
.ame-page .ame-sold .action-link:active { background: linear-gradient(180deg, #fbe8a6, #e2b443); color: #3a2a05; }
@media (max-width: 640px) {
  .ame-page .ame-sold .page-header h1 { font-size: 26px; letter-spacing: .08em; }
  .ame-page .ame-sold .item-card::before { left: 80px; }
}

/* セット本仕入れの検索欄を、PCでは複数検索の「スキャンデータ入力」と同じ見た目にする（2026-10-15 ユーザー指示）。
   白い窓（枠線・角丸12px・余白24px）、見出しは太字24px、入力欄は複数検索のメモ欄と同じ薄いグレー＋細い枠線、
   ボタンは複数検索の「キューに登録して取得開始」と同じ大きさ・形（押した方が緑になる仕組みはそのまま）。 */
@media (min-width: 901px) {
  #purchase-panel-setsearch #ameForm .card {
    background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
  }
  #purchase-panel-setsearch #ameForm .sect-label {
    font-size: 24px; font-weight: 700; color: #000; letter-spacing: 0; text-transform: none; margin: 0 0 14px;
  }
  #purchase-panel-setsearch #ameForm .row { gap: 8px; margin-bottom: 10px; }
  #purchase-panel-setsearch #ameForm .input-kw,
  #purchase-panel-setsearch #ameForm .input-num,
  #purchase-panel-setsearch #ameForm .sel {
    height: 38px; background: #fff; border: 1px solid #767676; border-radius: 0; color: #000; font-size: 14px;
  }
  #purchase-panel-setsearch #ameForm .input-kw { padding: 0 10px; }
  #purchase-panel-setsearch #ameForm .input-num { width: 64px; padding: 0 8px; }
  #purchase-panel-setsearch #ameForm .btn-icon { border: 1px solid #767676; border-radius: 0; background: #f4f5f7; color: #333; }
  #purchase-panel-setsearch #ameForm .tag-btn { height: 38px; border: 1px solid #767676; border-radius: 0; background: #fff; color: #333; font-size: 13px; }
  #purchase-panel-setsearch #ameForm .action-row { gap: 12px; margin-top: 14px; }
  #purchase-panel-setsearch #ameForm .btn-main,
  #purchase-panel-setsearch #ameForm .btn-sub { height: 53px; border-radius: 10px; font-size: 15px; font-weight: 700; padding: 15px 10px; }
  #purchase-panel-setsearch #ameForm .btn-sub { background: #fff; border: 1px solid #c8ccd2; color: #1f2430; }
}

/* 複数検索「スキャンデータ入力」（PC）: 入力欄の右側に広く空いていた余白を無くす（2026-10-15 ユーザー指示）。
   窓の幅を中身に合わせる。 */
@media (min-width: 901px) {
  #purchase-panel-search .card:has(> .scan-entry) { width: fit-content; max-width: 100%; }
  #purchase-panel-search .card:has(> .scan-entry) .scan-entry { grid-template-columns: 394px auto; }
}
@media (max-width: 480px) { .ame-page .ame-kakari .kk-switch__tab { font-size: 14px; padding: 10px 4px; white-space: nowrap; } }

/* 2026-10-15 ユーザー指示（2回目）
   - 複数検索のメモ欄、セット本仕入れの検索欄（キーワード・巻1・巻2・文庫＋・ｺﾐｯｸ＋・カテゴリ）を白に（スマホ・PC）
   - 巻1 と 巻2 の間に「～」
   - スマホ: 「仕入値・設定 ▼」の右の余白を無くす（文字の幅に合わせる。上のトグル指定）、かかりかんの赤い見出しを出さない
   - PC: セット本仕入れの検索欄・OCR仕入の入力欄を、複数検索のスキャンデータ入力と同じくらいの幅に（横に長くしない） */
#purchase-scan-memo { background: #fff !important; }
#purchase-panel-setsearch #ameForm .input-kw,
#purchase-panel-setsearch #ameForm .input-num,
#purchase-panel-setsearch #ameForm .tag-btn,
#purchase-panel-setsearch #ameForm .sel { background: #fff; }
#purchase-panel-setsearch .ame-kansu-sep { align-self: center; font-size: 15px; color: #333; margin: 0 -2px; }
@media (min-width: 901px) {
  #purchase-panel-setsearch #ameForm { max-width: 852px; }
  #purchase-panel-ocr > .p2j-head,
  #purchase-panel-ocr > .p2j-card:has(#p2j-desktop-picker) { max-width: 852px; }
}

/* セット本仕入れ: 各メニュー（新発売・映像化・お気に入り・刈り取り・かかりかん・検索履歴）を開いたときの見出し（2026-10-15）。
   色はセット本仕入れの見出しと同じ。[戻る]は新発売と同じ文字のリンクに統一。お気に入り・刈り取りのサイトの正規マーク。 */
.ame-page .ame-pagetitle { margin: 6px 0 10px; font-size: 22px; font-weight: 800; color: var(--c-accent-dark, #085041); letter-spacing: .02em; }
.ame-page .ame-kakari .ame-pagetitle { margin-top: 0; }
.ame-page .ame-kakari .kk-back { margin: 0 0 10px; }
.ame-page .ame-sold .tab-nav { align-items: center; }
.ame-page .ame-siteics { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; vertical-align: middle; }
.ame-page img.ame-siteic { width: 32px; height: 32px; vertical-align: middle; }
/* 売れ筋ランキングの[戻る]も新発売と同じ色・下線 */
.ame-page .ame-sold .tab-nav .ame-home { color: #0000ee; text-decoration: underline; font-size: 14px; }
.ame-page .ame-kakari h2.ame-pagetitle { background: none; padding: 0; margin: 0 0 10px; font-size: 22px; }

/* 🍅 売れ筋ランキング: さらに神々しく（2026-10-15 ユーザー指示）。
   天からの光の柱・光輪（見出しの後ろの金の輪）・雲・舞う光の粒・金の文字のきらめき・メダルの後光。内容は同じ。 */
.ame-page .ame-sold {
  background:
    radial-gradient(60% 38% at 50% 0%, rgba(255,255,255,1) 0%, rgba(255,246,214,.9) 35%, rgba(255,246,214,0) 70%),
    radial-gradient(90% 50% at 50% 8%, rgba(255,226,140,.45) 0%, rgba(255,226,140,0) 70%),
    linear-gradient(180deg, #fff8e6 0%, #fffdf7 38%, #fbf5e6 100%);
  box-shadow: inset 0 0 0 1px #f0dfb2, inset 0 0 60px rgba(244,205,96,.18);
}
/* 光の柱（中央から差す強い光） */
.ame-page .ame-sold .page-header::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; width: 420px; height: 520px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,240,190,.55) 45%, rgba(255,240,190,0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(6px); pointer-events: none;
}
/* 舞う光の粒 */
.ame-page .ame-sold .list { position: relative; }
.ame-page .ame-sold .page-header {
  background:
    radial-gradient(2px 2px at 12% 30%, #f5d77a 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 22% 70%, #fff 50%, transparent 51%),
    radial-gradient(2.4px 2.4px at 80% 22%, #f2cf63 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 88% 64%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 66% 82%, #f5d77a 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 34% 12%, #e9bf4a 50%, transparent 51%);
  animation: hs-sold-twinkle 4s ease-in-out infinite alternate;
}
@keyframes hs-sold-twinkle { from { opacity: 1; } to { opacity: .97; filter: brightness(1.08); } }
/* 光輪（見出しの後ろ） */
.ame-page .ame-sold .page-header h1 { z-index: 0; }
.ame-page .ame-sold .page-header h1 > * { position: relative; }
.ame-page .ame-sold .eyebrow { position: relative; }
.ame-page .ame-sold .eyebrow::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 300px; height: 96px; transform: translate(-50%, -6px); z-index: -1;
  border-radius: 50%; border: 2px solid rgba(214,168,52,.55);
  box-shadow: 0 0 22px 6px rgba(246,214,118,.45), inset 0 0 22px 6px rgba(255,236,170,.55);
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,244,205,.35) 60%, transparent);
}
/* 金の文字のきらめき */
.ame-page .ame-sold .page-header h1 {
  font-size: 38px;
  background: linear-gradient(100deg, #9b6d0e 0%, #d4a52d 22%, #fff4c4 32%, #e2b443 42%, #a77c16 60%, #f7e3a1 76%, #c9971f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hs-sold-shine 6s linear infinite;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 0 18px rgba(245,205,90,.75));
}
@keyframes hs-sold-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ame-page .ame-sold .page-header h1::before, .ame-page .ame-sold .page-header h1::after { content: "✧"; font-size: 22px; filter: drop-shadow(0 0 6px rgba(245,205,90,.9)); }
/* 雲（見出しの下） */
.ame-page .ame-sold .page-header::after {
  height: 26px; width: min(560px, 92%); margin-top: 16px; background:
    radial-gradient(40px 16px at 12% 60%, #fff 60%, transparent 62%),
    radial-gradient(60px 20px at 30% 50%, #fff 60%, transparent 62%),
    radial-gradient(70px 22px at 52% 55%, #fff 60%, transparent 62%),
    radial-gradient(56px 18px at 74% 52%, #fff 60%, transparent 62%),
    radial-gradient(40px 14px at 90% 62%, #fff 60%, transparent 62%),
    linear-gradient(90deg, transparent, rgba(201,151,31,.55) 20%, #f4dc94 50%, rgba(201,151,31,.55) 80%, transparent) center 92% / 100% 1px no-repeat;
  filter: drop-shadow(0 2px 6px rgba(214,168,52,.25));
}
/* カード: 金の二重縁・内側の光・光が走る */
.ame-page .ame-sold .item-card {
  box-shadow: 0 0 0 3px #fffaf0, 0 0 0 4px #ecd38d, 0 10px 26px rgba(186,140,30,.16), inset 0 0 24px rgba(255,236,170,.35);
}
.ame-page .ame-sold .item-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg);
  animation: hs-sold-sweep 7s ease-in-out infinite;
}
.ame-page .ame-sold .item-card:nth-child(3n+2)::after { animation-delay: 2.3s; }
.ame-page .ame-sold .item-card:nth-child(3n)::after { animation-delay: 4.6s; }
@keyframes hs-sold-sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* メダルの後光 */
.ame-page .ame-sold .rank-ticket { overflow: visible; isolation: isolate; }
.ame-page .ame-sold .rank-ticket::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(240,196,80,.55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%); mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  animation: hs-sold-rays 30s linear infinite;
}
.ame-page .ame-sold .rank-ticket { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e2c26c, 0 0 22px 8px rgba(244,205,96,.6); }
/* [戻る]は左上 */
.ame-page .ame-sold .sold-back { position: absolute; left: 14px; top: 12px; z-index: 2; }
.ame-page .ame-sold .sold-back .ame-home { color: #0000ee; text-decoration: underline; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .ame-page .ame-sold .page-header, .ame-page .ame-sold .page-header h1, .ame-page .ame-sold .item-card::after, .ame-page .ame-sold .rank-ticket::before { animation: none; }
}
@media (max-width: 640px) {
  .ame-page .ame-sold .page-header h1 { font-size: 28px; }
  .ame-page .ame-sold .eyebrow::after { width: 240px; height: 80px; }
}

/* 売れ筋（調整）: 金文字を読みやすく、光輪は文字の後ろに大きく薄く、雲はやわらかく重ねる */
.ame-page .ame-sold .page-header h1 {
  background: linear-gradient(100deg, #7a5208 0%, #b8860b 22%, #ffe7a0 31%, #c9971f 38%, #8a6210 58%, #d4a52d 78%, #7a5208 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 1px 0 #fff) drop-shadow(0 0 16px rgba(245,205,90,.7));
}
.ame-page .ame-sold .eyebrow::after {
  width: 470px; height: 118px; transform: translate(-50%, -2px); border: 1.5px solid rgba(214,168,52,.4);
  background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,244,205,.25) 65%, transparent);
  box-shadow: 0 0 26px 6px rgba(246,214,118,.35), inset 0 0 18px 4px rgba(255,236,170,.35);
}
.ame-page .ame-sold .page-header::after {
  height: 34px; background:
    radial-gradient(90px 26px at 10% 62%, rgba(255,255,255,.95) 55%, transparent 70%),
    radial-gradient(120px 30px at 30% 55%, rgba(255,255,255,.95) 55%, transparent 70%),
    radial-gradient(140px 32px at 52% 58%, rgba(255,255,255,.95) 55%, transparent 70%),
    radial-gradient(120px 28px at 74% 55%, rgba(255,255,255,.95) 55%, transparent 70%),
    radial-gradient(90px 24px at 92% 62%, rgba(255,255,255,.95) 55%, transparent 70%);
  filter: blur(2px) drop-shadow(0 3px 6px rgba(214,168,52,.25));
}
@media (max-width: 640px) {
  .ame-page .ame-sold .eyebrow::after { width: 320px; height: 96px; }
}

/* 売れ筋（調整2）: 雲はやめ、光る金の線にする */
.ame-page .ame-sold .page-header::after {
  height: 2px; width: min(520px, 86%); margin: 20px auto 0; filter: none;
  background: linear-gradient(90deg, transparent, #c9971f 22%, #fff3c2 50%, #c9971f 78%, transparent);
  box-shadow: 0 0 12px 2px rgba(245,205,90,.55);
}

/* 全ての窓を少し薄いグレーに（2026-10-15 ユーザー指示「セット本仕入れの様に少し薄いグレー」）。
   色はセット本仕入れの「アニメ化情報」の枠と同じ #f6f6f6。窓の中の入力欄・表は白のまま。
   元に戻すときはこのブロックを消す（変更前: backups/features.css.before_gray_windows）。 */
:root { --hs-win: #f6f6f6; }
.card,
.lbt-page .card, .lcf-page .card, .crl-page .card, .lq-page .card, .lq-page #sessionCard,
#module-top .disk-card, .fin-page .card, .fba-page .card, .fba-page .label-card,
.p2j-page .card, .dn-page .card,
.rp-top .pt-card, .rp-inv .card, .rp-lim .card,
#purchase-panel-judge-settings .judge-profile-card,
#purchase-judge-profiles .profile-block,
.ame-page, .ame-page .card { background: var(--hs-win); }
/* 窓の中の窓は白（区別できるように） */
.card .card, .dn-page .card .card, .p2j-page .card .card, .p2j-segcard { background: #fff; }
/* かかりかん・映像化の白い地を窓の色に合わせる */
.ame-page .ame-kakari { background: transparent; }
/* 窓のグレーを優先（画面ごとの白い指定より強く）。実機どおり枠の無い平らな画面（出品制限・値付け設定・値付け確認・仕入判定設定の外枠）は透明のまま */
.card, #module-top .disk-card, .fba-page .label-card, .rp-top .pt-card,
#purchase-panel-judge-settings .judge-profile-card, #purchase-judge-profiles .profile-block,
.ame-page, .ame-page .card { background: var(--hs-win) !important; }
.card .card, .p2j-segcard { background: #fff !important; }
#purchase-panel-judge-settings .card, #listing-panel-restricted .card, #price-panel-settings .card, #price-panel-preview .card { background: transparent !important; }

/* 複数検索の結果表示の爆速化（2026-10-16）: 画面の外にある結果カードは、見える位置に来るまで配置計算を省く
   （2000件の一覧で、開いた直後の計算が約0.9秒→ほぼ0に）。見た目は変わらない。 */
/* 2026-10-31: 単品仕入れは除く（設定変更で結果を描き直すと、画面より上の本がいったん仮の高さ420pxになり、
   上へスクロールするたびに本当の高さへ変わって画面がぶれていた。ユーザー指摘「設定変更後に上スクロールでぶれる」） */
#purchase-panel-search .krt-item, #purchase-panel-other-store .krt-item, #purchase-panel-ocr .krt-item {
  content-visibility: auto; contain-intrinsic-size: auto 420px;
}

/* セット本仕入れ: 本の画像を押すと大きく表示（2026-10-18） */
.ame-page img[src*="media-amazon.com/images/"], .ame-page img[src*="images-amazon.com/images/"] { cursor: zoom-in; }
.ame-page .ame-lightbox-overlay.is-photo img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.ame-page .ame-lightbox-overlay.is-photo .ame-lightbox-cap::after { content: "（押すと閉じます）"; }

/* OCR仕入: 写真の削除ボタンを押しやすく（2026-10-18 ユーザー指示「消すボタンの精度が低い」）。見た目は少し大きく、押せる範囲はさらに広く */
.p2j-thumbdel { width: 32px !important; height: 32px !important; border-radius: 16px !important; line-height: 32px !important; font-size: 18px; top: 2px !important; right: 2px !important; z-index: 2; touch-action: manipulation; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.p2j-thumbdel::before { content: ""; position: absolute; inset: -10px; }

/* 売れ筋ランキングの並び替え（2026-10-18） */
.ame-page .ame-sold .sort-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px auto 0; max-width: 720px; }
.ame-page .ame-sold .sort-btn {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #6b5426;
  background: rgba(255,255,255,.85); border: 1px solid #e3cc8f;
}
.ame-page .ame-sold .sort-btn.is-on { color: #3a2a05; border-color: #c9971f; background: linear-gradient(180deg, #fbe8a6, #e2b443); box-shadow: 0 2px 8px rgba(201,151,31,.3); }

/* 他書店仕入れの見た目（2026-10-18 ユーザー指示「見出しとメモを同じ列に（スマホも）」「PCは①の欄を短く」「レイアウトを整えて」）
   - 見出し「他書店仕入れ」とメモ欄を1行に並べる（PC・スマホとも）
   - PC: 項目名を左・入力を右にそろえた2列。本のバーコード欄・価格欄は必要な長さだけ
   - スマホ: 項目名の下に入力（従来どおり縦並び） */
#purchase-panel-other-store .os-head, /* 他書店仕入れの見た目（2026-10-18 ユーザー指示「見出しとメモを同じ列に（スマホも）」「PCは①の欄を短く」「レイアウトを整えて」）
   - 見出し「他書店仕入れ」とメモ欄を1行に並べる（PC・スマホとも）
   - PC: 項目名を左・入力を右にそろえた2列。本のバーコード欄・価格欄は必要な長さだけ
   - スマホ: 項目名の下に入力（従来どおり縦並び） */
#purchase-panel-smart .os-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px 14px; margin-bottom: 14px; }
#purchase-panel-other-store .os-head h2, #purchase-panel-smart .os-head h2 { flex: none; white-space: nowrap; }
#purchase-panel-other-store .os-field--memo, #purchase-panel-smart .os-field--memo { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 0; margin: 0; font-weight: 700; }
#purchase-panel-other-store .os-field--memo span, #purchase-panel-smart .os-field--memo span { flex: none; white-space: nowrap; font-size: 13px; color: #374151; }
#purchase-panel-other-store .os-field--memo input, #purchase-panel-smart .os-field--memo input { flex: 1 1 auto; min-width: 0; width: auto; font-size: 15px; padding: 7px 10px; }
@media (min-width: 721px) {
  #purchase-panel-other-store .os-form, #purchase-panel-smart .os-form { grid-template-columns: 170px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 12px; }
  #purchase-panel-other-store .os-form > .os-field, #purchase-panel-smart .os-form > .os-field { display: contents; }
  #purchase-panel-other-store .os-form > .os-field > span, #purchase-panel-other-store .os-form > .os-field > label, #purchase-panel-smart .os-form > .os-field > span, #purchase-panel-smart .os-form > .os-field > label { font-weight: 700; }
  #purchase-panel-other-store #os-isbn, #purchase-panel-smart #os-isbn { width: 320px; max-width: 100%; }
  #purchase-panel-other-store .os-price-wrap input, #purchase-panel-smart .os-price-wrap input { width: 160px; }
  #purchase-panel-other-store .os-presets, #purchase-panel-other-store .os-preset-tools, #purchase-panel-other-store #os-preset-msg, #purchase-panel-other-store .os-msg, #purchase-panel-smart .os-presets, #purchase-panel-smart .os-preset-tools, #purchase-panel-smart #os-preset-msg, #purchase-panel-smart .os-msg { grid-column: 2; }
}
@media (max-width: 720px) {
  #purchase-panel-other-store .os-head, #purchase-panel-smart .os-head { gap: 8px; }
  #purchase-panel-other-store .os-head h2, #purchase-panel-smart .os-head h2 { font-size: 17px; }
  #purchase-panel-other-store .os-field--memo, #purchase-panel-smart .os-field--memo { flex: 1 1 auto; gap: 5px; }
  #purchase-panel-other-store .os-field--memo span, #purchase-panel-smart .os-field--memo span { font-size: 11px; }
  #purchase-panel-other-store .os-field--memo input, #purchase-panel-smart .os-field--memo input { font-size: 14px; padding: 7px 8px; min-width: 120px; }
}

/* 入力欄の「例：…」（プレースホルダー）の文字を、システム全体で同じ薄いグレーに（2026-10-18 ユーザー指示） */
input::placeholder, textarea::placeholder { color: #a8adb5 !important; opacity: 1 !important; font-weight: 400; }
/* 引っ張って更新: 引っ張っている間も更新中もグルグル回る（2026-10-18） */
.ptr-bar.is-pulling .ptr-icon, .ptr-bar.is-loading .ptr-icon { animation: ftSpin .8s linear infinite; }
.ptr-bar.is-ready .ptr-icon { animation-duration: .45s; }
/* 売れ筋の並び替え（スマホ）: 「高い順」と「低い順」を必ず横に並べる（2列） */
@media (max-width: 640px) {
  .ame-page .ame-sold .sort-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px; }
  .ame-page .ame-sold .sort-btn { text-align: center; padding: 8px 4px; }
}
/* 他書店仕入れ（2026-10-18 追加）: 見出しとメモの間を広く、PCの「追加」ボタンを短く */
#purchase-panel-other-store .os-head, /* 他書店仕入れ（2026-10-18 追加）: 見出しとメモの間を広く、PCの「追加」ボタンを短く */
#purchase-panel-smart .os-head { column-gap: 28px; }
@media (max-width: 720px) { #purchase-panel-other-store .os-head, #purchase-panel-smart .os-head { column-gap: 14px; } }
@media (min-width: 721px) {
  #purchase-panel-other-store #os-add, #purchase-panel-smart #os-add { padding: 6px 10px; font-size: 13px; min-height: 0; }
}
/* セット本仕入れ: 推移グラフ（旧「NEW」）のアイコン（2026-10-18） */
.ame-page .ame-trendbtn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 28px; height: 24px; margin-left: 4px;
  color: #0b6efd; border: 1px solid #b6d1fb; border-radius: 6px; background: #eef5ff; text-decoration: none; }
.ame-page .ame-trendbtn:hover { background: #dce9ff; }
.ame-page .ame-empty { margin: 4px 2px 16px; font-size: 15px; color: #555; }
/* かかりかん: 絞り込み欄の右の余白を無くす（中身の幅に合わせる。2026-10-18） */
@media (min-width: 769px) {
  .ame-page .ame-kakari form.search-form { display: inline-flex; width: auto; max-width: 100%; }
}
/* セット本仕入れの検索窓: 入力候補（datalist）の▼印は出さない（2026-10-18） */
#ameIndex::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
/* 複数検索: 棚区切りコード・取得開始コードの番号の位置をそろえる（2026-10-18） */
.code-lines { display: inline-grid; grid-template-columns: max-content max-content; column-gap: 0; row-gap: 0; vertical-align: top; }
.code-lines .code-label { white-space: nowrap; }
/* 結果表示を押したとき、先頭の「--1段目--」まで見えるところで止める（2026-10-18 ユーザー指示。複数検索・他書店・OCR共通）。
   スマホは上の固定の見出し（本せどり業務システム）の下に隠れていた */
#purchase-scan-detail-card { scroll-margin-top: 12px; }
@media (max-width: 900px) { #purchase-scan-detail-card { scroll-margin-top: 76px; } }
/* 他書店仕入れ: 棚区切りコード・取得開始コードは PC は1行、スマホは2段（番号の位置をそろえる）（2026-10-18） */
@media (min-width: 721px) {
  #purchase-panel-other-store .os-code-lines, #purchase-panel-smart .os-code-lines { display: inline-flex; flex-wrap: wrap; gap: 0; }
  #purchase-panel-other-store .os-code-lines > span:nth-child(3), #purchase-panel-smart .os-code-lines > span:nth-child(3) { margin-left: 1.2em; }
}
/* 他書店仕入れ:「金額ボタンを編集」と「ためた本」の間は文字1つ分 */
#purchase-panel-other-store .os-form, /* 他書店仕入れ:「金額ボタンを編集」と「ためた本」の間は文字1つ分 */
#purchase-panel-smart .os-form { margin-bottom: 0; }
#purchase-panel-other-store #os-preset-msg:empty, #purchase-panel-other-store #os-msg:empty, #purchase-panel-smart #os-preset-msg:empty, #purchase-panel-smart #os-msg:empty { display: none; }
#purchase-panel-other-store .os-listhead, #purchase-panel-smart .os-listhead { margin-top: 1em; }

/* ===== 2026-10-18 ユーザー指示 =====
   ①「PCのアニメ化情報を少し小さく」 ②「新発売・お気に入り・刈り取り・かかりかんの枠を魅力的なデザインに（本システムとの統一感はOK）」
   ③「売れ筋ランキングを金と黒で、もっと神々しく」 */

/* ① アニメ化情報（PC）: 1行4枚・文字も少し小さく */
@media (min-width: 901px) {
  .ame-page .ame-anime { padding: 1.1rem 1.2rem !important; }
  .ame-page .ame-anime > h2 { font-size: 1.35rem !important; margin-bottom: .7rem !important; }
  .ame-page .ame-anime .ame-anime-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: .8rem !important; }
  .ame-page .ame-anime .ame-anime-card > a > div { padding: .6rem .75rem !important; }
  .ame-page .ame-anime .ame-anime-card h3 { font-size: .86rem !important; line-height: 1.45; }
  .ame-page .ame-anime .ame-anime-card p { font-size: .76rem !important; line-height: 1.5; }
  .ame-page .ame-anime .ame-anime-scroll { max-height: 520px !important; }
}

/* ② 一覧の枠: 白いカード・角丸・やわらかい影・左にメニューアイコンと同じ色の帯
   （新発売=山吹／お気に入り=紅／刈り取り=青緑／かかりかん=藍） */
.ame-page .ame-result { --pg: var(--c-accent, #1D9E75); }
.ame-page .ame-result:has(form[data-sub="new"]) { --pg: #c98a0b; }
.ame-page .ame-result:has(.ame-favtable) { --pg: #d6455a; }
.ame-page .ame-result:has(.ame-karitable) { --pg: #0f7c72; }
.ame-page .ame-result:has(.ame-kakari) { --pg: #2e6f9e; }
.ame-page .ame-result .ame-pagetitle { display: flex; align-items: center; gap: 10px; }
.ame-page .ame-result .ame-pagetitle::before {
  content: ""; flex: 0 0 6px; width: 6px; height: 1.05em; border-radius: 3px; background: var(--pg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pg) 18%, transparent);
}

/* 新発売 */
.ame-page .ame-newday { margin: 14px 0 8px; font-weight: 700; color: #6b4a06; }
.ame-page table.ame-newtable {
  border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid #e6dcc6; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 14px rgba(120, 90, 20, .08);
}
.ame-page table.ame-newtable th {
  background: linear-gradient(180deg, #fff6df, #fbe9bd); color: #6b4a06; font-weight: 800; padding: 9px 12px; border: 0; border-bottom: 1px solid #ecd9a8; text-align: left;
}
.ame-page table.ame-newtable td { border: 0; border-top: 1px solid #f1ead9; padding: 8px 12px; vertical-align: top; }
.ame-page table.ame-newtable tr:nth-child(2) td { border-top: 0; }
.ame-page table.ame-newtable tr:nth-child(odd) td { background: #fffcf4; }
.ame-page table.ame-newtable tr:hover td { background: #fff4d8; }
.ame-page table.ame-newtable td:nth-child(2) { width: 1%; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* お気に入り: 1件ずつのカード */
.ame-page .ame-favfilter {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; margin: 0 0 10px;
  background: #fff; border: 1px solid #f0d3d9; border-radius: 10px; box-shadow: 0 2px 8px rgba(214, 69, 90, .07);
}
.ame-page .ame-favfilter input[name=at] { width: 90px; height: 32px; padding: 0 8px; border: 1px solid #d9c3c8; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.ame-page .ame-favfilter input[type=submit], .ame-page .ame-favfilter input[type=SUBMIT] {
  height: 32px; padding: 0 16px; border: 0; border-radius: 6px; background: #d6455a; color: #fff; font-weight: 700; cursor: pointer;
}
.ame-page .ame-favwrap { border-radius: 12px; background: #fbf7f8; padding: 10px; border: 1px solid #f0e2e5; box-sizing: border-box; margin-bottom: 8px; }
.ame-page table.ame-favtable, .ame-page table.ame-favtable > tbody { display: block; width: 100%; border: 0; }
.ame-page table.ame-favtable tr { display: block; }
.ame-page table.ame-favtable td {
  display: block; border: 0; border-left: 4px solid #d6455a; border-radius: 10px; background: #fff; padding: 10px 14px; margin: 0 0 10px;
  box-shadow: 0 1px 0 #f2e4e7, 0 4px 12px rgba(150, 40, 60, .06); line-height: 1.7; transition: box-shadow .15s, transform .15s;
}
.ame-page table.ame-favtable td:hover { box-shadow: 0 1px 0 #f2e4e7, 0 8px 20px rgba(150, 40, 60, .12); transform: translateY(-1px); }

/* 刈り取り: 1件ずつのカード（日付は左の淡い帯） */
.ame-page table.ame-karitable, .ame-page table.ame-karitable > tbody { display: block; width: 100%; border: 0; }
.ame-page table.ame-karitable > tbody > tr, .ame-page table.ame-karitable > tbody > tr > td { display: block; border: 0; padding: 0; }
.ame-page table.kari-card {
  border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 10px; border: 1px solid #d5e9e6; border-left: 4px solid #0f7c72;
  border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(15, 124, 114, .07); transition: box-shadow .15s, transform .15s; overflow: hidden;
}
.ame-page table.kari-card:hover { box-shadow: 0 8px 20px rgba(15, 124, 114, .14); transform: translateY(-1px); }
.ame-page table.kari-card td { border: 0; padding: 10px 12px; vertical-align: top; line-height: 1.7; }
.ame-page table.kari-card td.kari-day { font-size: 12.5px; font-weight: 700; color: #0f7c72; background: #f0faf8; }

/* かかりかん: 表をやわらかい枠に・棚の見出しは帯 */
.ame-page .ame-kakari { border-radius: 14px; box-shadow: inset 0 0 0 1px #e1e9f1; }
.ame-page .ame-kakari h2:not(.ame-pagetitle) {
  background: linear-gradient(90deg, #eaf2fa, rgba(234, 242, 250, 0)); border-left: 5px solid #2e6f9e; border-radius: 6px;
  color: #1d4466; padding: 7px 12px; font-size: 1.3em;
}
.ame-page .ame-kakari form.search-form { border-radius: 12px; }
@media (min-width: 769px) {
  .ame-page .ame-kakari .tablewrap { border-radius: 12px; border: 1px solid #d9e4ee; box-shadow: 0 4px 14px rgba(30, 70, 110, .07); margin-bottom: 18px; }
  .ame-page .ame-kakari table { border-collapse: separate; border-spacing: 0; margin-bottom: 0; }
  .ame-page .ame-kakari th, .ame-page .ame-kakari td { border: 0; border-top: 1px solid #e6edf4; }
  .ame-page .ame-kakari td + td, .ame-page .ame-kakari th + th { border-left: 1px solid #eef2f7; }
  .ame-page .ame-kakari th { background: linear-gradient(180deg, #f4f8fc, #e8f0f8); color: #1d4466; border-top: 0; padding: 9px 8px; }
  .ame-page .ame-kakari tr:first-child th:first-child { border-top-left-radius: 11px; }
  .ame-page .ame-kakari tr:first-child th:last-child { border-top-right-radius: 11px; }
  .ame-page .ame-kakari tr[data-asin]:nth-child(odd) td { background: #fbfdff; }
  .ame-page .ame-kakari tr[data-asin]:hover td { background: #f1f7fd; }
}
@media (max-width: 768px) {
  .ame-page .ame-kakari tr[data-asin] { border: 1px solid #d9e4ee; border-left: 4px solid #2e6f9e; border-radius: 10px; box-shadow: 0 3px 10px rgba(30, 70, 110, .07); }
}

/* ③ 売れ筋ランキング: 金と黒（夜の闇に輝く黄金のイメージ）。内容・並びは同じ */
.ame-page .ame-sold {
  --ink: #f3e3b3; --ink-dim: #b9a36a;
  background:
    radial-gradient(55% 32% at 50% 0%, rgba(255, 214, 120, .30) 0%, rgba(255, 214, 120, 0) 70%),
    radial-gradient(120% 70% at 50% 120%, rgba(120, 84, 10, .35) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #14100a 0%, #0b0906 45%, #050403 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #6b5214, inset 0 0 0 4px #0b0906, inset 0 0 0 5px rgba(212, 165, 45, .55), 0 12px 40px rgba(0, 0, 0, .35);
}
.ame-page .ame-sold::before {
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 205, 90, .16) 0deg 3deg, rgba(255, 205, 90, 0) 3deg 11deg);
}
.ame-page .ame-sold .page-header::before {
  background: linear-gradient(180deg, rgba(255, 228, 150, .55), rgba(212, 165, 45, .18) 45%, rgba(212, 165, 45, 0));
}
.ame-page .ame-sold .page-header {
  background:
    radial-gradient(2px 2px at 12% 30%, #f5d77a 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 22% 70%, #fff3c4 50%, transparent 51%),
    radial-gradient(2.4px 2.4px at 80% 22%, #f2cf63 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 88% 64%, #fff3c4 50%, transparent 51%),
    radial-gradient(2px 2px at 66% 82%, #f5d77a 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 34% 12%, #e9bf4a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 50% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 6% 84%, #e9bf4a 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 95% 40%, #f5d77a 50%, transparent 51%);
}
.ame-page .ame-sold .eyebrow { color: #d9b45a; text-shadow: 0 0 8px rgba(245, 205, 90, .5); }
.ame-page .ame-sold .eyebrow::after {
  border: 1.5px solid rgba(232, 190, 80, .65);
  background: radial-gradient(closest-side, rgba(255, 220, 130, .16), rgba(212, 165, 45, .06) 65%, transparent);
  box-shadow: 0 0 28px 6px rgba(232, 190, 80, .35), inset 0 0 22px 4px rgba(232, 190, 80, .28);
}
.ame-page .ame-sold .page-header h1 {
  background: linear-gradient(100deg, #e2b443 0%, #f7e3a1 18%, #fffbe8 28%, #f0c75a 40%, #d9a73a 58%, #f4dc94 76%, #e2b443 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9)) drop-shadow(0 0 18px rgba(245, 205, 90, .55));
}
.ame-page .ame-sold .page-header h1::before, .ame-page .ame-sold .page-header h1::after { color: #f4d77c; -webkit-text-fill-color: #f4d77c; }
.ame-page .ame-sold .page-header::after {
  background: linear-gradient(90deg, transparent, #a8750f 18%, #fff0b8 50%, #a8750f 82%, transparent);
  box-shadow: 0 0 14px 2px rgba(245, 205, 90, .6);
}
.ame-page .ame-sold .notice { color: #b9a36a; }
.ame-page .ame-sold .tab-btn, .ame-page .ame-sold .sort-btn {
  background: rgba(20, 16, 8, .85); color: #e9cf8a; border: 1px solid #7a5d1a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6) inset, 0 2px 8px rgba(0, 0, 0, .4);
}
.ame-page .ame-sold .tab-btn:hover, .ame-page .ame-sold .sort-btn:hover { background: #241b0a; color: #fff0c2; border-color: #c9971f; }
.ame-page .ame-sold .sort-btn.is-on {
  color: #1a1204; border-color: #f4dc94; background: linear-gradient(180deg, #fff1bd 0%, #e2b443 55%, #a8750f 100%);
  box-shadow: 0 0 14px rgba(245, 205, 90, .45);
}
.ame-page .ame-sold .tab-btn--accent {
  color: #1a1204; border-color: #f4dc94;
  background: linear-gradient(180deg, #fff1bd 0%, #e2b443 50%, #a8750f 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 18px rgba(245, 205, 90, .55);
}
.ame-page .ame-sold .sold-back .ame-home, .ame-page .ame-sold .tab-nav .ame-home { color: #f0d27a; }
.ame-page .ame-sold .item-card {
  background:
    linear-gradient(180deg, #1c160c, #100c06) padding-box,
    linear-gradient(135deg, #f7e3a1, #a8750f 35%, #fff0b8 55%, #8a6210 80%, #e2b443) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 3px #0b0906, 0 0 0 4px rgba(201, 151, 31, .45), 0 10px 26px rgba(0, 0, 0, .55), inset 0 0 26px rgba(212, 165, 45, .10);
}
.ame-page .ame-sold .item-card:hover { box-shadow: 0 0 0 3px #0b0906, 0 0 0 4px rgba(245, 205, 90, .8), 0 12px 30px rgba(0, 0, 0, .6), 0 0 26px rgba(245, 205, 90, .25); }
.ame-page .ame-sold .item-card::before { border-left-color: rgba(201, 151, 31, .35); }
.ame-page .ame-sold .item-card::after { background: linear-gradient(100deg, transparent, rgba(255, 230, 160, .14), transparent); }
.ame-page .ame-sold .item-title { color: #f6e7bd; }
.ame-page .ame-sold .item-title .asin-link { color: #f0c75a; border-bottom-color: #a8750f; }
.ame-page .ame-sold .stat-row { color: #b9a36a; }
.ame-page .ame-sold .stat-row .val { color: #fff3cf; }
.ame-page .ame-sold .profit-hot {
  background: linear-gradient(180deg, #fff1bd, #e2b443 60%, #c9971f); color: #1a1204; border: 1px solid #fff0b8;
  box-shadow: 0 0 12px rgba(245, 205, 90, .6);
}
.ame-page .ame-sold .profit-hot::before { color: #5a3d00; }
.ame-page .ame-sold .action-link { color: #f0d27a; background: rgba(0, 0, 0, .35); border-color: #7a5d1a; }
.ame-page .ame-sold .action-link:hover { background: #2a200c; color: #fff0c2; border-color: #c9971f; }
.ame-page .ame-sold .rank-ticket {
  background: radial-gradient(circle at 32% 28%, #fffbe6 0%, #f6dc8a 22%, #d9a73a 55%, #8a5d08 88%, #c9971f 100%);
  box-shadow: 0 0 0 2px #0b0906, 0 0 0 3.5px #e2c26c, 0 0 24px 8px rgba(245, 205, 90, .45);
}
.ame-page .ame-sold .rank-ticket::before { background: repeating-conic-gradient(rgba(245, 205, 90, .6) 0 6deg, transparent 6deg 18deg); }
/* 上の枠: 実機と同じ表の線（.ame-subpage table[border] td）より優先させる */
.ame-page .ame-result table.ame-favtable[border] td {
  border: 0; border-left: 4px solid #d6455a; padding: 10px 14px; box-shadow: 0 0 0 1px #f2dfe3, 0 4px 12px rgba(150, 40, 60, .06);
}
.ame-page .ame-result table.ame-favtable[border] td:hover { box-shadow: 0 0 0 1px #ecc9d0, 0 8px 20px rgba(150, 40, 60, .12); }
.ame-page .ame-result table.ame-karitable[border] > tbody > tr > td { border: 0; padding: 0; }
.ame-page .ame-result table.kari-card[border] { border: 1px solid #d5e9e6; border-left: 4px solid #0f7c72; }
.ame-page .ame-result table.kari-card[border] td { border: 0; padding: 10px 12px; }
.ame-page .ame-result table.ame-newtable[border] td, .ame-page .ame-result table.ame-newtable[border] th { border: 0; padding: 8px 12px; }
.ame-page .ame-result table.ame-newtable[border] tr + tr td { border-top: 1px solid #f1ead9; }
.ame-page .ame-result table.ame-newtable[border] th { border-bottom: 1px solid #ecd9a8; padding: 9px 12px; }

/* 仕入れ5画面（複数検索・他書店仕入れ・セット本仕入れ・OCR仕入・電脳仕入）の文字の大きさ・太さをそろえる（2026-10-18 ユーザー指示
   「太字やフォントの大きさで見やすくなる所は見やすく、全体の統一感も」）。
   画面の見出し 22px・極太／区切りの見出し 18px・極太／入力欄の名前 15px・太字／補足 13px・灰色／表の見出し 13px・太字。 */
#purchase-panel-search .barcode-scan-title-row h2, #purchase-panel-other-store .os-head h2, #purchase-panel-ocr h1, #purchase-panel-dennou h1.dn-h1, #purchase-panel-smart .os-head h2 {
  font-size: 22px !important; font-weight: 800 !important; letter-spacing: .02em; color: #111827;
}
.ame-page .ame-topbar-title { font-size: 22px; font-weight: 800; }
#purchase-panel-search .queue-header h2, #purchase-panel-other-store .queue-header h2, #purchase-panel-ocr h3, #purchase-panel-dennou h2, #purchase-panel-smart .queue-header h2 {
  font-size: 18px !important; font-weight: 800 !important; color: #1f2430;
}
#module-purchase .purchase-today-scan-count { font-size: 15px; font-weight: 800; color: #1f2430; }
#module-purchase .purchase-today-scan-count::first-letter { letter-spacing: 0; }

/* 入力欄の名前 */
#purchase-panel-search label[for="purchase-scan-memo"], #purchase-panel-other-store .os-field:not(.os-field--memo) > span, #purchase-panel-other-store label[for="os-price"], #purchase-panel-ocr label.p2j-small, #purchase-panel-ocr label:has(#p2j-binding), #purchase-panel-dennou .label, #purchase-panel-smart .os-field:not(.os-field--memo) > span, #purchase-panel-smart label[for="os-price"] {
  font-size: 15px; font-weight: 700; color: #1f2430;
}
#purchase-panel-ocr label select { font-weight: 400; }

/* 補足の文字は小さすぎない灰色にそろえる */
#purchase-panel-ocr .p2j-small:not(label), #purchase-panel-dennou .note, #purchase-panel-ocr .p2j-help {
  font-size: 13px; color: #5b6472; letter-spacing: 0;
}
#module-purchase .queue-header h2 small.hint-text { font-size: 13px; font-weight: 400; color: #5b6472; }

/* 一覧の表: 見出しは小さめの太字、メモと件数は太字で読みやすく */
#module-purchase .purchase-scan-batch-table th, #purchase-panel-search thead th, #purchase-panel-other-store thead th, #purchase-panel-dennou thead th, #purchase-panel-smart thead th {
  font-size: 13px; font-weight: 700; color: #6b7280; letter-spacing: .02em;
}
#module-purchase button.purchase-scan-batch-show, #purchase-panel-ocr button.p2j-qview, #purchase-panel-dennou .dn-btn-show {
  font-size: 14px; font-weight: 700;
}
#module-purchase .purchase-refresh-queues-button { font-size: 14px; font-weight: 700; }
@media (min-width: 721px) { #purchase-panel-other-store .os-listhead, #purchase-panel-smart .os-listhead { margin-top: 3px; } } /* PCはボタンと同じ行で文字が上下中央になるため、文字までの間が文字1つ分（14px）になるよう調整 */

/* OCR仕入れ（2026-10-18 ユーザー指示「一番使いやすく・わかりやすく・スピーディーに」）。
   手順の案内（今の手順を緑で強調）・設定は折りたたみ・確定は大きく・裏の読み取りの進み具合。PC・スマホ共通。 */
.p2j-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 0; }
.p2j-steps li {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px;
  background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; line-height: 1.3;
}
.p2j-steps li b { font-size: 15px; font-weight: 800; color: #4b5563; }
.p2j-steps li span { font-size: 12px; }
.p2j-steps li.is-on { background: #e1f5ee; border-color: #1d9e75; color: #085041; box-shadow: 0 0 0 2px rgba(29, 158, 117, .15); }
.p2j-steps li.is-on b { color: #085041; }
.p2j-steps li.is-done { background: #fff; }
.p2j-steps li.is-done b::after { content: " ✓"; color: #1d9e75; }

.p2j-settings { margin: 0 0 8px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px 10px; background: #fafafa; }
.p2j-settings > summary { cursor: pointer; font-size: 13px; color: #5b6472; font-weight: 700; padding: 2px 0; }
.p2j-settings[open] > summary { margin-bottom: 6px; }

.p2j-sent-note { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e0; border: 1px solid #f0d58a; color: #6b4a06; font-size: 13px; font-weight: 700; }

.p2j-autoq { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 14px; font-weight: 700; color: #1f2430; cursor: pointer; }
.p2j-autoq input { width: 18px; height: 18px; }
#purchase-panel-ocr .p2j-confirm { min-width: 160px; font-size: 16px; font-weight: 800; padding: 10px 22px; }
#p2j-crop-dialog .p2j-add-more { font-weight: 700; border-color: #1d9e75; color: #085041; background: #e1f5ee; }

.p2j-jobs:empty { display: none; }
.p2j-jobs { display: grid; gap: 6px; margin: 4px 0 10px; }
.p2j-job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 120px; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px; background: #f0f7ff; border: 1px solid #cfe0f5; font-size: 13px; }
.p2j-job.is-done { background: #eefaf3; border-color: #bfe6cf; }
.p2j-job.is-error { background: #fff1f1; border-color: #f2c4c4; }
.p2j-jobtitle { font-weight: 800; color: #1f2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2j-jobtext { color: #374151; font-weight: 600; }
.p2j-jobng { color: #c0262d; }
.p2j-job .p2j-progress { width: 100%; }
.p2j-job.is-running .p2j-progress > div, .p2j-job.is-enqueue .p2j-progress > div { background: #2b6cb0; transition: width .4s; }

@media (max-width: 768px) {
  .p2j-steps li { padding: 6px 7px; }
  .p2j-steps li b { font-size: 14px; }
  .p2j-steps li span { font-size: 11px; }
  #purchase-panel-ocr .p2j-row--end:has(#p2j-auto-run) { flex-wrap: wrap; }
  .p2j-autoq { flex: 1 1 100%; margin: 0 0 4px; }
  #purchase-panel-ocr .p2j-confirm { flex: 1 1 auto; }
  #p2j-crop-dialog .p2j-add-more { flex: 1 1 100%; }
  .p2j-job { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* OCR仕入れの結果: 背表紙の写真と「何段目・左から何冊目」（2026-10-18） */
.p2j-spinebox { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 8px; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 8px; }
.p2j-spinethumb { height: 150px; width: auto; max-width: 140px; object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); display: block; }
.p2j-spinepos { font-size: 14px; color: #3a2a05; line-height: 1.6; }
.p2j-spinepos b { font-size: 18px; color: #b45309; }
.p2j-spinepos span { font-size: 12px; color: #6b5a33; }
.p2j-spinebox { max-width: 100%; box-sizing: border-box; }
.p2j-spinebox > a { flex: 0 0 auto; }
.p2j-spinepos { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) { .p2j-spinebox { max-width: calc(100vw - 56px); } }

/* OCR仕入れ（2026-10-18）: 切り抜きの枠のつまみを大きく（指で掴みやすく）・横の操作で画面が動かないように */
#p2j-crop-dialog .p2j-cropstage { touch-action: none; overscroll-behavior: contain; }
#p2j-crop-dialog .cropper-point { width: 22px !important; height: 22px !important; opacity: .9; background: #1d9e75; border-radius: 50%; }
#p2j-crop-dialog .cropper-point.point-n, #p2j-crop-dialog .cropper-point.point-s { left: 50%; margin-left: -11px; }
#p2j-crop-dialog .cropper-point.point-e, #p2j-crop-dialog .cropper-point.point-w { top: 50%; margin-top: -11px; }
#p2j-crop-dialog .cropper-point.point-n { top: -11px; } #p2j-crop-dialog .cropper-point.point-s { bottom: -11px; }
#p2j-crop-dialog .cropper-point.point-e { right: -11px; } #p2j-crop-dialog .cropper-point.point-w { left: -11px; }
#p2j-crop-dialog .cropper-point.point-ne { top: -11px; right: -11px; } #p2j-crop-dialog .cropper-point.point-nw { top: -11px; left: -11px; }
#p2j-crop-dialog .cropper-point.point-se { bottom: -11px; right: -11px; } #p2j-crop-dialog .cropper-point.point-sw { bottom: -11px; left: -11px; }
#p2j-crop-dialog .cropper-line { opacity: .25; }
#p2j-crop-dialog .cropper-line.line-e, #p2j-crop-dialog .cropper-line.line-w { width: 24px; } #p2j-crop-dialog .cropper-line.line-e { right: -12px; } #p2j-crop-dialog .cropper-line.line-w { left: -12px; }
#p2j-crop-dialog .cropper-line.line-n, #p2j-crop-dialog .cropper-line.line-s { height: 24px; } #p2j-crop-dialog .cropper-line.line-n { top: -12px; } #p2j-crop-dialog .cropper-line.line-s { bottom: -12px; }
/* 無音カメラを横向きで使うとシャッターが画面外に出ていた → 横向きでは映像を左、ボタンを右に並べ、画面の高さに収める */
@media (orientation: landscape) and (max-height: 600px) {
  #p2j-quiet-dialog { width: 96vw; max-width: 96vw; max-height: 96vh; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px 10px; }
  #p2j-quiet-dialog:not([open]) { display: none; }
  #p2j-quiet-dialog > div:first-child { grid-column: 1 / -1; margin: 0 !important; font-size: 13px; }
  #p2j-quiet-dialog .p2j-quietvideo { grid-column: 1; grid-row: 2 / 4; max-height: calc(96vh - 50px); height: calc(96vh - 50px); }
  #p2j-quiet-dialog .p2j-row { grid-column: 2; grid-row: 2; flex-direction: column; justify-content: center; gap: 10px; }
  #p2j-quiet-dialog #p2j-quiet-snap { min-height: 72px; min-width: 120px; font-size: 16px; }
  #p2j-quiet-dialog .p2j-help { grid-column: 2; grid-row: 3; font-size: 11px; margin: 0 !important; max-width: 140px; }
}

/* 切り抜き: 枠のつまみが画面の端にあると、スマホの「戻る」などの端のフリックに反応してしまう → 写真を画面の端から離す（2026-10-18） */
@media (max-width: 768px) {
  #p2j-crop-dialog { width: 100vw; max-width: 100vw; margin: 0; padding: 10px 0; border-radius: 0; }
  #p2j-crop-dialog .p2j-cropstage { margin: 0 36px; }
  #p2j-crop-dialog > .p2j-row, #p2j-crop-dialog > .p2j-help, #p2j-crop-dialog > div { padding-left: 10px; padding-right: 10px; }
}

/* 結果表示が画面からはみ出していた（スマホで表が442px）→ 表を画面幅に固定し、長い行は折り返す（2026-10-18） */
@media (max-width: 768px) {
  #purchase-scan-detail-card { max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
  #purchase-scan-detail-card .table-wrap, #purchase-scan-detail-card table.order-table { width: 100% !important; max-width: 100%; min-width: 0 !important; table-layout: fixed; }
  #purchase-scan-detail-card table.order-table td, #purchase-scan-detail-card table.order-table th { white-space: normal; min-width: 0; }
  #purchase-scan-detail-card .krt-item, #purchase-scan-detail-card .krt-item * { overflow-wrap: anywhere; word-break: normal; max-width: 100%; box-sizing: border-box; }
  #purchase-scan-detail-card .krt-item img { height: auto; }
}

/* 爆速モード: 写真ごとの読み取りの進み具合（サムネイルの下）（2026-10-18） */
.p2j-thumb { position: relative; }
.p2j-pstat { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 6px; font-size: 11px; font-weight: 800; text-align: center; color: #fff; background: rgba(43,108,176,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2j-pstat.is-done { background: rgba(29,158,117,.92); }
.p2j-pstat.is-error { background: rgba(192,38,45,.9); }

/* スマホ 他書店仕入れの一覧: 「×(メモ無し)」を1行に収める（件数・作成時刻の列を中身に合わせて詰め、メモ列を広げる）（2026-10-19） */
@media (max-width: 900px) {
  #os-batch-table th:nth-child(2), #os-batch-table td:nth-child(2), #sp-batch-table th:nth-child(2), #sp-batch-table td:nth-child(2), #p2j-batch-table th:nth-child(2), #p2j-batch-table td:nth-child(2) { width: 40px; }
  #os-batch-table th:nth-child(4), #os-batch-table td:nth-child(4), #sp-batch-table th:nth-child(4), #sp-batch-table td:nth-child(4), #p2j-batch-table th:nth-child(4), #p2j-batch-table td:nth-child(4) { width: 70px; }
  #os-batch-table th:nth-child(5), #os-batch-table td:nth-child(5), #sp-batch-table th:nth-child(5), #sp-batch-table td:nth-child(5), #p2j-batch-table th:nth-child(5), #p2j-batch-table td:nth-child(5) { width: 54px; }
  #os-batch-table td:first-child, #sp-batch-table td:first-child, #p2j-batch-table td:first-child { font-size: 11px; padding-left: 2px; padding-right: 2px; }
  #os-batch-table .purchase-scan-batch-delete, #sp-batch-table .purchase-scan-batch-delete, #p2j-batch-table .purchase-scan-batch-delete { margin-right: 3px !important; padding: 2px 5px !important; min-width: 0 !important; }
}

/* 出品設定「Amazonアプリ承認状態」の丸いラベル（実機 v2.5.6 の .pill）（2026-10-19） */
.lcf-page .pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; }

/* ---------------------------------------------------------------- DVD仕入（2026-10-19 新規）。スマホを基準に、PC は横に並べる */
.dvd-page .card { background: #fff; border: 1px solid #ddd; box-shadow: none; }
.dvd-page .dvd-h1 { font-size: 18px; margin: 0 0 8px; }
.dvd-page .dvd-status { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 10px; }
.dvd-page .dvd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.dvd-page .dvd-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #444; min-width: 0; }
.dvd-page .dvd-field--wide { grid-column: 1 / -1; }
.dvd-page .dvd-field select, .dvd-page .dvd-field input { width: 100%; min-height: 40px; font-size: 15px; padding: 6px 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.dvd-page .dvd-actions { display: flex; gap: 8px; margin: 12px 0 8px; }
.dvd-page .dvd-actions .btn { flex: 1 1 0; min-height: 44px; font-size: 15px; }
.dvd-page .dvd-note { font-size: 11px; color: #777; line-height: 1.6; }
.dvd-page .dvd-summary { font-size: 13px; margin: 12px 2px 8px; line-height: 1.6; }
.dvd-page .dvd-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dvd-page .dvd-empty { padding: 16px; text-align: center; color: #777; font-size: 13px; }
.dvd-page .dvd-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; background: #fff; border: 1px solid #ddd; border-radius: 10px; }
.dvd-page .dvd-item.is-fav { border-color: #e0558b; box-shadow: 0 0 0 1px #e0558b inset; }
.dvd-page .dvd-thumb img { width: 72px; height: auto; max-height: 100px; object-fit: contain; border-radius: 4px; background: #f4f4f4; }
.dvd-page .dvd-body { min-width: 0; }
.dvd-page .dvd-title { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.dvd-page .dvd-media { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #2e6f9e; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.dvd-page .dvd-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px; margin: 6px 0 4px; }
.dvd-page .dvd-nums div { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; border-bottom: 1px dotted #e3e3e3; padding: 2px 0; }
.dvd-page .dvd-nums span { color: #666; font-size: 12px; white-space: nowrap; }
.dvd-page .dvd-nums b { white-space: nowrap; }
.dvd-page .dvd-ratio { color: #1d4466; }
.dvd-page .dvd-profit.is-plus { color: #16794a; }
.dvd-page .dvd-profit.is-big { color: #c0262d; }
.dvd-page .dvd-profit.is-minus { color: #888; }
.dvd-page .dvd-sub { font-size: 12px; color: #555; line-height: 1.5; overflow-wrap: anywhere; }
.dvd-page .dvd-warn { color: #b45309; }
.dvd-page .dvd-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.dvd-page .dvd-links a { font-size: 12px; padding: 4px 10px; border: 1px solid #c9d6e3; border-radius: 999px; color: #1d4466; text-decoration: none; background: #f5f9fc; }
.dvd-page .dvd-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.dvd-page .dvd-btns .btn { min-height: 36px; font-size: 13px; padding: 4px 10px; }
.dvd-page .dvd-fav[aria-pressed="true"] { color: #e0558b; border-color: #e0558b; }
.dvd-page .dvd-chart { margin-top: 8px; }
.dvd-page .dvd-svg { width: 100%; height: auto; background: #fafafa; border: 1px solid #eee; border-radius: 6px; }
.dvd-page .dvd-svg .dvd-ax { font-size: 11px; fill: #888; }
.dvd-page .dvd-l-used { stroke: #2e6f9e; stroke-width: 2; }
.dvd-page .dvd-l-new { stroke: #c0262d; stroke-width: 1.5; stroke-dasharray: 4 3; }
.dvd-page .dvd-l-rank { stroke: #16794a; stroke-width: 1.5; }
.dvd-page .dvd-legend { font-size: 11px; color: #666; margin-top: 4px; }
.dvd-page .dvd-legend span { margin-right: 10px; }
.dvd-page .dvd-legend .u::before, .dvd-page .dvd-legend .n::before, .dvd-page .dvd-legend .r::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 4px; vertical-align: middle; }
.dvd-page .dvd-legend .u::before { background: #2e6f9e; }
.dvd-page .dvd-legend .n::before { background: #c0262d; }
.dvd-page .dvd-legend .r::before { background: #16794a; }
@media (min-width: 901px) {
  .dvd-page .dvd-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dvd-page .dvd-field--wide { grid-column: span 2; }
  .dvd-page .dvd-actions .btn { flex: 0 0 auto; min-width: 140px; }
  .dvd-page .dvd-list { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
  .dvd-page .dvd-item { grid-template-columns: 90px 1fr; }
  .dvd-page .dvd-thumb img { width: 90px; max-height: 128px; }
}
/* DVD仕入のメニュー（2026-10-19 ユーザー指示）: PC は 電脳仕入 の右。スマホは2行目の右端（電脳仕入の下・右寄せ）。
   上の5つ（order 0）→ 2行目に「仕入値・設定 ▼」（order 1）と DVD仕入（order 2・右寄せ）→ 開いた折りたたみ（order 3） */
@media (max-width: 900px) {
  /* 2026-10-31 ユーザー指示: DVD は四角を外して上の段（電脳の横）、「仕入値・設定 ▼」は下の段の左端 */
  .topbar:has(.topbar-more) > .topbar__sep--more { display: block; order: 1; flex: 0 0 100%; height: 0; margin: 0; border: 0; }
  .topbar:has(.topbar-more) > .topbar-more__toggle { order: 2; margin-right: auto; }
  .topbar:has(.topbar-more) > .topbar-more { order: 3; }
}
/* DVD仕入: Amazon の出品可否（2026-10-19） */
.dvd-page .dvd-restr { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin: 0 6px 3px 0; color: #555; background: #eee; vertical-align: 1px; }
.dvd-page .dvd-restr.is-ok { color: #fff; background: #16794a; }
.dvd-page .dvd-restr.is-ng { color: #fff; background: #d9480f; }

/* DataBank > 収集の時間帯（2026-10-19） */
.cs-page .cs-now { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.cs-page .cs-rule { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px; margin-bottom: 8px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
.cs-page .cs-days { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-page .cs-day { display: inline-flex; }
.cs-page .cs-day input { display: none; }
.cs-page .cs-day span { display: inline-block; min-width: 34px; padding: 7px 0; text-align: center; font-size: 14px; border: 1px solid #c9d6e3; border-radius: 6px; background: #fff; cursor: pointer; }
.cs-page .cs-day input:checked + span { background: #2e6f9e; border-color: #2e6f9e; color: #fff; font-weight: 700; }
.cs-page .cs-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-page .cs-time select { min-height: 38px; font-size: 15px; padding: 4px 6px; border-radius: 6px; border: 1px solid #ccc; }
.cs-page .cs-groups { display: grid; gap: 8px; margin: 14px 0 6px; font-size: 13px; }
.cs-page .cs-groups label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.cs-page .cs-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cs-page .cs-actions .btn { min-width: 120px; min-height: 42px; }

/* ---------------------------------------------------------------- DataBank の見た目（2026-10-19 ユーザー指示「DataBankなのでかっこよく」「横に長くしない」）。
   DataBank の中だけに効く。暗い紺の計器盤（状態の札・数字のタイル・光る進み具合）＋白いカード。 */
#module-databank .tab-panel { max-width: 880px; }
#module-databank .tab-panel > .card { border-radius: 14px; border: 1px solid #dde3ea; box-shadow: 0 1px 2px rgba(15, 30, 50, .05); }
#module-databank .tab-panel > .card > h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: .04em; margin: 0 0 12px; }
#module-databank .tab-panel > .card > h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #38bdf8, #34d399); }
#module-databank .dbk-hero {
  position: relative; overflow: hidden; color: #e6eef7; border-radius: 14px; padding: 14px 14px 12px; margin-bottom: 12px;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 14px 14px, linear-gradient(135deg, #0b1a2c 0%, #12304d 60%, #163a5c 100%);
  box-shadow: 0 8px 24px rgba(11, 26, 44, .25), inset 0 1px 0 rgba(255,255,255,.06);
}
#module-databank .dbk-hero__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
#module-databank .dbk-hero__sub { font-size: 12.5px; color: #a9bdd2; overflow-wrap: anywhere; }
#module-databank .dbk-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: #cfd8e3; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
#module-databank .dbk-state i { width: 9px; height: 9px; border-radius: 50%; background: #7d8a99; }
#module-databank .dbk-state.is-on { color: #b9f6d4; border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.12); }
#module-databank .dbk-state.is-on i { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25), 0 0 10px #34d399; animation: dbkPulse 1.4s ease-in-out infinite; }
#module-databank .dbk-state.is-pause { color: #fde4a8; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.12); }
#module-databank .dbk-state.is-pause i { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
@keyframes dbkPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { #module-databank .dbk-state.is-on i { animation: none; } }
#module-databank .dbk-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 2px 0 4px; flex: 1 1 200px; }
#module-databank .dbk-bar > div { height: 100%; min-width: 3px; border-radius: 99px; background: linear-gradient(90deg, #38bdf8, #34d399) !important; box-shadow: 0 0 10px rgba(56,189,248,.6); transition: width .4s; }
#module-databank .dbk-bar__label { display: block; font-size: 12px; color: #a9bdd2; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
#module-databank .watch-progress { margin: 10px 0 0; gap: 4px 10px; }
#module-databank .watch-progress .dbk-bar__label { margin: 0; }
#module-databank .dbk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#module-databank .dbk-tile { padding: 9px 10px 8px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); min-width: 0; }
#module-databank .dbk-tile span { display: block; font-size: 11.5px; color: #9fb3c8; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#module-databank .dbk-tile b { font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#module-databank .dbk-tile small { margin-left: 3px; font-size: 11.5px; color: #9fb3c8; }
#module-databank .dbk-info { margin: 0 0 12px; border: 1px solid #e3e8ee; border-radius: 12px; overflow: hidden; background: #fff; }
#module-databank .dbk-info > div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; padding: 9px 12px; font-size: 13px; border-top: 1px solid #eef1f5; }
#module-databank .dbk-info > div:first-child { border-top: 0; }
#module-databank .dbk-info dt { color: #6b7686; margin: 0; }
#module-databank .dbk-info dd { margin: 0; color: #1f2a37; overflow-wrap: anywhere; }
#module-databank .watch-actions .btn { min-height: 40px; border-radius: 10px; }
#module-databank .watch-settings { border: 1px solid #e3e8ee; border-radius: 12px; padding: 0 12px; background: #fafbfd; }
#module-databank .watch-settings > summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 14px; color: #1d4466; }
#module-databank .watch-settings[open] > summary { border-bottom: 1px solid #e3e8ee; margin-bottom: 8px; }
#module-databank .watch-settings__grid { gap: 10px; font-size: 13.5px; }
#module-databank .watch-settings input[type="number"] { min-height: 34px; border-radius: 8px; border: 1px solid #ccd5df; padding: 2px 6px; }
#module-databank .watch-import textarea { border-radius: 10px; border: 1px solid #ccd5df; padding: 8px; min-height: 80px; }
#module-databank .watch-settings > .btn, #module-databank .watch-import .btn { border-radius: 10px; min-height: 40px; }
#module-databank .watch-import { margin-bottom: 12px; }
#module-databank .cs-now { color: #e6eef7; border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, #0b1a2c, #163a5c); box-shadow: 0 6px 18px rgba(11,26,44,.2); }
#module-databank .cs-now b { color: #fff; }
#module-databank .cs-page .cs-rule { background: #fafbfd; border-color: #e3e8ee; border-radius: 12px; }
#module-databank .hint-text { line-height: 1.7; }
@media (min-width: 721px) {
  #module-databank .dbk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #module-databank .dbk-info > div { grid-template-columns: 150px 1fr; }
}
/* OCR仕入: メモ欄の見出し（複数検索と同じ文言。2026-10-19） */
.p2j-page .p2j-titlelabel { display: block; font-size: 13px; color: #333; margin: 6px 0 0; }
/* DVD仕入: EAN・ASIN、出品許可の申請（2026-10-19） */
.dvd-page .dvd-codes { font-size: 12px; color: #555; margin: 4px 0 2px; overflow-wrap: anywhere; }
.dvd-page .dvd-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #1f2a37; }
.dvd-page a.dvd-code { color: #1d4ed8; text-decoration: underline; }
.dvd-page .dvd-restr.is-apply { color: #fff; background: #b45309; }
.dvd-page .dvd-apply { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.dvd-page .dvd-apply .btn { min-height: 36px; font-size: 13px; padding: 4px 10px; }
.dvd-page .dvd-apply-btn { background: #ffd814; border-color: #fcd200; color: #111; text-decoration: none; display: inline-flex; align-items: center; }
.dvd-page .dvd-brands { margin-top: 10px; }
.dvd-page .dvd-brands > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #1d4466; padding: 2px 0; }
.dvd-page .dvd-brands[open] > summary { margin-bottom: 8px; }
.dvd-page .dvd-brand-list { display: grid; gap: 6px; margin-top: 8px; }
.dvd-page .dvd-brand { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid #e3e8ee; border-radius: 8px; font-size: 13px; }
.dvd-page .dvd-brand__name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.dvd-page .dvd-brand__n { color: #555; white-space: nowrap; }
.dvd-page .dvd-brand .btn { min-height: 34px; font-size: 12.5px; padding: 3px 10px; }
.dvd-page .dvd-iostip { margin: 10px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.6; background: #fff7e6; border: 1px solid #f5c26b; border-radius: 10px; }
.dvd-page .dvd-iostip ol { margin: 6px 0; padding-left: 20px; }
.dvd-page .dvd-iostip .btn { margin-left: 8px; min-height: 32px; font-size: 12px; }
.dvd-page .dvd-iostip[hidden] { display: none; }
.dvd-page .dvd-brand.is-docs { background: #f4f4f5; color: #777; grid-template-columns: 1fr auto auto; }
/* 出荷: 「除外する」で外した注文（2026-10-21） */
.ship-method-summary__excluded { color: #8a5a00; }
.ship-method-summary__exlist { display: block !important; font-size: 12px; line-height: 1.8; color: #555; overflow-wrap: anywhere; }
.ship-method-summary__exlist a { color: #1d4ed8; }

/* 2026-10-22 ユーザー指示: 売れ筋・新発売・刈り取りに画像を付ける */
.ame-page .ame-thumb, .ame-page .item-thumb { display: block; width: 56px; height: 80px; object-fit: contain; background: #fff; border-radius: 4px; }
.ame-page .ame-thumb--none { background: #f3f0e8; }
.ame-page .ame-sold .item-thumb { flex: 0 0 56px; margin-left: 22px; border: 1px solid #f0e2bc; }
.ame-page .ame-newtable td.ame-newimg, .ame-page .ame-newtable th.ame-newimg { width: 1%; padding: 6px; }
.ame-page .ame-karitable td.kari-img { width: 1%; padding: 6px; vertical-align: top; }
@media (max-width: 640px) {
  .ame-page .ame-thumb, .ame-page .item-thumb { width: 44px; height: 64px; }
  .ame-page .ame-sold .item-thumb { flex-basis: 44px; margin-left: 20px; }
}

/* 2026-10-22 DVD仕入: 新品が最安のときの売値の倍率 */
.dvd-page .dvd-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: #222; }
.dvd-page .dvd-rate input { width: 90px !important; flex: 0 0 auto; }
.dvd-page .dvd-rate .btn { min-height: 40px; }

/* 2026-10-22 Amazon価格データ: 段階ごとの進捗バーと、Amazon価格データ／ためているJANの見出し */
#module-databank .dbk-progs { display: grid; gap: 10px; margin: 0 0 6px; }
#module-databank .dbk-prog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: #cfdbe8; }
#module-databank .dbk-prog__head b { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
#module-databank .dbk-prog .dbk-bar__label { margin-bottom: 0; }
#module-databank .dbk-prog:not(.is-run) .dbk-bar > div { opacity: .55; box-shadow: none; }
#module-databank .dbk-group { margin: 12px 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
#module-databank .dbk-group small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: #9fb3c8; }
#module-databank .dbk-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#module-databank .dbk-tiles--3 .dbk-tile b { font-size: 19px; }
@media (min-width: 721px) {
  #module-databank .dbk-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #module-databank .dbk-tiles--3 .dbk-tile b { font-size: 22px; }
}
/* 2026-10-22 ユーザー指示「Amazon価格データの文字のはみ出し」: スマホの3つ並びでは見出しを折り返し、数字を少し小さく。
   使っていない進捗バー（hidden）が .watch-progress の表示指定で出てしまうのも止める */
#module-databank .watch-progress[hidden] { display: none !important; }
#module-databank .dbk-tiles--3 .dbk-tile span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
#module-databank .dbk-tiles--3 .dbk-tile b { display: block; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  #module-databank .dbk-tiles--3 { gap: 6px; }
  #module-databank .dbk-tiles--3 .dbk-tile { padding: 8px 7px 7px; }
  #module-databank .dbk-tiles--3 .dbk-tile b { font-size: 16px; }
  #module-databank .dbk-tiles--3 .dbk-tile span { font-size: 11px; letter-spacing: 0; }
}
/* 2026-10-22 ユーザー指示: スマホでは見出し「Amazon価格データ」と3つの枠の間を1行あけ、
   見出しを2行分の高さにそろえて3つの数字の高さをそろえる（有効時間内／（24時間）で改行） */
@media (max-width: 720px) {
  #module-databank .dbk-tiles--3 { margin-top: 1.4em; }
  #module-databank .dbk-tiles--3 .dbk-tile span { min-height: 2.6em; }
}
@media (min-width: 721px) {
  #module-databank .dbk-tiles--3 .dbk-tile span br { display: none; }
}

/* ==================================================================
   2026-10-23 ユーザー指示「セット本仕入れを見やすく。デザイン・配置はお任せ」
   ① 上の7つのアイコンを Menu・TOPメニューと同じ雰囲気に（白いカードに濃い角丸の地・白い線のアイコン）。
      HTMLに最初から書いてあるので、更新したときに絵文字が一瞬出ない。今開いている画面のものは緑に光る。
   ② 売れ筋ランキング: 大きな金のメダルをやめ、順位は小さな札に。表紙を大きく。PCの広い画面では2列。
   ③ かかりかん: 最終更新・新しく入った本・値動きの件数、NEWの札、中古価格の上がり下がり。
   ================================================================== */
.ame-page .ame-topbar { padding: 14px 14px 12px; background: linear-gradient(180deg, #f8fafc, #fff); }
.ame-page .ame-topbar-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.ame-page .ame-topbar-icons { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.ame-page .ame-topbar-icons a.hs-ame-ic {
  width: 84px; height: auto; min-width: 0; padding: 10px 4px 8px; gap: 7px; display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; color: rgba(233, 248, 242, .95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ame-page .ame-topbar-icons a.hs-ame-ic:hover { transform: translateY(-2px); border-color: #b9d3cb; box-shadow: 0 8px 18px rgba(15, 23, 42, .10); }
.ame-page .ame-topbar-icons a.hs-ame-ic:active { transform: translateY(0); }
.ame-page .ame-topbar-icons .hs-ame-mark {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #334155; color: rgba(233, 248, 242, .95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 10px rgba(15, 23, 42, .18);
}
.ame-page .ame-topbar-icons .hs-ame-mark .hs-ic { width: 27px; height: 27px; }
.ame-page .ame-topbar-icons .hs-ame-mark .ic-fill { opacity: .25; }
.ame-page .ame-topbar-icons .hs-ame-lbl { font-size: 12px; font-weight: 700; color: #1e293b; letter-spacing: .02em; }
.ame-page .ame-topbar-icons a.hs-ame-ic.is-current { border-color: #1D9E75; background: #effaf5; box-shadow: 0 0 0 3px rgba(29, 158, 117, .16); }
.ame-page .ame-topbar-icons a.hs-ame-ic.is-current .hs-ame-mark { background: linear-gradient(160deg, #1D9E75, #0b6b51); }
.ame-page .ame-topbar-icons a.hs-ame-ic.is-current .hs-ame-lbl { color: #085041; }
@media (max-width: 720px) {
  .ame-page .ame-topbar { padding: 12px 10px 10px; }
  .ame-page .ame-topbar-title { font-size: 18px; margin-bottom: 8px; }
  .ame-page .ame-topbar-icons { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .ame-page .ame-topbar-icons a.hs-ame-ic { width: 100%; padding: 4px 0 6px; gap: 5px; border-color: transparent; background: transparent; box-shadow: none; border-radius: 12px; }
  .ame-page .ame-topbar-icons a.hs-ame-ic:hover { transform: none; box-shadow: none; border-color: transparent; }
  .ame-page .ame-topbar-icons .hs-ame-mark { width: 40px; height: 40px; border-radius: 11px; }
  .ame-page .ame-topbar-icons .hs-ame-mark .hs-ic { width: 23px; height: 23px; }
  .ame-page .ame-topbar-icons .hs-ame-lbl { font-size: clamp(8.5px, 2.55vw, 11px); letter-spacing: -.04em; }
}

/* ② 売れ筋ランキング（暗い地に金の配色はそのまま） */
.ame-page .ame-sold .list.list { max-width: 1180px; padding: 0 16px 20px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1100px) { .ame-page .ame-sold .list.list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ame-page .ame-sold .item-card.sold-card { display: flex; align-items: stretch; gap: 18px; padding: 16px; }
.ame-page .ame-sold .item-card.sold-card::before { content: none; }
.ame-page .ame-sold .sold-cover { flex: 0 0 116px; display: flex; align-items: flex-start; }
.ame-page .ame-sold .sold-card .item-thumb {
  width: 116px; height: 164px; margin: 0; flex: none; object-fit: cover; border-radius: 6px; border: 0; background: #2a2114;
  box-shadow: 0 0 0 1px rgba(244, 220, 148, .55), 0 10px 22px rgba(0, 0, 0, .55), 0 0 22px rgba(245, 205, 90, .16);
  transition: transform .2s;
}
.ame-page .ame-sold .sold-card .item-thumb.ame-thumb--none { background: linear-gradient(160deg, #2a2114, #17110a); }
.ame-page .ame-sold .sold-card:hover .item-thumb { transform: scale(1.03); }
.ame-page .ame-sold .sold-card .item-body { padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ame-page .ame-sold .sold-rank {
  align-self: flex-start; display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #1a1204; font-variant-numeric: tabular-nums; line-height: 1.5;
  background: linear-gradient(180deg, #fff1bd, #e2b443 60%, #c9971f);
}
.ame-page .ame-sold .sold-rank span { font-size: 9px; letter-spacing: .14em; opacity: .7; }
.ame-page .ame-sold .sold-rank small { font-size: 10px; }
.ame-page .ame-sold .sold-card .item-title { margin: 0; font-size: 15.5px; line-height: 1.45; }
.ame-page .ame-sold .sold-asin { font-size: 12px; }
.ame-page .ame-sold .sold-prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.ame-page .ame-sold .sold-prices > div {
  display: flex; flex-direction: column; gap: 1px; min-width: 70px; padding: 5px 10px; border-radius: 8px;
  background: rgba(255, 240, 190, .05); border: 1px solid rgba(201, 151, 31, .30);
}
.ame-page .ame-sold .sold-prices dt { font-size: 10.5px; color: #b9a36a; font-weight: 600; }
.ame-page .ame-sold .sold-prices dd { margin: 0; font-size: 14px; font-weight: 700; color: #fff3cf; font-variant-numeric: tabular-nums; }
.ame-page .ame-sold .sold-prices .is-main { border-color: rgba(245, 205, 90, .6); background: rgba(245, 205, 90, .08); }
.ame-page .ame-sold .sold-prices .is-main dd { font-size: 16px; }
.ame-page .ame-sold .sold-prices .profit-hot { display: inline-block; padding: 0 8px; border-radius: 6px; }
.ame-page .ame-sold .sold-card .action-row { margin-top: auto; padding-top: 4px; gap: 8px; }
@media (max-width: 640px) {
  .ame-page .ame-sold .list.list { padding: 0 10px 16px; gap: 12px; }
  .ame-page .ame-sold .item-card.sold-card { gap: 12px; padding: 12px; }
  .ame-page .ame-sold .sold-cover { flex-basis: 92px; }
  .ame-page .ame-sold .sold-card .item-thumb { width: 92px; height: 130px; }
  .ame-page .ame-sold .sold-card .item-title { font-size: 14px; }
  .ame-page .ame-sold .sold-prices > div { min-width: 0; padding: 4px 8px; }
  .ame-page .ame-sold .sold-prices dd { font-size: 13px; }
  .ame-page .ame-sold .sold-prices .is-main { flex-basis: 100%; }
  .ame-page .ame-sold .sold-prices .is-main dd { font-size: 15px; }
}

/* ③ かかりかん: 変化が分かる表示 */
.ame-page .ame-kakari .kk-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 14px;
  background: #fff; border: 1px solid #dbe6f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.ame-page .ame-kakari .kk-sum__item { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #f3f7fb; }
.ame-page .ame-kakari .kk-sum__item span { font-size: 12px; color: #5b6b7c; font-weight: 600; }
.ame-page .ame-kakari .kk-sum__item b { font-size: 20px; color: #1f3b57; font-variant-numeric: tabular-nums; }
.ame-page .ame-kakari .kk-sum__item b small { font-size: 12px; margin-left: 2px; font-weight: 600; }
.ame-page .ame-kakari .kk-sum__item--new { background: #fff4e5; }
.ame-page .ame-kakari .kk-sum__item--new b { color: #c2410c; }
.ame-page .ame-kakari .kk-sum__item em { font-style: normal; }
.ame-page .ame-kakari em.up, .ame-page .ame-kakari .kk-diff--up { color: #c0262d; }
.ame-page .ame-kakari em.down, .ame-page .ame-kakari .kk-diff--down { color: #1f6fd1; }
.ame-page .ame-kakari .kk-sum__note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #667; }
.ame-page .ame-kakari .kk-badge {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  vertical-align: 2px; color: #fff; background: linear-gradient(180deg, #fb923c, #ea580c);
}
.ame-page .ame-kakari .kk-diff { margin-left: 8px; font-size: 12px; font-weight: 700; }
.ame-page .ame-kakari td.datecell small { display: block; font-size: 11px; color: #888; }
@media (max-width: 720px) {
  .ame-page .ame-kakari .kk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .ame-page .ame-kakari .kk-sum__item { padding: 6px 10px; }
  .ame-page .ame-kakari .kk-sum__item b { font-size: 17px; }
  .ame-page .ame-kakari td.datecell small { display: inline; margin-left: 6px; }
}
.ame-page .ame-sold .sold-asin .asin-link { color: #f0c75a; border-bottom: 1px dotted #a8750f; font-family: ui-monospace, Consolas, monospace; text-decoration: none; }
.ame-page .ame-sold .sold-card .ame-thumb--none { display: flex; align-items: center; justify-content: center; }
.ame-page .ame-sold .sold-card .ame-thumb--none::after { content: "NO IMAGE"; font-size: 10px; letter-spacing: .2em; color: rgba(233, 207, 138, .45); }
@media (max-width: 640px) { .ame-page .ame-sold .page-header h1 { font-size: 23px; letter-spacing: .04em; padding: 0 26px; white-space: nowrap; } .ame-page .ame-sold .page-header { padding-top: 38px; } }

/* 2026-10-23 ユーザー指示: 名称を「コミック仕入れ」に、色付きの文字は黒に（リンクはそのまま。中身の文字は js/setsearch.js の blackenInk）。 */
#purchase-panel-setsearch .ame-topbar-title a, #purchase-panel-setsearch .ame-topbar-title { color: #000; }
/* 売れ筋: 並び替えボタンはスマホではしまう（PCはいつも全部出す） */
.ame-page .ame-sold .sort-fold { display: none; }
@media (max-width: 720px) {
  .ame-page .ame-sold .sort-fold {
    display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 0; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    font-size: 13px; color: #e9cf8a; background: rgba(20, 16, 8, .85); border: 1px solid #7a5d1a; font-family: inherit;
  }
  .ame-page .ame-sold .sort-fold b { color: #fff3cf; font-weight: 700; }
  .ame-page .ame-sold .sort-fold i { font-style: normal; font-size: 10px; transition: transform .2s; }
  .ame-page .ame-sold.is-sort-open .sort-fold i { transform: rotate(180deg); }
  .ame-page .ame-sold .sort-nav { display: none !important; }
  .ame-page .ame-sold.is-sort-open .sort-nav { display: grid !important; margin-top: 10px; }
}
/* 2026-10-23 ユーザー指示「見出しのみ黒でよかった」: 黒にするのは見出し（コミック仕入れ・各ページの見出し・かかりかんの棚の見出し）だけ */
.ame-page .ame-pagetitle, .ame-page .ame-result .ame-pagetitle, .ame-page .ame-kakari h2:not(.ame-pagetitle) { color: #000; }

/* ==================================================================
   2026-10-24 ユーザー指示（コミック仕入れ）
   ① アイコンに「検索」（一番左）・「ぬけ巻リスト」を追加して9個。スマホは1列（横1段）に収める。
   ② 検索結果の「♡ お気に入り」「ぬけ巻登録」ボタン。
   ③ お気に入りの一覧（登録日と時間つき）。
   ④ ぬけ巻リスト（一覧・巻を選ぶ画面）。
   ================================================================== */
#ameSearchArea[hidden] { display: none !important; }
.ame-page .ame-topbar-icons .hs-ame-search { color: #1D9E75; }
.ame-page .ame-topbar-icons .hs-ame-nuke { color: #8a5a00; }
.ame-page .ame-topbar-icons .hs-ame-lbl wbr { display: none; }
@media (max-width: 720px) {
  .ame-page .ame-topbar { padding: 10px 6px 8px; }
  .ame-page .ame-topbar-icons { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1px; }
  .ame-page .ame-topbar-icons a.hs-ame-ic { padding: 3px 0 4px; gap: 3px; border-radius: 9px; justify-content: flex-start; }
  .ame-page .ame-topbar-icons .hs-ame-mark { width: min(34px, 8.6vw); height: min(34px, 8.6vw); border-radius: 9px; }
  .ame-page .ame-topbar-icons .hs-ame-mark .hs-ic { width: min(20px, 5.2vw); height: min(20px, 5.2vw); }
  .ame-page .ame-topbar-icons .hs-ame-lbl {
    font-size: clamp(8px, 2.3vw, 10.5px); letter-spacing: -.05em; line-height: 1.12; text-align: center;
    white-space: normal; word-break: keep-all; overflow-wrap: normal;
  }
  .ame-page .ame-topbar-icons .hs-ame-lbl wbr { display: inline; }
}

/* ② 検索結果のボタン */
.ame-page .ame-cardacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.ame-page .ame-cardacts button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; background: #fff; border: 1.5px solid #cbd5e1; color: #334155; transition: background .15s, border-color .15s, color .15s;
}
.ame-page .ame-cardacts button:disabled { opacity: .6; }
.ame-page .ame-favtoggle svg { fill: none; stroke: #e11d48; stroke-width: 2; }
.ame-page .ame-favtoggle:hover { border-color: #e11d48; }
.ame-page .ame-favtoggle.is-on { background: #fff1f3; border-color: #e11d48; color: #be123c; }
.ame-page .ame-favtoggle.is-on svg { fill: #e11d48; }
.ame-page .ame-nukeadd svg { color: #8a5a00; }
.ame-page .ame-nukeadd:hover { border-color: #b7791f; }
.ame-page .ame-nukeadd.is-on { background: #fff8e6; border-color: #b7791f; color: #7a4b00; }

/* ③ お気に入り */
.ame-page .fv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 14px; }
.ame-page .fv-count { font-weight: 800; font-size: 15px; color: #0f172a; }
.ame-page .fv-tabs { display: inline-flex; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.ame-page .fv-tab { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #475569; text-decoration: none; }
.ame-page .fv-tab.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.ame-page .fv-sortform { margin-left: auto; }
.ame-page .fv-sort { height: 36px; border-radius: 8px; border: 1px solid #cbd5e1; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.ame-page .fv-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1000px) { .ame-page .fv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ame-page .fv-card {
  display: flex; gap: 14px; padding: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: opacity .25s, transform .25s;
}
.ame-page .fv-card.is-gone { opacity: 0; transform: translateX(12px); }
.ame-page .fv-cover { flex: 0 0 auto; width: 84px; height: 120px; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.ame-page .fv-cover img { width: 100%; height: 100%; object-fit: contain; }
.ame-page .fv-noimg { font-size: 10px; color: #94a3b8; font-weight: 700; }
.ame-page .fv-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ame-page .fv-when { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.ame-page .fv-title { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ame-page .fv-title:hover { text-decoration: underline; }
.ame-page .fv-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #475569; align-items: center; }
.ame-page .fv-tag { padding: 1px 8px; border-radius: 999px; background: #f1f5f9; font-weight: 700; }
.ame-page .fv-tag--set { background: #e8f6f0; color: #0b6b51; }
.ame-page .fv-price { font-size: 13px; color: #334155; }
.ame-page .fv-price b { font-size: 16px; color: #0f172a; }
.ame-page .fv-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.ame-page .fv-btn {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid #cbd5e1;
  background: #fff; color: #334155; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.ame-page .fv-btn--main { background: #1D9E75; border-color: #1D9E75; color: #fff; }
.ame-page .fv-del { color: #be123c; border-color: #fecdd3; }
.ame-page .fv-empty { padding: 28px 12px; text-align: center; color: #64748b; line-height: 1.8; background: #f8fafc; border-radius: 12px; }

/* ④ ぬけ巻リスト */
.ame-page .nk-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #1e293b; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.ame-page .nk-btn--main { background: #1D9E75; border-color: #1D9E75; color: #fff; }
.ame-page .nk-btn--danger { color: #be123c; border-color: #fecdd3; }
.ame-page .nk-btn.is-confirm, .ame-page .nk-iconbtn.is-confirm { background: #be123c; border-color: #be123c; color: #fff; }
.ame-page .nk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.ame-page .nk-listlabel { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; flex: 1 1 260px; min-width: 0; }
.ame-page .nk-listsel { flex: 1; min-width: 0; height: 40px; border-radius: 9px; border: 1.5px solid #1D9E75; padding: 0 8px; font: inherit; font-size: 15px; font-weight: 700; background: #fff; }
.ame-page .nk-listbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.ame-page .nk-newform, .ame-page .nk-renameform, .ame-page .nk-secform {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin: 0 0 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.ame-page .nk-newform[hidden], .ame-page .nk-renameform[hidden], .ame-page .nk-secform[hidden] { display: none; }
.ame-page .nk-newform input, .ame-page .nk-newform select, .ame-page .nk-renameform input, .ame-page .nk-secform input, .ame-page .nk-secform select {
  height: 38px; border-radius: 8px; border: 1px solid #cbd5e1; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; flex: 1 1 180px; min-width: 0;
}
.ame-page .nk-first { padding: 16px; background: #fffaf0; border: 1px solid #f3d9a4; border-radius: 12px; line-height: 1.7; }
.ame-page .nk-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.ame-page .nk-q { flex: 1 1 240px; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid #cbd5e1; padding: 0 16px; font: inherit; font-size: 15px; }
.ame-page .nk-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #334155; cursor: pointer; }
.ame-page .nk-chk input { width: 18px; height: 18px; }
.ame-page .nk-sum { margin-left: auto; font-size: 13px; font-weight: 800; color: #7a4b00; }
.ame-page .nk-genre { margin: 10px 0; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.ame-page .nk-genre > summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.ame-page .nk-genre > summary::-webkit-details-marker { display: none; }
.ame-page .nk-genre > summary::before { content: "▸"; color: #64748b; transition: transform .15s; }
.ame-page .nk-genre[open] > summary::before { transform: rotate(90deg); }
.ame-page .nk-gname { font-size: 16px; font-weight: 800; color: #0f172a; }
.ame-page .nk-gcount { margin-left: auto; font-size: 12px; color: #64748b; font-weight: 700; }
.ame-page .nk-pub { padding: 6px 12px 4px; }
.ame-page .nk-pubname { font-weight: 800; color: #0b6b51; font-size: 14px; margin: 6px 0 2px; }
.ame-page .nk-sec { margin: 2px 0 6px 6px; }
.ame-page .nk-sechead { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: #334155; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; }
.ame-page .nk-seccount { font-size: 11px; color: #94a3b8; }
.ame-page .nk-sectools { margin-left: auto; display: inline-flex; gap: 2px; }
.ame-page .nk-iconbtn { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px; color: #64748b; }
.ame-page .nk-iconbtn:hover { background: #f1f5f9; }
.ame-page .nk-titles { list-style: none; margin: 0; padding: 0; }
.ame-page .nk-row {
  display: grid; grid-template-columns: 1fr; gap: 2px; width: 100%; text-align: left; padding: 8px 6px; border: 0; border-bottom: 1px solid #f1f5f9;
  background: transparent; cursor: pointer; font: inherit; color: inherit; border-radius: 6px;
}
.ame-page .nk-row:hover { background: #f8fafc; }
.ame-page .nk-name { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.ame-page .nk-ini { color: #0b6b51; font-weight: 800; margin-right: 2px; }
.ame-page .nk-tot { margin-left: 8px; font-size: 12px; font-weight: 700; color: #64748b; }
.ame-page .nk-state { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.ame-page .nk-miss { color: #b91c1c; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ame-page .nk-done { color: #0b6b51; font-weight: 800; }
.ame-page .nk-note { color: #7a4b00; }
.ame-page .nk-bar2 { display: block; height: 4px; border-radius: 4px; background: #fde2e2; overflow: hidden; margin-top: 3px; max-width: 320px; }
.ame-page .nk-bar2 i { display: block; height: 100%; background: #1D9E75; }
.ame-page .nk-empty { padding: 24px 12px; text-align: center; color: #64748b; line-height: 1.8; background: #f8fafc; border-radius: 12px; }

/* 巻を選ぶ画面（モーダル） */
.ame-page .ame-modal.nk-modal .ame-modal-box { max-width: 640px; height: auto; max-height: 92vh; margin-top: 3vh; }
.ame-page .ame-modal.nk-modal .ame-modal-body { max-height: 92vh; box-sizing: border-box; padding: 16px; }
.ame-page .nk-edit { display: flex; flex-direction: column; gap: 10px; }
.ame-page .nk-banner { background: #e8f6f0; color: #085041; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; line-height: 1.5; margin-right: 36px; }
.ame-page .nk-edit-h { margin: 0; font-size: 18px; }
.ame-page .nk-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 800; color: #475569; flex: 1; min-width: 0; }
.ame-page .nk-f input, .ame-page .nk-f select, .ame-page .nk-f textarea {
  font: inherit; font-size: 15px; font-weight: 600; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0;
}
.ame-page .nk-frow { display: flex; gap: 10px; }
.ame-page .nk-f--ini { flex: 0 0 72px; }
.ame-page .nk-f--ini input { text-align: center; font-size: 18px; font-weight: 800; }
.ame-page .nk-totalrow { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; flex-wrap: wrap; }
.ame-page .nk-totalrow input { width: 74px; height: 40px; text-align: center; font: inherit; font-size: 18px; font-weight: 800; border: 1px solid #cbd5e1; border-radius: 8px; }
.ame-page .nk-step { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.ame-page .nk-legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: #475569; }
.ame-page .nk-lg::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.ame-page .nk-lg--own::before { background: #1D9E75; }
.ame-page .nk-lg--miss::before { background: #fff; border: 2px solid #ef4444; box-sizing: border-box; }
.ame-page .nk-hint { color: #64748b; font-weight: 600; font-size: 12px; }
.ame-page .nk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.ame-page .nk-gridnote { grid-column: 1 / -1; color: #64748b; font-size: 13px; margin: 4px 0; }
.ame-page .nk-vol {
  height: 44px; border-radius: 10px; border: 2px solid #ef4444; background: #fff; color: #b91c1c; font: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; transition: background .1s, color .1s, transform .08s;
}
.ame-page .nk-vol:active { transform: scale(.94); }
.ame-page .nk-vol.is-own { background: #1D9E75; border-color: #1D9E75; color: #fff; }
.ame-page .nk-vol.is-extra { border-style: dashed; opacity: .7; }
.ame-page .nk-vol.is-anchor { box-shadow: 0 0 0 3px #f59e0b; }
.ame-page .nk-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ame-page .nk-rangebtn.is-on { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ame-page .nk-rangein { display: flex; gap: 6px; }
.ame-page .nk-range { flex: 1; min-width: 0; height: 38px; border-radius: 8px; border: 1px solid #cbd5e1; padding: 0 10px; font: inherit; font-size: 15px; }
.ame-page .nk-missline { font-size: 14px; color: #334155; min-height: 20px; }
.ame-page .nk-missline b { color: #b91c1c; }
.ame-page .nk-missline .nk-done { color: #0b6b51; }
.ame-page .nk-editacts { display: flex; align-items: center; gap: 8px; justify-content: flex-end; position: sticky; bottom: -16px; background: #fff; padding: 10px 0 4px; }
.ame-page .nk-editacts .nk-btn { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.ame-page .nk-saved { margin-right: auto; font-size: 12px; color: #0b6b51; font-weight: 700; }
.ame-page .nk-exp { display: flex; flex-direction: column; gap: 8px; }
.ame-page .nk-exp h3 { margin: 0 40px 0 0; font-size: 16px; }
.ame-page .nk-exp textarea { width: 100%; box-sizing: border-box; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; }
@media (max-width: 720px) {
  .ame-page .nk-listbtns { width: 100%; }
  .ame-page .nk-listbtns .nk-btn { flex: 1 1 auto; padding: 6px 8px; font-size: 12px; }
  .ame-page .nk-sum { margin-left: 0; width: 100%; }
  .ame-page .ame-modal.nk-modal .ame-modal-box { width: 100%; max-height: 96vh; margin-top: 2vh; border-radius: 14px 14px 0 0; }
  .ame-page .nk-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
  .ame-page .nk-vol { height: 42px; font-size: 15px; }
  .ame-page .fv-cover { width: 70px; height: 100px; }
}
.ame-page .nk-totalrow .nk-chk input, .ame-page .nk-tools .nk-chk input { width: 18px !important; height: 18px !important; min-width: 0; padding: 0; margin: 0; flex: none; }

/* 2026-10-24 ユーザー指示: 押せる文字（映像化のタイトル・トップへ戻る・[戻る]）にアンダーバー */
#purchase-panel-setsearch .ame-topbar-title a.ame-home { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ame-page .adap-list .adap-title a.adap-link { color: #1a56db; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.ame-page .adap-list .adap-title a.adap-link:hover { color: #0b3aa8; }
.ame-page .ame-backrow { margin: 2px 0 10px; }
.ame-page .ame-backrow .ame-home { color: #0000ee; text-decoration: underline; font-size: 14px; }

/* 2026-10-24: ぬけ巻 完結/未完結・削除の確認・組み合わせセット */
.ame-page .nk-status { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; align-self: flex-start; }
.ame-page .nk-stbtn { min-width: 84px; height: 38px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; font-weight: 800; color: #64748b; cursor: pointer; }
.ame-page .nk-stbtn.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }
.ame-page .nk-stbtn[data-st=ongoing].is-on { color: #b45309; }
.ame-page .nk-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-weight: 800; }
.ame-page .nk-confirm[hidden] { display: none; }
.ame-page .nk-btn--dangerfill { background: #be123c; border-color: #be123c; color: #fff; }
.ame-page .nk-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ame-page .nk-parts .nk-btn { background: #fff; }

/* 2026-10-24: ぬけ巻 チェックしてまとめて削除・自動で調べる */
.ame-page .nk-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; padding: 8px 10px; background: #f8fafc; border-radius: 10px; }
.ame-page .nk-selcount { font-size: 13px; font-weight: 700; color: #475569; }
.ame-page .nk-delsel { margin-left: auto; }
.ame-page .nk-delsel:disabled { opacity: .45; cursor: default; }
.ame-page .nk-selconfirm { margin-bottom: 8px; }
.ame-page .nk-title { display: flex; align-items: stretch; gap: 2px; }
.ame-page .nk-title .nk-row { flex: 1; min-width: 0; }
.ame-page .nk-pick { display: flex; align-items: center; padding: 0 6px 0 2px; cursor: pointer; }
.ame-page .nk-pick input { width: 20px !important; height: 20px !important; margin: 0; padding: 0; flex: none; }
.ame-page .nk-title.is-picked { background: #fff1f2; border-radius: 8px; }
.ame-page .nk-delsec.is-confirm { font-size: 12px; font-weight: 800; }
.ame-page .nk-detect { align-self: flex-start; background: #eef6ff; border-color: #bfdbfe; color: #1e40af; }
.ame-page .nk-selbar .nk-chk input { width: 20px !important; height: 20px !important; margin: 0; padding: 0; flex: none; }

@keyframes nkFlash { 0% { box-shadow: 0 0 0 0 rgba(190, 18, 60, .55); } 100% { box-shadow: 0 0 0 12px rgba(190, 18, 60, 0); } }
.ame-page .nk-confirm.is-flash { animation: nkFlash .9s ease-out 2; }

/* 2026-10-24 ユーザー指摘: スマホで🗑を押すと文字が白くなる（触った後の hover の薄い背景が残り、白い文字が見えなかった） */
.ame-page .nk-iconbtn.is-confirm, .ame-page .nk-iconbtn.is-confirm:hover, .ame-page .nk-iconbtn.is-confirm:active, .ame-page .nk-iconbtn.is-confirm:focus {
  background: #be123c !important; color: #fff !important; padding: 5px 9px; border-radius: 8px;
}
@media (hover: none) { .ame-page .nk-iconbtn:hover { background: transparent; } }
.ame-page .nk-detectmsg { font-size: 12px; font-weight: 700; color: #1e40af; min-height: 16px; }

/* 2026-10-24: ぬけ巻リストの各作品に ASIN */
.ame-page .nk-asin { font-size: 12px; color: #64748b; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* 2026-10-24 ユーザー指示: ASIN はリンクにして右詰め（作品の行を押す所と離して誤操作を防ぐ） */
.ame-page .nk-title .nk-asin {
  flex: none; align-self: center; margin-left: 8px; padding: 6px 4px; font-size: 12px; font-weight: 700; color: #1a56db;
  text-decoration: underline; text-underline-offset: 3px; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap;
}
/* 2026-10-24 ユーザー指示: 新発売のアイコンは「NEW」。白い札に濃い文字（選択中は緑の文字） */
.ame-page .ame-topbar-icons .hs-ame-mark .hs-ic-new { width: 32px; height: 32px; }
.ame-page .ame-topbar-icons a.hs-ame-ic.is-current .hs-ic-new text { fill: #0b6b51; }
@media (max-width: 720px) { .ame-page .ame-topbar-icons .hs-ame-mark .hs-ic-new { width: min(26px, 6.8vw); height: min(26px, 6.8vw); } }

/* ==================================================================
   2026-10-24 ユーザー指示: Menu「道具一覧」（note【道具の紹介】のまとめ直し）
   ================================================================== */
#module-tools { background: #f6f7f9; }
.tl-root { max-width: 1120px; margin: 0 auto; padding: 20px 20px 40px; color: #1e293b; }
.tl-hero { background: linear-gradient(135deg, #0f3d32, #1D9E75); color: #fff; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 10px 30px rgba(15, 61, 50, .25); }
.tl-eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; opacity: .85; font-weight: 700; }
.tl-title { margin: 0 0 10px; font-size: 28px; font-weight: 900; color: #fff; }
.tl-lead { margin: 0; font-size: 15px; line-height: 1.8; opacity: .95; }
.tl-lead b { background: rgba(255, 255, 255, .18); padding: 1px 4px; border-radius: 4px; }
.tl-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tl-rule { display: flex; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; }
.tl-rule__n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e8f6f0; color: #0b6b51; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tl-rule b { font-size: 15px; }
.tl-rule p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: #475569; }
.tl-legend { font-size: 13px; color: #475569; margin: 4px 0 14px; line-height: 2; }
.tl-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.tl-legend .tl-badge { margin: 0 4px 0 8px; }
.tl-legend .tl-badge:first-child { margin-left: 0; }
.tl-badge--must { background: #fee2e2; color: #b91c1c; }
.tl-badge--good { background: #e0f2fe; color: #0369a1; }
.tl-badge--later { background: #f1f5f9; color: #475569; }
.tl-starter { background: #fffaf0; border: 1px solid #f3d9a4; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.tl-starter h3 { margin: 0 0 8px; font-size: 16px; color: #7a4b00; }
.tl-starter__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-starter__col h4 { margin: 0 0 4px; font-size: 14px; }
.tl-starter__col ul { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.8; }
.tl-toc { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 0 6px; background: #f6f7f9; scrollbar-width: none; }
.tl-toc::-webkit-scrollbar { display: none; }
.tl-toc a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #cbd5e1; color: #1e293b; font-size: 13px; font-weight: 700; text-decoration: none; }
.tl-toc a:hover { border-color: #1D9E75; color: #0b6b51; }
.tl-cat { display: flex; align-items: center; gap: 10px; margin: 26px 0 4px; font-size: 19px; font-weight: 900; scroll-margin-top: 56px; }
.tl-cat span { font-size: 12px; font-weight: 900; color: #fff; background: #1D9E75; border-radius: 8px; padding: 3px 7px; letter-spacing: .05em; }
.tl-catdesc { margin: 0 0 10px; font-size: 13.5px; color: #475569; line-height: 1.7; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.tl-grid--wide { grid-template-columns: 1fr; }
.tl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.tl-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tl-card h4 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.4; }
.tl-ex { margin: 4px 0 8px; font-size: 12.5px; color: #64748b; }
.tl-card ul { margin: 0 0 12px; padding-left: 1.15em; font-size: 13.5px; line-height: 1.75; color: #334155; }
.tl-buy { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; background: #1D9E75; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.tl-buy::after { content: "↗"; font-size: 12px; }
.tl-buy:hover { background: #0b6b51; }
.tl-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-compare > div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.tl-compare ul { margin: 4px 0 0; }
.tl-ok { color: #0b6b51; }
.tl-ng { color: #b91c1c; }
.tl-foot { margin: 28px 0 0; font-size: 12px; color: #64748b; line-height: 1.7; }
@media (max-width: 720px) {
  .tl-root { padding: 12px 12px 32px; }
  .tl-hero { padding: 20px 16px 18px; border-radius: 14px; }
  .tl-title { font-size: 24px; }
  .tl-lead { font-size: 14px; }
  .tl-rules, .tl-starter__grid, .tl-compare { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: 1fr; }
}

/* 2026-10-24: 道具一覧の追加（100円ショップ・送料表）とビーム比較 */
.tl-shop { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #7a4b00; background: #fff7e6; border-radius: 8px; padding: 6px 10px; }
.tl-shiptable { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin-top: 12px; overflow-x: auto; }
.tl-shiptable h4 { margin: 0 0 8px; font-size: 15px; }
.tl-shiptable table, .bm-table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 560px; }
.tl-shiptable th, .tl-shiptable td, .bm-table th, .bm-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.tl-shiptable th, .bm-table th { background: #f8fafc; }
.tl-shiptable .small, .bm-table .small, .tl-root .small { font-size: 12px; color: #64748b; }
.tl-new { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 800; color: #fff; background: #dc2626; border-radius: 999px; padding: 1px 8px; }
.tl-hero--beam { background: linear-gradient(135deg, #1e293b, #334155); }
.bm-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.bm-pick { border-radius: 14px; padding: 14px 16px; border: 2px solid; background: #fff; }
.bm-pick--kdc { border-color: #1D9E75; }
.bm-pick--tera { border-color: #2563eb; }
.bm-pick__t { margin: 0; font-size: 12.5px; font-weight: 700; color: #64748b; }
.bm-pick__n { margin: 2px 0 6px; font-size: 22px; font-weight: 900; }
.bm-pick--kdc .bm-pick__n { color: #0b6b51; }
.bm-pick--tera .bm-pick__n { color: #1d4ed8; }
.bm-pick ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
.bm-img { margin: 12px 0; text-align: center; }
.bm-img img { max-width: 100%; width: 640px; border-radius: 12px; border: 1px solid #e2e8f0; }
.bm-tablewrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 4px; }
.bm-table td:first-child { font-weight: 700; white-space: nowrap; background: #f8fafc; }
.bm-p { font-size: 15px; line-height: 1.9; margin: 8px 0; }
.bm-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
@media (max-width: 720px) { .bm-verdict { grid-template-columns: 1fr; } .bm-p { font-size: 14px; } }

.tl-shiptable .tl-row-sep td { background: #f1f5f9; font-weight: 800; color: #0b6b51; }
/* 2026-10-25 メモ欄の「更新してもメモ欄をリセットしない」 */
.memo-keep { display:flex; align-items:center; gap:6px; font-size:12.5px; color:#475569; margin:4px 0 0; font-weight:400; white-space:nowrap; }
.memo-keep input { margin:0; }
/* 2026-10-25 専用バーコード */
.codes-warn { color:#b91c1c; font-weight:700; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; padding:10px 12px; }
.codes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:14px 0; }
.codes-item { border:1px solid #e2e8f0; border-radius:12px; padding:12px; background:#fff; }
.codes-item h3 { margin:0 0 8px; font-size:16px; }
.codes-item img { width:100%; max-width:360px; display:block; margin:0 auto 8px; }
@media (max-width: 900px) { .codes-grid { grid-template-columns:1fr; } }

/* 2026-10-25 スマホでDVD仕入の結果カードがはみ出る問題: 長い「メルカリ…」の説明が列幅を押し広げていた */
.dvd-page .dvd-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dvd-page .dvd-nums > div { min-width: 0; }
.dvd-page .dvd-nums .dvd-me { grid-column: 1 / -1; align-items: baseline; }
.dvd-page .dvd-nums .dvd-me span { white-space: normal; }
@media (max-width: 400px) {
  .dvd-page .dvd-nums div { font-size: 12px; }
  .dvd-page .dvd-nums span { font-size: 11px; }
}
.dvd-page .dvd-nums span { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.dvd-page .dvd-nums b { flex: none; }

/* 2026-10-25 ユーザー指示: カードは「ブックオフ・Amazon・倍率」→ メルカリ※ → Amazon販売（FBA・自己発送）。見込み利益は出さない */
.dvd-page .dvd-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dvd-page .dvd-nums .dvd-n3 { flex-direction: column; justify-content: flex-start; gap: 0; }
.dvd-page .dvd-nums .dvd-me, .dvd-page .dvd-nums .dvd-am { grid-column: 1 / -1; align-items: baseline; }
.dvd-page .dvd-nums .dvd-am-v { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; color: inherit; font-size: 13px; }
.dvd-page .dvd-nums .dvd-am-v small { color: #666; font-size: 11px; }
.dvd-page .dvd-nums .dvd-am { flex-direction: column; align-items: stretch; gap: 2px; }
.dvd-page .dvd-nums .dvd-am > span:first-child { white-space: nowrap; }
.dvd-page .dvd-nums .dvd-am-v { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 6px; justify-content: stretch; }
.dvd-page .dvd-nums .dvd-am-v small { align-self: baseline; }

/* 2026-10-26 OCR仕入の仕入れ値設定: プロファイル・セール・結果の並びだけ */
#purchase-qc-details .qc-ocr-only { display: none; }
#p2j-qc-host #purchase-qc-details .qc-price-row { display: none; }
#p2j-qc-host #purchase-qc-details .qc-ocr-only { display: flex; align-items: center; gap: 8px; }
.qc-switch { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; }
.qc-switch label { margin: 0; cursor: pointer; }
.qc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.qc-switch span { display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #475569; background: #fff; }
.qc-switch input:checked + span { background: #1D9E75; color: #fff; }

/* 2026-10-26 カメラをかざして続けて読む（複数検索・プロパー仕入れ） */
.cs-open { margin-right: 8px; }
.cs-panel { margin: 10px 0; padding: 12px; border: 1px solid #cfe7dd; border-radius: 12px; background: #f6fbf9; text-align: center; }
.cs-video { position: relative; width: min(320px, 100%); aspect-ratio: 4 / 3; margin: 0 auto 8px; border-radius: 12px; background: #000; overflow: hidden; }
.cs-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-video::after { content: ""; position: absolute; top: 50%; left: 50%; width: 72%; height: 30%; transform: translate(-50%, -50%); border: 2px solid rgba(29,158,117,.9); border-radius: 6px; pointer-events: none; }
.cs-panel.is-paused .cs-video::after { border-color: #f59e0b; }
.cs-msg { font-size: 14px; font-weight: 700; color: #1f2937; margin: 4px 0 8px; word-break: break-all; }
.cs-msg.is-bad { color: #b91c1c; }
.cs-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cs-price { margin: 4px 0 10px; padding: 10px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
.cs-price-title { font-weight: 800; margin-bottom: 8px; }
.cs-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.cs-presets .btn { min-width: 76px; min-height: 44px; font-size: 16px; font-weight: 800; }
.cs-other { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.cs-other input { width: 110px; }
.cs-panel.is-paused .cs-video { display: none; }
.cs-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.cs-presets .btn { min-width: 0; min-height: 46px; font-size: 15px; padding: 0 4px; }
#p2j-qc-host #purchase-qc-details .qc-ocr-keep { display: flex; }

/* 2026-10-26 出品設定 コメントショートカットの並べ替え（▲▼） */
.shortcut-group .groupHeader { display: flex; align-items: center; gap: 8px; }
.shortcut-group .groupHeader strong { flex: 1; }
.sc-move button { min-width: 34px; padding: 4px 8px; }
.sc-move button:disabled { opacity: .35; }

/* 2026-10-26 OCR仕入: 撮った写真の上で「買い」の本を光らせる */
.ocr-ar { margin: 8px 0 14px; padding: 10px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.ocr-ar__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocr-ar__head b { font-size: 15px; }
.ocr-ar__n { font-size: 13px; color: #92400e; font-weight: 700; margin-right: auto; }
.ocr-ar__body { margin-top: 10px; display: grid; gap: 12px; }
.ocr-ar__frame { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #000; }
.ocr-ar__frame img, .ocr-ar__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ocr-ar__glow { fill: rgba(255, 221, 0, .18); stroke: #ffd400; stroke-width: 5; vector-effect: non-scaling-stroke; animation: ocrArPulse 1.2s ease-in-out infinite; }
.ocr-ar__label { fill: #fff; font-weight: 900; paint-order: stroke; stroke: #b45309; stroke-width: 4px; }
@keyframes ocrArPulse { 0%, 100% { stroke-opacity: 1; fill-opacity: .18; } 50% { stroke-opacity: .45; fill-opacity: .4; } }
.ocr-ar__cap { font-size: 12px; color: #6b7280; margin-top: 4px; }
.cs-vibe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #475569; }
/* 2026-10-26 修正: 複数検索に「結果の並び」が出ていた（行の表示ルールの方が強かった） */
#purchase-qc-details .qc-body .row.qc-ocr-only { display: none; }
#p2j-qc-host #purchase-qc-details .qc-body .row.qc-ocr-only { display: flex; }
/* 読み取った瞬間の合図（振動しない端末でも分かるように） */
.cs-panel.cs-hit .cs-video::after { border-color: #22c55e; border-width: 4px; background: rgba(34,197,94,.25); }
.cs-hitmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); font-size: 64px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.cs-panel.cs-hit .cs-hitmark { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 2026-10-26 スマホ仕入れ */
.sp-title small { font-size: 13px; color: #6b7280; font-weight: 600; margin-left: 6px; }
.sp-memo { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.sp-memo input { flex: 1; min-width: 0; }
.sp-mode { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; flex-wrap: wrap; }
.sp-mode__label { font-weight: 700; }
.sp-help { margin: 4px 0 10px; }
.sp-cam-btn { width: 100%; min-height: 52px; font-size: 18px; font-weight: 800; }
.sp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.sp-list { max-height: 260px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px 8px; background: #fff; }
.sp-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #e5e7eb; font-size: 14px; }
.sp-row:last-child { border-bottom: 0; }
.sp-row--shelf { justify-content: center; color: #6b7280; font-weight: 700; }
.sp-code { font-family: ui-monospace, Menlo, Consolas, monospace; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sp-price { font-weight: 800; white-space: nowrap; }
.sp-noprice { color: #9ca3af; font-weight: 600; }
.sp-del { border: 1px solid #fecaca; background: #fff5f5; color: #b91c1c; border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.sp-actions { display: flex; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.sp-actions .btn--primary { flex: 1; min-height: 46px; }
.cs-other + .cs-other { margin-top: 8px; }
.sp-input { width: 100%; min-height: 140px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.sp-input-hint { margin: 4px 0 0; }
.sp-qc-wrap { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 2026-10-26 スマホ仕入れ（作り直し）: PCでも横に広げない（プロパー仕入れの入力カードと同じくらい） */
#purchase-panel-smart .sp-card { max-width: 760px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sp-head .sp-title { margin: 0; }
.sp-head .qc-switch span { padding: 8px 16px; font-size: 14px; }
.sp-help { margin: 8px 0; line-height: 1.6; }
@media (min-width: 769px) { .sp-cam-btn { width: auto; min-width: 260px; } .sp-input { max-width: 100%; } }
.sp-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.sp-presets .btn { min-width: 70px; padding: 6px 10px; font-weight: 800; color: #1d4ed8; border: 1px solid #93c5fd; background: #fff; }
.sp-kind { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; margin-right: 4px; color: #fff; vertical-align: middle; }
.sp-kind--multi { background: #1D9E75; }
.sp-kind--os { background: #2563eb; }
#sp-sum { font-weight: 600; color: #475569; font-size: 13px; }
.sp-presets[hidden] { display: none; }
.sp-list-head .btn { white-space: nowrap; flex: none; }

/* 単品仕入れ（2026-10-27 ユーザー指示）: スキャンデータ入力を「均一価格」タブと同じ並びに。
   棚区切りは見出しの右端、リセットは開始ボタンの上、カメラは開始ボタンの左 */
#purchase-panel-smart .sp-card { max-width: none; }
.sp-head { margin-bottom: 10px; }
.sp-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sp-title-row .btn { white-space: nowrap; flex: none; }
.sp-count { font-size: 13px; font-weight: 600; color: #6b7280; margin-left: 6px; }
.sp-count[hidden] { display: none; }
.sp-entry .sp-input { min-height: 190px; font-size: 14px; }
.sp-entry .scan-entry__hint .sp-input-hint { margin: 0; }
.sp-entry .sp-presets { margin: 8px 0 0; }
.sp-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sp-action-row { display: flex; gap: 8px; justify-content: flex-end; width: 100%; }
.sp-action #sp-clear { padding: 6px 14px; }
.sp-action .sp-cam-btn { width: auto; min-width: 0; min-height: 0; font-size: 15px; font-weight: 700; padding: 15px 12px; border-radius: 10px; flex: none; }
.sp-action #sp-submit { font-size: 15px; font-weight: 700; padding: 15px 10px; border-radius: 10px; width: 254px; max-width: 100%; }
@media (min-width: 901px) {
  #purchase-panel-smart .sp-card { width: fit-content; max-width: 100%; }
  #purchase-panel-smart .sp-entry { grid-template-columns: 394px auto; }
}
@media (max-width: 720px) {
  .sp-action { align-items: stretch; }
  .sp-action #sp-clear { align-self: flex-end; }
  .sp-action-row { margin-top: 2px; }
  .sp-action #sp-submit { flex: 1; width: auto; font-size: 17px; padding: 16px 8px; }
  .sp-action .sp-cam-btn { padding: 16px 10px; }
  .sp-entry .sp-input { min-height: 120px; }
}

/* 単品仕入れの均一価格: 文字・入力欄・ボタンの見た目も「均一価格」タブにそろえる（2026-10-27） */
#purchase-panel-smart label[for="sp-memo"] { font-size: 15px; font-weight: 700; color: #1f2430; }
#purchase-panel-smart #sp-memo { background: #fff !important; border: 1px solid #767676; border-radius: 0; font-size: 13.33px; padding: 8px; box-sizing: border-box; }
#purchase-panel-smart #sp-input-hint { font-size: 16px; font-weight: 600; color: #000; }
#purchase-panel-smart .sp-entry .sp-input { font-family: inherit; font-size: 13.33px; padding: 8px; }
#purchase-panel-smart #sp-submit { background: #007bff; border: 0; height: 53px; }
#purchase-panel-smart #sp-submit:disabled { opacity: .55; }
#purchase-panel-smart .sp-cam-btn { height: 53px; }
#purchase-panel-smart .sp-help { max-width: 820px; }
#purchase-panel-smart .sp-entry .scan-entry__hint { max-width: 420px; }
#purchase-panel-smart .sp-title-row h2 { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
#purchase-panel-smart .sp-count { margin-left: 0; white-space: nowrap; }
@media (max-width: 720px) {
  #purchase-panel-smart #sp-input-hint { font-size: 14px; }
  #purchase-panel-smart #sp-submit { font-size: 15px; padding: 8px 6px; }
  #purchase-panel-smart .sp-cam-btn { font-size: 14px; padding: 8px 10px; }
}
@media (max-width: 720px) {
  #purchase-panel-smart #sp-submit { white-space: nowrap; font-size: 14px; padding: 8px 4px; min-width: 0; }
  #purchase-panel-smart .sp-cam-btn { white-space: nowrap; padding: 8px 8px; min-width: 0; }
}

/* 単品仕入れ（2026-10-27）: 見出し「スキャンデータ入力」を入力欄のすぐ上に。スマホは入力欄・メモ欄を横半分に */
#purchase-panel-smart .sp-entry { grid-template-areas: "ttl ttl" "input memo" "input hint" "input action"; }
#purchase-panel-smart .sp-entry .sp-title-row { grid-area: ttl; }
#purchase-panel-smart .sp-input-hint:empty { display: none; }
@media (max-width: 720px) {
  #purchase-panel-smart .sp-entry { grid-template-columns: 1fr; grid-template-areas: "memo" "ttl" "input" "hint" "action"; }
  #purchase-panel-smart .sp-entry .sp-title-row { margin: 8px 0 0; }
  #purchase-panel-smart .sp-entry .scan-entry__memo { margin-top: 0 !important; }
}

/* 単品仕入れ（2026-10-28 ユーザー指示）
   - カメラはスキャンデータ入力のすぐ上に出し、読みながら入力欄が見えるようにする
   - プロパー仕入れモードは「プロパー仕入れ」タブと同じ見た目（下は同タブの ID 付きの決まりを単品仕入れ用にも当てたもの） */
#purchase-panel-smart .sp-entry { grid-template-areas: "ttl ttl" "cam cam" "input memo" "input hint" "input action"; }
#purchase-panel-smart .sp-cam-slot { grid-area: cam; min-width: 0; }
#purchase-panel-smart .sp-cam-slot .cs-panel { margin: 0 0 6px; }
#purchase-panel-smart .sp-entry[hidden], #purchase-panel-smart .sp-os[hidden] { display: none; }
#purchase-panel-smart .sp-card.sp-card--os { width: auto; max-width: 760px; }
#purchase-panel-smart .sp-os .os-price-wrap #sp-os-add { white-space: nowrap; flex: none; margin-left: 6px; }
#purchase-panel-smart label[for="sp-os-price"] { font-size: 15px; font-weight: 700; }
#purchase-panel-smart #sp-os-preset-msg:empty, #purchase-panel-smart #sp-os-msg:empty { display: none; }
#purchase-panel-smart .sp-os .os-field--memo #sp-memo { flex: 1 1 auto; min-width: 0; width: auto; font-size: 15px; padding: 7px 10px; border: 1px solid #bbb; border-radius: 8px; }
#purchase-panel-smart .sp-os-camhost .cs-panel { margin: 10px 0 0; }
@media (min-width: 721px) {
  #purchase-panel-smart #sp-os-isbn { width: 320px; max-width: 100%; }
  #purchase-panel-smart #sp-os-preset-msg, #purchase-panel-smart #sp-os-msg { grid-column: 2; }
  #purchase-panel-smart #sp-os-add { padding: 6px 10px; font-size: 13px; min-height: 0; }
}
@media (max-width: 720px) {
  #purchase-panel-smart .sp-entry { grid-template-areas: "memo" "ttl" "cam" "input" "hint" "action"; }
  #purchase-panel-smart .sp-os .os-field--memo #sp-memo { font-size: 14px; padding: 7px 8px; min-width: 120px; }
  /* カメラ中は映像を少し低くして、下のスキャンデータ入力まで1画面に入れる */
  #purchase-panel-smart .sp-cam-on .sp-cam-slot .cs-panel { padding: 8px; }
  #purchase-panel-smart .sp-cam-on .sp-cam-slot .cs-video { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 6px; }
  #purchase-panel-smart .sp-cam-on .sp-cam-slot .cs-msg { margin: 2px 0 6px; }
  #purchase-panel-smart .sp-cam-on .sp-cam-slot .cs-vibe { margin-top: 6px; }
  #purchase-panel-smart .sp-cam-on .sp-entry .sp-input { min-height: 0; height: 140px; }
}
/* カメラの映像でカードの横幅が広がらないように。均一価格は見出しの右に棚区切りがあるので、映像の下の棚区切りは出さない */
#purchase-panel-smart .sp-cam-slot { width: 0; min-width: 100%; }
#purchase-panel-smart .sp-cam-slot .cs-btns .btn:first-child { display: none; }
/* 単品仕入れのプロパー（2026-10-28 ユーザー指示）: ためた本は新しいものが上・行の間を詰めて・枠の中でスクロール */
#purchase-panel-smart .sp-os .os-head { margin-bottom: 4px; }
#purchase-panel-smart .sp-os-tablewrap { max-height: 260px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; -webkit-overflow-scrolling: touch; }
#purchase-panel-smart .sp-os-tablewrap thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; padding-top: 4px; padding-bottom: 4px; }
#purchase-panel-smart .sp-os-tablewrap td { padding-top: 2px; padding-bottom: 2px; line-height: 1.3; }
#purchase-panel-smart .sp-os-tablewrap .os-price-edit { padding: 0 4px; font-size: 14px; height: 24px; box-sizing: border-box; }
#purchase-panel-smart .sp-os-tablewrap .btn--small { padding: 2px 8px; min-height: 0; font-size: 12px; }
/* 単品仕入れ（2026-10-28 ユーザー指示）: 切り替えスイッチは左右同じ幅。カメラ中は下の青い登録ボタンを消す（映像の下の登録ボタンを使う） */
#purchase-panel-smart .sp-mode { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; }
#purchase-panel-smart .sp-mode label, #purchase-panel-smart .sp-mode span { display: block; text-align: center; }
#purchase-panel-smart .sp-os-tablewrap { max-height: none; }
#purchase-panel-smart .sp-cam-on #sp-submit, #purchase-panel-smart .sp-cam-on #sp-os-submit { display: none; }
/* 単品仕入れのプロパー（2026-10-28 ユーザー指示）: 金額ボタンは「円」なし・横6個（カメラの金額ボタンも同じ） */
#purchase-panel-smart #sp-os-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
#purchase-panel-smart #sp-os-presets button { min-width: 0; padding: 10px 2px; font-size: 15px; white-space: nowrap; }
#purchase-panel-smart #sp-os-presets .hint-text { grid-column: 1 / -1; }
#purchase-panel-smart .sp-cs-presets { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
#purchase-panel-smart .sp-cs-presets .btn { padding: 0 1px; font-size: 14px; white-space: nowrap; }
@media (max-width: 380px) {
  #purchase-panel-smart #sp-os-presets button, #purchase-panel-smart .sp-cs-presets .btn { font-size: 13px; }
}
/* 単品仕入れ（2026-10-28 ユーザー指示）: カメラの「読み取り時のバイブ オン／オフ」は出さない（代わりにカメラ停止ボタン） */
#purchase-panel-smart .cs-vibe { display: none; }

/* 2026-10-29 査定一覧：書き出し条件・合算印刷バー（実機 buyback_receipts_list.php） */
.appraisal-export{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end;margin:0 0 12px;padding:10px 12px;border:1px solid #ddd;border-radius:8px}
.appraisal-export > div{width:100%}
.appraisal-ops{white-space:nowrap}
.appraisal-ops .btn{margin:2px 4px 2px 0}
.appraisal-multi-print{position:fixed;left:16px;bottom:16px;z-index:50;display:flex;align-items:center;gap:8px;background:#fff;padding:8px 12px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.appraisal-multi-print[hidden]{display:none}

/* 2026-10-29 単品仕入れ（ユーザー指示）
   - プロパー：「📷 カメラで読む」の横に棚区切り（右詰め）。メモの見出しに「※末尾ハイフン後は自動繰上」
   - 均一価格：メモ欄・スキャンデータ入力欄の角を丸く（プロパーの入力欄と同じ） */
#purchase-panel-smart .sp-os-cam { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#purchase-panel-smart .sp-os-cam .sp-os-shelf { flex: none; margin-left: auto; }
#purchase-panel-smart .sp-os-memo-note { display: block; font-size: 11px; font-weight: 400; color: #666; white-space: nowrap; }
#purchase-panel-smart .sp-entry #sp-memo { border-radius: 8px; }
#purchase-panel-smart .sp-entry .sp-input { border-radius: 8px; }

/* 2026-10-29 単品仕入れ（ユーザー指示）
   - スキャンデータ入力欄は大きさを変えられないように（Android のつまみを出さない）
   - 均一価格: カメラ中はリセットの下の「カメラ停止」を出さない（映像の下の停止ボタンで止める）
   - スキャン結果一覧: 行ごとに分かりやすい「削除」ボタン */
#purchase-panel-smart #sp-input { resize: none; }
#purchase-panel-smart .sp-cam-on .sp-entry #sp-cam-btn { display: none; }
#purchase-panel-smart .sp-batch-delete, #purchase-panel-ocr .sp-batch-delete { display: block; margin-top: 6px; padding: 4px 10px; min-height: 0; font-size: 13px; color: #b91c1c; border: 1px solid #b91c1c; background: #fff; white-space: nowrap; }

/* 2026-10-30 単品仕入れ: 本日Nスキャン・買取査定モード */
.sp-list-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.sp-list-tools .purchase-today-scan-count { margin: 0; }
.sp-list-tools .sp-buyback { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
/* 2026-10-31 OCR仕入スキャン結果一覧の削除ボタン（単品仕入れの削除と同じ赤枠） */
#purchase-panel-ocr .p2j-qactions .btn.p2j-qdel { background: #fff; color: #b91c1c; border: 1px solid #b91c1c; margin-left: 6px; }
#purchase-panel-ocr .p2j-qactions .btn.p2j-qdel:hover { background: #fef2f2; }

.sp-list-tools .sp-buyback[hidden] { display: none; }

/* 2026-11-02 DataBank の仕入れ候補（js/databank_candidates.js）。スマホ1列 → PCは絞り込みを横に並べる */
#module-databank #databank-panel-cands { max-width: 1100px; }
#module-databank .dbc-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 10px; }
#module-databank .dbc-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; color: #6b7686; }
#module-databank .dbc-filters :where(input[type="number"], input[type="search"], select) { width: 100%; min-height: 38px; font-size: 15px; padding: 4px 10px; border: 1px solid #ccd5df; border-radius: 8px; background: #fff; box-sizing: border-box; }
#module-databank .dbc-filters__wide { grid-column: 1 / -1; }
#module-databank .dbc-check { flex-direction: row !important; align-items: center; gap: 8px; font-size: 13.5px !important; font-weight: 400 !important; color: #1f2a37 !important; }
#module-databank .dbc-filters > .dbc-check { grid-column: 1 / -1; }
#module-databank .dbc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px; border-radius: 12px; background: #f4f7fb; border: 1px solid #e3e8ee; }
#module-databank .dbc-actions .btn { min-height: 40px; border-radius: 10px; }
#module-databank .dbc-actions .dn-msg { flex: 1 1 100%; font-size: 13px; overflow-wrap: anywhere; }
#module-databank .dbc-card { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid #e3e8ee; border-radius: 12px; background: #fff; margin-bottom: 8px; }
#module-databank .dbc-card.is-restricted { background: #fff8f6; }
#module-databank .dbc-card__pick { display: flex; justify-content: center; padding-top: 4px; }
#module-databank .dbc-card__pick input { width: 20px; height: 20px; }
#module-databank .dbc-card__img { width: 56px; height: 76px; object-fit: contain; border-radius: 4px; background: #f1f4f8; }
#module-databank .dbc-card__title { font-weight: 700; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
#module-databank .dbc-card__sub { font-size: 12px; color: #6b7686; margin-top: 2px; overflow-wrap: anywhere; }
#module-databank .dbc-card__sub span { margin-left: 6px; font-variant-numeric: tabular-nums; }
#module-databank .dbc-warn { color: #c0392b; }
#module-databank .dbc-card__nums { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
#module-databank .dbc-card__nums small { color: #6b7686; margin-left: 2px; }
#module-databank .dbc-profit { font-weight: 800; color: #0f7a3d; font-size: 15px; }
#module-databank .dbc-card__meta { margin-top: 6px; font-size: 12px; color: #6b7686; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
#module-databank .dbc-card__meta a { font-weight: 600; }
#module-databank .dbc-more { text-align: center; margin: 6px 0 12px; }
#module-databank .dbc-more .btn { min-height: 40px; border-radius: 10px; min-width: 200px; }
@media (min-width: 760px) {
  #module-databank .dbc-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #module-databank .dbc-filters__wide { grid-column: span 3; }
  #module-databank .dbc-filters > .dbc-check { grid-column: auto; align-self: end; padding-bottom: 8px; }
}
