/* フォーム全体のレイアウト */
#contact-form {
  margin: 0 3rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

/* ラベル */
#contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}

/* 入力欄（共通） */
#contact-form input,
#contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.5rem;
}

@supports (field-sizing: content) {
  /* 対応ブラウザだけ お問い合わせ内容を最大の高さまで変化するように定義 */
  #contact-form textarea {
    field-sizing: content;
    min-height: 10rem;
    max-height: 24rem;
  }
}

/* フォーカス時の強調 */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #0078d4;
  background: #fff;
  outline: none;
}

/* 送信ボタン */
#submit-btn {
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

#submit-btn:hover:not(:disabled) {
  background: #005fa3;
}

#submit-btn:disabled {
  background: #9bbad1;
  cursor: not-allowed;
}

/* ステータス表示 */
#form-status {
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 480px) {
  #contact-form {
    margin: 0;
    padding: 1rem;
  }
}