/* ページ全体の設定 */
body {
    margin: 0;
    margin-top: 150px;
    padding: 30px;
    font-family: sans-serif;
    background-image: linear-gradient(298deg, #f4f0ff, #ebfcff);
    color: #333;
}

/* 2列レイアウト */
.container {
    display: flex;
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* カードデザイン */
.card {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 見出し */
h1,
h2,
h3 {
    color: #1976d2;
}

/* 入力欄 */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

/* ボタン */
button {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
}

button:hover {
    background: #1565c0;
}

/* リセットボタン */
.reset-btn {
    margin-top: 10px;
    background: #9e9e9e;
}

.reset-btn:hover {
    background: #757575;
}

/* 判定基準表を強調表示するためのクラス */
.highlight {
    background: #dcedc8;
    font-weight: bold;
}

/* エラー表示 */
.error {
    color: red;
    margin-top: 15px;
    font-weight: bold;
}

/* BMI結果 */
.result-box {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

/* 低体重 */
.result-box.underweight {
    background: #e3f2fd;
}

.result-box.underweight #bmiValue,
.result-box.underweight #judge {
    color: #1565c0;
}

/* 普通体重（現在と同じ色） */
.result-box.normal {
    background: #e8f5e9;
}

.result-box.normal #bmiValue,
.result-box.normal #judge {
    color: #2e7d32;
}

/* 肥満 */
.result-box.overweight {
    background: #ffebee;
}

.result-box.overweight #bmiValue,
.result-box.overweight #judge {
    color: #c62828;
}


/* BMI数値 */
#bmiValue {
    font-size: 48px;
    font-weight: bold;
    color: #2e7d32;
}

/* 判定 */
#judge {
    font-size: 24px;
    margin-top: 10px;
}

/* 表 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table,
th,
td {
    border: 1px solid #ccc;
}

th {
    background: #1976d2;
    color: white;
}

th,
td {
    padding: 10px;
    text-align: center;
}

/* 注意書き */
.note {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* BMI説明 */
.info {
    margin-top: 25px;
    line-height: 1.8;
}

/* スマートフォン表示 */
@media (max-width: 768px) {

    .container {
        flex-direction: column;
    }

}