:root {
  --bg: #f4f6f8; --card: #fff; --text: #1d2733; --muted: #66727f; --line: #e2e7ec;
  --accent: #1565c0; --accent-soft: #e3eefb; --bar: #6aa3e8;
  --line-c: #06a24a; --tel-c: #c2410c; --form-c: #7c3aed; --inq-c: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b; --card: #1b2128; --text: #e6ebf0; --muted: #9aa6b2; --line: #2b333c;
    --accent: #6aa8f0; --accent-soft: #1f3147; --bar: #3d78bd;
    --line-c: #3ccf7c; --tel-c: #f59a5f; --form-c: #b597f7; --inq-c: #f07a7a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--accent); color: #fff; }
.top .brand { color: #fff; text-decoration: none; font-weight: 700; }
.top .brand small { font-weight: 400; opacity: .8; margin-left: 4px; }
.who { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.who button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 8px; font: inherit; cursor: pointer; }
main { max-width: 980px; margin: 0 auto; padding: 12px 16px 40px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 4px 0 10px; }
.tabs a { flex: none; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); }
.tabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.chips { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.chips a { padding: 7px 14px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); }
.chips a:last-child { border-right: 0; }
.chips a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.toggle { text-decoration: none; color: var(--muted); font-size: 14px; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 0 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; background: none; border: 0; padding: 0; }
.cards div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cards span { display: block; color: var(--muted); font-size: 13px; }
.cards b { display: block; font-size: 28px; line-height: 1.3; }
.cards small { color: var(--muted); font-size: 12px; }
.cards .hl b { color: var(--accent); }
.t { width: 100%; border-collapse: collapse; }
.t th, .t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { color: var(--muted); font-weight: 400; font-size: 13px; }
.t .n { text-align: right; width: 4.5em; white-space: nowrap; }
.nw { white-space: nowrap; }
.bar { display: inline-block; width: 120px; max-width: 40vw; height: 8px; background: var(--line); border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.bar i { display: block; height: 100%; background: var(--bar); border-radius: 4px; }
.pg { display: block; min-width: 0; }
.pg b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.pg a { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.list { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.item:hover { background: var(--accent-soft); }
.item .when { color: var(--muted); font-size: 13px; min-width: 6.5em; }
.item .what { flex: 1 1 100%; overflow-wrap: anywhere; }
.item .what small { color: var(--muted); }
.item .meta { flex: 1 1 100%; color: var(--muted); font-size: 13px; }
.sub { font-size: 13px; color: var(--muted); }
em { font-style: normal; color: var(--inq-c); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--muted); }
.t-line_tap { background: var(--line-c); }
.t-tel_tap { background: var(--tel-c); }
.t-repair_form_click { background: var(--form-c); }
.t-inquiry_sent { background: var(--inq-c); }
.visit { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.steps li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0 5px 8px; }
.steps li.act { font-weight: 700; }
.steps .when { color: var(--muted); font-size: 13px; flex: none; }
.steps small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.note, .foot, .empty { color: var(--muted); font-size: 13px; }
.foot { margin-top: 18px; }
code { background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.login { max-width: 360px; margin: 30px auto; display: flex; flex-direction: column; gap: 12px; background: var(--card); padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.login input { min-height: 44px; padding: 0 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.login button { min-height: 46px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.err { color: var(--inq-c); text-align: center; }
.ok { color: var(--line-c); text-align: center; }
.sites { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 8px; }
.sites a { flex: none; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); }
.sites a.on { color: var(--text); font-weight: 700; border: 1px solid var(--accent); background: var(--card); }
