/* ==========================================================================
   求人検索結果ページ スタイル
   ========================================================================== */

/* --- ページ全体の基本設定 --- */
body {
  background-color: #f7f8fa;
  padding-top: 0;
  padding-bottom: 20px;
}
.site-main {
  padding-top: 0 !important;
}

/* --- 検索結果ヘッダー --- */
.search-results-header {
  background-color: #fff;
  padding: 20px 0 20px 16px; /* 右パディングはスクロールエリアに任せる */
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
/* カテゴリごとのグループ */
.filter-group {
  margin-bottom: 16px;
}
.filter-group:last-of-type {
  margin-bottom: 0;
}
/* ラベルのスタイル */
.filter-group-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
  margin: 0 0 8px 0;
}
/* スワイプ可能タグのスタイル */
.selected-filters-container {
  overflow: hidden;
}
.selected-filters-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 15px;
  margin-bottom: -15px;
  scrollbar-width: none; /* Firefox */
}
.selected-filters-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 6px 12px;
  margin-right: 8px;
  font-size: 13px;
  color: #555;
  flex-shrink: 0;
}

/* 検索結果件数 */
.search-results-header__count {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  padding-right: 16px;
  margin-top: 16px;
}
/* 古いリストは不要なので非表示に */
.search-criteria-display {
  display: none;
}

/* --- 求人カード --- */
.job-card-final {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 24px;
  margin: 0 16px 20px 16px;
}
.job-card-final:last-child {
  margin-bottom: 0;
}
.job-card-final__inner {
  display: flex;
  flex-direction: column;
}
.job-card-final__tags .tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #f1f3f5;
  color: #495057;
  margin-bottom: 12px;
}
.job-card-final__tags a {
  text-decoration: none;
  color: inherit;
}
.job-card-final__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 16px 0;
  line-height: 1.5;
}
.job-card-final__title a {
  text-decoration: none;
  color: #222;
}
.job-card-final__title a:hover {
  text-decoration: underline;
}
.job-card-final__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #333;
}
.info-item__icon {
  margin-right: 8px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.info-item__text a {
  color: #007bff;
  text-decoration: none;
}
.info-item__text a:hover {
  text-decoration: underline;
}

/* ★★★ ここからが変更・追加したスタイルです ★★★ */
.catchphrase-box {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 16px;
  margin: 16px -24px 0 -24px; /* カードの左右パディングを打ち消し、上マージンを追加 */
}
.catchphrase-box__text {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}
.catchphrase-box__text .read-more {
  color: #1a73e8;
  text-decoration: none;
  font-weight: bold;
  margin-left: 4px;
}
.catchphrase-box__text .read-more:hover {
  text-decoration: underline;
}
/* ★★★ ここまでが変更・追加したスタイルです ★★★ */

.job-card-final__footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.job-card-final__meta {
  font-size: 12px;
  color: #777;
}
.job-card-final__actions .btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.job-card-final__actions .btn--primary {
  background-color: #1a73e8;
  color: #fff;
}
.job-card-final__actions .btn--primary:hover {
  background-color: #185abc;
}

/* --- 検索結果が0件だった場合のスタイル --- */
.no-results-box {
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 40px 24px;
  margin: 0 16px;
  text-align: center;
}
.no-results {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #333;
}
.btn-back-to-search {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  background-color: #1a73e8;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* --- ページネーション --- */
.pagination {
  display: none;
}
.custom-pagination {
  margin: 40px 16px 20px 16px;
  text-align: center;
}
.pagination-summary {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 16px;
}
.btn-pagination {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: #1a73e8;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-pagination:hover {
  background-color: #185abc;
}

/* --- PC表示への対応（レスポンシブ設定） --- */
@media (min-width: 768px) {
  .job-list-container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .search-results-header {
    padding-left: 0;
    padding-right: 0;
  }
  .job-card-final,
  .no-results-box {
    margin-left: 0;
    margin-right: 0;
  }
  .custom-pagination {
    margin-left: 0;
    margin-right: 0;
  }

  /* PCではPRボックスのスタイルを調整 */
  .catchphrase-box {
    margin: 16px 0 0 0; /* ネガティブマージンをリセット */
    border: 1px solid #e9ecef; /* 上下だけでなく全方向に枠線 */
    border-radius: 6px; /* 角丸にする */
  }
}
