/* フォーム関連スタイル - forms.css */

/* 検索フォームのスタイル */
.search-container {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

.input-group {
  flex: 1;
  margin-right: 10px;
  min-width: 200px;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 10px 35px 10px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* クリアボタンスタイル */
.clear-input-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ccc;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  z-index: 5;
  line-height: 18px;
  text-align: center;
  user-select: none;
}

.clear-input-button:hover {
  background-color: #f44336;
}

/* 結果表示エリア */
.results-container {
  margin-top: 15px;
  min-height: 50px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* スマホビュー調整 */
@media screen and (max-width: 500px) {
  .search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  
  .input-group {
    flex: 1;
    margin-right: 5px;
    margin-bottom: 0;
    min-width: 120px;
  }
  
  .input-group input {
    padding-right: 30px;
  }
  
  .clear-input-button {
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 16px;
    right: 8px;
  }
}