/* スムーズスクロール設定 */
html {
  scroll-behavior: smooth;
}

/* 絞り込み */

.okinawa-soba-search-form {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

/* 背景のデコレーション */
.okinawa-soba-search-form::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.okinawa-soba-search-form .search-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.okinawa-soba-search-form .search-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  border-radius: 2px;
}

.okinawa-soba-search-form .filter-item {
  margin-bottom: 20px;
  position: relative;
}

.okinawa-soba-search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.okinawa-soba-search-form select,
.okinawa-soba-search-form input[type="number"],
.okinawa-soba-search-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1em;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.okinawa-soba-search-form select:focus,
.okinawa-soba-search-form input[type="number"]:focus,
.okinawa-soba-search-form input[type="text"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.okinawa-soba-search-form input[type="text"]::placeholder {
  color: #999;
  font-style: italic;
}

/* タグエリアのスタイリング */
.okinawa-soba-search-form .tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.okinawa-soba-search-form .tag-label {
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 25px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.okinawa-soba-search-form .tag-label:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.okinawa-soba-search-form .tag-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #ff6b6b;
  transform: scale(1.2);
}

/* 横並びレイアウト */
.filter-row {
  display: flex;
  gap: 15px;
}

.filter-row .filter-item {
  flex: 1;
}

/* ボタングループ */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.search-button, .clear-button {
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.search-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.search-button:hover::before {
  left: 100%;
}

.search-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

.clear-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.clear-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* レスポンシブ対応 */
@media screen and (max-width: 700px) {
  .okinawa-soba-search-form {
    max-width: 100%;
    margin: 0 10px;
    padding: 25px 20px;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-button, .clear-button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .okinawa-soba-search-form .search-title {
    font-size: 1.5em;
  }
  
  .okinawa-soba-search-form .tags-wrap {
    gap: 8px;
  }
  
  .okinawa-soba-search-form .tag-label {
    font-size: 0.85em;
    padding: 8px 12px;
  }
}

/* サイドバー対応 */
.sidebar .okinawa-soba-search-form .filter-row {
  flex-direction: column;
}

/* 検索結果ヘッダー - モダンデザイン */
.search-results-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  padding: 20px 25px;
  border: none;
  border-radius: 16px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-controls label {
  font-weight: 600;
  color: #4a5568;
  margin: 0;
  font-size: 1em;
}

.sort-controls select {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  min-width: 200px;
  color: #2d3748;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sort-controls select:focus {
  outline: none;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

/* 検索結果カード - モダンデザイン */
.shop-card {
  display: flex;
  border: none;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 写真 */
.shop-photo {
  position: relative;
  overflow: hidden;
}

.shop-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-card:hover .shop-photo img {
  transform: scale(1.1);
}

/* 情報部分 */
.shop-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-name {
  margin: 0 0 10px;
  font-size: 1.3em;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.shop-name a {
  color: inherit !important;
  transition: color 0.3s ease;
}

.shop-name a:hover {
  color: #667eea !important;
}

.shop-meta {
  font-size: 1em;
  color: #4a5568;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-meta .city,
.shop-meta .rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.features {
  margin: 12px 0;
}

.feature-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  margin: 3px 6px 3px 0;
  font-size: 0.85em;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.hours, .reviews {
  font-size: 0.9em;
  color: #718096;
  margin: 4px 0;
  font-weight: 500;
}

/* 続きを見るボタン - モダンデザイン */
.load-more-container {
  text-align: center;
  margin: 30px 0;
}

.load-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.load-more-btn:hover:not(:disabled)::before {
  left: 100%;
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
  background: linear-gradient(135deg, #a0aec0 0%, #cbd5e0 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(160, 174, 192, 0.2);
}

/* ローディングメッセージ */
.loading-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 1.1em;
  background: #f9f9f9;
  border-radius: 6px;
  margin: 20px 0;
}

/* 検索ローディング */
.search-loading {
  margin: 20px 0;
}

.search-loading .loading-message {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  color: #1976d2;
}

/* レスポンシブ対応 - モバイル最適化 */
@media screen and (max-width: 768px) {
  .shop-card {
    flex-direction: column;
    border-radius: 16px;
  }
  
  .shop-photo img {
    width: 100%;
    height: 200px;
  }
  
  .shop-info {
    padding: 20px;
  }
  
  .shop-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .search-results-header {
    padding: 15px 20px;
  }
  
  .sort-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .sort-controls select {
    width: 100%;
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .shop-card {
    margin-bottom: 15px;
  }
  
  .shop-info {
    padding: 15px;
  }
  
  .shop-name {
    font-size: 1.2em;
  }
  
  .load-more-btn {
    padding: 14px 28px;
    font-size: 1em;
  }
}

/* 営業時間・定休日表示の改善 */
.hours-info {
  margin: 8px 0;
}

.hours-info .hours,
.hours-info .holiday {
  font-size: 0.9em;
  margin: 4px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hours-info .hours {
  color: #2d5016;
  background: rgba(76, 175, 80, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border-left: 4px solid #4caf50;
}

.hours-info .holiday {
  color: #c62828;
  background: rgba(244, 67, 54, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border-left: 4px solid #f44336;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
  .hours-info .hours,
  .hours-info .holiday {
    font-size: 0.85em;
    padding: 5px 10px;
  }
}
