/* 湿り空気線図インタラクティブシミュレーション用スタイル */

#psychrometric-container {
  max-width: 820px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#controls {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

#controls input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#psychrometric-chart {
  display: block;
  margin: 0 auto;
  background-color: #ffffff;
  border: 2px solid #333;
  border-radius: 4px;
  cursor: crosshair;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#state-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#state-panel h3 {
  margin: 0 0 1rem 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #4a9eff;
  padding-bottom: 0.5rem;
}

#state-values {
  font-size: 14px;
}

#state-values p {
  margin: 0;
  padding: 0.5rem;
  text-align: center;
  color: #666;
  font-style: italic;
}

#state-values table {
  width: 100%;
  border-collapse: collapse;
}

#state-values th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #555;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  width: 40%;
}

#state-values td {
  text-align: right;
  padding: 0.5rem 1rem;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

#state-values tr:last-child th,
#state-values tr:last-child td {
  border-bottom: none;
}

#state-values tr:hover {
  background-color: #f9f9f9;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  #psychrometric-container {
    max-width: 100%;
    padding: 0.5rem;
  }

  #psychrometric-chart {
    width: 100%;
    height: auto;
  }

  #controls {
    flex-direction: column;
    gap: 0.75rem;
  }
}
