form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #222;
}

/* 必須項目の「（必須）」だけ赤文字 */
label.required::after {
  content: "（必須）";
  color: #d60000;
  font-weight: 600;
  margin-left: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0,120,215,0.3);
  outline: none;
}

textarea {
  resize: vertical;
}

button {
  background: linear-gradient(135deg, #0078d7, #005a9e);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #005a9e, #004080);
}

.g-recaptcha {
  margin-bottom: 15px;
}

input[name="hidden_field"] {
  display: none;
}

/* 送信ボタン中央寄せ */
.submit-area {
  text-align: center;
  margin-top: 20px;
}

/* 導入文（お問い合わせ見出し＋説明文） */
.contact-intro {
  text-align: center;   /* 中央寄せ */
  max-width: 600px;     /* フォームと同じ幅に揃える */
  margin: 0 auto 30px;  /* 下に余白を入れる */
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.contact-intro h2 {
  font-size: 24px;
  color: #0078d7;       /* Tranpitロゴの青に合わせる */
  margin-bottom: 15px;
}

.contact-intro p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.thanks-message {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 12px;
  background: #f0f8ff; /* Tranpitの青に近い淡色背景 */
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.thanks-message h2 {
  color: #0078d7; /* Tranpitロゴの青に合わせる */
  margin-bottom: 20px;
  font-size: 22px;
}

.thanks-message p {
  color: #333;
  font-size: 16px;
  margin-bottom: 30px;
}

.back-button {
  display: inline-block;
  margin: 12px;
  padding: 12px 22px;
  background: #0078d7;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #005a9e;
}