* { box-sizing: border-box; }
body {
    font-family: "Yu Gothic UI", "Meiryo", sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #222;
}
header {
    background: #2c4a6b;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
header h1 {
    font-size: 18px;
    margin: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 16px;
    font-size: 14px;
    opacity: 0.9;
}
nav a:hover, nav a.active {
    text-decoration: underline;
    opacity: 1;
}
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
h2 { font-size: 20px; margin-top: 0; }
h3 { font-size: 16px; }
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    font-size: 14px;
}
th, td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}
th {
    background: #eef1f5;
}
tr:hover td { background: #f9fbff; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.card {
    background: #fff;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stat {
    flex: 1;
    min-width: 160px;
}
.stat .label { font-size: 12px; color: #666; }
.stat .value { font-size: 24px; font-weight: bold; }
form.inline { display: inline; }
input, select, button, textarea {
    font-size: 14px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background: #2c4a6b;
    color: #fff;
    border: none;
    cursor: pointer;
}
button:hover { background: #1e3552; }
button.secondary {
    background: #888;
}
button.danger {
    background: #b23b3b;
}
.amount-input { width: 90px; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}
.badge.paid { background: #d7f0d7; color: #256b25; }
.badge.unpaid { background: #f5dcdc; color: #8a2a2a; }
.badge.disability { background: #dce8f7; color: #1f4e79; }
.badge.care { background: #f7ecdc; color: #7a5210; }
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.month-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}
a.button-link {
    display: inline-block;
    padding: 6px 12px;
    background: #2c4a6b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.muted { color: #888; font-size: 13px; }
