form {
  /* max-width: 600px; */
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
  border-color: #ff6600;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.2);
  outline: none;
}

form input::placeholder,
form textarea::placeholder {
  color: #999;
  font-style: italic;
}

form button {
  padding: 12px 20px;
  background-color: #ff6600;
  font-color: white;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #e55b00;
}

form .error {
  color: #e55b00;
  font-size: 14px;
  margin-top: -15px;
  margin-bottom: 20px;
}

/* フォーカス時のスタイル */
form select:focus {
  border-color: #ff6600;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.2);
  outline: none;
}

/* オプションのスタイル（ブラウザによって制限あり） */
form select option {
  padding: 8px;
  font-size: 16px;
  color: #333;
}

/* select タグ全体のスタイル（大きめバージョン） */
form select {
  /* width: 100%; */
  padding: 16px 30px; /* 高さを大きく */
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 18px;   /* フォントサイズ大きめ */
  color: #333;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23999" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* フォーカス時のスタイル */
form select:focus {
  border-color: #ff6600;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.25);
  outline: none;
}

/* オプションのスタイル（ブラウザ依存） */
form select option {
  padding: 10px;
  font-size: 18px;
  color: #333;
}


/* 検索項目の並び補正 */
.search-form {
  display: flex;
  flex-wrap: wrap;     /* 狭くなったら折り返し */
  gap: 12px 16px;      /* 縦横の間隔 */
  align-items: flex-start;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* ラベルとSELECTをまとめて改行 */
  
  flex: 1 1 200px;     /* 最小200px、余裕があれば横に広がる */
  box-sizing: border-box;
}

.field label {
  font-weight: 600;
}

.field select,
.field button {
  flex: 1 1 auto;       /* 項目部分は広がる */
}
