/* html, body のマージン・パディングをリセット */
html, body {
  margin: 0;
  padding: 0;
}

/* ページ全体の背景画像設定 */
body {
  background: url('img/contact.webp') center center/cover no-repeat fixed;
}

/* 固定ヘッダーによる上部余白 */
body {
  padding-top: 80px; /* ヘッダー高さに合わせて調整 */
}
#contact{
  background-image: none!important;
}

/* コンテナの基本設定 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* お問い合わせフォーム全体 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  overflow: hidden;
}

/* ラベル */
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* 入力フィールド、セレクト、テキストエリアの共通スタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
  margin-bottom: 15px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #85a3d3;
  outline: none;
}

/* モダンなテキストエリア */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* 送信ボタン */
input[type="submit"].btn {
  padding: 10px 20px;
  font-size: 1rem;
  background: var(--color-contact-btn);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="submit"].btn:hover {
  background: #6c8ebf;
}

/* エラーリスト（箇条書き非表示） */
.error-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.error-list li {
  color: red;
}

/* フェードアウト（フォーム消去時） */
.fade-out {
  opacity: 0;
  max-height: 0;
}

/* 成功メッセージコンテナ（通常のブロック要素として配置） */
.success-container {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 成功メッセージ（通常サイズ） */
.success-message {
  font-size: 1rem!important;
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.success-message.show {
  opacity: 1;
}