/* Recruitment */
.recruitment-content {
  width: min(1280px, calc(100% - 128px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.recruitment-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 72px;
  align-items: start;
}

.recruitment-copy h2,
.recruitment-entry h2 {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 34px;
  color: #172b45;
  font-size: 28px;
  line-height: 1.5;
}

.recruitment-copy h2 small,
.recruitment-entry h2 small {
  color: #8c8f94;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.recruitment-copy h2::after,
.recruitment-entry h2::after {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(to right, #172b45 0 66.666%, #f9ad00 66.666% 100%);
  content: "";
}

.recruitment-copy p {
  margin: 0;
  color: #2b2b2f;
  font-size: 15px;
  line-height: 2;
}

.recruitment-image {
  margin: 0;
}

.recruitment-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.recruitment-entry {
  margin-top: 72px;
}

.recruitment-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 1 or 2 cards keep a readable width instead of stretching across the row. */
@media (min-width: 901px) {
  .recruitment-cards:has(> :only-child) {
    grid-template-columns: minmax(0, 560px);
  }

  .recruitment-cards:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 560px));
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .recruitment-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.recruitment-card {
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 20px;
  border: 1px solid #dedbd4;
  border-radius: 6px;
  background: #fff;
}

.recruitment-card__visual {
  display: grid;
  min-height: 118px;
  place-items: center;
  background: #faf8f4;
  color: #172b45;
  font-size: 24px;
  font-weight: 700;
}

.recruitment-card--rikunabi .recruitment-card__visual { color: #f2a700; }
.recruitment-card--career .recruitment-card__visual { color: #70727b; }

.recruitment-card h3 {
  margin: 16px 0 4px;
  color: #172b45;
  font-size: 16px;
  line-height: 1.5;
}

.recruitment-card p {
  min-height: 42px;
  margin: 0;
  color: #6b6d75;
  font-size: 12px;
  line-height: 1.6;
}

.recruitment-card a {
  display: grid;
  min-height: 42px;
  margin-top: auto;
  place-items: center;
  background: #172b45;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background-color .2s ease;
}

.recruitment-card a:hover { background: #2c4059; }
.recruitment-card a + a { margin-top: 12px; }
.recruitment-card__visual + p { margin-top: 12px; margin-bottom: 20px; }
.recruitment-card--career a { background: #f9ad00; }
.recruitment-card--career a:hover { background: #df9700; }

.recruitment-policy-link {
  margin: 28px 0 0;
}

.recruitment-policy-link a {
  display: inline-flex;
  align-items: center;
  color: #172b45;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recruitment-policy-link a::after {
  margin-left: 10px;
  color: #f9ad00;
  content: "→";
}

.recruitment-policy-content {
  width: min(1000px, calc(100% - 128px));
  margin: 0 auto;
  padding: 72px 0 120px;
  color: #2b2b2f;
  font-size: 15px;
  line-height: 2;
}

.recruitment-policy-content h2,
.recruitment-policy-content h3 {
  color: #172b45;
  line-height: 1.55;
}

.recruitment-policy-content h2 { margin: 0 0 8px; font-size: 28px; }
.recruitment-policy-content h3 { margin: 48px 0 16px; font-size: 21px; }
.recruitment-policy-content p { margin: 0 0 20px; }
.recruitment-policy-content ul { margin: 0 0 24px; padding-left: 1.5em; }
.recruitment-policy-content a { color: #172b45; font-weight: 700; text-decoration: underline; }
.recruitment-policy-content .recruitment-policy-lead { margin-bottom: 40px; color: #6b6d75; font-weight: 700; }

.page-section-heading {
  margin-bottom: 32px;
}

.recruitment-policy-content .page-section-heading h2 {
  margin: 0;
  color: #172b45;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}

.page-section-heading::after {
  display: block;
  width: 240px;
  height: 4px;
  margin-top: 12px;
  background: linear-gradient(to right, #172b45 0 66.666%, #f9b000 66.666% 100%);
  content: "";
}

@media (max-width: 1500px) {
  .recruitment-content { width: calc(100% - 80px); }
  .recruitment-intro { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
}

@media (max-width: 900px) {
  .recruitment-intro { grid-template-columns: 1fr; gap: 40px; }
  .recruitment-image { max-width: 480px; }
  .recruitment-cards { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 767px) {
  .recruitment-content { width: calc(100% - 32px); padding: 48px 0 72px; }
  .recruitment-copy h2, .recruitment-entry h2 { gap: 10px; margin-bottom: 28px; font-size: 21px; }
  .recruitment-copy h2 small, .recruitment-entry h2 small { font-size: 11px; }
  .recruitment-copy h2::after, .recruitment-entry h2::after { width: 150px; height: 3px; margin-top: 6px; }
  .recruitment-copy p { font-size: 13px; line-height: 1.9; }
  .recruitment-entry { margin-top: 48px; }
  .recruitment-policy-link a { font-size: 13px; }
  .recruitment-policy-content { width: calc(100% - 32px); padding: 48px 0 72px; font-size: 14px; line-height: 1.9; }
  .recruitment-policy-content h2 { font-size: 22px; }
  .recruitment-policy-content h3 { margin-top: 36px; font-size: 18px; }
  .page-section-heading { margin-bottom: 24px; }
  .recruitment-policy-content .page-section-heading h2 { font-size: 22px; }
  .page-section-heading::after { width: 180px; height: 3px; margin-top: 8px; }
}

/* Desktop layout: keep the recruitment image alongside the full left column. */
@media (min-width: 901px) {
  .recruitment-content {
    width: calc(100% - 128px);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 64px;
  }

  .recruitment-intro {
    display: contents;
  }

  .recruitment-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .recruitment-image {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .recruitment-entry {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .recruitment-content {
    width: calc(100% - 80px);
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }
}
