/* BMI・適正体重計算ツール専用スタイル */
.calc-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
}
/* 目標BMI（標準／美容／モデル）の選択 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1e3c72;
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1e3c72;
}
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.btn-calc {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #2a5298;
    color: white;
}
.btn-calc:hover { background-color: #1e3c72; }
.btn-clear-tool {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #e9ecef;
    color: #495057;
}
.btn-clear-tool:hover { background-color: #dee2e6; }

.result-box {
    background-color: #f1f3f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}
.result-row:last-child {
    border-bottom: none;
}
.res-highlight {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2a5298;
}

/* 肥満度判定のカラーバッジ */
.res-status {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #e9ecef;
    color: #495057;
}
.res-status.status-under { background: #e3f2fd; color: #1976d2; }
.res-status.status-normal { background: #e8f5e9; color: #2e7d32; }
.res-status.status-over1 { background: #fff8e1; color: #f57f17; }
.res-status.status-over2 { background: #fff3e0; color: #e65100; }
.res-status.status-over3 { background: #fbe9e7; color: #d84315; }
.res-status.status-over4 { background: #ffebee; color: #c62828; }

.history-box {
    margin-top: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.history-box h3 {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.clear-history-lnk {
    font-size: 0.8rem;
    color: #dc3545;
    text-decoration: none;
    cursor: pointer;
}
.history-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-left: 0;
}
.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
}
.history-item:last-child { border-bottom: none; }
.history-time {
    color: #999;
    font-size: 0.8rem;
}
.history-empty {
    color: #adb5bd;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 0;
    list-style: none;
}

/* モバイル・タブレット(iPhone, iPad)対応 */
@media (max-width: 768px) {
    .calc-box {
        padding: 20px;
    }
    .btn-group {
        gap: 10px;
    }
    .btn-calc, .btn-clear-tool {
        padding: 12px;
        font-size: 0.95rem;
    }
    .result-row {
        font-size: 0.95rem;
    }
    .res-highlight {
        font-size: 1.25rem;
    }
    .history-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.85rem;
    }
    /* 💡 統合：同じ @media が2つに分かれていたため、こちらへまとめました */
    .radio-group {
        gap: 12px;
        flex-wrap: wrap;
    }
}

