/* ふんマップ 紹介ページと行政・警察向け資料。役員はスマホで見ることが多いので大きめの文字にしている */
:root {
  --green: #2f5d2f;
  --green-light: #e3efdd;
  --red: #b3261e;
  --text: #1b2a1b;
  --muted: #5a6b5a;
  --line: #d5ddd2;
  --bg: #f6faf3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

[hidden] { display: none !important; }

a { color: var(--green); }
h1, h2, h3 { color: var(--green); line-height: 1.4; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--green-light); }
h3 { font-size: 18px; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

.hero { background: var(--green); color: #fff; padding: 36px 16px 32px; }
.hero h1 { color: #fff; }
.hero p { margin: 0; max-width: 760px; }
.hero .inner { max-width: 760px; margin: 0 auto; }
.hero .lead { font-size: 19px; font-weight: 700; margin-bottom: 8px; }

.button {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  border-radius: 999px; padding: 12px 24px; border: 2px solid var(--green); cursor: pointer;
}
.primary { background: var(--green); color: #fff; }
.secondary { background: #fff; color: var(--green); }
.hero .primary { background: #fff; color: var(--green); border-color: #fff; }
.hero .secondary { background: none; color: #fff; border-color: #fff; }
.buttons { margin-top: 20px; }
.buttons .button { margin: 0 8px 8px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card p { margin: 0; font-size: 15px; }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }

ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 8px; }

.price { background: #fff; border: 2px solid var(--green); border-radius: 12px; padding: 20px; }
.price .amount { font-size: 30px; font-weight: 800; color: var(--green); }
.price ul { margin: 8px 0 0; padding-left: 1.2em; }

dl.faq dt { font-weight: 700; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; }

form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
label { display: block; font-weight: 700; margin-top: 14px; }
label .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit;
  border: 1px solid var(--muted); border-radius: 8px; background: #fff;
}
textarea { min-height: 100px; }
form .button { margin-top: 20px; width: 100%; }
.error { color: var(--red); font-weight: 700; }
.done { background: var(--green-light); border-radius: 12px; padding: 20px; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px; }

/* ---------- 行政・警察向け資料（A4縦1枚） ---------- */
#controls { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; font-size: 15px; }
#controls .button { padding: 6px 18px; }
.sheet {
  width: 210mm; min-height: 297mm; margin: 16px auto; padding: 14mm 15mm; background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); font-size: 12.5px; line-height: 1.65;
}
.sheet h1 { font-size: 22px; margin: 0; }
.sheet h2 { font-size: 15px; margin: 14px 0 6px; padding-bottom: 3px; }
.sheet p, .sheet ul { margin: 0 0 6px; }
.sheet ul { padding-left: 1.3em; }
.sheet .to { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.sheet .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sheet .box { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.sheet .box h3 { font-size: 13.5px; }
.sheet .ask { background: var(--green-light); border-radius: 8px; padding: 10px 12px; }
.sheet .bottom { display: flex; align-items: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.sheet .bottom .qr { width: 30mm; height: 30mm; flex-shrink: 0; margin-right: 12px; }
.sheet .bottom .qr svg { width: 100%; height: 100%; }
.sheet .fill { display: inline-block; min-width: 60mm; border-bottom: 1px solid var(--muted); }

@media screen and (max-width: 820px) {
  .sheet { width: auto; min-height: 0; margin: 8px; padding: 16px; }
  .sheet .grid { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .sheet { margin: 0; box-shadow: none; }
}
