/* 共通ピンク帯。基準は求人要項の1140 × 150pxの意匠。 */
.recruit-pink-hero {
  --hero-width: 100vw;
  position: relative;
  overflow: hidden;
  background: #ffb0ac;
  color: #372b30;
}

@supports (width: 1cqw) {
  .recruit-pink-hero {
    container-type: inline-size;
    --hero-width: 100cqw;
  }
}

.recruit-pink-hero__background,
.recruit-pink-hero__logo {
  position: absolute;
  pointer-events: none;
}

.recruit-pink-hero__background {
  --image-width: max(100%, min(1400px, calc(var(--hero-width) * 1400 / 1140)));
  --image-height: max(calc(var(--hero-width) * 519 / 1400), min(519px, calc(var(--hero-width) * 519 / 1140)));
  inset: 50% auto auto 50%;
  width: var(--image-width);
  height: var(--image-height);
  translate: -50% -50%;
  background: url("/recruit/images/hero-slide-01-background.jpg") center / 100% 100% no-repeat;
}

@supports (width: round(nearest, 1.6px, 1px)) {
  .recruit-pink-hero__background {
    width: round(nearest, var(--image-width), 1px);
    height: round(nearest, var(--image-height), 1px);
  }
}

.recruit-pink-hero__content {
  position: relative;
  width: min(100%, 1140px);
  aspect-ratio: 1140 / 150;
  margin-inline: auto;
}

.recruit-pink-hero__logo {
  inset: calc(100% * 38 / 150) auto auto calc(100% * 667 / 1140);
  width: calc(100% * 368 / 1140);
  aspect-ratio: 368 / 80;
  background: url("/recruit/images/seryna-logo-pink.png") center / contain no-repeat;
}

.recruit-pink-hero h1.recruit-pink-hero__title {
  position: absolute;
  inset: calc(100% * 57 / 150) auto auto calc(100% * 113 / 1140);
  z-index: 1;
  margin: 0;
  padding: 0;
  color: inherit;
  font: 700 min(29px, calc(var(--hero-width) * 29 / 1140)) / normal
    "Lucida Grande", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-shadow: 0 1px 0 rgb(255 250 246 / 88%), 0 2px 2px rgb(55 43 48 / 20%);
}

@media (max-width: 800px) {
  .recruit-pink-hero__background {
    inset: 0;
    width: 100%;
    height: 100%;
    translate: none;
    background-size: cover;
  }

  .recruit-pink-hero__content {
    aspect-ratio: auto;
  }

  .recruit-pink-hero__logo {
    inset: .875rem .75rem auto auto;
    width: clamp(56px, 16vw, 112px);
  }

  .recruit-pink-hero h1.recruit-pink-hero__title {
    position: relative;
    inset: auto;
    padding: .875rem max(70px, 19vw) .875rem 1rem;
    font-size: clamp(15.5px, 4.7vw, 23px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .recruit-pink-hero__logo {
    animation: recruit-pink-hero-logo-in 650ms ease-out;
  }
}

@keyframes recruit-pink-hero-logo-in {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .recruit-pink-hero {
    background: Canvas;
    color: CanvasText;
  }

  .recruit-pink-hero__background,
  .recruit-pink-hero__logo {
    display: none;
    animation: none;
  }

  .recruit-pink-hero h1.recruit-pink-hero__title {
    text-shadow: none;
  }
}
