/* レスポンシブ対応のためのスタイル */
@media screen and (max-width: 767px) {
  /* 製品仕様テーブルのレスポンシブ対応 */
  #micropump-table {
    border: none;
    margin: 0;
    padding: 0;
  }
  
  #micropump-table thead {
    display: none;
  }
  
  #micropump-table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #029378;
    padding: 15px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  #micropump-table tbody td {
    display: block;
    border: none;
    padding: 8px 0;
    text-align: left;
    position: relative;
  }
  
  #micropump-table tbody td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #029378;
    display: inline-block;
    width: 80px;
    margin-right: 10px;
    font-size: 13px;
  }
  
  /* チェックボックス列のスタイル */
  #micropump-table tbody td:nth-child(6),
  #micropump-table tbody td:nth-child(7),
  #micropump-table tbody td:nth-child(8) {
    display: inline-block;
    width: calc(33.33% - 7px);
    margin-right: 5px;
    text-align: center;
    padding: 8px 2px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
  }
  
  #micropump-table tbody td:nth-child(8) {
    margin-right: 0;
  }
  
  #micropump-table tbody td:nth-child(6):before,
  #micropump-table tbody td:nth-child(7):before,
  #micropump-table tbody td:nth-child(8):before {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 11px;
    text-align: center;
    font-weight: bold;
  }
  
  /* チェックボックスのスタイル */
  #micropump-table input[type="checkbox"] {
    transform: scale(1.3);
    margin: 0;
    cursor: pointer;
  }
  
  /* モデル名を強調 */
  #micropump-table tbody td:first-child {
    font-weight: bold;
    font-size: 16px;
    color: #029378;
    border-bottom: 2px solid #029378;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
  }
  
  #micropump-table tbody td:first-child:before {
    display: none;
  }
  
  /* ステータス表示の改善 */
  #micropump-table tbody td:nth-child(5) {
    font-weight: bold;
    color: #333;
  }
  
  /* フォーム全体のレスポンシブ対応 */
  .table_wrap {
    padding: 0 10px;
  }
  
  .table2.spcol1 th,
  .table2.spcol1 td {
    padding: 10px 0;
  }
  
  .table2.spcol1 th {
    background: #f5f5f5;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
  }
  
  /* エラーメッセージの改善 */
  .error.red {
    margin: 10px 0;
    padding: 8px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #d32f2f;
  }
  
  /* テーブルラッパーの改善 */
  .table_wrap table {
    margin: 0;
  }
}

/* タブレットサイズでの改善 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #micropump-table {
    font-size: 13px;
  }
  
  #micropump-table th,
  #micropump-table td {
    padding: 8px 4px;
  }
  
  #micropump-table tbody td:before {
    display: none;
  }
}

/* デスクトップでの微調整 */
@media screen and (min-width: 1024px) {
  #micropump-table {
    font-size: 14px;
  }
  
  #micropump-table th,
  #micropump-table td {
    padding: 10px 8px;
  }
  
  /* デスクトップでのテーブル改善 */
  #micropump-table tbody tr:hover {
    background-color: #f5f5f5;
  }
  
  #micropump-table th {
    background: #029378;
    color: #fff;
    font-weight: bold;
    text-align: center;
  }
  
  #micropump-table input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.1);
  }
}

/* 全体的な改善 */
#micropump-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  border: none;
}

#micropump-table th,
#micropump-table td {
  border: 1px solid #029378;
  vertical-align: middle;
}

/* チェックボックス列の中央揃え */
#micropump-table td[align="center"] {
  text-align: center;
}

/* テーブルヘッダーの改善 */
#micropump-table thead th {
  background: #029378;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 12px 8px;
}

/* テーブル行のホバー効果 */
#micropump-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* チェックボックスの改善 */
#micropump-table input[type="checkbox"] {
  cursor: pointer;
  transform: scale(1.1);
}

/* ステータス表示の改善 */
#micropump-table tbody td:nth-child(5) {
  font-weight: bold;
}

/* モデル名の強調 */
#micropump-table tbody td:first-child {
  font-weight: bold;
  color: #029378;
}
