/* =========================================
   レンズ視野計算テーブル スタイル
   ========================================= */

.sensor_selector_wrap {
  display: flex;
  flex-wrap: nowrap;        /* 折り返しさせない */
  align-items: stretch;
  gap: 10px 16px;
  padding: 14px 16px;
  background: #f5f7fa;
  border: 1px solid #dce1ea;
  border-radius: 6px;
  margin: 40px auto 0px;
}
.sensor_selector_wrap {
    position: sticky;
    top: 10px;
    z-index: 100;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.sensor_selector_wrap label {
  display: none;            /* labelは別途h5などに移動 or 非表示 */
}

.sensor_selector_wrap select {
  flex-shrink: 0;
  width: 260px;             /* 固定幅 */
  padding: 7px 10px;
  font-size: 1em;
  border: 1px solid #b0b8c8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.sensor_info {
  display: flex;            /* 常時表示 */
  flex: 1 1 0;              /* 残りの幅を占有・縮まない */
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 6px 24px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #dce1ea;
  border-radius: 5px;
  font-size: 0.9em;
  min-width: 0;             /* flex子要素のはみ出し防止 */
}

.sensor_info .si_item {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sensor_info .si_label {
  color: #666;
  white-space: nowrap;
}
.sensor_info .si_val {
  height: 25px;
  color: #1a3a5c;
  font-size: 1.1em;
}

#si_px, #si_res {
  padding: 3px 5px;
  border: 1px solid #b0b8c8;
  border-radius: 5px;
  color: #1a3a5c;
}
#si_px {
  width: 50px;   /* ← ここを変えれば調整できます */
}
#si_res {
  width: 110px;   /* ← ここを変えれば調整できます */
}
#si_size {
  padding-top: 10px !important;   /*  */
}

/* --- テーブル共通 --- */
.table_720 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.table_720 th,
.table_720 td {
  padding: 7px 7px;
  /*border: 1px solid #cdd4de;*/
  text-align: center;
  vertical-align: middle;
}

.table_720 .title_tr th {
  white-space: nowrap;
}
.title_tr th.lens-code {
  width: 13%;
}
.title_tr th.lens-focus {
  width: 7%;
}
.title_tr th.lens-near {
  width: 7%;
}
.title_tr th.lens-wd {
  width: 9%;
}
.title_tr th.lens-fov {
  width: 13%;
}
.title_tr th.lens-inch {
  width: 7%;
}
.title_tr th.lens-tvdist {
  width: 6%;
}
.title_tr th.lens-filter {
  width: 9%;
}
.title_tr th.lens-mount {
  width: 10%;
}

/* --- 製品行 hover & open --- */
tr.lens_row {
  transition: background 0.15s;
}

tr.lens_row:hover {
  background: #edf2fa;
}

tr.lens_row.row_open {
  background: #dce8f8;
}

tr.lens_row th {
  background: #f0f4fb;
  color: #1a3a5c;
  font-weight: bold;
  cursor: pointer;
}
tr.lens_row th:hover {
  background: #DBE6F9 !important;
  color: #c00;
}

/* --- アコーディオン行 --- */
tr.accordion_row {
  display: none;
}

tr.accordion_row td {
  background: #f0f4fb !important;
  padding: 12px 18px;
  color: #555;
  border-top: none;
}
tr.accordion_row td.tax {
  font-size: 0.9em;
}

/* --- WD 入力 --- */
.wd_input {
  width: 55px;
  height: 25px;
  padding: 3px 3px;
  border: 1px solid #b0b8c8;
  border-radius: 5px;
  font-size: 1.3em;
  text-align: center;
}

.wd_input:focus {
  outline: 2px solid #4a7fc1;
  border-color: #4a7fc1;
}
 /* 上下のボタンを非表示 */
.wd_input::-webkit-inner-spin-button,
.wd_input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wd_input {
  -moz-appearance: textfield; /* Firefox用 */
}

/* --- 視野サイズセル --- */
.fov_cell {
  font-weight: bold;
  color: #1a5c3a;
  min-width: 90px;
  white-space: nowrap;
}

/* --- アコーディオン内表 --- */
.accordion_row table.lens_download td {
  padding: 4px 6px !important;
  background-color: #fff !important;
}

/* DLアイコン */
td.td-ico {
  text-align: center;
  width: 16%;
}
td.td-ico2 {
  text-align: center;
  width: 32%;
}

td.td-ico img, td.td-ico2 img {
  width: auto;
  height: 30px;
  vertical-align: middle;
}

/* --- 価格 --- */
td.td-price {
  text-align: right;
}

/* --- 在庫 --- */
td.td-stock {
  text-align: center;
  width: 18%;
}
/* --- 納期 --- */
td.td-lead {
  text-align: center;
  width: 18%;
}

/* --- 矢印インジケータ --- */
tr.lens_row th:first-child::before {
  content: '▶ ';
  font-size: 0.7em;
  margin-right: 2px;
  color: #7a9cc4;
}

tr.lens_row.row_open th:first-child::before {
  content: '▼ ';
  margin-right: 2px;
  color: #2a6bbf;
}

/* --- アラート設定 --- */
.wd_warning {
  display: block;           /* none → block に変更 */
  visibility: hidden;       /* 代わりにvisibilityで制御 */
  opacity: 0;
  transition: opacity 0.4s ease;   /* フェードの速さはここで調整 */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(255,243,205,0.95);
  border: 1px solid #f0ad4e;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.9em;
  color: #856404;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
/* --- ケラレ --- */
.vignetting_note {
  display: none;
  width: 55px !important;
  position: relative !important;
  left: 48% !important;
  text-align: center;
  margin-top: 8px;
  padding: 6px 14px;
  background: #fde8e8;
  border: 1px solid #e08080;
  border-radius: 4px;
  color: #a02020;
  font-size: 0.88em;
  font-weight: bold;
}

/* テーブルスクロール */
.table-scroll {
  height: auto ;
}

 /* =========================================
   カスタム検索ドロップダウン
   ========================================= */

.cs_wrapper {
  position: relative;
  flex-shrink: 0;
  width: 260px;
}

.cs_input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  font-size: 1em;
  border: 1px solid #b0b8c8;
  border-radius: 5px;
  background: #fff;
  cursor: text;
  color: #333;
  height: 55px;
}
.cs_input:focus {
  outline: 2px solid #4a7fc1;
  border-color: #4a7fc1;
}

.cs_dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 300px;
  max-height: 500px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #4a7fc1;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 500;
}

.cs_group_label {
  padding: 4px 10px;
  font-size: 0.78em;
  font-weight: bold;
  color: #fff;
  background: #2a4a72;
  letter-spacing: 0.03em;
}

.cs_item {
  padding: 6px 14px;
  font-size: 0.9em;
  cursor: pointer;
  white-space: nowrap;
  color: #333;
}
.cs_item:hover,
.cs_item_active {
  background: #edf2fa;
  color: #1a3a5c;
}

.cs_no_result {
  padding: 10px 14px;
  font-size: 0.88em;
  color: #999;
}


/* =========================================
   スマホ対応 (max-width: 640px)
   ========================================= */
@media (max-width: 640px) {
 
  /* センサ選択エリア：縦並びに */
  .sensor_selector_wrap {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    width: 85%;
  }
 
  .sensor_selector_wrap select {
    width: 100%;            /* 横幅いっぱいに */
  }
 
  /* センサ情報：縦並びに */
  .sensor_info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    display: block;
  }
 .sensor_info .si_item {
   margin: 10px 0;
  gap: 6px;
  align-items: center;
}
 
.sensor_info .si_label {
  width: 100px;
  font-size: 1em;
}
.table_720 th,
.table_720 td {
  padding: 7px 9px;
}

  /* ケラレ表示：leftで位置指定しているのをリセット */
.vignetting_note {
    position: static;
    width: auto;
    left: 398px !important;
    margin-top: 8px;
  }
  
/* テーブルスクロール */
.table-scroll {
  overflow-x: scroll;
}

.table-scroll .table_720_line {
  width: 800px;
}
 
  
.scroll-hint-icon-wrap {  
  z-index: 1000;
  }
  
.cs_wrapper {
    width: 100%;
}
.cs_dropdown {
    width: 100%;
}
  
  
}

/* 画面サイズの横幅が 480px より小さい場合に適用 */
@media screen and (max-width: 480px) {

}
