* { box-sizing: border-box; }
body { max-width: 760px; margin: 0 auto; padding: 24px 18px; background: #fff; color: #222; font: 15px/1.8 Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; overflow-wrap: anywhere; }
a { color: #245b91; text-underline-offset: 2px; }
header { border-bottom: 1px solid #bbb; padding-bottom: 12px; margin-bottom: 24px; }
header h1 { font-size: 26px; margin: 0 0 4px; line-height: 1.4; }
header h1 a { color: #222; text-decoration: none; }
header p { margin: 6px 0 10px; color: #555; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
h1 { font-size: 26px; line-height: 1.45; }
h2 { font-size: 20px; border-bottom: 1px solid #ccc; padding-bottom: 5px; margin: 28px 0 14px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
p { margin: 8px 0 14px; }
section { margin: 0 0 30px; }
.note, time, .sub { font-size: 13px; color: #666; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; border: 1px solid #ccc; text-align: right; }
th { background: #f3f3f3; font-weight: normal; }
th:first-child, td:first-child { text-align: left; }
.summary-table th { width: 42%; text-align: left; }
.summary-table td { font-size: 16px; }
.summary-table .metric { font-weight: normal; }
.negative { color: #a22; }
.positive { color: #17664f; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #555; }
.swatch { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin-right: 5px; background: #245b91; }
.swatch.cost { background: #999; }
#chart svg { display: block; width: 100%; height: auto; max-height: 300px; }
.empty { padding: 16px 0; color: #666; font-size: 14px; }
article { margin-bottom: 18px; }
article h3 { margin-top: 3px; }
article p { white-space: pre-line; }
footer { border-top: 1px solid #ccc; padding-top: 14px; margin-top: 32px; font-size: 13px; color: #666; }
footer a { margin-right: 14px; }
@media (max-width: 550px) { body { padding: 16px 12px; } th,td { padding: 6px 8px; } }

.monthly-wrap { overflow-x: auto; margin-top: 8px; }
.monthly-table { font-size: 13px; white-space: nowrap; }
.monthly-table th, .monthly-table td { padding: 6px 7px; }
.monthly-table tbody th { background: #fff; text-align: left; }
@media(max-width:550px){ .monthly-table { font-size: 12px; } .monthly-table th, .monthly-table td { padding: 5px 4px; } }
