/* 全体設定・レスポンシブ用の余白計算 */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 20px 10px;
  background-color: #f4f9fa;
}

.contact-form-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
  color: #333;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  font-weight: bold;
}

/* 「必須」の赤い文字設定 */
.required-text {
  color: #e74c3c;
  font-size: 0.85rem;
  font-weight: bold;
}

/* 一行入力ボックス（メールアドレス） */
input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* 複数行入力エリア（問い合わせ内容：最初10行・自動伸縮） */
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: none; /* 手動サイズ調整ハンドルを非表示 */
  overflow-y: hidden; /* スクロールバーを非表示 */
  line-height: 1.5;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}


/* ボタン */
button {
  width: 100%;
  padding: 14px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #2980b9;
}

/* 下部の説明文 */
.message-container {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95rem;
  color: #7f8c8d;
}

/* スマホ用のレスポンシブ調整 */
@media (max-width: 480px) {
  .contact-form-container {
    padding: 15px;
  }
  h1 {
    font-size: 1.25rem;
  }
}

/* ヘッダー画像の設定 */
.header-image-wrapper {
  width: 100%;
  aspect-ratio: 2 / 1;      /* 横3 : 縦1 のアスペクト比を設定 */
  overflow: hidden;         /* はみ出た下部2/3を切り取る */
  border-radius: 6px;       /* 角を少し丸く調整 */
  margin-bottom: 20px;      /* 見出しとの余白 */
}

.header-image {
  width: 100%;
  height: 100%;             /* 元画像の高さを3倍に引き伸ばす */
  object-fit: cover;        /* 枠に合わせてトリミング */
  object-position: top;     /* 画像の上側を基準にして表示 */
  display: block;
}
