/* =============================================
   Recruit page — responsive overrides
   Loaded AFTER recruit-studio.css
   ============================================= */

/* ===== Display Toggle Overrides ===== */

/* PC message section + text — keep visible above 480px */
@media screen and (min-width: 481px) {
  .sd[data-s-40355a1a-fdfc-4655-a975-f87e5a40ce33] {
    display: flex !important;
  }
}
/* PC message photos — full width at <=768px */
@media screen and (max-width: 768px) {
  .sd[data-s-13eed002-abe2-4432-9b9d-7ecac9e98151] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* SP hero: show at <=480px */
@media screen and (max-width: 480px) {
  .sd[data-s-5480ff2c-d1f6-4f6e-a80e-e79b91f21b7d] {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    background: #3a3a3a;
  }
}

/* SP message: show at <=480px */
@media screen and (max-width: 480px) {
  .sd[data-s-abbdb68e-ffa7-44d7-a89f-27b32de28d80] {
    display: flex !important;
    flex-direction: column;
  }
}

/* SP recruit cards: show at <=480px */
@media screen and (max-width: 480px) {
  .sd[data-s-c9f31d32-00fe-4ac0-ba0c-1ae796aed9cb] {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
}

/* SP link cards: show at <=768px */
@media screen and (max-width: 768px) {
  .sd[data-s-1fa117bb-fcf3-4bba-ad0e-243ed97741f1] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    padding: 80px 30px;
    background: #757879;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 480px) {
  .sd[data-s-1fa117bb-fcf3-4bba-ad0e-243ed97741f1] {
    padding: 80px 20px;
  }
}

/* ===== SP Hero (480px) ===== */

.recruit-sp-hero {
  width: 100%;
}

/* --- Top row: 2 images --- */
.recruit-sp-hero__row {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: 30px;
}

.recruit-sp-hero__cell {
  display: flex;
  width: calc(50%);
  box-sizing: border-box;
}

.recruit-sp-hero__cell:first-child {
  justify-content: flex-start;
  margin-left: 30px;
  width: calc(50% - 30px);
}

.recruit-sp-hero__cell:last-child {
  justify-content: flex-end;
  margin-right: 30px;
  width: calc(50% - 30px);
}

.recruit-sp-hero__cell .recruit-sp-hero__img {
  width: 48%;
  height: auto;
  display: block;
}

/* --- Center: SVG + photos column --- */
.recruit-sp-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.recruit-sp-hero__svg {
  width: 35px;
  height: auto;
}

.recruit-sp-hero__photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.recruit-sp-hero__photo-1 {
  width: 90%;
  height: auto;
  display: block;
}

.recruit-sp-hero__photo-2 {
  width: 80%;
  height: auto;
  display: block;
}

/* --- Bottom row: 4 staggered images --- */
.recruit-sp-hero__bottom {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 20px;
}

.recruit-sp-hero__bottom img {
  height: auto;
  display: block;
  position: relative;
}

.recruit-sp-hero__btm-1 {
  width: 24%;
  margin: 22px 20px 75px 0;
}

.recruit-sp-hero__btm-2 {
  width: 26%;
  margin: 40px 20px 10px 0;
}

.recruit-sp-hero__btm-3 {
  width: 25%;
  margin: 40px 0 0 20px;
}

.recruit-sp-hero__btm-4 {
  width: 23%;
  margin: 20px 0 50px 20px;
}

/* ===== SP Message (768px+) ===== */

.recruit-sp-message {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.recruit-sp-message__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 80px 30px;
}

.recruit-sp-message__portrait {
  display: none;
  width: 80%;
  height: auto;
}

@media screen and (max-width: 480px) {
  .recruit-sp-message__portrait {
    display: block;
  }
}

.recruit-sp-message__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 2;
  color: #333;
  margin: 0;
}

.recruit-sp-message__images {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.recruit-sp-message__slide {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
}

@media screen and (max-width: 480px) {
  .recruit-sp-message__slide {
    height: 220px;
  }
}

@media screen and (max-width: 480px) {
  .recruit-sp-message__content {
    margin: 80px 20px;
    gap: 30px;
  }

  .recruit-sp-message__text {
    font-size: 13px;
  }
}

/* ===== SP Recruit Cards (480px) ===== */

.recruit-sp-cards {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.recruit-sp-card {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #4f4f4f;
}

.recruit-sp-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* opacity: 0.6; */
}

.recruit-sp-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 40px;
  margin: 0 20px 60px;
  height: calc(100% - 60px);
}

.recruit-sp-card__labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recruit-sp-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

.recruit-sp-card__subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

.recruit-sp-card__catch {
  width: 70%;
  height: auto;
  margin-top: 16px;
}

.recruit-sp-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #a0a0a0;
  padding: 12px 0 11px;
  width: 70%;
  text-decoration: none;
  box-sizing: border-box;
}

.recruit-sp-card__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.recruit-sp-card__cta-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.recruit-sp-card__arrow {
  width: 10px;
  height: auto;
}

/* ===== SP Link Cards (480px) ===== */

.recruit-sp-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.recruit-sp-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  border-radius: 0;
}

.recruit-sp-link__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-sp-link__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: auto;
  top: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 20px 0 0;
  background: #757879;
  color: #fff;
}

.recruit-sp-link__cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.recruit-sp-link__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
}

.recruit-sp-link__arrow {
  width: 14px;
  height: auto;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .recruit-sp-hero__photo-1 {
    max-width: 324px !important;
  }
  .recruit-sp-hero__photo-2 {
    max-width: 288px !important;
  }

  .recruit-sp-hero__bottom {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0px 0px;
    margin: 0px 0px 20px 0px;
    padding: 0px 0px 0px 0px;
    width: 100%;
    --gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1: 0px;
    --gap-v-b79e1419-dd86-47d3-bb69-6b96918ad3b1: 0px;
    max-width: 100%;
    align-items: center;
  }
  .recruit-sp-hero__btm-1 {
    margin: 22px 20px 75px 0px;
    position: relative;
    width: calc(
      24% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.76)
    );
    max-width: calc(
      24% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.76)
    );
  }
  .recruit-sp-hero__btm-2 {
    height: auto;
    margin: 40px 20px 10px 0px;
    padding: 0px 0px 0px 0px;
    position: relative;
    width: calc(
      26% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.74)
    );
    max-width: calc(
      26% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.74)
    );
  }
  .recruit-sp-hero__btm-3 {
    margin: 40px 0px 0px 20px;
    position: relative;
    width: calc(
      25% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.75)
    );
    max-width: calc(
      25% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.75)
    );
  }
  .recruit-sp-hero__btm-4 {
    height: auto;
    margin: 20px 0px 50px 20px;
    position: relative;
    width: calc(
      23% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.77)
    );
    max-width: calc(
      23% - 20px - (var(--gap-h-b79e1419-dd86-47d3-bb69-6b96918ad3b1) * 0.77)
    );
  }
  .recruit-sp-card__cta {
    width: 100%;
  }
}
