/* Pages/home.ctp only: make the agency (人材一覧) banner full-bleed without affecting other pages */

/* Break out of centered/max-width containers and span full viewport width */
#content.content-top .jbpr-recruit-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  /* show some background image above/below the white panel */
  padding: clamp(10px, 1.4vw, 16px) 0 !important;
  display: block !important; /* avoid any flex behavior from `.jbpr-joblist` */
}

/* Keep the photo visible on the sides by centering the white text panel */
#content.content-top .jbpr-recruit-header .jbpr-top-header {
  /* Consistent side gutters across screen sizes */
  width: calc(100% - (clamp(50px, 1.2vw, 16px) * 2)) !important;
  /* No max-width cap: keep the white panel long even on very wide screens */
  max-width: none !important;
  /* Prevent the panel from collapsing too small */
  min-width: min(320px, calc(100% - 20px));
  margin: 0 auto !important;
  box-sizing: border-box !important;
  background-color: rgba(255, 255, 255, 0.75) !important;
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.6vw, 16px) !important;
}

/* No extra media queries needed; `clamp()` handles responsiveness */

/* Home page: make the agency list container height follow its content (remove `min-height: 100vh`) */
#content.content-top .top-jbpr.jbpr-joblist .job-listings.joblist_container {
  min-height: 0 !important;
  height: auto !important;
}

/* Home page (SP): prevent the "もっと見る" buttons from overflowing their padded wrappers */
@media (max-width: 900px) {
  #content.content-top .pagenate.pagination a.button.pagenate {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
}
