/* ===================================================
   MYSTO — 求人一覧ページ共通 (css/job-list.css)
   style.css と併用
   list_ippan / list_arubaito / list_sinsotu / search_results 共通
   =================================================== */

/* ---------- ページヒーロー ---------- */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 45%, #1D4ED8 100%);
  color: #fff;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(14,165,233,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: .92rem;
  opacity: .75;
  max-width: 500px;
}

/* ---------- ツールバー ---------- */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count {
  font-size: .9rem;
  color: var(--text-secondary);
}
.results-count strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* ---------- 求人カードリスト（2列グリッド） ---------- */
.job-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.job-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.job-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.job-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.job-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.new-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

.job-company {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-company i {
  color: var(--primary);
  font-size: .8rem;
}

/* ---------- 求人詳細グリッド ---------- */
.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.job-detail-row {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.job-detail-row i {
  color: var(--primary);
  font-size: .75rem;
  margin-top: 4px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.job-detail-label {
  color: var(--text-muted);
  font-size: .78rem;
  white-space: nowrap;
}

/* ---------- スライドショー ---------- */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: 16px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}
.slide { display: none; }
.slide.active-slide { display: block; }
.image-wrapper {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.pr-image {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.slide-number {
  position: absolute; top: 10px; right: 14px;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 2px 10px; border-radius: 100px; font-size: .72rem;
}
.prev, .next {
  cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
  padding: 10px 14px; color: #fff; font-size: 1.1rem;
  background: rgba(0,0,0,.35); border-radius: 6px;
  transition: background .2s; text-decoration: none; user-select: none; z-index: 2;
}
.prev { left: 8px; }
.next { right: 8px; }
.prev:hover, .next:hover { background: rgba(0,0,0,.6); }
.slide-indicators {
  text-align: center; padding: 8px 0;
  position: absolute; bottom: 8px; width: 100%;
}
.dot {
  height: 8px; width: 8px; margin: 0 3px;
  background: rgba(255,255,255,.4); border-radius: 50%;
  display: inline-block; cursor: pointer; transition: background .2s;
}
.dot.active-dot { background: #fff; }

/* ---------- カードフッター ---------- */
.job-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.btn-details {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.btn-details:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

/* ---------- お気に入り / 閲覧済み ---------- */
.job-meta-icons {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.accessed-icon { color: var(--primary); font-size: .9rem; }
.favorite-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem; padding: 4px;
  transition: color .2s; text-decoration: none;
}
.favorite-btn.active, .favorite-btn:hover { color: #EF4444; }

/* ---------- 戻るボタン ---------- */
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
  color: var(--text-secondary); text-decoration: none; transition: all .2s;
}
.btn-back:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}

/* ---------- ページネーション ---------- */
.pagination {
  margin-top: 40px; text-align: center;
}
.pagination p {
  font-size: .88rem; color: var(--text-secondary); margin-bottom: 16px;
}
.pagination-buttons {
  display: flex; justify-content: center; gap: 8px;
}
.pagination-buttons a, .pagination-buttons span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--text-primary);
  background: var(--bg-white); text-decoration: none; transition: all .2s;
}
.pagination-buttons a:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}
.pagination-buttons .current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ---------- 空結果 / エラー ---------- */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: .9rem; }

.error-box {
  padding: 16px 20px;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius-md); margin-bottom: 20px;
  color: #DC2626; font-size: .9rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .job-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .job-list { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 32px; }
}