.environment-hero {
  --subpage-hero-height: 527px;
  --subpage-hero-image: url("../assets/images/salon-interior.webp");
  --subpage-hero-image-top: 0;
  --subpage-hero-image-height: 100%;
  --subpage-hero-image-size: 160%;
  --subpage-hero-image-position: 90% 60%;
  --subpage-hero-divider-shift: -46px;
  --subpage-hero-overlay:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, rgba(65, 49, 30, 0.24) 0%, rgba(65, 49, 30, 0) 30%, rgba(65, 49, 30, 0) 74%, rgba(154, 101, 64, 0.28) 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;
}

.environment-overview {
  position: relative;
  height: 1818px;
  padding: 150px 0 0;
  overflow: hidden;
  background: var(--color-bg-light);
}

.environment-overview__inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
}

.environment-overview__team {
  position: absolute;
  top: 115px;
  right: 0;
  width: 655px;
  height: 239px;
  border-radius: 120px 0 0 0;
  object-fit: cover;
  object-position: center;
}

.environment-heading {
  width: 1200px;
}

.environment-heading h2 {
  width: 650px;
  color: var(--color-text-primary);
  font-size: 48px;
  font-weight: 700;
  line-height: 51.2px;
  letter-spacing: 1.28px;
  transform: skewX(-10.42deg) scaleY(0.98);
  transform-origin: left center;
}

.environment-heading span {
  display: block;
  width: 183px;
  height: 6px;
  margin-top: 43px;
  background: var(--color-accent);
}

.environment-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  justify-content: start;
  gap: 118px 26px;
  width: 1200px;
  margin-top: 142px;
  margin-left: 0;
}

.environment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 380px;
  min-height: 302px;
  gap: 10px;
  padding-top: 0;
  text-align: center;
}

.environment-card:nth-child(7) {
  grid-column: 1;
}

.environment-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 11px;
  width: 380px;
  min-height: 77px;
}

.environment-card__number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  height: 62px;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 38px;
  font-style: italic;
  font-weight: 500;
  line-height: 32px;
  transform: skewX(-8.05deg) scaleY(0.99);
}

.environment-card__number::after {
  position: absolute;
  top: 63px;
  left: 52px;
  display: block;
  width: 34px;
  height: 1px;
  background: var(--color-accent);
  transform: rotate(-45deg);
  transform-origin: left center;
  content: "";
}

.environment-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 115px;
  margin-bottom: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--color-accent) inset;
}

.environment-card__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.environment-card:nth-child(2) .environment-card__icon img,
.environment-card:nth-child(3) .environment-card__icon img,
.environment-card:nth-child(6) .environment-card__icon img {
  width: 72px;
  height: 72px;
}

.environment-card h3 {
  display: flex;
  align-items: center;
  width: 261px;
  height: 77px;
  color: var(--color-text-primary);
  font-size: 30px;
  font-weight: 700;
  line-height: 23.68px;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.environment-card p {
  width: 280px;
  margin-top: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
}

.environment-overview__diagonal {
  position: absolute;
  right: calc(50% - 928px);
  bottom: -21.5px;
  z-index: 1;
  width: 1100px;
  height: auto;
  pointer-events: none;
}

.environment-overview__collage {
  position: absolute;
  right: calc(50% - 607px);
  bottom: 151px;
  z-index: 3;
  width: 749px;
  height: auto;
  pointer-events: none;
}

.environment-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 890px;
  padding: 101px 0;
  background:
    linear-gradient(90deg, rgba(245, 240, 235, 0.22) 0%, rgba(245, 240, 235, 0.1) 100%),
    url("../assets/images/recruit/environment-bg.webp") center / cover no-repeat;
}

.environment-message__panel {
  position: relative;
  width: 1200px;
  min-height: 688px;
  padding: 92px 68px 96px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 9px 9px 0 rgba(196, 168, 130, 0.32);
  text-align: left;
}

.environment-message__panel .section-heading__eyebrow {
  color: var(--color-accent);
  font-family: var(--font-yu);
  font-size: 30px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0;
  text-align: left;
}

.environment-message__panel .section-heading__eyebrow::after {
  display: block;
  width: 68px;
  height: 6px;
  margin-top: 15px;
  background: var(--color-accent);
  content: "";
}

.environment-message__panel h2 {
  margin-top: 39px;
  color: var(--color-text-primary);
  font-size: 48px;
  font-weight: 700;
  line-height: 51.2px;
  letter-spacing: 1.28px;
  transform: skewX(-8.53deg) scaleY(0.99);
  transform-origin: left center;
}

.environment-message__panel > p:last-child {
  margin-top: 56px;
  color: var(--color-text-primary);
  font-size: 21px;
  font-weight: 700;
  line-height: 38px;
}

@media (max-width: 768px) {
  .environment-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-environment-page .container,
  .environment-overview__inner,
  .environment-message__panel {
    width: 100%;
    max-width: var(--sp-canvas-width, min(440px, 100vw));
    margin-inline: auto;
    padding-inline: 20px;
  }

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

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

  .environment-overview {
    height: auto;
    padding: 64px 0 72px;
    overflow: hidden;
  }

  .environment-overview__inner {
    position: relative;
  }

    .environment-overview__team {
      top: 13px;
      right: auto;
      left: calc(50% - 142px);
      width: 375px;
      height: 164px;
      border-radius: 56px 0 0 0;
      opacity: 0.3;
  }

  .environment-heading {
    width: 100%;
    min-height: 156px;
  }

  .environment-heading h2 {
    width: 100%;
    font-size: 22px;
    line-height: 36px;
    letter-spacing: 1px;
    transform: skewX(-7deg) scaleY(0.99);
  }

  .environment-heading span {
    width: 90px;
    height: 4px;
    margin-top: 18px;
  }

  .environment-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    width: 100%;
    margin-top: 42px;
  }

  .environment-card,
  .environment-card:nth-child(7) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    gap: 8px;
    padding: 0;
    grid-column: auto;
  }

  .environment-card__icon {
    width: 78px;
    height: 78px;
    box-shadow: 0 0 0 2px var(--color-accent) inset;
  }

  .environment-card__icon img,
  .environment-card:nth-child(2) .environment-card__icon img,
  .environment-card:nth-child(3) .environment-card__icon img,
  .environment-card:nth-child(6) .environment-card__icon img {
    width: 48px;
    height: 48px;
  }

  .environment-card__heading {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    width: 100%;
    min-height: 0;
  }

  .environment-card__number {
    width: 45px;
    height: 36px;
    font-size: 24px;
    line-height: 28px;
  }

  .environment-card__number::after {
    top: 35px;
    left: 30px;
    width: 22px;
  }

  .environment-card h3 {
    width: 100%;
    height: auto;
    min-height: 38px;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    white-space: normal;
    padding-left: 27px;
  }

  .environment-card p {
    width: 100%;
    margin-top: 0;
    color: var(--color-text-primary);
    font-size: 11px;
    line-height: 19px;
    text-align: center;
  }

  .environment-overview__diagonal {
    display: none;
  }

  .environment-overview__collage {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(100%, 400px);
    margin: 42px auto 0;
  }

  .environment-message {
    min-height: 0;
    padding: 64px 20px;
    background:
      linear-gradient(rgba(245, 240, 235, 0.18), rgba(245, 240, 235, 0.18)),
      url("../assets/images/recruit/environment-bg.webp") center / cover no-repeat;
  }

  .environment-message__panel {
    min-height: 0;
    padding: 36px 24px 42px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 6px 6px 0 rgba(140, 99, 62, 0.32);
  }

  .environment-message__panel .section-heading__eyebrow {
    font-size: 17px;
    line-height: 27px;
  }

  .environment-message__panel .section-heading__eyebrow::after {
    width: 42px;
    height: 4px;
    margin-top: 8px;
  }

  .environment-message__panel h2 {
    margin-top: 28px;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: 0.8px;
    transform: skewX(-7deg) scaleY(0.99);
  }

  .environment-message__panel > p:last-child {
    margin-top: 28px;
    font-size: 14px;
    line-height: 26px;
  }

  .environment-bottom-cta h2 {
    font-size: 24px;
    line-height: 34px;
  }
}
