.contact-hero {
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  padding: 80px 20px 60px;
  background-color: #fcfcfc;
}

.contact-hero-title {
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 80px;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1;
}

.contact-hero-sub {
  font-size: 20px;
  color: var(--color-text);
}


.wpcf7-turnstile.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.form-section {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--color-bg-blue);
  padding: 80px 20px;
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--color-text);
}

.required {
  color: var(--color-primary-dark);
  margin-left: 2px;
}
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--color-bg-gray);
  background-color: var(--color-bg-white);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.radio-input:checked + .radio-custom {
  border-color: var(--color-primary-dark);
}

.radio-input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
}

.radio-label:hover .radio-custom {
  border-color: var(--color-primary-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-bg-gray);
  background-color: var(--color-bg-white);
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  border-radius: 0; 
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input {
  height: 48px;
}

.form-textarea {
  height: 200px;
  resize: vertical;
  line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(253, 146, 173, 0.15);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: #e05555;
}

.field-error {
  font-size: 13px;
  color: #e05555;
  margin-top: 6px;
}
.recaptcha-placeholder {
  width: 300px;
  height: 74px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-bg-gray);
  position: relative;
  overflow: hidden;
}

.recaptcha-placeholder::after {
  content: "reCAPTCHA";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #aaaaaa;
  letter-spacing: 1px;
}

.submit-btn {
  width: 100%;
  height: 64px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-bg-gray);
  font-size: 24px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 4px;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--color-text-muted);
  color: #ffffff;
  border-color: var(--color-text-muted);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-footer {
  background-color: var(--color-bg-blue);
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-footer .social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-footer .social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-footer .social-icon:hover {
  opacity: 0.6;
}

.contact-footer .footer-address {
  font-size: 12px;
  line-height: 2;
  margin-bottom: 40px;
  color: var(--color-text);
}

.contact-footer .footer-bottom {
  font-size: 11px;
  color: #555555;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-overlay[hidden] {
  display: none;
}

.success-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.success-icon {
  font-size: 48px;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.success-msg {
  font-size: 15px;
  color: #555555;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .contact-hero {
    padding: 64px 20px 48px;
  }
}
@media (max-width: 767px) {
  .contact-hero {
    padding: 48px 20px 32px;
  }

  .contact-hero-title {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .contact-hero-sub {
    font-size: 14px;
  }
  .form-section {
    padding: 40px 20px;
  }

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

  .form-label {
    font-size: 16px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .form-textarea {
    height: 160px;
  }

  .submit-btn {
    height: 56px;
    font-size: 20px;
    margin-top: 32px;
  }

  .recaptcha-placeholder {
    width: 100%;
    max-width: 300px;
  }

  .back-section {
    padding: 40px 20px;
  }

  .contact-footer {
    padding: 48px 20px 32px;
  }

  .contact-footer .social-icons {
    margin-bottom: 32px;
  }

  .contact-footer .footer-address {
    margin-bottom: 32px;
  }
  .success-box {
    padding: 40px 24px;
  }

  .success-title {
    font-size: 20px;
  }
}
