/* =====================================================================
   整備Report スタイルシート
   付録B たたき台プロトタイプの画面構成・配色を基礎としたデザイン。
   工場側(管理画面)とお客様側(閲覧ページ)で共通のトークンを使う。
   ===================================================================== */

:root {
  --navy: #1b2433;
  --navy-2: #232f42;
  --navy-3: #2d3c55;
  --accent: #ea580c;
  --accent-soft: #fff1e8;
  --accent-dark: #c2410c;

  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e6ea;
  --border-strong: #ccd2da;

  --text: #1f2937;
  --muted: #6b7280;
  --faint: #9aa3af;

  --good: #047857;
  --good-bg: #e7f5ef;
  --watch: #b45309;
  --watch-bg: #fdf3e3;
  --needed: #b91c1c;
  --needed-bg: #fdeaea;
  --done: #1d4ed8;
  --done-bg: #e9effd;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 4px 16px rgba(16, 24, 40, 0.08);

  --sidebar-w: 216px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }

/* ------------------------------------------------------------------ */
/* レイアウト                                                           */
/* ------------------------------------------------------------------ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--navy);
  color: #cbd3e0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  color: #fff;
  text-decoration: none;
}
.sidebar .brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex: none;
}
.sidebar .brand .title { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.sidebar .brand .sub { font-size: 10.5px; color: #8e9ab0; line-height: 1.35; }

.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #b8c2d4;
  text-decoration: none;
  font-size: 13.5px;
}
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--accent); color: #fff; font-weight: 600; }
.nav .ico { width: 16px; text-align: center; opacity: .95; flex: none; }
.nav .group { padding: 14px 11px 5px; font-size: 10.5px; color: #6f7b91; letter-spacing: .08em; }

.sidebar .foot {
  border-top: 1px solid var(--navy-3);
  padding: 12px 14px 16px;
  font-size: 11.5px;
  color: #8e9ab0;
}
.sidebar .foot a { color: #b8c2d4; text-decoration: none; display: block; padding: 3px 0; }
.sidebar .foot a:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; }
.topbar .crumb { font-size: 12px; color: var(--muted); font-weight: 400; }
.topbar .who { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.topbar .who b { color: var(--text); font-weight: 600; }

.content { padding: 20px 24px 56px; flex: 1; }
.content > * + * { margin-top: 16px; }

/* ------------------------------------------------------------------ */
/* カード・グリッド                                                     */
/* ------------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card > .card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card > .card-head h2 { font-size: 14.5px; }
.card > .card-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.card > .card-body { padding: 18px; }
.card > .card-body.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }

/* 統計タイル */
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat .label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.stat .value .unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat.warn { border-color: #f5c9a4; background: #fffaf5; }

/* 操作の流れ (プロトタイプの手順バー) */
.steps {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--navy); color: #d7deea;
  border-radius: var(--radius-lg); padding: 13px 18px; font-size: 12.5px;
}
.steps .lead { color: #97a3b8; font-size: 11.5px; letter-spacing: .04em; }
.steps .step { display: flex; align-items: center; gap: 7px; }
.steps .n {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
}
.steps .arrow { color: #5d6b83; }
.steps .spacer { flex: 1; }

/* ------------------------------------------------------------------ */
/* テーブル                                                             */
/* ------------------------------------------------------------------ */
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th {
  text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fafbfc;
  white-space: nowrap;
}
table.list td { padding: 11px 14px; border-bottom: 1px solid #f0f2f4; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: #fbfcfd; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
table.list .nowrap { white-space: nowrap; }
table.list .sub { font-size: 11px; color: var(--muted); }
table.list .strong { font-weight: 600; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 26px; margin-bottom: 6px; opacity: .45; }

/* ------------------------------------------------------------------ */
/* ボタン・バッジ                                                       */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.5;
  white-space: nowrap;
}
.btn:hover { background: #f7f8f9; color: var(--text); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); color: #fff; }
.btn.danger { color: var(--needed); border-color: #edc2c2; }
.btn.danger:hover { background: var(--needed-bg); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 11px 20px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: #eef0f3; color: #4b5563;
}
.badge.dark { background: var(--navy); color: #fff; }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.watch { background: var(--watch-bg); color: var(--watch); }
.badge.needed { background: var(--needed-bg); color: var(--needed); }
.badge.done { background: var(--done-bg); color: var(--done); }
.badge.unset { background: #eef0f3; color: var(--faint); }

.pill { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #eef0f3; color: #57606c; }

/* ------------------------------------------------------------------ */
/* フォーム                                                             */
/* ------------------------------------------------------------------ */
.field { margin-bottom: 14px; }
.field > label, .field-label {
  display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 5px;
}
.field .req { color: var(--needed); font-size: 11px; margin-left: 3px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 8px 11px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff;
  color: var(--text); line-height: 1.6;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234, 88, 12, .12);
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span2 { grid-column: 1 / -1; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=search], .inline-form input[type=text] { width: auto; min-width: 220px; }

/* 通知 */
.note {
  border-radius: var(--radius); padding: 11px 14px; font-size: 12.5px;
  border-left: 3px solid var(--accent); background: var(--accent-soft); color: #7c2d12;
}
.note.info { border-color: #2563eb; background: #eef4ff; color: #1e3a8a; }
.note.warn { border-color: #d97706; background: #fff8ec; color: #92400e; }
.note.error { border-color: #dc2626; background: var(--needed-bg); color: #991b1b; }
.note.ok { border-color: #059669; background: var(--good-bg); color: #065f46; }
.note + .note { margin-top: 8px; }
.note b { font-weight: 700; }

/* ------------------------------------------------------------------ */
/* 報告書の入力 (F-07 / F-08)                                           */
/* ------------------------------------------------------------------ */
.cat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; background: #f7f8fa;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: #374151;
  position: sticky; top: 57px; z-index: 5;
}
.cat-head .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.cat-head .count { font-weight: 400; color: var(--muted); font-size: 11.5px; }

.item-row { padding: 12px 18px; border-bottom: 1px solid #f0f2f4; }
.item-row:last-child { border-bottom: 0; }
.item-row .item-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-row .item-name { flex: 1; min-width: 180px; font-size: 13.5px; font-weight: 500; }
.item-row .item-name .hint { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }

.judge { display: flex; gap: 5px; flex: none; }
.judge input { position: absolute; opacity: 0; width: 0; height: 0; }
.judge label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border-strong); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--muted);
  user-select: none; white-space: nowrap;
}
.judge label .sym { font-size: 13px; }
.judge label:hover { border-color: var(--faint); }
.judge input:focus-visible + label { box-shadow: 0 0 0 3px rgba(234, 88, 12, .2); }
.judge input:checked + label[data-j=good]   { background: var(--good-bg);   border-color: var(--good);   color: var(--good); }
.judge input:checked + label[data-j=watch]  { background: var(--watch-bg);  border-color: var(--watch);  color: var(--watch); }
.judge input:checked + label[data-j=needed] { background: var(--needed-bg); border-color: var(--needed); color: var(--needed); }
.judge input:checked + label[data-j=done]   { background: var(--done-bg);   border-color: var(--done);   color: var(--done); }

.item-extra { margin-top: 9px; display: none; }
.item-row.open .item-extra { display: block; }
.item-row .memo { font-size: 13px; }
.item-toggle {
  background: none; border: 0; color: var(--muted); font-size: 11.5px;
  cursor: pointer; padding: 2px 0; font-family: inherit; text-decoration: underline;
}
.item-toggle:hover { color: var(--accent-dark); }

.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; align-items: flex-start; }
.thumb {
  position: relative; width: 92px; height: 70px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: #f0f2f4; flex: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .rm {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px;
  border-radius: 50%; border: 0; background: rgba(17, 24, 39, .72); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.thumb .rm:hover { background: #b91c1c; }
.addphoto {
  width: 92px; height: 70px; border-radius: 8px; flex: none;
  border: 1px dashed var(--border-strong); background: #fafbfc; color: var(--muted);
  font-size: 11px; cursor: pointer; display: grid; place-items: center; text-align: center;
  font-family: inherit; line-height: 1.3;
}
.addphoto:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.addphoto.busy { opacity: .6; cursor: progress; }

.sticky-actions {
  position: sticky; bottom: 0; z-index: 15;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  padding: 12px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.sticky-actions .spacer { flex: 1; }
.sticky-actions .status { font-size: 12px; color: var(--muted); }

.summary-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* URL 共有 (F-11) */
.urlbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.urlbox input {
  flex: 1; min-width: 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; background: #f8f9fa;
}
.qr { width: 150px; height: 150px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 6px; }

/* ------------------------------------------------------------------ */
/* お客様閲覧ページ (第6章)                                             */
/* ------------------------------------------------------------------ */
body.customer { background: #eef0f3; }

.cv-wrap { max-width: 720px; margin: 0 auto; padding: 0 0 40px; }

.cv-head {
  background: var(--navy); color: #fff; padding: 20px 20px 22px;
}
.cv-head .shop { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #c3cbd9; }
.cv-head .shop img { width: 30px; height: 30px; border-radius: 7px; background: #fff; object-fit: contain; }
.cv-head h1 { font-size: 22px; margin: 12px 0 6px; letter-spacing: .01em; }
.cv-head .meta { font-size: 12px; color: #aab4c4; }

.cv-body { padding: 0 16px; }
.cv-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-top: 14px; overflow: hidden;
}
.cv-card .head {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.cv-card .head .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.cv-card .body { padding: 16px; }

.cv-lead { font-size: 13.5px; color: #374151; }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec div { padding: 11px 16px; border-bottom: 1px solid #f0f2f4; }
.spec div:nth-child(2n) { border-left: 1px solid #f0f2f4; }
.spec .k { font-size: 11px; color: var(--muted); }
.spec .v { font-size: 14px; font-weight: 600; margin-top: 1px; }

.tally { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.tally .t { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tally .t .n { font-size: 13px; }

.cv-cat {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; background: #f7f8fa;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700;
}
.cv-cat .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.cv-item { padding: 11px 16px; border-bottom: 1px solid #f2f4f6; }
.cv-item:last-child { border-bottom: 0; }
.cv-item .row { display: flex; align-items: flex-start; gap: 12px; }
.cv-item .nm { flex: 1; font-size: 13.5px; }
.cv-item .memo { font-size: 12.5px; color: #4b5563; margin-top: 5px; line-height: 1.75; }
.cv-item.attn { background: #fffaf5; }

.cv-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cv-photos a { display: block; width: 116px; height: 88px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.cv-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv-msg { background: #fffaf5; border-left: 3px solid var(--accent); padding: 14px 16px; }
.cv-msg .t { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
.cv-msg .b { font-size: 13.5px; line-height: 1.9; }
.cv-msg .by { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 8px; }

.cv-total {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 15px 18px; margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cv-total .l { font-size: 12.5px; color: #c3cbd9; }
.cv-total .l small { display: block; font-size: 10.5px; color: #8e9ab0; margin-top: 2px; }
.cv-total .amt { font-size: 24px; font-weight: 700; }

.cv-contact { text-align: center; padding: 22px 16px 8px; }
.cv-contact .lead { font-size: 13px; color: #4b5563; }
.cv-contact .tel {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: 21px; font-weight: 700; color: var(--accent-dark); text-decoration: none;
}
.cv-contact .hours { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.cv-contact .addr { font-size: 11.5px; color: var(--faint); margin-top: 2px; }

.cv-foot { font-size: 10.5px; color: #98a1ae; text-align: center; padding: 18px 20px 0; line-height: 1.8; }

.lightbox {
  position: fixed; inset: 0; background: rgba(9, 13, 20, .9); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox .x {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: #fff; font-size: 30px; cursor: pointer; line-height: 1;
}

/* ------------------------------------------------------------------ */
/* ログイン・公開ページ                                                 */
/* ------------------------------------------------------------------ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 396px; }
.auth-card .brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; }
.auth-card .brand .mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
}
.auth-card .brand .title { font-size: 18px; font-weight: 700; }
.auth-card .brand .sub { font-size: 11px; color: var(--muted); }
.auth-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.8; }
.auth-note code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.lp { max-width: 940px; margin: 0 auto; padding: 0 20px 60px; }
.lp-hero { padding: 64px 0 40px; }
.lp-hero .eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--accent-dark); font-weight: 700; }
.lp-hero h1 { font-size: 34px; margin: 12px 0; letter-spacing: -.01em; line-height: 1.35; }
.lp-hero p { font-size: 15px; color: #4b5563; max-width: 620px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-cards .card { padding: 18px; }
.lp-cards h3 { font-size: 14.5px; margin-bottom: 6px; }
.lp-cards p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* 印刷 (C-06: A4縦。操作要素は非表示)                                   */
/* ------------------------------------------------------------------ */
@media print {
  @page { size: A4 portrait; margin: 12mm 10mm; }

  body { background: #fff; font-size: 10.5pt; }
  .no-print, .sidebar, .topbar, .sticky-actions, .lightbox { display: none !important; }

  .cv-wrap { max-width: none; padding: 0; }
  .cv-body { padding: 0; }
  .cv-head {
    background: #fff !important; color: #000 !important;
    border-bottom: 2px solid #1b2433; padding: 0 0 8pt;
  }
  .cv-head .shop { color: #333 !important; }
  .cv-head h1 { font-size: 17pt; margin: 6pt 0 3pt; }
  .cv-head .meta { color: #555 !important; }

  .cv-card { box-shadow: none; border: 1px solid #c9ced6; margin-top: 7pt; border-radius: 4pt; }
  .cv-cat { background: #f0f2f4 !important; }
  .cv-item { padding: 5pt 8pt; break-inside: avoid; }
  .cv-item.attn { background: #fff !important; }
  .cv-photos a { width: 72pt; height: 54pt; }

  .cv-total { background: #fff !important; color: #000 !important; border: 1.5pt solid #1b2433; }
  .cv-total .l, .cv-total .l small { color: #444 !important; }

  .badge { border: 0.5pt solid currentColor; }
  .cv-msg { break-inside: avoid; }
  a[href^="tel:"] { color: #000 !important; text-decoration: none; }
  .cv-foot { color: #666 !important; }
}

/* ------------------------------------------------------------------ */
/* レスポンシブ (N-07: スマホ〜PC)                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 4px;
    overflow-x: auto; padding-right: 8px;
  }
  .sidebar .brand { padding: 12px 14px; flex: none; }
  .sidebar .brand .sub { display: none; }
  .nav { flex-direction: row; padding: 0 6px; gap: 3px; overflow-x: auto; flex: 1; }
  .nav a { white-space: nowrap; padding: 7px 10px; font-size: 12.5px; }
  .nav .group { display: none; }
  .sidebar .foot { display: none; }

  .topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .topbar .who { font-size: 11.5px; }
  .content { padding: 14px 14px 48px; }
  .cat-head { top: 0; }

  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-cards { grid-template-columns: minmax(0, 1fr); }
  .lp-hero h1 { font-size: 25px; }

  table.list.responsive thead { display: none; }
  table.list.responsive tbody tr {
    display: block; border-bottom: 1px solid var(--border); padding: 10px 14px;
  }
  table.list.responsive tbody td { display: flex; gap: 10px; border: 0; padding: 3px 0; }
  table.list.responsive tbody td::before {
    content: attr(data-l); font-size: 11px; color: var(--muted);
    min-width: 76px; flex: none;
  }
  table.list.responsive tbody td.num { text-align: left; }

  .item-row .item-top { align-items: flex-start; }
  .judge { width: 100%; }
  .judge label { flex: 1; justify-content: center; padding: 8px 4px; }
  .judge label .txt { display: none; }
  .judge label .sym { font-size: 16px; }

  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec div:nth-child(2n) { border-left: 0; }
}
