/* ==========================================================
   サイト共通の見た目（トップページ以外の研究者向けページ）
   トップページ（home.css）の色使いにそろえる：紺の文字・青のボタンとリンク・淡い青の背景
   ヘッダーとフッターは home.css の .hm-header / .hm-footer を共通で使う
   会社のマイページ（.vp）は vendor_portal.css が優先される
   ========================================================== */
:root {
  --site-navy: #10223f; --site-blue: #0a86c9; --site-blue-dark: #066aa3; --site-pale: #edf7ff;
  --site-line: #dce7f1; --site-muted: #5d6f87; --site-bg: #f6f9fc;
}
.site-body { margin: 0; background: var(--site-bg); color: var(--site-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.7; }
.site-main { max-width: 1200px; margin: 0 auto; padding: 28px 26px 64px; min-height: 60vh; }
.site-main *, .site-main *::before, .site-main *::after { box-sizing: border-box; }

/* 見出し・文 */
.site-main h1 { font-size: 26px; line-height: 1.35; margin: 4px 0 16px; letter-spacing: -.01em; }
.site-main h2 { 
  font-size: 24px;
  margin: 32px 0 12px;
  padding-left: 0px;
  border-left: 0px solid var(--site-blue);
  line-height: 1.4;
  color: #158cf0;
 }
.site-main h3 { font-size: 16px; margin: 20px 0 8px; }
.site-main a { color: var(--site-blue); }
.site-main a:hover { color: var(--site-blue-dark); }
.site-main .muted { color: var(--site-muted); }
.site-main .small { font-size: 13px; }
.site-main .note { background: var(--site-pale); border: 1px solid #cde6fa; border-radius: 10px; padding: 12px 16px; font-size: 14px; }

/* 通知 */
.site-flash { 
  max-width: 1148px;
  margin: 16px auto 0;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: normal;
 }
.site-flash-notice { background: #e6f5ec; color: #16633a; border: 1px solid #b7e0c6; }
.site-flash-alert { background: #fdecea; color: #8a1f17; border: 1px solid #f3c1bb; }

/* ボタン（クラスのない送信ボタンも同じ見た目に） */
.site-main .primary-button,
.site-main input[type="submit"]:not([class]),
.site-main button:not([class]) {
  display: inline-block; border: 0; background: var(--site-blue); color: #fff; border-radius: 5px; padding: 5px 20px;
  font: inherit; font-weight: normal; text-decoration: none; cursor: pointer; box-shadow: 0 5px 12px #0a86c92b; line-height: 1.4;
}
.site-main .primary-button:hover, .site-main input[type="submit"]:not([class]):hover, .site-main button:not([class]):hover {
  background: var(--site-blue-dark); color: #fff;
}
.site-main .primary-button.small { padding: 8px 14px; font-size: 14px; }

/* 入力欄 */
.site-main input[type="text"], .site-main input[type="email"], .site-main input[type="number"], .site-main input[type="search"],
.site-main input[type="url"], .site-main input[type="tel"], .site-main input[type="password"], .site-main input[type="date"],
.site-main select, .site-main textarea {
  border: 1px solid #cbd7e4;
  border-radius: 5px;
  padding: 6px 11px;
  font: inherit;
  background: #fff;
  color: var(--site-navy);
  font-size: 13px;}
.site-main input:focus, .site-main select:focus, .site-main textarea:focus {
  outline: none; border-color: var(--site-blue); box-shadow: 0 0 0 3px #0a86c921;
}

/* 比較表の条件（検体数・絞り込み） */
.site-main .conditions { background: #fff; border: 1px solid var(--site-line); border-radius: 14px; padding: 14px 18px; margin: 0 0 16px;
  box-shadow: 0 6px 18px #294d7810; }
.site-main .conditions .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 6px 0; }
.site-main .conditions label { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.site-main .conditions input[type="number"] { width: 90px; }

/* 見積依頼のバー */
.site-main .quote-bar { 
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-style: none;
  border-radius: 12px;
  padding: 0px 16px !important;
  margin: 0px 0 !important;
  font-weight: normal;
 }

/* 表 */
/* 列の多い比較表は、枠の中で横にスクロール（ページ全体は横に広がらない） */
.site-main table.compare { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; border-spacing: 0; background: #fff; border: 1px solid var(--site-line);
  border-radius: 0px; margin: 8px 0 20px; font-size: 14px; }
/* 見出しが左にある2列の表（詳細ページの仕様など）は、ふつうの表として横いっぱいに */
.site-main table.compare:has(tbody th) { display: table; width: 100%; overflow: hidden; }
.site-main table.compare td { min-width: 5.5em; }
.site-main table.compare td:nth-child(2) { min-width: 14em; }
.site-main table.compare td:first-child { min-width: 0; }
.site-main table.compare th, .site-main table.compare td { padding: 10px 12px; border-bottom: 1px solid var(--site-line); text-align: left; vertical-align: top; }
.site-main table.compare thead th { background: #eef5fb; color: var(--site-navy); font-size: 13px; white-space: nowrap; }
.site-main table.compare tbody th { background: #f7fafd; font-weight: 700; width: 16em; }
.site-main table.compare tbody tr:last-child > * { border-bottom: 0; }
.site-main table.compare tbody tr:hover td { background: #fafcff; }
.site-main table.compare a.sort-link { color: var(--site-navy); text-decoration: none; }
.site-main table.compare a.sort-link:hover { color: var(--site-blue); }
.site-main .price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.site-main .price.quote { color: var(--site-muted); font-weight: 700; font-size: 14px; }
.site-main .company-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-main .company-name { font-size: 15px; }

/* 印（バッジ） */
.site-main .badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: normal;
  background: #eef2f6; color: var(--site-muted); margin: 2px 4px 2px 0; line-height: 1.7; }
.site-main .badge-registered { background: #e3f2fb; color: var(--site-blue-dark); }
.site-main .badge.warn { background: #fff3d6; color: #8a5a00; }
.site-main .badge.info { background: #eef3ff; color: #3e5aa8; }
.site-main .rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 3px; background: var(--site-blue);
  color: #fff; font-weight: 800; margin-right: 6px; }
.site-main .rank-1 { background: #d4a017; } .site-main .rank-2 { background: #8f9aa6; } .site-main .rank-3 { background: #b07a4a; }
.site-main .pr-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #8a5a00; background: #fff3d6; border-radius: 4px; padding: 0 6px; }
.site-main .registered-note { font-size: 13px; color: var(--site-muted); }

/* 注目のサービス（広告） */
.site-main .featured { background: #fff; border: 1px solid var(--site-line); border-radius: 5px; padding: 0px 18px; margin: 14px 0; }
.site-main .featured-head { display: flex; justify-content: space-between; align-items: center; }
.site-main .featured-head h2 { margin: 0 0 10px; }
.site-main .featured-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.site-main .featured-card { position: relative; display: block; border: 1px solid var(--site-line); border-radius: 12px; padding: 12px 14px;
  color: var(--site-navy); text-decoration: none; }
.site-main .featured-card:hover { border-color: var(--site-blue); }
.site-main .featured-card .pr-tag { position: absolute; top: 10px; right: 10px; }
.site-main .featured-name { font-weight: 800; }
.site-main .featured-price { font-weight: 800; color: var(--site-blue-dark); }

/* 横に長い表はスマホで横スクロール */
@media (max-width: 760px) {
  .site-main { padding: 18px 14px 48px; }
  .site-main h1 { font-size: 22px; }
  .site-main table.compare tbody th { width: auto; }
}

/* 以前の共通 CSS の body の幅や余白の指定を打ち消す（ヘッダーを画面いっぱいに） */
.site-body, .hm-body { max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* ランキング列の星（受注のあるサービスだけ） */
/* 順位の下の段に出す。灰色の★5つの上に、金色の★5つを平均の割合だけ重ねる */
.site-main .stars { position: relative; display: block; width: max-content; margin-top: 5px; font-size: 11px; line-height: 1;
  letter-spacing: 0; white-space: nowrap; color: #d5dde6; }
.site-main .stars::before { content: "★★★★★"; }
.site-main .stars .stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #f0b400; }
.site-main .rank-cell { white-space: nowrap; }

/* 評価のフォーム */
.site-main .star-choices { display: grid; gap: 8px; margin: 12px 0 18px; }
.site-main .star-choices label { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--site-line);
  border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.site-main .star-choices label:has(input:checked) { border-color: var(--site-blue); background: var(--site-pale); }
.site-main .star-choices .star-mark { color: #c98a00; letter-spacing: 2px; font-size: 18px; min-width: 7em; }

/* このサービスを実際に行う会社（「※○○ 実施」）
   海外の会社のサービスを国内の受付窓口の行に載せているため、
   同じ会社の行が同じ分類に複数並ぶ。実施機関で見分けられるようにする。
   .quote-stopped に合わせた控えめな注記。長い社名でもはみ出さないよう nowrap は付けない。 */
.performer-name { display: block; font-size: 11px; line-height: 1.4; color: #8a96a8; }

/* パンくず（いまいる場所）。比較表の見出しの上に出す */
.site-main .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}
.site-main .breadcrumb a { color: #0a86c9; text-decoration: none; }
.site-main .breadcrumb a:hover { text-decoration: underline; }
.site-main .breadcrumb .sep { color: #9aa7b4; }
/* いまいるページは、押せないので色を変えてリンクにしない */
.site-main .breadcrumb .here { color: #22364f; font-weight: 600; }

/* 絞り込みの「クリア」。押すと選択肢が「すべて」に戻る */
.site-main .conditions .clear-filters {
  font-size: 13px;
  font-weight: 700;
  color: #0a86c9;
  text-decoration: none;
  background: #fff;
  border: 1px solid #cde6fa;
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
}
.site-main .conditions .clear-filters:hover {
  background: var(--site-pale, #f0f8fd);
  text-decoration: none;
}
