/* Legacy view (?legacy=1): the old matchdatabase plugin output and the CF7 form inside the new layout.
   The plugin's match.css has global table/h1 rules and is not loaded; these rules are scoped to the legacy wrappers. */
.fit-legacy,.contact-legacy{margin-top:1.5rem;font-size:.95rem;line-height:1.6}
.fit-legacy #searchArea form{margin:0}
.fit-legacy ul.search4{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.fit-legacy ul.search4 li{margin:0}
.fit-legacy ul.search4 label{display:block;font-weight:600;margin-bottom:.35rem}
.fit-legacy ul.search4 select{width:100%;max-width:28rem;padding:.55rem .75rem;border:1px solid rgba(0,0,0,.2);border-radius:.5rem;background:#fff;font:inherit}
.fit-legacy ul.search4 input[type=submit]{padding:.65rem 1.5rem;border:1px solid currentColor;border-radius:999px;background:#111;color:#fff;font:inherit;cursor:pointer}
.fit-legacy #searchArea h2{font-size:1.15rem;margin:1.5rem 0 .5rem}
.fit-legacy ul.match_layout{list-style:none;margin:0 0 1rem;padding:1rem;border:1px solid rgba(0,0,0,.12);border-radius:.75rem;background:#fff}
.fit-legacy ul.match_layout img{max-width:100%;height:auto}
.fit-legacy ul.match_layout .tableright{margin-top:.75rem;overflow-x:auto}
.fit-legacy ul.match_layout table{width:100%;border-collapse:collapse;font-size:.9rem}
.fit-legacy ul.match_layout th,.fit-legacy ul.match_layout td{border:1px solid rgba(0,0,0,.15);padding:.45rem .6rem;text-align:left;vertical-align:top}
.fit-legacy ul.match_layout th{white-space:nowrap;background:rgba(0,0,0,.04)}
.fit-legacy a.btn-secondary,.fit-legacy a.btn-outline-primary{display:inline-block;margin:.25rem .25rem .25rem 0;padding:.35rem .8rem;border:1px solid currentColor;border-radius:999px;text-decoration:none}
/* Tap targets at phone widths (owner decision 2026-10-15), as at the end of app-interface.css: the two buttons get an
   invisible ::after of at least 44 × 44 px; the selects (no ::after possible) grow from 38.6 to 44px. */
@media(max-width:800px){.fit-legacy ul.search4 select{min-height:44px}.fit-legacy :is(a.btn-secondary,a.btn-outline-primary){position:relative}.fit-legacy :is(a.btn-secondary,a.btn-outline-primary)::after{content:"";position:absolute;inset:min(0px,50% - 22px)}}
.fit-legacy i.fas{display:none}
/* Red notes come from the fit data as inline style="color: #ff0000" (3.99:1); the nearest red that reaches 4.5:1 on white. */
.fit-legacy span[style*="#ff0000" i]{color:#ec0000!important}
.contact-legacy table.inquiry{width:100%;border-collapse:collapse}
.contact-legacy table.inquiry th,.contact-legacy table.inquiry td{display:block;padding:.35rem 0;text-align:left}
.contact-legacy table.inquiry th{font-weight:600;padding-top:1rem}
.contact-legacy table.inquiry th span+span{margin-left:.5rem}
.contact-legacy .haveto,.contact-legacy .any{font-size:.75rem;padding:.1rem .45rem;border-radius:.35rem;background:#111;color:#fff}
/* 任意: lighter than 必須 (#111) but white text at 4.5:1 or more (.6 on white = #666, 5.74:1; .35 was 2.43:1). */
.contact-legacy .any{background:rgba(0,0,0,.6)}
.contact-legacy input[type=text],.contact-legacy input[type=email],.contact-legacy input[type=tel],.contact-legacy textarea{width:100%;padding:.55rem .75rem;border:1px solid rgba(0,0,0,.2);border-radius:.5rem;font:inherit;background:#fff}
.contact-legacy textarea{min-height:10rem}
.contact-legacy center{text-align:left}
.contact-legacy input[type=submit]{padding:.7rem 1.75rem;border:1px solid currentColor;border-radius:999px;background:#111;color:#fff;font:inherit;cursor:pointer}
.contact-legacy .wpcf7-not-valid-tip{display:block;margin-top:.25rem;font-size:.85rem;color:#b00020}
.contact-legacy .wpcf7-response-output{margin:1rem 0 0;padding:.75rem 1rem;border:1px solid currentColor;border-radius:.5rem}
