/* =========================================================
 * 検索結果ページ — 投稿タイプ別セクション縦並び
 * ========================================================= */

/* ── ヘッダー ── */
.aind-search__header {
  background: linear-gradient(135deg, #0a1628 0%, #1a2d5a 100%);
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.aind-search__title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
}

.aind-search__keyword {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.aind-search__total {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 8px;
}

/* 再検索フォーム */
.aind-search__form {
  display: flex;
  gap: 0;
  max-width: 320px;
  width: 100%;
}

.aind-search__input {
  flex: 1;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.aind-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.aind-search__input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.aind-search__btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #1a2d5a;
  background: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.aind-search__btn:hover {
  background: #e8edf2;
}

/* ── 0件 ── */
.aind-search__empty {
  text-align: center;
  padding: 64px 24px;
}

.aind-search__empty-text {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.aind-search__empty-hint {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* ── セクション ── */
.aind-search__section {
  margin-bottom: 48px;
}

.aind-search__section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 10px;
  border-bottom: 1px solid #d1d5db;
  margin: 0 0 16px;
}

.aind-search__section-count {
  font-size: 13px;
  font-weight: 400;
  color: #6b7a8d;
  margin-left: 4px;
}

/* ── 投稿タイプ別グリッド ── */

/* 記事：カード型 3列 */
.aind-search__grid--post {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.aind-search__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.aind-search__card:hover {
  border-color: #c4d0dc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aind-search__card-thumb {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: #f0f3f7;
}

.aind-search__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aind-search__card-body {
  padding: 12px 14px 14px;
}

.aind-search__card-date {
  font-size: 12px;
  color: #9ba7b4;
  display: block;
  margin-bottom: 4px;
}

.aind-search__card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2335;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AI企業：3列 */
.aind-search__grid--company {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* AIツール：K6レイアウト 3列 */
.aind-search__grid--tool.aind-tl__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* 導入事例 */
.aind-search__grid--usecase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 新着情報 */
.aind-search__grid--trends {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 用語集：タグチップ横並び */
.aind-search__grid--glossary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 汎用カードリスト（記事） ── */
.aind-search__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aind-search__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.aind-search__item:hover {
  border-color: #c4d0dc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aind-search__item-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f3f7;
}

.aind-search__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aind-search__item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aind-search__item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2335;
  margin: 0 0 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aind-search__item-excerpt {
  font-size: 13px;
  color: #6b7a8d;
  margin: 0 0 4px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aind-search__item-date {
  font-size: 12px;
  color: #9ba7b4;
}

/* ── ページネーション ── */
.aind-search__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
}

.aind-search__page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7a8d;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.aind-search__page-link:hover {
  background: #f0f3f7;
  color: #1a2d5a;
  border-color: #c4d0dc;
}

.aind-search__page-link.is-current {
  background: #1a2d5a;
  color: #fff;
  border-color: #1a2d5a;
}

.aind-search__page-link--prev,
.aind-search__page-link--next {
  font-size: 13px;
}

.aind-search__page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 14px;
  color: #9ba7b4;
}

/* ── レスポンシブ ── */
@media (max-width: 599px) {
  .aind-search__header {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .aind-search__title {
    font-size: 14px;
    text-align: center;
  }

  .aind-search__keyword {
    font-size: 18px;
  }

  .aind-search__form {
    max-width: 100%;
  }

  .aind-search__grid--post {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .aind-search__grid--company {
    grid-template-columns: 1fr;
  }

  .aind-search__grid--tool.aind-tl__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aind-search__grid--usecase,
  .aind-search__grid--trends {
    grid-template-columns: 1fr;
  }
}
