/* ==========================================================
   page-recruit.css
   Base  → structural / shared (no sizing)
   < 640  → phone
   ≥ 640  → sm  (small tablet)
   ≥ 768  → md  (tablet – overrides sm mobile values)
   ≥ 1024 → lg  (desktop – full desktop sizing)
   ========================================================== */

/* ---- Base (structural / shared) ---- */
.recruit-card { background: #ffffff; position: relative; border: 1px solid var(--theme-color-grey); }
.recruit-head { }
.recruit-label { position: relative; display: inline-block; }
.recruit-label img { display: block; }
.recruit-label-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 900; white-space: nowrap; pointer-events: none; }
.recruit-hero { max-width: 100%; background-color: #F6FFFE; display: flex; align-items: center; justify-content: center; }
.recruit-hero img { height: auto; }
.recruit-table { overflow: hidden; }
.recruit-row { display: grid; border-bottom: 1px solid #ffffff; }
.recruit-row dt { background: var(--theme-color-skyblue); font-weight: 700; }
.recruit-row dd { background: var(--theme-color-skyblue-shallow); margin: 0; }
.recruit-message { }
.recruit-message p { display: block; }
.recruit-message p:last-child { margin-bottom: 0; }
.highlight { display: inline; line-height: 1.7; border-bottom: 6px solid var(--theme-color-yellow); padding-bottom: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.recruit-mascot { position: absolute; right: 0; }
.recruit-mascot img { height: auto; }

/* ---- Phone (< 640px) ---- */
@media (width < 640px) {
  .recruit-card { margin: 40px auto 72px; padding: 18px 14px 28px; border-radius: 14px; }
  .recruit-head { margin-bottom: 12px; }
  .recruit-label { left: -14px; }
  .recruit-label img { width: 260px; height: 44px; }
  .recruit-label-text { font-size: 14px; }
  .recruit-hero { min-height: 220px; border-radius: 10px; }
  .recruit-hero img { max-width: 78%; padding: 22px 0 0; }
  .recruit-table { margin-top: 18px; border-radius: 10px; }
  .recruit-row { grid-template-columns: 1fr; }
  .recruit-row dt { padding: 12px; font-size: 14px; }
  .recruit-row dd { padding: 12px; font-size: 14px; line-height: 1.75; }
  .recruit-message { margin-top: 18px; }
  .recruit-message p { margin: 0 0 10px 0; font-size: 14px; line-height: 1.8; }
  .highlight { border-bottom-width: 5px; }
  .recruit-mascot { right: 6px; bottom: -44px; }
  .recruit-mascot img { width: 84px; }
}

/* ---- sm / Small tablet (≥ 640px) ---- */
@media (width >= 640px) {
  .recruit-card { margin: 40px auto 72px; padding: 18px 14px 28px; border-radius: 14px; }
  .recruit-head { margin-bottom: 12px; }
  .recruit-label { left: -14px; }
  .recruit-label img { width: 260px; height: 44px; }
  .recruit-label-text { font-size: 14px; }
  .recruit-hero { min-height: 220px; border-radius: 10px; }
  .recruit-hero img { max-width: 78%; padding: 22px 0 0; }
  .recruit-table { margin-top: 18px; border-radius: 10px; }
  .recruit-row { grid-template-columns: 160px 1fr; }
  .recruit-row dt { padding: 12px; font-size: 14px; }
  .recruit-row dd { padding: 12px; font-size: 14px; line-height: 1.75; }
  .recruit-message { margin-top: 18px; }
  .recruit-message p { margin: 0 0 10px 0; font-size: 14px; line-height: 1.8; }
  .highlight { border-bottom-width: 5px; }
  .recruit-mascot { right: 6px; bottom: -44px; }
  .recruit-mascot img { width: 84px; }
}

/* ---- md / Tablet (≥ 768px) ---- */
@media (width >= 768px) {
  .recruit-card { max-width: calc(100% - 48px); margin: 56px auto 96px; padding: 22px 32px 48px; border-radius: 16px; }
  .recruit-head { margin-bottom: 16px; }
  .recruit-label { left: -40px; }
  .recruit-label img { height: 52px; width: 340px; }
  .recruit-label-text { font-size: 18px; }
  .recruit-hero { min-height: 280px; border-radius: 10px; }
  .recruit-hero img { max-width: 70%; padding: 28px 0 0; }
  .recruit-table { margin-top: 24px; border-radius: 12px; }
  .recruit-row { grid-template-columns: 160px 1fr; }
  .recruit-row dt { padding: 14px; font-size: initial; }
  .recruit-row dd { padding: 14px; font-size: initial; line-height: 1.8; }
  .recruit-message { margin-top: 20px; }
  .recruit-message p { margin: 0 0 12px 0; font-size: initial; line-height: initial; }
  .highlight { border-bottom-width: 6px; }
  .recruit-mascot { right: 0; bottom: -56px; }
  .recruit-mascot img { width: 108px; }
}

/* ---- lg / Desktop (≥ 1024px) ---- */
@media (width >= 1024px) {
  .recruit-card { max-width: 896px; margin: 64px auto 112px; padding: 24px 64px 64px; border-radius: 16px; }
  .recruit-head { margin-bottom: 16px; }
  .recruit-label { left: -72px; }
  .recruit-label img { height: 56px; width: 384px; }
  .recruit-label-text { font-size: 20px; }
  .recruit-hero { min-height: 320px; }
  .recruit-hero img { max-width: 60%; padding: 32px 0 0; }
  .recruit-table { margin-top: 24px; border-radius: 12px; }
  .recruit-row { grid-template-columns: 180px 1fr; }
  .recruit-row dt { padding: 16px; }
  .recruit-row dd { padding: 16px; line-height: 1.8; }
  .recruit-message { margin-top: 24px; }
  .recruit-message p { margin: 0 0 12px 0; }
  .recruit-mascot { bottom: -64px; }
  .recruit-mascot img { width: 128px; }
}
