#careers-page .gx-sectionHead__line {
  width: 72px;
  margin: 14px auto 0;
}

#careers-page .gx-section--dark {
  background: #0f0f0f;
  color: #fff;
}

#careers-page .gx-section--dark .gx-sectionHead__title {
  color: #fff;
}

#careers-page .gx-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

#careers-page .gx-card--dark p {
  color: rgba(255, 255, 255, 0.74) !important;
}

/* ヒーロー背景（本文貼り付け時はインラインがないため CSS で画像も指定） */
#careers-page .gx-careersHero,
.gx-careers-dashboard .gx-careersHero,
#careers-page > section:first-of-type {
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(10, 10, 10, 0.74), rgba(10, 10, 10, 0.78)), url('../img/bfd1-93ceab2ff9e0_1.webp') center / cover no-repeat;
}

/* ヘッダーとヒーロー間の余白を詰める */
#careers-page .gx-careersHero,
.gx-careers-dashboard .gx-careersHero,
#careers-page > section:first-of-type {
  padding-top: calc(var(--header-h) + 16px) !important;
}

#careers-page .gx-entryCards,
.gx-careers-dashboard .gx-entryCards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 34px auto 0;
  width: 100%;
  max-width: 1160px;
  box-sizing: border-box;
}

#careers-page .gx-entryCards__item,
.gx-careers-dashboard .gx-entryCards__item {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-self: center;
}

/* MD以上：募集要項は2列 */
@media (min-width: 768px) {
  #careers-page .gx-entryCards,
  .gx-careers-dashboard .gx-entryCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #careers-page .gx-entryCards__item,
  .gx-careers-dashboard .gx-entryCards__item {
    width: min(100%, 520px);
  }
}

#careers-page .gx-entryCards .gx-card,
.gx-careers-dashboard .gx-entryCards .gx-card {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

/* 募集要項カード内のエントリーボタン：小さい幅ではみ出さないようにする */
#careers-page .gx-entryCards .gx-card .gx-btn--gold,
.gx-careers-dashboard .gx-entryCards .gx-card .gx-btn--gold {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#careers-page .gx-faqCard {
  max-width: none;
  width: 100%;
}

#careers-page .gx-flowSteps,
.gx-careers-dashboard .gx-flowSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#careers-page .gx-flowStep,
.gx-careers-dashboard .gx-flowStep {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  min-width: 0;
}

#careers-page .gx-flowStep:not(:last-child)::after,
.gx-careers-dashboard .gx-flowStep:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 700;
}

/* MD以下：選考フローは1行1列にし、矢印は非表示 */
@media (max-width: 767px) {
  #careers-page .gx-flowSteps,
  .gx-careers-dashboard .gx-flowSteps {
    grid-template-columns: 1fr;
  }
  #careers-page .gx-flowStep:not(:last-child)::after,
  .gx-careers-dashboard .gx-flowStep:not(:last-child)::after {
    display: none;
  }
}

#careers-page .gx-flowStep__number,
.gx-careers-dashboard .gx-flowStep__number {
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

#careers-page .gx-flowStep__title,
.gx-careers-dashboard .gx-flowStep__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

#careers-page .gx-flowStep__desc,
.gx-careers-dashboard .gx-flowStep__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 共に働く仲間たち：LG=6列、MD=4列、S超〜MD未満=2列、S以下=1列 */
/* #careers-page は本文貼り付け時にWPが削除することがあるため .gx-careers-dashboard でも指定 */
#careers-page .gx-section--staffCards .gx-staffCards-grid,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCards-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin-top: 34px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* S超〜MD未満: 2列 */
@media (min-width: 576px) {
  #careers-page .gx-section--staffCards .gx-staffCards-grid,
  .gx-careers-dashboard .gx-section--staffCards .gx-staffCards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* MD: 4列で親幅に収める */
@media (min-width: 768px) {
  #careers-page .gx-section--staffCards .gx-staffCards-grid,
  .gx-careers-dashboard .gx-section--staffCards .gx-staffCards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* LG: 6列で親幅に収める */
@media (min-width: 992px) {
  #careers-page .gx-section--staffCards .gx-staffCards-grid,
  .gx-careers-dashboard .gx-section--staffCards .gx-staffCards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

#careers-page .gx-section--staffCards .gx-staffCards-grid__item,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCards-grid__item {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 280px !important;
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#careers-page .gx-section--staffCards .gx-staffCard,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard {
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  border-radius: 10px !important;
  padding: 1.5rem 1rem !important;
  text-align: center !important;
  background: #fff !important;
  width: 280px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

#careers-page .gx-section--staffCards .gx-staffCard__photo,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

#careers-page .gx-section--staffCards .gx-staffCard__photo img,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

#careers-page .gx-section--staffCards .gx-staffCard__radar,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard__radar {
  margin: 1rem auto 0;
}

#careers-page .gx-section--staffCards .gx-staffCard__radar canvas,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard__radar canvas {
  width: 100%;
  height: 130px;
  background: #efefef;
  border-radius: 8px;
  display: block;
}

#careers-page .gx-section--staffCards .gx-staffCard__comment,
.gx-careers-dashboard .gx-section--staffCards .gx-staffCard__comment {
  font-size: 0.875rem;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

