:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0 16px; color: #000; background: #fff; font: 15px/1.65 Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
body.wp4-home { background: #e0ffff; }
a { color: #0000ee; text-underline-offset: 3px; }
a:visited { color: #551a8b; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible, button:focus-visible, .table-scroll:focus-visible { outline: 3px solid #00796b; outline-offset: 3px; }
main { max-width: 1280px; margin: 20px auto 32px; min-width: 0; }
.archive-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: 1280px; margin: auto; padding: 10px 0; border-bottom: 1px solid #94c9ba; font-size: 14px; }
.archive-nav a { display: inline-flex; align-items: center; min-height: 36px; }
h1 { margin: 0 0 18px; padding: 5px 10px; color: #fff; background: #009d88; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
h2 { padding: 4px 10px; border-left: 10px solid #009d88; border-top: 1px solid #009d88; background: #f4fff4; font-size: 16px; }
p { margin: 14px 0; }
table { font-size: 14px; }
table.default { margin: 0 0 16px; border-collapse: collapse; }
table.default th, table.default td { border: 1px solid #808080; padding: 5px 10px; vertical-align: top; }
table.default th { background: #e5e5e5; white-space: nowrap; }
table.default tbody tr:nth-child(even) { background: #f7fbf8; }
td.number { text-align: right; font-variant-numeric: tabular-nums; }
td.comment { min-width: 180px; white-space: normal; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 12px 0 20px; }
.table-scroll table { min-width: 680px; }
.table-scroll td { white-space: nowrap; }
.table-scroll td.comment { white-space: normal; }
.table-hint { color: #40534c; font-size: 13px; }
.owner-list { min-width: 300px; }
.owner-list a { display: inline-block; min-height: 32px; padding: 3px 0; }
.search-form { max-width: 900px; padding: 18px; border: 1px solid #94c9ba; background: #f4fff4; }
.text-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.text-filters label { display: grid; gap: 6px; }
input[type="search"] { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font: inherit; border: 1px solid #718c82; border-radius: 3px; background: #fff; }
fieldset { margin: 14px 0 0; padding: 6px 12px; border: 1px solid #b3c9c0; }
legend { font-weight: bold; }
.radio-options { display: flex; flex-wrap: wrap; gap: 0 18px; }
.radio-options label { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
input[type="radio"] { width: 18px; height: 18px; margin-right: 7px; accent-color: #00796b; }
.form-actions { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
button { min-width: 110px; min-height: 44px; border: 1px solid #006453; border-radius: 3px; background: #007b65; color: #fff; font: inherit; cursor: pointer; }
.race-result { margin: 28px 0; }
.race-condition { background: #ffffd8; padding: 8px; }
.archive-footer { max-width: 1280px; margin: 32px auto 16px; border-top: 1px solid #94c9ba; padding-top: 14px; color: #40534c; font-size: 13px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; padding: 10px; background: #fff; z-index: 1; }
.legacy-content { overflow-x: auto; max-width: 100%; }
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.legacy-content table.default { white-space: nowrap; }
.legacy-content p { line-height: 1.8; }
.wp4-home .legacy-content h1 { background: none; color: #000; font-family: serif; font-size: 25px; padding: 0; }
.wp4-home .legacy-content table a { display: inline-block; padding: 7px 2px; }
@media (max-width: 600px) {
    body { padding: 0 10px; font-size: 15px; }
    .archive-nav { gap: 0 14px; font-size: 13px; }
    .archive-nav a { min-height: 44px; }
    main { margin-top: 16px; }
    h1 { font-size: 18px; }
    .text-filters { grid-template-columns: 1fr; }
    .search-form { padding: 12px; }
    .radio-options { gap: 0 10px; }
    .wp4-home .legacy-content h1 { font-size: 21px; }
    .wp4-home .legacy-content table { width: 100%; }
    .wp4-home .legacy-content table table tr { display: flex; flex-direction: column; padding: 5px 0; }
    .wp4-home .legacy-content table table td { display: block; width: 100%; padding: 3px 6px; text-align: center; }
}
