.unit-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 10px 0px;
}

.unit-container h2 {
  margin: 10px 0px;
  font-weight: bold;
}

.unit-section {
  margin-top: 30px;
}

.unit-section h3{
  position: relative;
  font-weight: bold;
  margin-bottom: 24px;
}

.unit-section h3::before {
  content: ""; /* 空の内容（中央線として描画） */
  position: absolute;
  left: 50%;
  bottom: -10px; /* 要素の下に配置 */
  transform: translateX(-50%); /* 横方向の中央に揃える */
  width: 50px; /* 中央線の幅 */
  height: 0.2rem; /* 中央線の高さ */
  background-color: #0077cc; 
}


.unit-section form div{
  margin: 10px auto;
  text-align: center;
}

.unit-inner{
  display: flex;
  align-items: center;
}

.unit-input{
  max-width: 250px;
  font-size: 1.5rem;
  font-weight: bold;
}

.unit-input label{
  margin-right: 20px;
}

.unit-input-field {
  width: 120px; /* 入力欄の幅 */
  margin: 0px 15px;
  padding: 10px; /* 入力欄の内側の余白 */
  font-size: 1.2rem; /* フォントサイズ */
  border: 2px solid #0077cc; /* 枠線の色 */
  border-radius: 2px; /* 角の丸み */
  box-shadow: 0 0 8px rgba(0, 119, 204, 0.2); /* シャドウ */
}

.unit-input-field:focus {
  border-color: #005fa3; /* フォーカス時の枠線の色 */
  box-shadow: 0 0 12px rgba(0, 95, 163, 0.4); /* フォーカス時のシャドウ */
}

.unit-choice{
  font-size: 1rem;
  font-weight: bold;
  margin-right: 20px;
}

.unit-choice-field {
  width: auto;
  max-width: 100%;
  margin: 0px 15px;
  padding: 10px; /* 入力欄の内側の余白 */
  font-size: 0.8rem; /* フォントサイズ */
  border: 2px solid #0077cc; /* 枠線の色 */
  border-radius: 2px; /* 角の丸み */
  box-shadow: 0 0 8px rgba(0, 119, 204, 0.2); /* シャドウ */
}

.unit-equal{
  position: relative;
  display: inline-block;
  width: 24px;/* プラスの横線の幅 */
  height: 16px; /* プラスの縦線の高さ */
}

.unit-equal::before,
.unit-equal::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px; /* イコールの線の太さ */
  background-color: #0077cc; /* イコールの色 */
}

.unit-equal::before {
  top: 0px; /* 上の線の位置 */
  left: 0;
}

.unit-equal::after {
  bottom: 0px; /* 下の線の位置 */
  left: 0;
}

.unit-line-text{
  margin: 20px 0px;
  font-size: 0.8rem;
  line-height: 0.8rem;
}

#pe-info {
  margin-top: 20px;
}

#pe-info .pe-details {
  display: none; /* Hide details by default */
  flex-direction: column;
  align-items: center;
}

.pe-summary{
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration:underline;
  margin-bottom: 10px;

  cursor: pointer;
}

#fluoro-info {
  margin-top: 20px;
}

#fluoro-info .fluoro-details {
  display: none; /* Hide details by default */
  flex-direction: column;
  align-items: center;
}

.fluoro-summary{
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration:underline;
  margin-bottom: 10px;

  cursor: pointer;
}

.unit-table{
  max-width: 80%;
  margin: 10px auto;
}
.unit-table td:first-child {
  background-color: transparent;  /* listの設定を無視する */
}
.unit-table tbody tr:nth-child(odd) { 
  background-color: #f9f9f9; 
} 
.unit-table tbody tr:nth-child(even) { 
  background-color: #ffffff; 
} 
.unit-table tbody tr:hover { 
  background-color: #f1f1f1; 
} 
.unit-table thead th:hover { 
  background-color: #4e44ad; 
}

.unit-description{
  width: 90%;
  display: block;
  margin: 20px auto;
}

.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spin {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
  .unit-inner{
    flex-direction: column;
    text-align: left;
  }

  .unit-equal{
    width: 16px;/* プラスの横線の幅 */
    height: 24px; /* プラスの縦線の高さ */
    transform: translateX(-80%) 
  }
  .unit-equal::before,
  .unit-equal::after {
    width: 6px;/* プラスの横線の幅 */
    height: 100%; /* プラスの縦線の高さ */
  }

  .unit-equal::before {
    top: 0px;
    left: 0px; /* 左端の位置 */
  }

  .unit-equal::after {
    top: 0px;
    left: 10px; /* 左端の位置 */
  }
}