* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    font-size: 1.4rem;
    color: #1e4a6e;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2c7bb6;
    padding-bottom: 0.5rem;
}

/* ---- form ---- */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.3rem;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c5d0da;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafcff;
    transition: border-color 0.2s;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c7bb6;
    background: white;
}

.form-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 130px;
}

.form-group.checkbox {
    margin-top: 0.4rem;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: #555;
}

.form-group.checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.unit {
    font-size: 0.75rem;
    font-weight: normal;
    color: #888;
    margin-left: 0.25rem;
}

.note {
    font-size: 0.82rem;
    color: #666;
    background: #f8f9fa;
    border-left: 3px solid #aac;
    padding: 0.4rem 0.6rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
}

.disease-fields {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eef;
}

button[type="submit"] {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem;
    background: #2c7bb6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #1e5f8a;
}

button[type="submit"]:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

/* ---- result ---- */
.result-area {
    margin-top: 1.5rem;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.result-success { border-left: 5px solid #27ae60; }
.result-failure { border-left: 5px solid #c0392b; }

.result-status {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.3rem;
}

.result-disease {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.result-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.category-label {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e3a5f;
}

.category-code {
    font-size: 1rem;
    color: #888;
}

.result-treatment {
    display: inline-block;
    font-size: 0.82rem;
    background: #e8f0f8;
    color: #2c5f8a;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.result-reason {
    font-size: 1rem;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.result-details {
    font-size: 0.85rem;
    color: #999;
}

/* ---- evidence table ---- */
.evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

.evidence-table th {
    background: #f0f4f8;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #dde;
}

.evidence-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.evidence-table tr.adopted td {
    background: #edfaf3;
    font-weight: 600;
}

.evidence-table .adopted-mark {
    color: #27ae60;
    font-weight: 700;
}

.supplement {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
    font-size: 0.88rem;
    color: #555;
}

.supplement-label {
    font-weight: 600;
}

.btn-reset {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.7rem;
    background: white;
    color: #2c7bb6;
    border: 2px solid #2c7bb6;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-reset:hover {
    background: #2c7bb6;
    color: white;
}
