/* ============================================================
   search.css — 検索結果ページ専用スタイル
   ============================================================ */

/* breadcrumb（category.css と共通デザイン） */
.crumb-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 0; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-light); flex-wrap: wrap; }
.crumb a { color: var(--ink-light); text-decoration: none; }
.crumb a:hover { color: var(--teal); }
.crumb-sep { color: var(--border); }
.crumb-current { color: var(--ink); font-weight: 600; }

/* 検索ヘッダー */
.search-header {
  padding: 40px 0 24px;
}
.search-header-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--teal);
  background: rgba(31,85,102,.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.search-header h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.search-header h1 em {
  font-style: normal;
  color: var(--teal);
}
.search-header-count {
  font-size: .88rem;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.search-header-count strong {
  color: var(--ink);
  font-weight: 700;
}

/* 検索結果ページ内の再検索フォーム */
.search-inline {
  background: #fff;
  border-radius: var(--r-pill);
  padding: 6px;
  display: flex;
  align-items: center;
  max-width: 480px;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, .2);
  margin-bottom: 16px;
}
.search-inline input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}
.search-inline input::placeholder { color: var(--ink-lt); }
.search-inline button {
  background: var(--yellow);
  color: var(--teal-dk);
  border: none;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.search-inline button:hover { background: var(--yellow-dk); transform: translateY(-1px); }

/* 記事一覧（category.css と同レイアウト） */
.alist { display: flex; flex-direction: column; gap: 16px; }
.alist-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.alist-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.alist-thumb {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--bg);
}
.alist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.alist-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg) 0%, var(--border) 100%); }
.alist-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alist-meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-light); }
.alist-meta-type { font-weight: 700; color: var(--teal); background: rgba(31,85,102,.08); padding: 1px 8px; border-radius: 20px; }
.alist-title { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alist-excerpt { font-size: .83rem; color: var(--ink-light); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alist-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.alist-stars { color: #F4B942; font-size: .85rem; }
.alist-rate { display: flex; align-items: center; gap: 4px; font-size: .8rem; }
.alist-rate-num { color: var(--ink); font-weight: 600; }
.alist-rate-num small { font-size: .7rem; color: var(--ink-light); }

/* 0件メッセージ */
.search-empty {
  text-align: center;
  padding: 64px 0;
}
.search-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .4;
}
.search-empty h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.search-empty p {
  font-size: .9rem;
  color: var(--ink-light);
  margin: 0 0 24px;
}

/* ページネーション */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.pagination a { background: #fff; color: var(--ink); }
.pagination a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .dots { border-color: transparent; background: transparent; color: var(--ink-light); }
.pagination .nav-prev,
.pagination .nav-next { color: var(--teal); }

/* レスポンシブ */
@media (max-width: 768px) {
  .alist-thumb { width: 90px; }
  .alist-title { font-size: .92rem; }
}
@media (max-width: 480px) {
  .alist-card { flex-direction: column; }
  .alist-thumb { width: 100%; aspect-ratio: 16/9; }
  .search-inline { flex-direction: column; padding: 8px; gap: 6px; border-radius: var(--r-md); }
  .search-inline button { width: 100%; }
}
