/* =============================================
   SP base（〜767px）
   ============================================= */

.contact-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16vh 6vw 6vh;
}

.contact-hero h1 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 7vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--warm-black);
}

.contact-hero .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* Form */
.form-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 6vw 14vh;
}

.form-group {
  margin-bottom: 36px;
}

.form-label {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

.form-label .required {
  color: var(--gold);
  margin-left: 4px;
  font-size: 10px;
}

.form-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  padding: 10px 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px; /* iOS zoom防止のため16px以上 */
  font-weight: 300;
  color: var(--warm-black);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.4s ease;
  border-radius: 0;
}

.form-input:focus {
  border-bottom-color: var(--warm-black);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b968d' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

textarea.form-input {
  resize: none;
  height: 120px;
  line-height: 1.9;
}

.form-submit {
  margin-top: 52px;
  text-align: center;
}

.privacy-check {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--light-gray);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--warm-black);
  border-color: var(--warm-black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.privacy-link {
  color: var(--warm-black);
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.privacy-link:hover {
  border-color: var(--warm-black);
}

.privacy-note {
  margin-top: 24px;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.8;
}

/* エラー表示 */
.field-error {
  display: block;
  margin-top: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #b94a2c;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.form-global-error {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #b94a2c;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #b94a2c;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: center;
}

/* Turnstile */
.turnstile-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* 送信完了 */
.form-thanks {
  padding: 12vh 0 14vh;
  text-align: center;
}

.form-thanks-en {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 10vw, 72px);
  letter-spacing: -0.02em;
  color: var(--warm-black);
  line-height: 1;
}

.form-thanks-jp {
  margin-top: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* =============================================
   PC / Tablet: min-width: 768px 以上
   ============================================= */
@media (min-width: 768px) {
  .contact-hero {
    min-height: 60vh;
    padding: 20vh 6vw 8vh;
  }

  .contact-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
  }

  .contact-hero .sub {
    font-size: 13px;
    margin-top: 28px;
  }

  .form-section {
    padding: 0 6vw 20vh;
  }

  .form-group {
    margin-bottom: 48px;
  }

  .form-input {
    font-size: 15px;
  }

  textarea.form-input {
    height: 140px;
  }

  .form-submit {
    margin-top: 72px;
  }

  .privacy-note {
    margin-top: 32px;
  }
}
