/* SCETI 試薬検索 仮サイト スタイル（外部フォント・CDNなし） */
:root{
  --blue:#0a5aa8; --navy:#0b3c6e; --light:#eef5fb; --line:#cfd8df; --text:#222; --muted:#666;
  --red:#d92128; --orange:#ee8a2a; --gray:#777; --bg:#fff; --mark:#fff176;
  --c-host:#4f81bd; --c-cross:#f79646; --c-app:#9bbb59; --t-host:#e3ebf5; --t-cross:#fdebdc; --t-app:#eef3e3;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;font-size:15px}
a{color:var(--blue)}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid #f5a623;outline-offset:2px}
.muted{color:var(--muted)}
.error{color:#a00;padding:16px}
.mock-bar{background:#fff3cd;color:#6b5200;font-size:13px;text-align:center;padding:6px 10px;border-bottom:1px solid #ecd48a}
mark{background:var(--mark);color:inherit;padding:0 1px}

/* header */
#site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner{max-width:1100px;margin:auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand img{display:block;height:36px;width:auto}
.gnav{display:flex;gap:6px 18px;flex-wrap:wrap;align-items:center;font-size:14px;font-weight:600}
.gnav a{color:#222;text-decoration:none;padding:6px 2px;border-bottom:3px solid transparent}
.gnav a:hover,.gnav a.is-active{border-bottom-color:var(--blue)}
.gnav a.mylist-link{background:var(--blue);color:#fff;border-radius:18px;padding:6px 16px;position:relative;border-bottom:0}
.badge{display:inline-block;min-width:20px;height:20px;line-height:20px;border-radius:10px;background:var(--orange);color:#fff;font-size:12px;text-align:center;margin-left:6px;padding:0 5px}
.badge[hidden]{display:none}

/* buttons */
.btn{font:inherit;font-size:14px;border:0;border-radius:3px;padding:9px 18px;cursor:pointer;color:#fff;min-height:40px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary,.btn-blue-s{background:var(--blue)}
.btn-red{background:var(--red)}
.btn-red-s{background:var(--red)}
.btn-gray{background:var(--gray)}
.btn-orange{background:var(--orange)}
.btn:hover:not(:disabled){filter:brightness(1.08)}

/* search bar */
.searchbar-wrap,.top-search{background:#fff}
.searchbar{max-width:960px;margin:0 auto;padding:12px 16px 6px}
.sb-row{display:flex;gap:8px}
.sb-row select{flex:0 0 240px;min-width:0;font:inherit;padding:9px 8px;border:2px solid var(--navy);border-radius:3px;background:#f4f7fa}
.sb-row input[type=search]{flex:1 1 auto;min-width:0;font:inherit;padding:9px 10px;border:2px solid var(--navy);border-radius:3px;background:#f4f7fa}
.sb-mode{font-size:13px;padding:4px 2px;display:flex;gap:16px}
.top-search{background:var(--navy);padding:18px 0 10px}
.top-search .sb-mode{color:#fff}
.top-search .sb-row select,.top-search .sb-row input{border-color:#fff}

/* hero / tiles */
.hero{background:linear-gradient(120deg,#f4f7f9,#dcebf7);padding:44px 16px}
.hero-inner{max-width:960px;margin:auto}
.hero h1{margin:0 0 10px;font-size:30px;font-weight:500;color:#333}
.hero p{margin:0;color:#444;max-width:34em}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.sec-h{font-size:18px;color:var(--navy);margin:28px 0 12px}
.tiles{list-style:none;margin:0 0 36px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tile{display:flex;flex-direction:column;justify-content:flex-end;min-height:110px;padding:14px;border:1px solid var(--line);border-radius:4px;text-decoration:none;color:#222;background:linear-gradient(160deg,#fff,#e8f2fa);border-top:5px solid var(--blue)}
.tile:hover{box-shadow:0 3px 10px rgba(0,0,0,.12)}
.tile-t{font-weight:700;font-size:15px}
.tile-s{font-size:12px;color:var(--muted)}

/* banner / crumb */
.banner{background:var(--navy);color:#fff}
.banner-inner{max-width:1100px;margin:auto;padding:22px 16px}
.banner h1{margin:0 0 6px;font-size:24px}
.banner p{margin:0;font-size:14px}
.crumb{font-size:12px;color:#444;margin:14px 0 10px;white-space:pre}

/* layout */
.layout{display:grid;grid-template-columns:250px 1fr;gap:22px;align-items:start;margin-bottom:60px}
.main-wide{margin-bottom:60px}
.side-sec{margin:0 0 16px;background:#f4f4f4}
.side-h{margin:0;background:var(--gray);color:#fff;font-size:14px;padding:8px 12px;font-weight:600}
summary.side-h{cursor:pointer}
.side-list{list-style:none;margin:0;padding:6px 8px}
.side-list a{display:block;padding:6px 6px;color:#333;text-decoration:none;font-size:13.5px;border-bottom:1px dotted #ccc}
.side-list a:hover{background:#e6eef6}
.side-list a.is-current{font-weight:700;color:var(--navy);background:#e6eef6}
.filters .f-row{padding:8px 12px}
.filters label{display:block;font-size:13px;margin-bottom:3px}
.filters input[type=text],.filters select{width:100%;font:inherit;padding:7px;border:1px solid #bbb;border-radius:3px;background:#fff}
.f-multi{margin:8px 12px;padding:6px 8px;border:1px solid #bbb;background:#fff}
.f-multi legend{font-size:13px;font-weight:600;padding:0 4px}
.f-modes{display:flex;gap:12px;font-size:12px;margin-bottom:4px}
.f-modes label{display:inline;margin:0}
.f-checks{max-height:150px;overflow:auto}
.chk{display:block;font-size:13px;margin:0!important;padding:2px 0}
.f-actions{display:flex;gap:8px;padding:10px 12px 14px}
.f-actions .btn{flex:1}

/* results */
.res-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.res-count{margin:0;font-weight:700}
.res-range{text-align:center;color:#444;margin:18px 0 8px}
.desc-box{max-width:760px;margin:6px auto 18px;padding:20px 26px;border:2px solid var(--navy);border-radius:8px;box-shadow:0 3px 8px rgba(0,0,0,.18);font-weight:600;line-height:1.9;font-size:14px}
.desc-box p{margin:0}
.hint{color:var(--muted);text-align:center}
.zero{border:1px dashed #bbb;padding:22px;background:#fafafa;border-radius:4px}
.zero-t{font-weight:700;margin:0 0 6px}
.p-card{border:2px solid #bbb;margin:0 0 14px;background:#f4f4f6}
.p-head{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#eee;border-bottom:1px solid #ccc}
.p-check{display:flex;align-items:center}
.p-check input{width:20px;height:20px}
.p-name{margin:0;font-size:15px;color:#2d6aa8;flex:1 1 auto;word-break:break-word}
.toxic{display:inline-block;min-width:26px;padding:1px 6px;text-align:center;font-weight:700;font-size:13px;border:2px solid var(--red)}
.toxic-doku{background:var(--red);color:#fff}
.toxic-geki{background:#fff;color:var(--red)}
.p-table{width:100%;border-collapse:collapse;font-size:13px}
.p-table th{background:#d9d9d9;border:1px solid #bbb;padding:4px 6px;font-weight:600;text-align:center}
.p-table td{border:1px solid #ccc;padding:6px;text-align:center;background:#f7f8fa;vertical-align:middle;word-break:break-word}
.attach{display:flex;flex-direction:column;gap:3px;align-items:center}
.pill{display:inline-block;min-width:70px;padding:1px 12px;border-radius:12px;color:#fff;font-size:12px;text-decoration:none}
.pill-sds{background:#1b5fb0}
.pill-proto{background:#d63a3a}
.pill-dummy{opacity:.55;cursor:default}

/* 抗体アイコン（Host=青 / Cross Reactivity=橙 / Application=緑） */
.ic-groups{display:flex;gap:0;border-top:1px solid #ccc;background:#fff}
.ic-group{flex:1 1 0;min-width:0}
.ic-gh{background:#d9d9d9;border:1px solid #bbb;border-top:0;text-align:center;font-size:12px;font-weight:600;padding:2px}
.ic-cells{display:flex}
.ic{flex:1 1 0;min-width:0;text-align:center;font-size:11px;line-height:22px;border:1px solid #fff;background:var(--t-host);color:#b5bfcc;white-space:nowrap}
.ic-crossReactivity .ic{background:var(--t-cross);color:#d9bfa5}
.ic-application .ic{background:var(--t-app);color:#b9c4a3}
.ic.on{color:#fff;font-weight:700;background:var(--c-host)}
.ic-crossReactivity .ic.on{background:var(--c-cross)}
.ic-application .ic.on{background:var(--c-app)}
.ic-groups .ic{min-width:22px}
/* アイコン説明パネル */
.legend-wrap{margin:0 0 14px}
.legend{border:1px solid #bbb;border-radius:4px;background:#fff}
.legend summary{cursor:pointer;padding:12px 16px;font-weight:700;font-size:15px;color:#444;list-style:none}
.legend summary::-webkit-details-marker{display:none}
.legend summary::after{content:"\2295";margin-left:8px;font-size:18px}
.legend[open] summary::after{content:"\2296"}
.lg-cols{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;padding:6px 16px 16px}
.lg-col{min-width:170px}
.lg-h{text-align:center;color:#fff;font-size:12px;padding:3px 0;margin-bottom:6px;background:var(--c-host)}
.lg-col.ic-crossReactivity .lg-h{background:var(--c-cross)}
.lg-col.ic-application .lg-h{background:var(--c-app)}
.lg-col ul{list-style:none;margin:0;padding:0;font-size:13px}
.lg-col li{margin:2px 0;display:flex;align-items:center;gap:8px}
.lg-col .ic{flex:0 0 40px;line-height:18px}

.pager{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:10px 0 24px}
.pg{font:inherit;min-width:40px;min-height:40px;padding:4px 10px;border:1px solid var(--blue);background:#fff;color:var(--blue);border-radius:3px;cursor:pointer}
.pg.is-current{background:var(--blue);color:#fff}
.pg:disabled{opacity:.4;cursor:default}
.gap{align-self:center}

/* actions (floating) */
.actions{position:fixed;right:12px;bottom:12px;z-index:50;background:#fff;border:1px solid #bbb;box-shadow:0 2px 10px rgba(0,0,0,.25);padding:10px;width:190px;border-radius:4px}
.actions[hidden]{display:none}
.act-n{margin:0 0 6px;font-size:13px;font-weight:700;text-align:center}
.act-btns{display:flex;flex-direction:column;gap:6px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;background:#222;color:#fff;padding:10px 16px;border-radius:4px;z-index:60;max-width:90vw}
.toast[hidden]{display:none}

/* mylist */
.page-h{font-size:22px;color:var(--navy);margin:8px 0}
.note{background:var(--light);border:1px solid var(--line);padding:8px 12px;font-size:13px}
.ml-tools{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.ml-tools .act-btns{flex-direction:row;flex-wrap:wrap}
.c-chk{width:44px}

/* footer */
#site-footer{background:#d6d6d6;color:#444;font-size:12px;text-align:center;padding:18px 12px;margin-top:20px}
.page-list #site-footer{display:none}
#site-footer p{margin:2px 0}

/* list output */
.list-tools{padding:10px 16px;background:#f4f4f4;border-bottom:1px solid #ccc;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sheet{max-width:1100px;margin:0 auto;padding:18px 16px 40px}
.sheet-head{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.sheet-head h1{margin:0 0 6px;font-size:26px;font-weight:500}
.sheet-note{margin:2px 0;font-size:12px}
.sheet-co{font-size:12px;text-align:left;line-height:1.5}
.sheet-co strong{font-size:15px;color:#555}
.grp{margin:0 0 22px;break-inside:avoid-page}
.grp h2{font-size:16px;font-weight:500;margin:0 0 6px}
.out-table{width:100%;border-collapse:collapse;font-size:12px}
.out-table th{background:#1f4a7d;color:#fff;border:1px solid #1f4a7d;padding:4px 6px;font-weight:500}
.out-table td{border:1px solid #333;padding:4px 6px}
.out-table td:not(:first-child){white-space:nowrap}
.out-table tbody tr:nth-child(even) td{background:#c9dbf0}
.w-name{width:38%}
.w-tox{width:48px}
.out-scroll{overflow-x:auto}
.th-ic{font-size:11px}
.ic-td{padding:0!important;text-align:center;font-size:10px;min-width:20px;color:#fff;border:1px solid #666}
.ic-td.ic-host.on{background:var(--c-host)!important;font-weight:700}
.ic-td.ic-crossReactivity.on{background:var(--c-cross)!important;font-weight:700}
.ic-td.ic-application.on{background:var(--c-app)!important;font-weight:700}
.ic-td:not(.on){color:#e6e6e6}
.tox-cell.is-tox{color:var(--red);font-weight:700;text-align:center}

/* ---------- スマートフォン（PCとは別レイアウト） ---------- */
@media (max-width:860px){
  .layout{grid-template-columns:1fr;gap:12px}
  .side{order:1}
  .main{order:2}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:22px}
  .sb-row{flex-wrap:wrap}
  .sb-row select{flex:1 1 100%}
  .sb-row input[type=search]{flex:1 1 60%}
  /* 結果表：項目名つきのカード表示 */
  .p-table thead{position:absolute;left:-9999px}
  .p-table,.p-table tbody,.p-table tr,.p-table td{display:block;width:100%}
  .p-table td{display:flex;justify-content:space-between;gap:12px;text-align:right;border:0;border-bottom:1px solid #e3e3e3;background:#fff;padding:6px 10px}
  .p-table td:empty{display:none}
  .p-table td::before{content:attr(data-label);font-weight:600;color:#555;text-align:left;flex:0 0 7em}
  .p-table td.c-chk{display:flex}
  .p-table td.c-chk::before{content:none}
  .ic-groups{flex-direction:column}
  .ic-gh{text-align:left;padding:2px 8px}
  .ic{line-height:26px}
  .actions{left:0;right:0;bottom:0;width:auto;border-radius:0;padding:8px 10px;display:block}
  .act-btns{flex-direction:row;flex-wrap:wrap}
  .act-btns .btn{flex:1 1 40%;padding:8px 6px;font-size:13px}
  .toast{bottom:150px}
  body.page-search{padding-bottom:140px}
  .attach{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
  .gnav{font-size:13px}
}
@media (max-width:480px){
  .tiles{grid-template-columns:1fr 1fr;gap:10px}
  .desc-box{padding:14px 16px}
}

/* ---------- 印刷 ---------- */
@media print{
  .no-print,#site-header,#site-footer,.mock-bar{display:none!important}
  body{font-size:11px}
  .sheet{max-width:none;padding:0}
  .out-table th,.out-table td{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .out-table tbody tr:nth-child(even) td:not(.on){background:#c9dbf0!important}
  .out-table th{background:#1f4a7d!important;color:#fff!important}
  .ic-td.on{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  @page{size:A4 landscape;margin:10mm}
}


/* ---------- カテゴリー別 詳細検索 ---------- */
.btn-detail{background:#0b3c6e;white-space:nowrap}
.detail-dialog{width:min(920px,calc(100% - 32px));max-height:88vh;padding:0;border:2px solid var(--blue);border-radius:6px;box-shadow:0 10px 36px rgba(0,0,0,.35);background:#f5f7fa;color:var(--text)}
.detail-dialog::backdrop{background:rgba(0,0,0,.55)}
.detail-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff;border-bottom:1px solid var(--line)}
.detail-head h2{margin:0;font-size:20px;color:var(--navy)}
.detail-close{border:0;background:var(--blue);color:#fff;width:38px;height:38px;font-size:26px;line-height:1;cursor:pointer;border-radius:2px}
.detail-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 28px;padding:22px}
.detail-field{min-width:0}
.detail-field>label,.detail-label{display:block;font-weight:700;margin-bottom:5px}
.detail-field>input,.detail-field>select,.detail-find{width:100%;font:inherit;padding:9px;border:1px solid #999;border-radius:3px;background:#fff}
.detail-modes{display:flex;gap:18px;margin-top:6px;font-size:13px}
.detail-checks{margin-top:6px;max-height:190px;overflow:auto;border:1px solid #aaa;background:#fff;padding:5px 8px;border-radius:3px}
.detail-check{display:block;padding:3px 2px;font-size:13px}
.detail-find{margin-bottom:3px}
.detail-actions{grid-column:1/-1;display:flex;justify-content:center;gap:28px;padding-top:6px}
.detail-actions .btn{min-width:220px}
@media(max-width:860px){
  #searchbar .btn-detail{flex:1 1 100%}
  .detail-dialog{width:calc(100% - 16px);max-height:92vh}
  .detail-form{grid-template-columns:1fr;padding:14px;gap:14px}
  .detail-actions{grid-column:1;position:sticky;bottom:0;background:#f5f7fa;padding:10px 0;gap:8px}
  .detail-actions .btn{min-width:0;flex:1}
  .detail-checks{max-height:150px}
}

/* ---------- 2026-11-04 追加 ---------- */
/* 詳細検索：条件クリア後の案内 */
.detail-notice{margin:12px 22px 0;padding:8px 12px;background:#e8f4ea;border:1px solid #9cc9a4;color:#1e5b2a;border-radius:3px;font-size:13px}
/* 製品リスト出力：項目名（見出し行）の縦罫を白で表示（紺地に白線で区切りが分かるように） */
.out-table th{border-left:1px solid #fff;border-right:1px solid #fff}
.out-table th:first-child{border-left-color:#1f4a7d}
.out-table th:last-child{border-right-color:#1f4a7d}
/* ---------- 2026-11-11 追加：PDFリンク（Protocol=赤 / SDS=青、icon_pdf.png を埋め込み） ---------- */
.pill-pdf{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:92px;padding:3px 12px;line-height:1.4;white-space:nowrap}
.pill-pdf::before{content:"";flex:0 0 16px;width:16px;height:16px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gIjhao3Yb/osoEkwshhIRrv56i3hNTP5a336v+P9QW95S/wDXTBMD3d5p8wAAAABJRU5ErkJggg==") no-repeat center/16px 16px}
.pill-pdf:hover{filter:brightness(1.12);text-decoration:underline}
.attach{gap:5px}
