/* 無料診断フォーム（公開中LP https://kuchikomi-taisaku.com/biz-hidden-gad のフォームに合わせたデザイン）
   1段階目：HPのURL →「診断開始」で2段階目（連絡先）が開く */
.lpf-section {
  --lpf-accent: #f59e0b;
  --lpf-accent-hover: #e08e06;
  --lpf-heading: #1a365d;
  --lpf-text: #333;
  --lpf-sub: #666;
  --lpf-muted: #979797;
  --lpf-badge: #eb575a;
  --lpf-field-bg: #f9f9f9;
  --lpf-field-border: #ddd;
  --lpf-font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --lpf-field-font: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Noto Sans JP', 'Hiragino Sans', Meiryo, sans-serif;
  position: relative;
  isolation: isolate;
  padding: 60px 40px;
  background: #0b1a2e;
  font-family: var(--lpf-font);
  color: var(--lpf-text);
}
/* 背景写真（公開中LPと同じく少し暗く・コントラストを下げて表示） */
.lpf-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/lp/diagnosis-bg.webp') center / cover no-repeat;
  filter: contrast(79%) brightness(56%);
}
.lpf-section *, .lpf-section *::before, .lpf-section *::after { box-sizing: border-box; }

.lpf-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 39px 48px 64px;
  background: #fff;
  border-top: 5px solid var(--lpf-accent);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
  text-align: center;
}
.lpf-title { margin: 0; color: var(--lpf-heading); font-size: 26px; font-weight: 700; line-height: 38px; letter-spacing: 0; }
.lpf-sub { margin: 0; color: var(--lpf-heading); font-size: 18px; font-weight: 500; line-height: 27px; }

.lpf-form { width: 100%; margin: 16px auto 0; text-align: left; }
/* 入力欄とボタンは幅400pxで中央に（説明文はカード幅いっぱい） */
.lpf-step1, .lpf-fields, .lpf-section .lpf-btn--submit { width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
.lpf-step1 { display: flex; flex-direction: column; gap: 12px; }

.lpf-input, .lpf-textarea {
  display: block;
  width: 100%;
  margin: 0;
  background: var(--lpf-field-bg);
  border: 1px solid var(--lpf-field-border);
  color: #353535;
  font-family: var(--lpf-field-font);
  font-size: 16px;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.lpf-input { height: 50px; padding: 10px 16px; border-radius: 8px; font-weight: 600; line-height: 24px; }
.lpf-textarea { height: 200px; padding: 16px; border-radius: 4px; font-weight: 400; line-height: 28px; resize: vertical; }
.lpf-input::placeholder, .lpf-textarea::placeholder { color: #aeaeae; font-weight: 600; opacity: 1; }
.lpf-textarea::placeholder { font-weight: 400; }
.lpf-input:focus, .lpf-textarea:focus { outline: none; background: #fff; border-color: var(--lpf-accent); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.lpf-input:user-invalid, .lpf-textarea:user-invalid { border-color: var(--lpf-badge); }

.lpf-section .lpf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 59px;
  margin: 0;
  padding: 19px 38px;
  border: 0;
  border-radius: 50px;
  background: var(--lpf-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  color: #fff;
  font-family: var(--lpf-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.lpf-section .lpf-btn:hover { background: var(--lpf-accent-hover); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .14); }
.lpf-section .lpf-btn:focus-visible { outline: 3px solid rgba(245, 158, 11, .45); outline-offset: 3px; }
.lpf-section .lpf-btn:disabled { opacity: .6; cursor: default; transform: none; }
.lpf-section .lpf-btn--submit { min-height: 60px; margin: 24px auto 0; padding: 15px; font-size: 18px; font-weight: 800; }

/* 2段階目：「診断開始」で下に開く */
.lpf-step2 { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s cubic-bezier(.4, .4, 0, 1), opacity .3s cubic-bezier(.4, .4, 0, 1); }
.lpf-step2 > .lpf-step2__inner { min-height: 0; overflow: hidden; }
/* 開き終わったら、ボタンの影や入力欄の枠が切れないようにする */
.lpf-form.is-opened .lpf-step2 > .lpf-step2__inner { overflow: visible; }
.lpf-form.is-open .lpf-step2 { grid-template-rows: 1fr; opacity: 1; }

.lpf-lead { margin: 26px 0 0; color: var(--lpf-sub); font-size: 18px; font-weight: 500; line-height: 29px; text-align: center; }
.lpf-ssl { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 0; color: var(--lpf-muted); font-size: 12px; line-height: 24px; text-align: center; }
.lpf-ssl svg { flex: none; width: 18px; height: 18px; }

.lpf-fields { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.lpf-field { display: flex; flex-direction: column; gap: 8px; }
.lpf-label { display: flex; align-items: center; gap: 10px; color: var(--lpf-text); font-family: var(--lpf-field-font); font-size: 16px; font-weight: 600; line-height: 24px; }
.lpf-badge { display: inline-block; height: 18px; padding: 0 10px; border-radius: 16px; background: var(--lpf-badge); color: #fff; font-family: var(--lpf-field-font); font-size: 12px; font-weight: 800; line-height: 18px; white-space: nowrap; }

.lpf-note { margin: 6px 0 0; color: var(--lpf-sub); font-size: 14px; line-height: 24px; text-align: center; }
.lpf-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; font-weight: 700; line-height: 1.7; }
.lpf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
  .lpf-section { padding: 60px 24px; }
}
@media (max-width: 480px) {
  .lpf-section { padding: 100px 20px; }
  .lpf-card { padding: 28px 20px; }
  .lpf-title { font-size: 24px; line-height: 38px; }
  .lpf-lead { font-size: 15px; line-height: 25px; }
  .lpf-ssl { align-items: flex-start; font-size: 11px; line-height: 18px; }
  .lpf-note { font-size: 13px; line-height: 24px; }
  .lpf-section .lpf-btn { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpf-step2, .lpf-section .lpf-btn { transition: none; }
}
