:root {
  --bg: #fafaf7; --fg: #1f2328; --muted: #5b6470; --line: #d7dbe0; --accent: #2f6f4f; --accent-fg: #fff; --card: #fff; --warn: #8a4b00;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.7; }
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 24px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0.5em 0; }
h2 { font-size: 1.25rem; margin-top: 2em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
h3 { font-size: 1.05rem; margin: 1.2em 0 0.4em; }
a { color: var(--accent); }
.lead { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.notice { border-left: 4px solid var(--warn); background: #fff7ec; padding: 10px 14px; margin: 16px 0; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); text-decoration: none; font-size: 1rem; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn[aria-disabled="true"], .btn:disabled { background: #9aa3ab; border-color: #9aa3ab; color: #fff; cursor: not-allowed; }
.price { font-size: 1.4rem; font-weight: bold; }
ol.steps li { margin: 6px 0; }
details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; font-weight: bold; }
label { display: block; margin: 8px 0 2px; font-size: 0.95rem; }
input[type="text"], input[type="date"], textarea, select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
textarea { min-height: 80px; }
.check-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.check-item input { margin-top: 6px; }
.check-item .how { color: var(--muted); font-size: 0.88rem; }
.tag { display: inline-block; font-size: 0.75rem; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.records li { margin: 6px 0; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; margin: 2px; border: 1px solid var(--line); }
table.report { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.report th, table.report td { border: 1px solid #888; padding: 4px 6px; vertical-align: top; text-align: left; }
table.report th { background: #eee; }
table.report img { width: 90px; height: 68px; object-fit: cover; margin: 1px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
footer { padding: 32px 16px; color: var(--muted); font-size: 0.85rem; }
.print-only { display: none; }
@media (max-width: 520px) { .meta-grid { grid-template-columns: 1fr; } }

@page { size: A4; margin: 14mm 12mm; }
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .no-print, header, footer, nav { display: none !important; }
  .print-only { display: block; }
  main { max-width: none; padding: 0; }
  .report-sheet h1 { font-size: 16pt; text-align: center; }
  .report-sheet input, .report-sheet textarea { border: none; border-bottom: 1px solid #000; border-radius: 0; padding: 2px; }
  table.report { font-size: 9.5pt; }
  table.report thead { display: table-header-group; }
  table.report tr { break-inside: avoid; }
  table.report th { background: #ddd !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
