/* ============================================================
   OrganismE.css
   es-BANK Organism Search(OrganismE.aspx)+ Common Layout(SiteE.Master)
============================================================ */

/* ============================================================
   共通(Site.Master側:ヘッダー・ナビ・フッター)
============================================================ */
.esb-body{
  margin:0;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
  background:#eef4f7;
  color:#23323d;
}

/* ---------- ヘッダー ---------- */
.esb-header-outer{
  background:#fff;
}
.esb-header{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  background:#fff;
}
.esb-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.esb-brand .esb-mark{ flex:0 0 auto; line-height:0; }
.esb-title-text h1{
  font-size:18px;
  margin:0;
  font-weight:700;
  color:#0a3d5c;
  letter-spacing:.02em;
  /* line-height:1.3; */
}
.esb-title-text h1 span{ color:#0d8ba6; }
.esb-title-text p{
  margin:2px 0 0;
  font-size:11px;
  color:#5b6f7b;
}
.esb-brand .esb-mark svg{
  display:block;
}
.esb-header-right a{
  font-size:12px;
  color:#0d8ba6;
  text-decoration:none;
  border:1px solid #0d8ba6;
  border-radius:3px;
  padding:6px 14px;
  white-space:nowrap;
}
.esb-header-right a:hover{
  background:#0d8ba6;
  color:#fff;
}
/* CreateHelpLink()がテーブルタグ(tr/td)を返す場合の保険 */
.esb-help-wrap table{
  border-collapse:collapse;
}
.esb-help-wrap td{
  padding:0 !important;
  background:none !important;
}

/* ---------- ナビゲーション ---------- */
.esb-nav{ background:#0a3d5c; }
.esb-nav-inner{ max-width:1200px; margin:0 auto; }
.esb-nav ul{
  display:flex;
  flex-wrap:wrap;
  list-style:none;
  margin:0;
  padding:0;
}
.esb-nav li{ flex:1 1 0; min-width:0; }
.esb-nav a{
  display:block;
  color:#eaf4f8;
  font-size:13px;
  font-weight:600;
  text-align:center;
  padding:12px 8px;
  border-right:2px solid rgba(255,255,255,.12);
  text-decoration:none;
  letter-spacing: .02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.esb-nav li:first-child a{ border-left:2px solid rgba(255,255,255,.12); }
.esb-nav a:hover{ background:#0d8ba6; text-decoration:none; }

/* TopLogoとメニューボタンの間隔調整 */
.esb-header-outer{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* .esb-nav{
  padding-top: 8px !important;
} */
/* TopLogoとメニューボタンの間隔調整 */

/* ---------- 本文エリア ---------- */
.esb-main{ min-height:60vh; }
.esb-main-inner{ max-width:100%; }

/* ---------- フッター ---------- */
.esb-footer{
  background:#0a3d5c;
  color:#cfe1ea;
  padding:40px 20px 26px;
  margin-top:30px;
  font-size:13px;
}
.esb-footer-inner{ max-width:1080px; margin:0 auto; }
.esb-footer-cols{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:32px;
  padding-bottom:26px;
  border-bottom:1px solid rgba(255,255,255,.13);
}
.esb-footer h5{
  margin:0 0 10px;
  color:#fff;
  font-size:14px;
  letter-spacing:.05em;
}
.esb-footer-contact p{ margin:3px 0; color:#cfe1ea; }
.esb-footer-contact a{ color:#9fdbeb; }
.esb-footer-addr{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.esb-footer-map-btn{
  display:inline-flex; align-items:center; gap:4px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
  border-radius:4px; padding:2px 10px; font-size:11px; font-weight:600;
  text-decoration:none; white-space:nowrap;
}
.esb-footer-map-btn:hover{ background:#0d8ba6; border-color:#0d8ba6; text-decoration:none; }
.esb-footer-map-btn svg{ width:12px; height:12px; flex:0 0 auto; }
.esb-footer-rel{ display:flex; flex-wrap:wrap; gap:10px; }
.esb-footer-rel a{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:4px;
  padding:8px 14px;
  color:#eaf4f8;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
.esb-footer-rel a:hover{ background:#0d8ba6; border-color:#0d8ba6; }
.esb-footer-copy{
  text-align:center;
  padding-top:20px;
  font-size:11.5px;
  color:#8fb2c2;
}
@media(max-width:820px){
  .esb-footer-cols{ grid-template-columns:1fr; }
}

/* ============================================================
   OrganismE.aspx 側(検索フォーム・検索結果テーブル)
============================================================ */

/* ---------- ページ見出しバナー ---------- */
.esb-pagehead{
  position:relative;
  left:50%;
  width:100vw;
  margin-left:-50vw;
  margin-right:-50vw;
  background:linear-gradient(120deg,#0a3d5c,#0d8ba6);
  color:#fff;
  overflow:hidden;
}
.esb-pagehead-inner{
  max-width:1080px;
  margin:0 auto;
  padding:22px 20px 30px;
  position:relative;
  z-index:2;
}
.esb-crumb{ font-size:12px; color:#bfe3ee; margin-bottom:8px; }
.esb-crumb a{ color:#bfe3ee; }
.esb-pagehead-title{
  margin:0;
  font-size:24px;
  font-weight:800;
  letter-spacing:.03em;
  display:flex;
  align-items:center;
  gap:12px;
}
.esb-pagehead-ic{ width:26px; height:26px; flex:0 0 auto; }
.esb-pagehead-lead{
  margin:8px 0 0;
  font-size:13px;
  color:#d9eff5;
  max-width:720px;
}

/* ---------- 検索フォーム全体を囲む枠 ---------- */
.esb-searchform{
  display:block;
  max-width:1080px;
  margin:24px auto;
  padding:0 20px;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
}
.esb-searchbox{
  background:#fff;
  border:1px solid #d8e6ec;
  border-radius:10px;
  box-shadow:0 8px 26px -20px rgba(18,90,127,.5);
  overflow:hidden;
}
.esb-searchbox-head{
  background:#f3fafc;
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  color:#0a3d5c;
  border-bottom:1px solid #d8e6ec;
  display:flex;
  align-items:center;
  gap:7px;
}
.esb-toggle-adv{
  font-size:11.5px;
  color:#0d8ba6;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  padding:3px 0;
  cursor:pointer;
}
.esb-toggle-adv svg{ transition:transform .2s; }
.esb-toggle-adv.open svg{ transform:rotate(180deg); }

/* 詳細条件ブロック:デフォルトは非表示 */
.esb-adv-block{
  display:none;
  padding:14px 14px 4px;
  border-top:1px solid #eef4f7;
}
.esb-adv-block.open{ display:block; }

.esb-searchform table{
  display:flex;
  flex-wrap:wrap;
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  padding:6px 10px;
  box-sizing:border-box;
}
.esb-searchform tbody{
  display:contents;
}
.esb-searchform table tr{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:8px 10px;
  box-sizing:border-box;
  border-top:none !important;
}

/* 6列レイアウト(分類群/種名/採取地域/採取国/野生飼育区分/性別) */
.esb-row6 tr{ flex:1 1 150px; }

/* 3列レイアウト(採取場所名/採取日/大学専用コード) */
.esb-row3 tr{ flex:1 1 300px; }

/* 2列レイアウト(採取緯度/採取経度) */
.esb-row2 tr{ flex:1 1 45%; }

.esb-searchform table td:first-child{
  background:none;
  color:#5b6f7b;
  font-weight:700;
  font-size:11.5px;
  padding:0 0 4px;
  white-space:nowrap;
  width:auto;
  cursor:default;
}
.esb-searchform table td:last-child{
  padding:0;
  width:100%;
}
.esb-searchform select,
.esb-searchform input[type="text"]{
  border:1px solid #d8e6ec;
  border-radius:5px;
  padding:6px 8px;
  font-size:13px;
  font-family:inherit;
  color:#23323d;
  outline:none;
  max-width:100%;
}
.esb-searchform select:focus,
.esb-searchform input[type="text"]:focus{
  border-color:#0d8ba6;
  box-shadow:0 0 0 2px rgba(13,139,166,.15);
}
.esb-searchform input[type="checkbox"]{
  margin-right:4px;
  vertical-align:middle;
}

/* 補足ヒント(緯度経度の範囲、日付の書式) */
.esb-hint{
  font-weight:400;
  color:#9bb0bb;
  font-size:10px;
  margin-left:4px;
}

/* 日付・緯度経度の「〜」区切り */
.esb-tofrom{
  color:#9bb0bb;
  margin:0 6px;
  font-size:12px;
}
.esb-datewrap{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
}
.esb-datewrap input[type="text"]{
  width:44px;
  text-align:center;
  padding:6px 4px;
}

/* 緯度経度の入力欄を横一列に */
.esb-row2 input[type="text"]{
  width:110px;
}

/* 組織種類:外側の行(ラベル+チェックボックス一覧)に横幅いっぱいを確保させる
   ※ラベル(Tissue Type)側=first-childには手を入れず、項目側(last-child)のみ調整 */
.esb-row-tissue tr{
  flex:1 1 100%;
  width:100%;
}
.esb-row-tissue td:last-child{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:8px 4px;
}
/* JS(flattenTissueTable)で組み替えた後の各項目のスタイル */
.esb-tissue-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12.5px;
  font-weight:400;
  color:#23323D;
  white-space:nowrap;
  cursor:pointer;
  overflow:hidden;
  text-overflow:ellipsis;
}
.esb-tissue-item input[type="checkbox"]{
  margin:0;
  flex:0 0 auto;
}

/* 検索・クリアボタン */
.esb-fbtns{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding:12px 14px;
  background:#f3fafc;
  border-top:1px solid #d8e6ec;
}
.esb-btn-search{
  background:linear-gradient(120deg,#0d8ba6,#2fb3cc);
  color:#fff;
  border:none;
  border-radius:6px;
  padding:9px 26px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}
.esb-btn-search:hover{ filter:brightness(1.08); }
.esb-btn-clear{
  background:#fff;
  border:1px solid #d8e6ec;
  color:#5b6f7b;
  border-radius:6px;
  padding:9px 18px;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
}
.esb-btn-clear:hover{ border-color:#0d8ba6; color:#0d8ba6; }

/* ---------- 結果件数バー(件数 + CSV + 表示件数) ---------- */
.esb-rbar{
  max-width:1080px;
  margin:16px auto 14px;
  padding:13px 16px;
  background:#fff;
  border:1px solid #d8e6ec;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
  box-sizing:border-box;
}
.esb-rbar-count{
  font-size:14px;
  color:#23323d;
}
.esb-rbar-spacer{ flex:1; }
.esb-csvopt{ font-size:12px; color:#5b6f7b; }
.esb-csvbtn{
  display:inline-block;
  background:#fff;
  border:1px solid #0d8ba6;
  color:#0d8ba6 !important;
  border-radius:6px;
  padding:6px 14px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
.esb-csvbtn:hover{ background:#0d8ba6; color:#fff !important; text-decoration:none; }
.esb-csvbtn-sub{ border-color:#d8e6ec; color:#5b6f7b !important; }
.esb-csvbtn-sub:hover{ border-color:#0d8ba6; color:#0d8ba6 !important; background:#fff; }
.esb-perpage{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  color:#5b6f7b;
}
.esb-ps-select{
  border:1px solid #d8e6ec;
  border-radius:5px;
  padding:5px 8px;
  font-size:12.5px;
  font-family:inherit;
}

/* ---------- 結果テーブル ---------- */
.esb-grid-scroll{
  /*max-width:1400px;*/
  margin:0 auto;
  padding:0 20px;
  overflow-x:auto;
}
.esb-grid{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #d8e6ec;
  border-radius:10px;
  overflow:hidden;
  font-size:12.5px;
  color:#23323d;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
}
.esb-grid td, .esb-grid th{
  padding:9px 12px;
  white-space:nowrap;
}

/* ヘッダー行 */
.esb-head{
  background:#125a7f !important;
  color:#eaf4f8 !important;
  font-weight:700;
  font-size:12px;
}
.esb-head a{
  color:#eaf4f8 !important;
  text-decoration:none;
}
.esb-head a:hover{
  color:#7ff0ff !important;
  text-decoration:underline;
}

/* データ行 */
.esb-row{ background:#f8fcfd; }
.esb-row-alt{ background:#ffffff; }
.esb-grid tr:hover{ background:#eaf6fa; }
.esb-grid td{
  border-bottom:1px solid #eef4f7;
  vertical-align:middle;
}
.esb-selected{ background:#dff4f8 !important; font-weight:700; color:#0a3d5c; }
.esb-edit{ background:#fef6ea; }
.esb-foot{ background:#0a3d5c; color:#fff; font-weight:700; }

/* グリッド内の元のページャーは非表示にし、JSでesb-pager-outsideへ複製する */
.esb-grid td.esb-pager,
.esb-grid .esb-pager{
  display:none !important;
}

/* ページャー(1 2 3 ... >>):枠外・中央表示 */
.esb-pager-outside{
  max-width:1080px;
  margin:18px auto 30px;
  padding:0 20px;
  display:flex;
  justify-content:center;
}
.esb-pager-outside table{ margin:0 auto; }
.esb-pager-outside td{ padding:0 3px !important; }
.esb-pager-outside a, .esb-pager-outside span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 8px;
  border:1px solid #d8e6ec;
  border-radius:6px;
  background:#fff;
  color:#23323d !important;
  font-size:13px;
  text-decoration:none;
  box-sizing:border-box;
}
.esb-pager-outside a:hover{ border-color:#0d8ba6; color:#0d8ba6 !important; text-decoration:none; }
.esb-pager-outside span{
  background:#0d8ba6;
  border-color:#0d8ba6;
  color:#fff !important;
  font-weight:700;
}

/* 分類群タグ */
.esb-tag-taxon{
  display:inline-block;
  background:#e0f0e6;
  color:#2f7d4f !important;
  font-size:11px;
  font-weight:700;
  padding:2px 10px;
  border-radius:12px;
  text-decoration:none;
}
.esb-tag-taxon:hover{ filter:brightness(0.95); text-decoration:none; }

/* 種名 */
.esb-species{ color:#0a3d5c !important; font-weight:700; }

/* 大学専用コード */
.esb-code{ color:#0d8ba6 !important; font-weight:600; font-variant-numeric:tabular-nums; }

/* 緯度経度 */
.esb-geo{ color:#5b6f7b !important; font-size:11.5px; font-variant-numeric:tabular-nums; text-decoration:none; }

/* 野生／飼育 */
.esb-wild{
  display:inline-block;
  font-size:11px;
  padding:1px 8px;
  border-radius:3px;
  background:#e0f0e6;
  color:#2f7d4f !important;
  font-weight:600;
  text-decoration:none;
}

/* 性別 */
.esb-sex{ font-weight:700; text-decoration:none; }

/* 地図アイコン */
.esb-pin{ display:inline-block; vertical-align:middle; margin-left:4px; }

/* 備考 */
.esb-remark{
  display:inline-block;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11.5px;
  color:#6b7d88;
  vertical-align:middle;
}

/* 組織・論文ボタン */
.esb-btn-tissue{
  display:inline-block;
  background:#0d8ba6;
  color:#fff !important;
  font-size:11px;
  font-weight:600;
  padding:3px 10px;
  border-radius:4px;
  text-decoration:none;
}
.esb-btn-tissue:hover{ filter:brightness(1.1); text-decoration:none; }
.esb-btn-pub{
  display:inline-block;
  border:1px solid #d8e6ec;
  color:#5b6f7b !important;
  font-size:11px;
  padding:3px 10px;
  border-radius:4px;
  text-decoration:none;
}
.esb-btn-pub:hover{ border-color:#0d8ba6; color:#0d8ba6 !important; }

/* ---------- ツールバー(全て選択・CSV) ---------- */
.esb-toolbar{
  max-width:1080px;
  margin:14px auto 8px;
  padding:0 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
  font-size:13px;
}
.esb-toolbar-left a{ color:#0d8ba6; font-weight:600; }
.esb-toolbar-right{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.esb-csvbtn{
  display:inline-block;
  background:#fff;
  border:1px solid #0d8ba6;
  color:#0d8ba6 !important;
  border-radius:6px;
  padding:6px 14px;
  font-size:12.5px;
  font-weight:600;
  text-decoration:none;
}
.esb-csvbtn:hover{ background:#0d8ba6; color:#fff !important; text-decoration:none; }
.esb-csvbtn-sub{ border-color:#d8e6ec; color:#5b6f7b !important; }
.esb-csvbtn-sub:hover{ border-color:#0d8ba6; color:#0d8ba6 !important; background:#fff; }

@media(max-width:900px){
  .esb-searchform table td:first-child{ width:110px; }
}

/* ============================================================
   ヘルプページ(HelpSearch.aspx等)本文のデザイン
============================================================ */
.esb-help-inner{
  max-width:1250px;
  margin:24px auto 40px;
  padding:0 20px;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","YuGothic","Noto Sans JP",Meiryo,sans-serif;
  color:#23323d;
}

/* ヘルプページの各テーブルをカード風に */
.esb-help-inner > table{
  width:100% !important;
  border-collapse:separate !important;
  background:#fff;
  border:1px solid #d8e6ec;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 8px 26px -20px rgba(18,90,127,.5);
  margin-bottom:20px;
}
.esb-help-inner > table td{
  padding:14px 18px !important;
}

/* タイトル行(bgcolor="#ECF5FA" 等)をサイトカラーに統一 */
.esb-help-inner td[bgcolor]{
  background:#125a7f !important;
}
.esb-help-inner td[bgcolor] font,
.esb-help-inner td[bgcolor] b{
  color:#fff !important;
}

/* 本文中の見出し(■検索方法 など) */
.esb-help-inner td > font > b{
  color:#0a3d5c;
}

/* 目次・リンク行 */
.esb-help-inner small{
  line-height:2;
  color:#33424c;
}
.esb-help-inner small a{
  color:#0d8ba6;
  text-decoration:none;
  font-weight:600;
}
.esb-help-inner small a:hover{
  text-decoration:underline;
}

/* 注意書き枠(緑の枠線で囲われた説明文) */
.esb-help-inner p[style*="border"]{
  background:#f3fafc !important;
  border:1px solid #d8e6ec !important;
  border-left:4px solid #0d8ba6 !important;
  border-radius:6px;
  padding:16px 20px !important;
  color:#33424c;
  line-height:1.9;
}

/* 各項目の説明(A)分類群 など */
.esb-help-inner p{
  line-height:1.9;
  margin:0;
}
.esb-help-inner p b{
  color:#0a3d5c;
  font-size:13.5px;
}

/* リンク色の統一(通常のaタグ) */
.esb-help-inner a{
  color:#0d8ba6;
}
.esb-help-inner a:hover{
  color:#125a7f;
}