/* 教科書検索（twcu-shop.com）　11/6 顧客修正反映版
   アップ先: /dcms_media/other/textbook-search.css
   すべて .tbs 配下にスコープ済み（他ページへの影響なし） */
.tbs{--red:#990000;--line:#e2dada;--sub:#666;--soft:#f9f2f2;color:#333;font-size:15px;line-height:1.7;margin:0 auto 60px}
.tbs *{box-sizing:border-box}
.tbs-lead{margin:0 0 16px;font-size:15px}
.tbs-panel{background:var(--soft);border:1px solid var(--line);padding:20px}
.tbs-kw{display:flex;gap:8px}
.tbs-kw input{flex:1;min-width:0;font-size:16px;padding:12px 14px;border:1px solid #c9bcbc;background:#fff;border-radius:0;font-family:inherit}
.tbs-kw input:focus,.tbs-filters select:focus{outline:2px solid var(--red);outline-offset:1px}
.tbs-reset{background:#fff;border:1px solid var(--red);color:var(--red);padding:0 18px;font-size:14px;cursor:pointer;white-space:nowrap;font-family:inherit;font-weight:bold}
.tbs-reset:hover{background:var(--red);color:#fff}
.tbs-hint{font-size:12px;color:var(--sub);margin:6px 0 14px}
.tbs-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tbs-filters label{display:block;font-size:13px;font-weight:bold;margin-bottom:3px}
.tbs-filters select{width:100%;font-size:15px;padding:9px 10px;border:1px solid #c9bcbc;background:#fff;font-family:inherit;border-radius:0}
.tbs-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:24px 0 10px}
.tbs-count b{font-size:24px;color:var(--red);margin:0 3px}
.tbs-sort{font-size:13px;color:var(--sub)}
.tbs-sort select{font-size:14px;padding:5px 8px;border:1px solid #c9bcbc;background:#fff;font-family:inherit}
.tbs table{width:100%;border-collapse:collapse;border:1px solid var(--line);background:#fff;margin:0}
.tbs th,.tbs td{padding:12px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:14px}
.tbs th{background:var(--red);color:#fff;font-weight:bold;white-space:nowrap;font-size:13px}
.tbs th.m{width:10em}.tbs th.c{width:18%}.tbs th.tc{width:9em}.tbs th.n{width:6em}.tbs th.st{width:9.5em}.tbs th.p{width:8.5em}
.tbs tbody tr:nth-child(even) td{background:#fcf8f8}
.tbs td.m{white-space:nowrap}
.tbs td.t b{display:block;font-size:15px}
.tbs td .s{display:block}
.tbs .s{font-size:12px;color:var(--sub)}
.tbs td.n{white-space:nowrap;text-align:center}
.tbs th.n,.tbs th.st{text-align:center}
.tbs td.st{text-align:center;font-size:13px}
.tbs th.p{text-align:right}
.tbs td.p{text-align:right;white-space:nowrap;font-weight:bold;font-size:16px}
.tbs td.p small{font-weight:normal;font-size:11px;color:var(--sub)}
.tbs .tag{display:inline-block;font-size:12px;font-weight:bold;padding:1px 8px;white-space:nowrap}
.tbs .tag.out{color:#666;background:#ececec}
.tbs .tag.on{color:#2f6b3f;background:#e8f3eb}
.tbs mark{background:#fff0a8;color:inherit;padding:0 1px}
.tbs-empty{border:1px solid var(--line);padding:40px 16px;text-align:center;color:var(--sub);background:#fff}
.tbs-more{display:block;margin:20px auto 0;background:var(--red);color:#fff;border:none;padding:12px 40px;font-size:15px;font-weight:bold;cursor:pointer;font-family:inherit}
@media (max-width:768px){
  .tbs-filters{grid-template-columns:1fr 1fr}
  .tbs-filters>div:first-child{grid-column:1/3}
  .tbs-kw{flex-wrap:wrap}.tbs-kw input{flex-basis:100%}.tbs-reset{padding:8px 16px;margin-left:auto}
  .tbs table,.tbs tbody,.tbs tr,.tbs td{display:block;width:100%}
  .tbs thead{display:none}
  .tbs table{border:none;background:none}
  .tbs tr{background:#fff;border:1px solid var(--line);margin-bottom:10px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .tbs tbody tr:nth-child(even) td{background:none}
  .tbs td{border:none;padding:0;font-size:13px;text-align:left;white-space:normal;min-width:0;overflow-wrap:anywhere}
  .tbs td.t{grid-column:1/2;grid-row:1/2;font-size:14px}
  .tbs td.p{grid-column:2/3;grid-row:1/2;text-align:right;white-space:nowrap}
  .tbs td.m,.tbs td.c,.tbs td.tc,.tbs td.n,.tbs td.st{grid-column:1/3;text-align:left}
  .tbs td.m .s,.tbs td.c .s{display:inline;margin-left:6px}
  .tbs td.m::before{content:"曜日時限　"}.tbs td.c::before{content:"科目名　"}.tbs td.tc::before{content:"担当教員　"}.tbs td.n::before{content:"購入番号　"}.tbs td.st::before{content:"在庫状況　"}
  .tbs td::before{color:var(--sub);font-size:12px}
}
