<!DOCTYPE html>
<html>
<head>
<title>光合成速度から果実の肥大量を計算するアプリ</title>
<script>
function calculateFruitGrowth() {
var photosynthesisRate = parseFloat(document.getElementById('photosynthesisRate').value);
var fruitGrowthRate = photosynthesisRate * 60 * 60 * 12 / 1000;
document.getElementById('result').innerHTML = "12時間あたりの果実の肥大量は約 " + fruitGrowthRate.toFixed(2) + " kg/1000平方メートルです。";
}
</script>
</head>
<body>
<h1>光合成速度から果実の肥大量を計算するアプリ</h1>
<div>
<label for="photosynthesisRate">光合成速度(μmol/平方メートル/秒):</label>
<input type="number" id="photosynthesisRate" step="0.01">
</div>
<br>
<div>
<button onclick="calculateFruitGrowth()">計算する</button>
</div>
<br>
<p id="result"></p>
</body>
</html>