/* デモ2:家主向け月次報告書 — コーポレートと同一トークン */
:root {
  --bg: #fbfaf7; --card: #fff; --ink: #3c4348; --muted: #6b7278;
  --line: #e7e4dd; --accent: #c25400; --accent-bright: #ff7900;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 14px; line-height: 1.7;
}
.demo-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
.demo-header h1 { font-size: 16px; margin: 0; }
.demo-header .sub { color: var(--muted); font-size: 12px; }

.layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 24px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

.pane h2 { font-size: 14px; margin: 0 0 10px; }
.src-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.src-card h3 { font-size: 12.5px; margin: 0 0 8px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
th { color: var(--muted); font-size: 11px; background: #faf9f5; }
tr:last-child td { border-bottom: none; }

.gen-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
#generate {
  border: none; background: var(--accent); color: #fff; font-weight: 700;
  border-radius: 10px; padding: 14px 20px; font-size: 15px; cursor: pointer; font-family: inherit;
}
#generate:hover { background: var(--accent-bright); }
#generate:disabled { opacity: .75; cursor: default; }
#progress { color: var(--accent); font-size: 13px; font-weight: 700; }

.paper {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 36px 40px; box-shadow: 0 8px 24px rgba(47,54,59,.08);
}
.paper h2 { font-size: 18px; margin: 0 0 4px; }
.paper .meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.paper .owner { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.paper h3 { font-size: 13.5px; border-left: 3px solid var(--accent-bright); padding-left: 8px; margin: 22px 0 8px; }
.paper ul { margin: 0; padding-left: 1.3em; }
.paper .contact { margin-top: 24px; font-size: 12.5px; color: var(--muted); }

#actions { display: flex; gap: 10px; margin-top: 14px; }
#actions button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 8px; padding: 10px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
}
#actions button:hover { border-color: var(--accent); color: var(--accent); }
#actions #send { background: var(--ink); color: #fff; border-color: var(--ink); }
#actions #send:hover { opacity: .9; color: #fff; }
#actions #send:disabled { background: #1a7f5e; border-color: #1a7f5e; opacity: 1; }

.demo-note { text-align: center; color: var(--muted); font-size: 11.5px; padding: 0 24px 24px; }

/* 印刷=報告書だけをA4で出す(そのままPDF保存デモになる) */
@media print {
  .demo-header, .pane.sources, .gen-row, #actions, .demo-note { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0; }
  .paper { border: none; box-shadow: none; border-radius: 0; padding: 0; }
}
