/* 公開フォーム（新規の問い合わせ）。今のフォーム V4 の色合いに合わせている。外部のフォント・画像は読み込まない */
:root {
  --green: #3a6b41; --green-dark: #2d5433; --green-soft: #e8f4ec; --text: #333; --muted: #666; --border: #d0c9c0;
  --error: #c0392b; --error-bg: #fdf3f2; --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); line-height: 1.7;
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", "メイリオ", Meiryo, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #3d2b1e repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px);
}
.main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 48px; }
.card { background: rgba(255, 255, 255, 0.96); border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28); padding: 40px 48px; width: 100%; max-width: 680px; }
.title { font-size: 1.5rem; text-align: center; color: var(--green-dark); margin: 0 0 16px; line-height: 1.4; }
.section { font-size: 1.1rem; color: var(--green-dark); border-bottom: 2px solid var(--green); padding-bottom: 6px; margin: 36px 0 20px; }
.lead { text-align: center; color: var(--muted); margin: 0 0 24px; }
.steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 0.8rem; }
.steps li { padding: 2px 12px; border-radius: 999px; background: #eee; color: var(--muted); }
.steps li.now { background: var(--green); color: var(--white); font-weight: 700; }
.steps li.done { background: var(--green-soft); color: var(--green-dark); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field.short { max-width: 240px; }
.field > label, .field > legend, .visit-row > label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.req { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--white); background: var(--error); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.ok { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--green-dark); background: var(--green-soft); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.hint { font-size: 0.875rem; color: var(--muted); margin: 0 0 6px; }
.hint.block { margin: 0 0 12px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--white);
}
input:focus, select:focus, textarea:focus, .privacy:focus { outline: 2px solid var(--green); outline-offset: 1px; }
input[readonly] { background: #f3f1ee; color: var(--muted); }
textarea { resize: vertical; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--error); background: var(--error-bg); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices label, .check { font-weight: 400; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.choices input, .check input { width: 18px; height: 18px; accent-color: var(--green); }
.visit-row { display: grid; grid-template-columns: 80px minmax(0, 320px); align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.visit-row > label { margin: 0; font-weight: 400; }
.visit-row .error { grid-column: 2; }
.error { color: var(--error); font-size: 0.875rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.error-box { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); border-radius: 6px; padding: 10px 14px; margin: 16px 0; font-size: 0.9rem; white-space: pre-line; }
.center { text-align: center; justify-content: center; }
.small { font-size: 0.875rem; color: var(--muted); margin-top: 20px; }
.code { max-width: 220px; margin: 0 auto; display: block; text-align: center; font-size: 1.6rem; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.turnstile { display: flex; justify-content: center; margin: 8px 0 16px; min-height: 65px; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 12px 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--white); color: var(--text); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(58, 107, 65, 0.35); }
.btn.primary:hover { background: var(--green-dark); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link { font: inherit; border: 0; background: none; color: var(--green-dark); text-decoration: underline; cursor: pointer; padding: 0; }
.privacy { height: 160px; overflow-y: scroll; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); font-size: 0.875rem; line-height: 1.6; margin-bottom: 12px; }
.privacy p { margin: 0 0 10px; }
.check.center { display: flex; }
.confirm { margin: 0 0 16px; display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--border); }
.confirm dt, .confirm dd { margin: 0; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.confirm dt { font-weight: 700; background: #f7f5f2; font-size: 0.9rem; }
.confirm dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm dd.empty { color: #aaa; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer { text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; padding: 16px; }
@media (max-width: 600px) {
  .card { padding: 28px 20px; }
  .row { grid-template-columns: 1fr; }
  .confirm { grid-template-columns: 1fr; }
  .confirm dt { border-bottom: 0; padding-bottom: 2px; }
  .title { font-size: 1.25rem; }
}
.visit-inputs { display: flex; gap: 6px; }
.visit-inputs input { flex: 1 1 auto; min-width: 0; }
.visit-inputs select { flex: 0 0 auto; width: auto; }
.analytics-note { margin: 0 0 4px; font-size: 12px; }
