.form-container {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 900px;
  margin: auto;
}

.form-container h1 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 16px;
}

.input-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.input-image {
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-shrink: 0;
}

.input-fields {
	padding:20px;
  background-color:#eeeeee;
  flex: 1;
  display: grid;
  gap: 16px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

label {
  min-width: 60px;
  font-weight: bold;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.box {
  width: 180px;
  height: 36px;
  padding: 0 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.unit {
  white-space: nowrap;
}

.calc-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto;
  background: #007acc;
  color: #fff;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.calc-btn:hover {
  background: #005fa3;
}

.error-msg {
  color: red;
  font-size: 14px;
  margin-top: 4px;
}

.results {
  display: none;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.results.visible {
  display: flex; /* ← 表示状態（元のレイアウト）に戻す */
}

.result-block {
  flex: 1 1 300px;
  background: #fff;
  text-align: center;
}

.result-image {
  width: 100%;
  max-width: 400px;
  background: #facc9c;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.result-values {
  margin-top: 12px;
  font-size: 20px;
}

.result-font {
	color:#C03;
	font-weight:bold;
}

.result-waku {
	border:solid thin;
	background-color:#eee;
	margin-bottom:12px;
}

@media screen and (max-width: 700px) {
  .input-block {
	flex-direction: column;
  }

  .input-image {
	margin: auto;
  }

  .form-row {
	flex-direction: column;
	align-items: flex-start;
  }

  .box {
	width: 100%;
  }
}