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

/* WORK FLOW carousel — Swiper overrides */
#js-workflow-carousel {
  overflow: hidden !important;
}

#js-workflow-carousel .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

#js-workflow-carousel .swiper-slide {
  flex-shrink: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transition-property: none !important;
  will-change: auto !important;
}

#js-workflow-carousel .swiper-slide:hover {
  background: transparent !important;
}

.workflow-carousel__nav {
  pointer-events: none;
}

.workflow-carousel__nav button {
  pointer-events: auto;
  cursor: pointer;
}

/* WORK FLOW carousel — PC/SP toggle */
.workflow-carousel--sp {
  display: none;
}

@media screen and (max-width: 480px) {
  .workflow-carousel--pc {
    display: none !important;
  }
  .workflow-carousel--sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    background: #ebebeb;
    padding: 80px 0;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* WORK FLOW carousel — SP header */
.workflow-carousel-sp__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.workflow-carousel-sp__title-en {
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

.workflow-carousel-sp__title-ja {
  font-family: 'ヒラギノ角ゴ W6 JIS2004', 'Hiragino Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

/* WORK FLOW carousel — SP Swiper */
#js-workflow-carousel-sp {
  overflow: hidden;
  position: relative;
  width: calc(100% - 20px * 2);
  margin: 0 20px;
}

#js-workflow-carousel-sp .swiper-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.workflow-carousel-sp__slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  box-sizing: border-box;
}

.workflow-carousel-sp__img {
  width: 100%;
  height: auto;
  display: block;
}

.workflow-carousel-sp__nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-carousel-sp__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.workflow-carousel-sp__nav button {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  width: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SP "採用情報トップに戻る" link */
.newgrads-sp-back {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.newgrads-sp-back__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.8;
  margin: 0;
}

.newgrads-sp-back__arrow {
  width: 10px;
  height: auto;
}

/* SP Entry CTA banner — background image */
.sd[data-r-21_b21976a8-da79-458f-bf9e-c6ace8e4363c]:before {
  background-image: url(../img/recruit-newgrads/cta_sp.webp);
}

/* SP Entry CTA banner — content */
.newgrads-sp-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  z-index: 3;
  position: relative;
}

.newgrads-sp-entry__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.newgrads-sp-entry__icon {
  width: 44px;
  height: auto;
}

.newgrads-sp-entry__message {
  font-family: 'ヒラギノ角ゴ W6 JIS2004', 'Hiragino Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0;
  margin: 0 20px;
}

.newgrads-sp-entry__cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 4;
}

.newgrads-sp-entry__cta-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

.newgrads-sp-entry__cta-arrow {
  width: 14px;
  height: auto;
}

/* ===== Display Toggle Overrides ===== */
/* CEO Message (af9c1f44) → components/ceo-message/ceo-message.css */
/* Application Flow SP image (53406de9) → components/application-flow/application-flow.css */
.sd[data-s-389ae661-7228-401c-8d9e-3f98201596d3] {
  display: none;
}
a[data-s-b21976a8-da79-458f-bf9e-c6ace8e4363c]{
  display: none;
}
a[data-s-05d70f5b-16f0-4e7e-a61b-a7799777ff07]{
  display: none;
}
/* SP: show at <=480px */
@media screen and (max-width: 480px) {
  .sd[data-s-389ae661-7228-401c-8d9e-3f98201596d3] {
    display: flex;
  }
  a[data-s-b21976a8-da79-458f-bf9e-c6ace8e4363c]{
    display: flex;
  }
  a[data-s-05d70f5b-16f0-4e7e-a61b-a7799777ff07]{
    display: flex;
  }
}

/* SP Numbers / Data: hide on PC, show at <=480px */
.sd[data-s-131b483b-6b07-49bf-b455-2bb1455fd467] {
  display: none !important;
}
@media screen and (max-width: 480px) {
  .sd[data-s-131b483b-6b07-49bf-b455-2bb1455fd467] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    background: #ebebeb;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  .sd[data-s-05b24a5a-5977-46e3-a05c-fe0ea32d8327] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    background: #ebebeb;
    box-sizing: border-box;
  }
  .workflow-carousel-sp__title-en {
    margin-bottom: 15px;
  }
}

/* ===== SP Numbers / Data (480px) ===== */

.newgrads-sp-data {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.newgrads-sp-data__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #a0a0a0;
  box-sizing: border-box;
}

.newgrads-sp-data__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 0 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.newgrads-sp-data__title-ja {
  font-family: 'ヒラギノ角ゴ W6 JIS2004', 'Hiragino Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

.newgrads-sp-data__title-en {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: #000;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

.newgrads-sp-data__grid {
  display: flex;
  flex-wrap: wrap;
}

.newgrads-sp-data__card--half {
  width: 50%;
  box-sizing: border-box;
}

.newgrads-sp-data__img2 {
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  height: auto;
  display: block;
  margin: 0 20px;
}

.newgrads-sp-data__img {
  width: 100%;
  height: auto;
  display: block;
}

.newgrads-sp-data__extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #757879;
  margin: 0 20px 40px 20px;
  padding: 8px 16px;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  box-sizing: border-box;
}

.newgrads-sp-data__extra p {
  font-family: 'ヒラギノ角ゴ W4 JIS2004', 'Hiragino Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  text-align: left;
  margin: 0;
  line-height: 1.4;
}

.newgrads-sp-data__extra strong {
  font-family: 'ヒラギノ角ゴ W7 JIS2004', 'Hiragino Sans', sans-serif;
  font-weight: 700;
  color: #fff;
}

.newgrads-sp-data__note {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: #999;
  margin: 0;
  text-align: center;
}

/* SP Related Links → moved to components/related-links/related-links.css */

/* Note carousel wrapper — newgrads page-specific layout fix at 480px */
@media screen and (max-width: 480px) {
  .sd[data-s-9a953367-256f-47ae-8acd-9d77641b2735] {
    max-width: 100vw;
    margin-left: -20px;
  }
  .note-carousel__nav,
  .note-carousel__cta--sp {
    max-width: calc(100% - 20px * 2);
  }
}

@media screen and (max-width: 480px) {
  .newgrads-sp-data {
    gap: 0px;
    .newgrads-sp-data__card:not(.newgrads-sp-data__card--half) {
      margin-top: -1px;
      &:nth-child(4),
      &:nth-child(5),
      &:nth-child(6) {
        .newgrads-sp-data__img {
          padding: 30px 30px 20px 30px;
        }
      }
      &:last-child {
        .newgrads-sp-data__img {
          padding: 30px 20px 30px 20px;
        }
      }
    }
    .newgrads-sp-data__card--half {
      .newgrads-sp-data__img {
        width: 130px;
        padding: 20px 0px 20px 0px;
      }
    }
    .newgrads-sp-data__note {
      font-size: 13px !important;
      margin: 0px;
      padding: 0px 20px 0px 0px;
      color: #000000;
      margin-bottom: 30px;
      margin-left: auto;
      line-height: 1.4;
    }
  }
  .newgrads-sp-data__img2 {
    height: auto;
    margin: 0px 40px;
    padding: 0px 0px 20px 0px;
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
  }
}
