/**
 * 検索ナビゲーション用スタイル
 * モダンで落ち着いた雰囲気のヘッダー検索フォーム
 */

/* 検索ナビゲーションバーの基本スタイル */
.search-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

/* 大分類・小分類・エリア用セレクトボックス */
.searchTopCorpInput1 {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0.95);
  color: #2c3e50 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 48px;
  
  /* カスタムドロップダウンアロー */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

/* 各セレクトボックスの幅設定 */
.searchTopCorpInput1.major-category {
  min-width: 170px;
  width: 170px;
}

.searchTopCorpInput1.sub-category {
  min-width: 170px;
  width: 170px;
}

.searchTopCorpInput1.area-select {
  min-width: 120px;
  width: 120px;
}

/* キーワード入力用テキストボックス */
.searchTopCorpInput2 {
  padding: 0.75rem 1rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  min-width: 220px;
  width: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 48px;
}

/* フォーカス時のスタイル - セレクトボックス */
.searchTopCorpInput1:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* フォーカス時のスタイル - テキストボックス */
.searchTopCorpInput2:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: white;
}

/* ホバー時のスタイル - セレクトボックス */
.searchTopCorpInput1:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* ホバー時のスタイル - テキストボックス */
.searchTopCorpInput2:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* レスポンシブ対応: タブレット・スマートフォン */
@media (max-width: 991.98px) {
  .search-navbar {
    padding: 1.5rem 0;
  }
  
  .search-navbar .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }
  
  .search-navbar .d-flex > * {
    margin: 0 !important;
    width: 100% !important;
    min-width: auto !important;
  }
  
  .searchTopCorpInput1.major-category,
  .searchTopCorpInput1.sub-category,
  .searchTopCorpInput1.area-select,
  .searchTopCorpInput2 {
    width: 100% !important;
    min-width: auto !important;
  }
}

/* 小画面での追加調整 */
@media (max-width: 576px) {
  .search-navbar {
    padding: 1rem 0;
  }
  
  .searchTopCorpInput1,
  .searchTopCorpInput2 {
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    min-height: 44px;
  }
  
  .search-navbar .container-md {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .search-navbar .btn-primary.search-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
}

/* セレクトボックスのオプションスタイル */
.searchTopCorpInput1 option {
  font-weight: normal;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: #2c3e50;
  border: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.searchTopCorpInput1 option:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.searchTopCorpInput1 option:checked,
.searchTopCorpInput1 option:focus {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: normal;
}

.searchTopCorpInput1 option[value=""] {
  background-color: #f1f3f4;
  color: #6c757d;
  font-style: italic;
  font-weight: normal;
}



/* プレースホルダーのスタイル */
.searchTopCorpInput2::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* 検索ボタンの調整 */
.search-navbar .btn-primary.search-btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  margin-left: 0.75rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-navbar .btn-primary.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.search-navbar .btn-primary.search-btn:focus {
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  outline: none;
}

.search-navbar .btn-primary.search-btn:active {
  transform: translateY(0px);
}

/* ナビゲーションテキストの調整 */
.search-navbar .navbar-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-size: 0.9rem;
}

/* トグルボタンの調整 */
.search-navbar .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.search-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
  outline: none;
}

.search-navbar .navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* フォームコンテナの調整 */
.search-navbar .d-flex {
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* コンテナ全体の調整 */
.search-navbar .container-md {
  display: flex;
  align-items: center;
  min-height: 60px;
}

/* プレースホルダーのモダンスタイル */
.searchTopCorpInput2::placeholder {
  color: #7f8c8d;
  opacity: 0.8;
  font-style: italic;
}