@charset "UTF-8";
/* =========================================================
   Office Listing (共通)
   対象:
   - /office（CPTアーカイブ）検索結果一覧
   - office_* タクソノミー一覧
   ========================================================= */

/* ---------- Listing Header ---------- */
.office-listing__header {
  margin: 24px 0 18px;
}

.office-listing__desc {
  opacity: 0.8;
  font-size: 0.95em;
  line-height: 1.7;
}

.office-listing__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.25;
  font-weight: 800;
}

/* ---------- Listing Grid ---------- */
.office-listing__grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

/* ---------- Pagination (共通) ---------- */
.office-listing__pagination {
  margin-top: 28px;
}

/* 横並び＆折り返し */
.office-listing__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* SWELL側で block / 幅100% になっていても潰す */
.office-listing__pagination .page-numbers {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;

  width: auto;
  min-width: 38px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #111;
}

.office-listing__pagination .page-numbers.current {
  border-color: rgba(11, 95, 255, 0.25);
  background: rgba(11, 95, 255, 0.06);
}

.office-listing__pagination a.page-numbers:hover {
  border-color: rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

@media (max-width: 600px) {
  .office-listing__pagination .page-numbers {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}
