:root {
  --green: #0e9f6e;
  --green-dark: #0a7d57;
  --green-bg: #e7f7f0;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f5;
  --card: #ffffff;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 48px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 0 12px; font-weight: 700; color: var(--green-dark);
  font-size: 18px;
}
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-size: 16px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 16px;
}
h1 { font-size: 22px; line-height: 1.4; margin-bottom: 4px; }
h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.addr { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.spot-badge {
  display: inline-block; background: var(--green-bg); color: var(--green-dark);
  font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 14px;
  margin: 6px 0 2px;
}
.plans { display: grid; gap: 10px; }
.plan {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.plan input { accent-color: var(--green); width: 18px; height: 18px; margin-right: 12px; }
.plan .l { display: flex; align-items: center; font-weight: 600; font-size: 15px; }
.plan .price { font-weight: 700; font-size: 17px; color: var(--green-dark); }
.plan.sel { border-color: var(--green); background: var(--green-bg); }
.terms-box {
  max-height: 150px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; font-size: 12px; color: var(--muted);
  background: #fafafa; white-space: pre-wrap;
}
.btn {
  display: block; width: 100%; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font-size: 17px; font-weight: 700;
  padding: 16px; cursor: pointer; text-align: center; text-decoration: none;
  transition: background .15s;
  font-family: inherit;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { background: #a7cabb; cursor: not-allowed; }
.btn-sub { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-sub:hover { background: var(--green-bg); }
.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--green); }
.sumrow { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.sumrow:last-child { border-bottom: 0; }
.sumrow .k { color: var(--muted); }
.sumrow .v { font-weight: 600; }
.sumrow.total .v { font-size: 20px; color: var(--green-dark); font-weight: 800; }
.center { text-align: center; }
.done-icon {
  width: 72px; height: 72px; margin: 12px auto 8px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-size: 38px;
}
.badge-demo {
  display: inline-block; background: #fef3c7; color: #92400e;
  border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 700;
  margin-bottom: 10px;
}
.err {
  background: #fef2f2; color: #b91c1c; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 12px; display: none;
}
.spin {
  width: 26px; height: 26px; border: 3px solid var(--line);
  border-top-color: var(--green); border-radius: 50%; margin: 24px auto;
  animation: sp 0.8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
.footer { text-align: center; font-size: 11px; color: #9ca3af; margin-top: 24px; }
#payment-element { margin-bottom: 16px; }
