.career-hero {
  --subpage-hero-height: 527px;
  --subpage-hero-panel-width: 608px;
  --subpage-hero-image: url("../assets/images/recruit/career/hero.png");
  --subpage-hero-image-top: 0;
  --subpage-hero-image-height: 100%;
  --subpage-hero-image-size: 210%;
  --subpage-hero-image-position: 100% center;
  --subpage-hero-divider-shift: -49px;
  --subpage-hero-overlay: linear-gradient(90deg, rgba(65, 49, 30, 0.28) 0%, rgba(65, 49, 30, 0) 34%, rgba(65, 49, 30, 0) 72%, rgba(154, 101, 64, 0.26) 100%);
  --subpage-hero-mobile-overlay: var(--subpage-hero-overlay);
  --subpage-hero-logo-width: 106px;
  --subpage-hero-title-font-size: 54px;
  --subpage-hero-title-line-height: 74px;
  --subpage-hero-title-letter-spacing: 2.16px;
  --subpage-hero-lead-font-size: 21px;
  --subpage-hero-lead-font-weight: 700;
  --subpage-hero-lead-line-height: 38px;
  --subpage-hero-divider-height: 530px;
  --subpage-hero-divider-after-height: 337px;
}

.career-path {
  position: relative;
  padding: 150px 0;
  background: var(--gradient-gold);
}

.career-path::before {
  position: absolute;
  top: 250px;
  right: calc(50% - 614px);
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 164px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 1.28px;
  pointer-events: none;
  user-select: none;
  content: "CAREER UP";
}

.career-page-heading {
  position: relative;
  z-index: 1;
}

.career-page-heading h2 {
  display: inline-block;
  position: relative;
  color: #fff;
  font-family: var(--font-yu);
  font-size: 48px;
  font-weight: 700;
  line-height: 51.2px;
  letter-spacing: 1.28px;
  transform: skewX(-8deg) scaleY(0.98);
  transform-origin: left center;
}

.career-page-heading h2::after {
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 183px;
  height: 5px;
  background: #b88f52;
  content: "";
  transform: skewX(8deg);
}

.career-path__panel {
  position: relative;
  z-index: 1;
  min-height: 1004px;
  margin-top: 112px;
  padding: 72px 54px 73px;
  background: rgba(255, 255, 255, 0.8);
}

.career-path__panel h3 {
  font-family: var(--font-yu);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
}

.career-path__panel p {
  margin-top: 25px;
  font-family: var(--font-yu);
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
}

.career-path__panel > span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  margin-top: 38px;
  color: var(--color-accent);
  font-family: var(--font-yu);
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.career-path__panel > span::before,
.career-path__panel > span::after {
  height: 1px;
  background: var(--color-gold);
  content: "";
}

.career-path__panel .recruit-career__flow {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 57px;
}

.recruit-career__step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 380px;
  height: 67px;
  border-radius: 999px;
  color: var(--color-accent);
  background: #fff;
  box-shadow: 0 4px 0 rgba(196, 168, 130, 0.78);
}

.recruit-career__step img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.recruit-career__step b {
  font-family: var(--font-yu);
  font-size: 20px;
  font-weight: 700;
}

.recruit-career__arrow {
  width: 16px;
  height: 28px;
  object-fit: contain;
}

.career-path__panel .recruit-career__branch {
  display: block;
  width: 623px;
  height: auto;
  margin-inline: auto;
  margin-top: 33px;
}

.career-path__panel .recruit-career__grid {
  display: grid;
  grid-template-columns: repeat(4, 163px);
  justify-content: center;
  gap: 43px;
  margin-top: -1px;
}

.recruit-career__grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 163px;
  height: 163px;
  padding: 32px 6px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(196, 168, 130, 0.78);
}

.recruit-career__grid img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.recruit-career__grid strong {
  margin-top: 23px;
  color: var(--color-accent);
  font-family: var(--font-yu);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

.career-path__panel .career-path__note {
  margin-top: 57px;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
}

.career-roles {
  padding: 150px 0 120px;
  background: var(--color-bg-light);
}

.career-roles__grid {
  display: grid;
  grid-template-columns: repeat(2, 460px);
  gap: 86px 80px;
  justify-content: center;
}

.career-role-card {
  position: relative;
  width: 460px;
  min-height: 700px;
  padding-bottom: 52px;
  background: #fff;
  box-shadow: 9px 9px 0 rgba(140, 99, 62, 0.4);
}

.career-role-card__media {
  height: 253px;
  background:
    linear-gradient(135deg, rgba(196, 168, 130, 0.35), rgba(245, 240, 235, 0.9)),
    var(--color-bg-light);
}

.career-role-card:nth-child(1) .career-role-card__media {
  background: url("../assets/images/recruit/career/role-executive-trainer.webp") center / cover no-repeat;
}

.career-role-card:nth-child(2) .career-role-card__media {
  background: url("../assets/images/recruit/career/role-manager.webp") center / cover no-repeat;
}

.career-role-card:nth-child(3) .career-role-card__media {
  background: url("../assets/images/recruit/career/role-technical-lead.webp") center / cover no-repeat;
}

.career-role-card:nth-child(4) .career-role-card__media {
  background: url("../assets/images/recruit/career/role-owner.webp") center / cover no-repeat;
}

.career-role-card__icon {
  position: absolute;
  top: 193px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.career-role-card__icon img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.career-role-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 331px;
  margin: 89px auto 0;
  text-align: center;
}

.career-role-card h3 {
  color: var(--color-accent);
  font-family: var(--font-yu);
  font-size: 28px;
  font-weight: 700;
  line-height: 35px;
}

.career-role-card b {
  display: block;
  margin-top: 21px;
  font-family: var(--font-yu);
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
}

.career-role-card p {
  margin-top: 30px;
  font-family: var(--font-yu);
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  text-align: left;
}

.career-message {
  padding: 100px 0;
  background:
    linear-gradient(rgba(245, 240, 235, 0.66), rgba(245, 240, 235, 0.66)),
    url("../assets/images/recruit/reason-01.webp") center 42% / cover no-repeat;
}

.career-message__panel {
  min-height: 688px;
  padding: 78px 72px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 9px 9px 0 rgba(140, 99, 62, 0.4);
}

.career-message__panel .section-heading__eyebrow {
  position: relative;
  width: fit-content;
  padding-bottom: 15px;
  font-family: var(--font-yu);
  font-size: 30px;
  font-weight: 700;
  line-height: 48px;
}

.career-message__panel .section-heading__eyebrow::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 68px;
  height: 1px;
  background: var(--color-accent);
  content: "";
}

.career-message h2 {
  margin-top: 39px;
  color: var(--color-text-primary);
  font-family: var(--font-yu);
  font-size: 48px;
  font-weight: 700;
  line-height: 51.2px;
  letter-spacing: 1.28px;
  transform: skewX(-8deg);
  transform-origin: left center;
}

.career-message__panel > p:last-child {
  margin-top: 56px;
  color: #000;
  font-family: var(--font-yu);
  font-size: 21px;
  font-weight: 700;
  line-height: 38px;
}

.career-bottom-cta h2 {
  font-size: 34px;
}

@media (max-width: 768px) {
  .career-hero {
    --subpage-hero-mobile-overlay: linear-gradient(90deg, rgba(51, 38, 22, 0.95) 0%, rgba(51, 38, 22, 0.72) 42%, rgba(51, 38, 22, 0.16) 100%);
  }

  .recruit-career-page .container,
  .career-roles__grid {
    width: 100%;
    max-width: var(--sp-canvas-width, min(440px, 100vw));
    margin-inline: auto;
    padding-inline: 20px;
  }

  .career-hero .subpage-hero__panel {
    gap: 0;
  }

  .career-hero p {
    margin-top: 24px;
  }

  .career-path {
    padding: 64px 0;
  }

  .career-path::before {
    position: absolute;
    top: 167px;
    right: calc(50% - 187px);
    font-size: 64px;
  }

  .career-page-heading h2 {
    font-size: 28px;
    line-height: 44px;
    letter-spacing: 0.8px;
  }

  .career-page-heading h2::after {
    bottom: -18px;
    width: 82px;
    height: 4px;
  }

  .career-path__panel {
    min-height: 0;
    margin-top: 58px;
    padding: 28px 18px 32px;
    background: rgba(255, 255, 255, 0.88);
  }

  .career-path__panel h3 {
    font-size: 20px;
    line-height: 30px;
  }

  .career-path__panel p {
    margin-top: 14px;
    font-size: 13px;
    line-height: 24px;
  }

  .career-path__panel > span {
    gap: 12px;
    margin-top: 28px;
    font-size: 18px;
  }

  .recruit-career-page .career-path__panel .recruit-career__flow {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .recruit-career-page .recruit-career__step {
    gap: 14px;
    width: min(100%, 330px);
    height: 46px;
    box-shadow: 0 4px 0 rgba(196, 168, 130, 0.78);
  }

  .recruit-career-page .recruit-career__step img {
    width: 20px;
    height: auto;
  }

  .recruit-career-page .recruit-career__step b {
    font-size: 15px;
    line-height: 28px;
  }

  .recruit-career-page .recruit-career__arrow {
    width: 18px;
    height: 30px;
  }

  .recruit-career-page .career-path__panel .recruit-career__branch {
    display: block;
    width: 76%;
    margin-top: 18px;
  }

  .recruit-career-page .career-path__panel .recruit-career__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    margin-top: 0;
  }

  .recruit-career-page .recruit-career__grid article {
    width: auto;
    height: auto;
    padding: 13px 3px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 0 rgba(196, 168, 130, 0.78);
  }

  .recruit-career-page .recruit-career__grid img {
    width: 27px;
    height: 27px;
  }

  .recruit-career-page .recruit-career__grid strong {
    margin-top: 9px;
    font-size:9px;
    line-height: 1.35;
  }

  .career-path__panel .career-path__note {
    margin-top: 28px;
    font-size: 11px;
    line-height: 22px;
    text-align: left;
  }

  .career-roles {
    padding: 64px 0;
  }

  .career-roles #career-roles-title {
    position: static;
    width: var(--sp-content-width, min(400px, calc(100vw - 40px)));
    height: auto;
    margin: 0 auto 40px;
    overflow: visible;
    clip: auto;
    color: var(--color-text-primary);
    font-size: 28px;
    line-height: 44px;
    letter-spacing: 0.8px;
    white-space: normal;
    transform: skewX(-8deg);
  }

  .career-roles #career-roles-title::after {
    display: block;
    width: 82px;
    height: 4px;
    margin-top: 14px;
    background: var(--color-accent);
    content: "";
    transform: skewX(8deg);
  }

  .career-roles__grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .career-role-card {
    width: 100%;
    min-height: 0;
    padding-bottom: 30px;
    box-shadow: 6px 6px 0 rgba(140, 99, 62, 0.32);
  }

  .career-role-card__media {
    height: 185px;
  }

  .career-role-card__icon {
    top: 143px;
    width: 84px;
    height: 84px;
    border-width: 2px;
  }

  .career-role-card__icon img {
    width: 45px;
    height: 45px;
  }

  .career-role-card__body {
    width: 75%;
    margin-top: 58px;
    padding-inline: 22px;
  }

  .career-role-card h3 {
    font-size: 18px;
    line-height: 28px;
  }

  .career-role-card b {
    margin-top: 12px;
    font-size: 19px;
    line-height: 31px;
  }

  .career-role-card p {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
  }

  .career-message {
    padding: 64px 0;
    background:
      linear-gradient(rgb(30 15 0 / 72%), rgb(118 106 93 / 72%)), url(../assets/images/recruit/career-bg.webp) center / cover no-repeat;
  }

  .career-message__panel {
    min-height: 0;
    padding: 34px 22px 38px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 6px 6px 0 rgba(140, 99, 62, 0.32);
  }

  .career-message__panel .section-heading__eyebrow {
    padding-bottom: 10px;
    font-size: 18px;
    line-height: 30px;
  }

  .career-message__panel .section-heading__eyebrow::after {
    width: 48px;
  }

  .career-message h2 {
    margin-top: 24px;
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 0.8px;
  }

  .career-message__panel > p:last-child {
    margin-top: 28px;
    font-size: 13px;
    font-weight: 500;
    line-height: 28px;
  }

  .career-bottom-cta h2 {
    font-size: 28px;
    line-height: 39px;
  }
}
