h3 {
  margin: 40px 10px 10px;
  padding-left: 10px;
  border-left: 5px solid var(--color-primary);
}

.form-section {
  max-width: 640px;
  margin: 20px auto 40px;
  padding: 20px 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-title {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: 2px solid #ddd;
}

.contact-lead {
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

textarea {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  line-height: 1.5;
  background-color: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #333;
}

#message-count {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
  text-align: right;
}

.privacy-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.privacy-consent a {
  color: #0055aa;
  text-decoration: underline;
}

.privacy-consent a:hover {
  text-decoration: none;
}

.form-actions {
  margin: 20px 10px;
  text-align: center;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  margin: 0 10px 15px;
}

.form-group input,
.form-group select {
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #666;
  outline: none;
}

.submit-button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: 14px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #444;
}

.about-order {
  margin: 10px 20px 0;
  font-weight: 500;
}

@media (max-width: 768px) {

  .form-section {
    margin: 15px 0;
    padding: 10px 20px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-lead {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .form-section h3 {
    font-size: 0.95rem;
    margin: 10px 5px 8px;
  }

  .form-group {
    margin: 0 0 15px;
  }

  .form-group input,
  .form-group select,
  textarea {
    font-size: 1rem;
    /* iOSズーム防止 */
    padding: 10px;
  }

  textarea {
    min-height: 120px;
  }

  .privacy-consent label {
    font-size: 0.85rem;
  }

  .submit-button {
    padding: 14px;
    font-size: 15px;
  }

  .about-order {
    font-size: 0.85rem;
  }
}