/* ===== LPフォーム共通スタイル ===== */
:root {
  --green-900: #18582e;   /* LPの深緑(.txt-green) */
  --green-600: #64b400;   /* LPの明緑(.txt-light-green) */
  --green-100: #ecf5df;
  --paper:     #f4f8f5;
  --ink:       #0a2828;   /* LPの文字色 */
  --muted:     #5b6b61;
  --line:      #ceded4;   /* LPの.txt-soft-green */
  --error:     #c62828;
  --accent:    #f52850;   /* LPの赤。資料請求=赤。無料相談ページで上書き */
  --accent-dk: #c81e40;
  --radius:    10px;
}
body.is-consultation { --accent: #ff6e00; --accent-dk: #cc5800; }  /* LPの橙 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--green-900); }

.site-header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(10,40,40,.12);
}
.site-header .inner {
  max-width: 960px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; }
.logo img { display: block; height: 44px; width: auto; }
.site-header .back { font-size: 14px; font-weight: 700; color: var(--green-900); text-decoration: none; }
.site-header .back:hover { text-decoration: underline; }

.page-title {
  background: var(--green-900);
  color: #fff;
  padding: 36px 20px 40px;
}
.page-title .inner { max-width: 760px; margin: 0 auto; }
.page-title h1 { margin: 0 0 8px; font-size: 30px; font-weight: 900; letter-spacing: .04em; }
.page-title p  { margin: 0; font-size: 15px; opacity: .9; }

main { max-width: 760px; margin: -20px auto 64px; padding: 0 16px; }
.form-card {
  background: #fff;
  border-radius: var(--radius);
  border-top: 5px solid var(--accent);
  padding: 32px 28px 36px;
  box-shadow: 0 2px 0 var(--line);
}
.form-lead { margin: 0 0 24px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 26px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; margin-bottom: 4px; padding: 0;
}
.req, .opt {
  font-size: 11px; font-weight: 700; line-height: 1;
  white-space: nowrap; flex-shrink: 0;
  padding: 4px 7px; border-radius: 4px;
}
.req { background: var(--error); color: #fff; }
.opt { background: #eef1ee; color: var(--muted); }
.hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff;
  box-shadow: 0 0 0 3px rgba(100,180,0,.25);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error-msg { display: none; margin: 6px 0 0; font-size: 13px; color: var(--error); font-weight: 700; }
.field.has-error .error-msg { display: block; }

.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  cursor: pointer; background: #fbfdfb;
}
.choice:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }
.choice input { flex-shrink: 0; width: 22px; height: 22px; accent-color: var(--green-900); margin: 0; }
.choice input:focus-visible { outline: 3px solid rgba(100,180,0,.45); outline-offset: 2px; }

.consent {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 18px;
}
.consent .choice { background: #fff; margin-top: 10px; }

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

.submit-area { text-align: center; margin-top: 32px; }
.btn-submit {
  font: inherit; font-weight: 900; font-size: 18px; letter-spacing: .06em;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 999px;
  padding: 16px 56px; min-width: 280px; cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-dk);
  transition: transform .08s, box-shadow .08s;
}
.btn-submit:hover { filter: brightness(1.05); }
.btn-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dk); }
.btn-submit:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; transform: none; }

.form-alert {
  display: none; margin: 0 0 20px; padding: 12px 16px;
  border-radius: 8px; background: #fdecec; color: var(--error);
  font-weight: 700; font-size: 14px;
}
.form-alert.show { display: block; }

.thanks { text-align: center; padding: 20px 8px; }
.thanks h2 { font-size: 22px; color: var(--green-900); margin: 0 0 16px; }
.thanks p { margin: 0 0 12px; }
.thanks .btn-back {
  display: inline-block; margin-top: 16px; padding: 12px 36px;
  border: 2px solid var(--green-900); border-radius: 999px;
  text-decoration: none; font-weight: 700;
}

.site-footer {
  display: grid; justify-items: center; gap: 16px;
  padding: 32px 16px 40px; background: #fff;
}
.site-footer .logo img { height: 56px; }
.site-footer p { margin: 0; font-size: 12px; letter-spacing: 0; color: var(--ink); }

@media (max-width: 600px) {
  .page-title h1 { font-size: 24px; }
  .form-card { padding: 24px 18px 28px; }
  .btn-submit { width: 100%; min-width: 0; padding: 16px 20px; }
  .site-header .inner { padding: 8px 14px; gap: 8px; }
  .logo img { height: 38px; }
  .site-header .back { font-size: 12px; text-align: right; }
  .thanks { padding: 12px 0; }
  .thanks h2 { font-size: 19px; }
  .thanks .btn-back { padding: 12px 20px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-submit { transition: none; }
}
