/* ============================================================
   Contact Form section (LP最終CTA)
   出典: P:\ダウンロード\lp-output\css\style.css を既存LPに組み込み
   - global selector (body/html/img/button/input/textarea/*) は除外
   - body 背景 → .lp-form-section 内に scope 化
   - クラスは全て lp- 接頭辞 (既存LPの lp-* と名前衝突なしを確認済)
   ============================================================ */

:root {
  --lp-color-bg: #f4efe7;
  --lp-color-bg-2: #efe8dd;
  --lp-color-card: rgba(255, 255, 255, 0.90);
  --lp-color-navy: #0d3169;
  --lp-color-navy-deep: #0a2858;
  --lp-color-gold: #d4a23e;
  --lp-color-gold-deep: #b87808;
  --lp-color-gold-soft: #e8be64;
  --lp-color-text: #313131;
  --lp-color-muted: #6d6a66;
  --lp-color-border: #cfcfcf;
  --lp-color-border-focus: #c9952b;
  --lp-color-shadow: rgba(34, 27, 13, 0.12);
  --lp-radius-card: 40px;
  --lp-radius-input: 14px;
  --lp-radius-pill: 999px;
  --lp-space-xs: 8px;
  --lp-space-sm: 16px;
  --lp-space-md: 24px;
  --lp-space-lg: 40px;
  --lp-space-xl: 64px;
  --lp-shell-width: 980px;
  --lp-font-sans: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --lp-font-serif: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

/* セクション全体: body 背景の代わり */
.lp-form-section {
  position: relative;
  padding: 84px 0;
  overflow-x: hidden;
  color: var(--lp-color-text);
  font-family: var(--lp-font-sans);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 24%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #faf7f1 0%, var(--lp-color-bg) 45%, var(--lp-color-bg-2) 100%);
}

.lp-form-section img {
  max-width: 100%;
  display: block;
}

.lp-form-section button,
.lp-form-section input,
.lp-form-section textarea {
  font: inherit;
}

.lp-form-section button {
  cursor: pointer;
}

.lp-shell {
  width: min(calc(100% - 48px), var(--lp-shell-width));
  margin: 0 auto;
}

.lp-form-header {
  text-align: center;
  margin-bottom: 38px;
}

.lp-kicker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.lp-kicker-line {
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, rgba(212,162,62,0.2), var(--lp-color-gold), rgba(212,162,62,0.2));
}

.lp-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 350px;
  margin: 0;
  padding: 10px 30px;
  border-radius: var(--lp-radius-pill);
  background: linear-gradient(180deg, #123d81 0%, var(--lp-color-navy) 54%, #0b2f66 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.22), 0 12px 20px rgba(16, 43, 89, 0.10);
  color: #fff;
  font-family: var(--lp-font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lp-form-title {
  margin: 0;
  font-family: var(--lp-font-serif);
  font-size: clamp(40px, 6.2vw, 82px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.lp-form-title-main {
  color: var(--lp-color-navy);
}

.lp-form-title-accent {
  color: var(--lp-color-gold);
}

.lp-form-lead {
  margin: 24px auto 0;
  max-width: 680px;
  color: #343434;
  font-family: var(--lp-font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.lp-form-card {
  padding: 46px clamp(18px, 5vw, 78px) 34px;
  border-radius: var(--lp-radius-card);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(252,250,248,0.92) 100%);
  box-shadow: 0 22px 50px rgba(42, 35, 20, 0.10);
}

.lp-form {
  display: grid;
  gap: 30px;
}

.lp-field {
  display: grid;
  gap: 12px;
}

.lp-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-label-text {
  color: var(--lp-color-navy);
  font-family: var(--lp-font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.lp-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d5a444 0%, #c78e21 100%);
  color: #fff;
  font-family: var(--lp-font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lp-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #eee7d6;
  color: #8a7a52;
  border: 1px solid #d8cba6;
  font-family: var(--lp-font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lp-input {
  width: 100%;
  min-height: 72px;
  padding: 18px 22px;
  border: 2px solid var(--lp-color-border);
  border-radius: var(--lp-radius-input);
  background: #fff;
  color: var(--lp-color-text);
  font-family: var(--lp-font-serif);
  font-size: 18px;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lp-input::placeholder {
  color: #9d9d9d;
}

.lp-input:focus,
.lp-textarea:focus {
  outline: none;
  border-color: var(--lp-color-border-focus);
  box-shadow: 0 0 0 4px rgba(212,162,62,0.15);
}

.lp-textarea {
  min-height: 156px;
  resize: vertical;
}

.lp-submit-wrap {
  margin-top: 2px;
}

.lp-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 112px;
  padding: 20px 88px 20px 34px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ddb357 0%, #d5a242 16%, #c98a14 58%, #b97206 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.65),
    inset 0 -2px 0 rgba(120,66,0,0.25),
    0 12px 22px rgba(73, 52, 11, 0.18);
  text-decoration: none;
}

.lp-submit::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.82);
  pointer-events: none;
}

.lp-submit:focus-visible {
  outline: 4px solid rgba(13, 49, 105, 0.22);
  outline-offset: 4px;
}

.lp-submit:hover {
  transform: translateY(-1px);
}

.lp-submit-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.lp-submit-text {
  color: #fff;
  font-family: var(--lp-font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.lp-submit-arrow {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-family: var(--lp-font-serif);
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
}

.lp-privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 8px 0;
  color: #343434;
  font-family: var(--lp-font-serif);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
}

.lp-note-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .lp-form-section {
    padding: 60px 0;
  }

  .lp-shell {
    width: min(calc(100% - 28px), var(--lp-shell-width));
  }

  .lp-kicker {
    min-width: 280px;
    font-size: 17px;
  }

  .lp-kicker-line {
    width: 44px;
  }

  .lp-form-card {
    padding: 34px 18px 24px;
    border-radius: 28px;
  }

  .lp-form {
    gap: 24px;
  }

  .lp-input {
    min-height: 64px;
    padding: 16px 18px;
    font-size: 16px;
  }

  .lp-textarea {
    min-height: 140px;
  }

  .lp-submit {
    min-height: 90px;
    gap: 12px;
    padding: 18px 64px 18px 18px;
  }

  .lp-submit-icon {
    width: 42px;
    height: 42px;
  }

  .lp-submit-arrow {
    right: 24px;
  }
}

@media (max-width: 640px) {
  .lp-form-section {
    padding: 40px 0;
  }

  .lp-form-header {
    margin-bottom: 24px;
  }

  .lp-kicker-wrap {
    gap: 10px;
    margin-bottom: 12px;
  }

  .lp-kicker {
    min-width: 220px;
    min-height: 42px;
    padding: 8px 18px;
    font-size: 14px;
  }

  .lp-kicker-line {
    width: 24px;
  }

  .lp-form-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .lp-form-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.75;
  }

  .lp-label {
    gap: 8px;
  }

  .lp-label-text {
    font-size: 18px;
  }

  .lp-required {
    min-height: 28px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .lp-submit {
    min-height: 78px;
    padding: 16px 52px 16px 14px;
  }

  .lp-submit-text {
    letter-spacing: 0.02em;
  }

  .lp-submit-arrow {
    font-size: 38px;
    right: 18px;
  }

  .lp-privacy-note {
    align-items: flex-start;
    margin: 20px 2px 0;
    font-size: 13px;
    line-height: 1.7;
  }
}
