/* 仮設トイレ汲取依頼フォーム */
:root {
  --c-main: #1f6f5c;
  --c-main-dark: #17574a;
  --c-accent: #e8f3ef;
  --c-text: #23272b;
  --c-muted: #6b7378;
  --c-line: #d9dee2;
  --c-bg: #f5f7f6;
  --c-err: #c62828;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.75;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

.page-head { margin-bottom: 20px; }
.eyebrow { margin: 0; color: var(--c-main); font-weight: 700; font-size: .9rem; letter-spacing: .05em; }
h1 { margin: 4px 0 12px; font-size: 1.6rem; line-height: 1.4; }
.lead { margin: 0 0 8px; }
.secure-note { margin: 0; font-size: .88rem; color: var(--c-main-dark); background: var(--c-accent); padding: 8px 12px; border-radius: 8px; }

.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 0 8px; margin-bottom: 16px; border-bottom: 2px solid var(--c-main); width: 100%; }

.field { margin-bottom: 20px; }
.field.narrow { max-width: 220px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req-mark, .opt-mark { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 7px; margin-left: 8px; border-radius: 4px; vertical-align: 2px; line-height: 1.6; }
.req-mark { background: var(--c-err); color: #fff; }
.opt-mark { background: #e3e7ea; color: var(--c-muted); }
.lead .req-mark { margin: 0 4px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,111,92,.25); border-color: var(--c-main); }
[aria-invalid="true"] { border-color: var(--c-err) !important; background: #fff6f6; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { max-width: 120px; }
.with-prefix { display: flex; align-items: stretch; }
.with-prefix .prefix { display: flex; align-items: center; padding: 0 12px; background: #eef1ee; border: 1px solid var(--c-line); border-right: 0; border-radius: 8px 0 0 8px; white-space: nowrap; font-weight: 700; user-select: none; }
.with-prefix input { flex: 1; min-width: 0; border-radius: 0 8px 8px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { margin: 0; font-weight: 400; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 18px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; }
.chip input:checked + span { background: var(--c-main); border-color: var(--c-main); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid rgba(31,111,92,.35); }

.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--c-main); }

.hint { margin: 4px 0 0; font-size: .82rem; color: var(--c-muted); }
.counter { text-align: right; }
.err { margin: 6px 0 0; color: var(--c-err); font-size: .88rem; font-weight: 600; }
.alert { background: #fdecea; border: 1px solid #f5c2c0; color: #8a1c1c; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.muted { color: var(--c-muted); font-size: .9rem; }

.privacy { max-height: 140px; overflow: auto; font-size: .88rem; background: #fafbfb; border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.privacy p { margin: 0; }
.privacy a { color: var(--c-main); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 14px 32px; cursor: pointer; border: 2px solid var(--c-main); text-decoration: none; display: inline-block; text-align: center; }
.btn-main { background: var(--c-main); color: #fff; min-width: 260px; }
.btn-main:hover { background: var(--c-main-dark); border-color: var(--c-main-dark); }
.btn-main:disabled { opacity: .6; cursor: wait; }
.btn-sub { background: #fff; color: var(--c-main); }

dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 40px); border: 0; border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,30,28,.55); }
dialog h2 { margin: 0 0 6px; font-size: 1.3rem; }
.confirm-list { display: grid; grid-template-columns: 11em 1fr; margin: 16px 0 20px; border-top: 1px solid var(--c-line); }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 10px 8px; border-bottom: 1px solid var(--c-line); }
.confirm-list dt { font-weight: 700; background: #fafbfb; font-size: .9rem; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; }

.done { text-align: center; }
.done-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-main); color: #fff; font-size: 2rem; font-weight: 700; }
.reception { font-size: 1rem; margin: 8px 0 16px; }
.reception strong { display: block; font-size: 1.6rem; letter-spacing: .08em; color: var(--c-main); }

@media (max-width: 600px) {
  .card { padding: 20px 16px; }
  .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .btn-main { width: 100%; min-width: 0; }
  .confirm-list { grid-template-columns: 1fr; }
  .confirm-list dt { border-bottom: 0; padding-bottom: 2px; }
}

/* ---------- 地図 ---------- */
.section-note { margin: 0 0 16px; font-size: .9rem; background: #fff8e6; border-left: 4px solid #e0a100; padding: 10px 12px; border-radius: 0 8px 8px 0; }
.map-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.map-tools input[type="search"] { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 12px; min-height: 44px; }
.btn-tool { font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--c-main); color: var(--c-main); background: #fff; border-radius: 8px; padding: 0 14px; min-height: 44px; cursor: pointer; }
.btn-tool:hover { background: var(--c-accent); }
.map { height: 360px; border: 1px solid var(--c-line); border-radius: 8px; z-index: 0; background: #e9eef0; }
.map-msg { margin: 0 0 6px; font-size: .88rem; color: var(--c-main-dark); min-height: 0; }
.map-msg:empty { display: none; }
.map-msg.is-err { color: var(--c-err); }
.map-noscript { padding: 16px; margin: 0; }
.map-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.map-coord { font-size: .9rem; color: var(--c-muted); }
.map-coord.is-set { color: var(--c-main-dark); font-weight: 700; }
.btn-link { font: inherit; font-size: .88rem; background: none; border: 0; color: var(--c-err); text-decoration: underline; cursor: pointer; padding: 4px; }
.leaflet-control-layers label { font-weight: 400; margin: 0; }
.leaflet-container { font: inherit; font-size: .85rem; }
@media (max-width: 600px) {
  .map { height: 300px; }
  .map-tools { flex-wrap: wrap; }
  .map-tools input[type="search"] { flex-basis: 100%; }
  .map-tools .btn-tool { flex: 1; }
}
.date-hint { margin: -8px 0 20px; }

/* ---------- 料金の目安 ---------- */
.fee-box { border: 1px solid #b9d8cd; background: var(--c-accent); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.fee-title { margin: 0 0 6px; font-weight: 700; font-size: .92rem; color: var(--c-main-dark); }
.fee-lines { list-style: none; margin: 0; padding: 0; }
.fee-lines li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #b9d8cd; }
.fee-total { margin: 8px 0 0; text-align: right; }
.fee-total strong { font-size: 1.25rem; color: var(--c-main-dark); }

.notice{margin:0 0 16px;padding:12px 16px;border:1px solid #e0b04a;background:#fff7e0;border-radius:8px;font-size:.95rem;line-height:1.7}

/* カレンダー（希望日） */
.field { position: relative; }
.date-pick { cursor: pointer; }
.cal { position: absolute; left: 0; top: 78px; z-index: 30; width: 300px; max-width: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--c-line); background: #fff; border-radius: 8px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--c-main-dark); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: .8rem; color: var(--c-muted); padding: 2px 0; }
.cal-dow.sun { color: var(--c-err); }
.cal-dow.sat { color: #1565c0; }
.cal-day { height: 38px; border: 0; background: #fff; border-radius: 8px; font: inherit; cursor: pointer; color: var(--c-text); }
.cal-day:hover:not(:disabled) { background: var(--c-accent); }
.cal-day.is-sel { background: var(--c-main); color: #fff; font-weight: 700; }
.cal-day:disabled { color: #b9c0c5; background: #f1f3f4; cursor: not-allowed; }
.cal-day.is-closed:disabled { text-decoration: line-through; }
.cal-note { margin: 8px 0; font-size: .78rem; color: var(--c-muted); line-height: 1.5; }
.cal-close { width: 100%; min-height: 40px; border: 1px solid var(--c-main); background: #fff; color: var(--c-main-dark); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .cal { top: 78px; width: 100%; } }
