:root {
  --blue: #1f5fa8;
  --blue-light: #e9f1fb;
  --orange: #e67e22;
  --orange-dark: #d35400;
  --red: #d64541;
  --text: #333;
  --muted: #666;
  --line: #d9dee5;
  --bg: #f6f8fa;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; }
.head { background: #fff; border-radius: 10px; padding: 24px 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); text-align: center; }
.head h1 { font-size: 22px; margin: 0 0 4px; color: #23395d; }
.head .sub { margin: 0 0 12px; color: var(--muted); letter-spacing: 1px; }
.head .lead { margin: 0; font-size: 14px; color: #444; text-align: left; }
.notice { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 12px 0; }
.notice.error { border-color: var(--red); background: #fff4f3; color: #8a1c1c; }
.sec { background: #fff; border-radius: 10px; padding: 18px 20px 12px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.sec-title { font-size: 17px; margin: 0 0 14px; padding: 8px 12px; border-left: 5px solid var(--blue); background: #f4f7fb; }
.grid2, .grid3 { display: grid; gap: 12px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.fg { margin-bottom: 14px; }
label, .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: #fff; background: var(--red); font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: middle; font-weight: 600; }
.opt { color: #fff; background: #8a9bb0; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: middle; font-weight: 600; }
.small { font-weight: 400; font-size: 12px; color: var(--muted); }
select, input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #bbb; border-radius: 6px; font-size: 16px; background: #fff; color: var(--text);
}
select:disabled, input:disabled { background: #f0f0f0; color: #888; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.checks { display: grid; gap: 6px 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.check .amt { margin-left: auto; color: var(--blue); white-space: nowrap; font-weight: 600; }
.check .amt.hold { color: var(--red); }
.check.none { background: #f4f7fb; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.price-box { position: sticky; bottom: 8px; background: var(--blue-light); border: 2px solid var(--blue); border-radius: 10px; padding: 16px 18px; text-align: center; margin: 16px 0; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.price-title { font-size: 14px; color: #23395d; font-weight: 700; }
.price { font-size: 34px; font-weight: 800; color: var(--red); line-height: 1.3; letter-spacing: 1px; }
.price .unit { font-size: 16px; margin-left: 4px; }
.price.hold { font-size: 26px; }
.price-note { font-size: 12px; color: #444; }
.reasons { text-align: left; font-size: 13px; color: #8a1c1c; margin: 8px auto 0; padding-left: 20px; max-width: 560px; }
.link-btn { background: none; border: none; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 13px; margin-top: 6px; }
.lines { width: 100%; max-width: 560px; margin: 8px auto 0; font-size: 13px; border-collapse: collapse; text-align: left; }
.lines td { padding: 3px 6px; border-bottom: 1px dashed #c5d3e6; }
.lines td.n { text-align: right; white-space: nowrap; }
.lines tr.total td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--blue); }
.submit { width: 100%; padding: 16px; background: var(--orange); color: #fff; font-size: 18px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; }
.submit:hover { background: var(--orange-dark); }
.submit:disabled { background: #ccc; cursor: not-allowed; }
.btn-sub { padding: 14px 18px; background: #fff; border: 1px solid #999; border-radius: 8px; font-size: 15px; cursor: pointer; }
dialog { border: none; border-radius: 12px; padding: 22px; max-width: 640px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog h2 { margin: 0 0 12px; font-size: 18px; color: #23395d; }
.confirm { display: grid; grid-template-columns: 9em 1fr; gap: 6px 12px; font-size: 14px; margin: 0 0 16px; max-height: 55vh; overflow: auto; }
.confirm dt { color: var(--muted); font-weight: 600; }
.confirm dd { margin: 0; white-space: pre-wrap; word-break: break-all; }
.confirm dd.big { font-size: 20px; font-weight: 800; color: var(--red); }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dlg-actions .submit { flex: 1; }
.done { background: #fff; border-radius: 10px; padding: 24px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.done h2 { color: #23395d; margin-top: 0; }
.done strong { font-size: 22px; color: var(--blue); }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin: 24px 0 8px; }
