/* A5: the photograph crosses a chapter boundary; the invitation completes it. */
:where(body.um-v99-top) .a5-recruit {
  --a5-overlap: 148px;
  padding-top: 104px;
  background: #efedec;
  color: #160f10;
}

:where(body.um-v99-top) .a5-recruit .a5-page {
  position: relative;
  z-index: 1;
}

:where(body.um-v99-top) .a5-recruit .ts-label {
  color: #9f1f45;
  margin-bottom: 70px;
}

:where(body.um-v99-top) .a5-recruit .a5-title {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #9f1f45;
  font-size: clamp(40px, 4.85vw, 70px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.055em;
  text-wrap: balance;
}

:where(body.um-v99-top) .a5-recruit .a5-title > span {
  display: inline-block;
  padding-right: .48em;
  background: #efedec;
}

:where(body.um-v99-top) .a5-recruit .a5-photo {
  position: relative;
  z-index: 1;
  width: 82%;
  margin: -62px 0 0 auto;
}

:where(body.um-v99-top) .a5-recruit .a5-photo .a5-roof {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1445 / 1088;
  object-fit: contain;
}

:where(body.um-v99-top) .a5-recruit .a5-invitation-strip {
  position: relative;
  margin-top: calc(-1 * var(--a5-overlap));
  padding-top: calc(var(--a5-overlap) + 64px);
  padding-bottom: 76px;
  background: #9f1f45;
  color: #fff;
}

:where(body.um-v99-top) .a5-recruit .a5-invitation-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
}

:where(body.um-v99-top) .a5-recruit .a5-message .ts-overline {
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: .12em;
}

:where(body.um-v99-top) .a5-recruit .a5-message .ts-body {
  font-size: 16px;
  line-height: 2;
}

:where(body.um-v99-top) .a5-recruit .a5-action {
  min-width: 0;
  padding-bottom: 4px;
}

:where(body.um-v99-top) .a5-recruit .a5-action .ts-button {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  margin: 0;
  padding: 25px 32px;
  border: 1px solid #fff;
  background: #fff;
  color: #9f1f45;
  font-size: 14px;
  font-weight: 500;
}

:where(body.um-v99-top) .a5-recruit .a5-action .ts-button:hover {
  background: #efedec;
  border-color: #efedec;
}

:where(body.um-v99-top) .a5-recruit .a5-action .ts-button:focus-visible {
  outline-color: #fff;
  outline-offset: 7px;
}

:where(body.um-v99-top) .a5-recruit .a5-action .ts-button > span:last-child {
  font-size: 32px;
}

@media (max-width: 1100px) {
  :where(body.um-v99-top) .a5-recruit {
    --a5-overlap: 105px;
    padding-top: 84px;
  }

  :where(body.um-v99-top) .a5-recruit .ts-label {
    margin-bottom: 52px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-photo {
    width: 86%;
    margin-top: -36px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-invitation-content {
    gap: 40px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-message .ts-body {
    font-size: 14px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-action .ts-button {
    padding-inline: 24px;
    font-size: 12px;
  }
}

@media (max-width: 800px) {
  :where(body.um-v99-top) .a5-recruit {
    --a5-overlap: 64px;
    padding-top: 68px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-title {
    font-size: clamp(32px, 5.6vw, 44px);
  }

  :where(body.um-v99-top) .a5-recruit .a5-photo {
    width: 90%;
    margin-top: 28px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-invitation-strip {
    padding-top: calc(var(--a5-overlap) + 48px);
    padding-bottom: 60px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-invitation-content {
    gap: 28px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-action .ts-button {
    min-height: 74px;
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  :where(body.um-v99-top) .a5-recruit {
    --a5-overlap: 40px;
  }

  :where(body.um-v99-top) .a5-recruit .ts-label {
    gap: 12px;
    margin-bottom: 40px;
  }

  :where(body.um-v99-top) .a5-recruit .ts-label span:last-child {
    max-width: 165px;
    font-size: 9px;
    text-align: right;
  }

  :where(body.um-v99-top) .a5-recruit .a5-title {
    font-size: clamp(28px, 8.1vw, 40px);
    line-height: 1.65;
  }

  :where(body.um-v99-top) .a5-recruit .a5-title > span {
    padding-right: 0;
  }

  :where(body.um-v99-top) .a5-recruit .a5-photo {
    width: 100%;
    margin-top: 28px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-invitation-strip {
    padding-top: calc(var(--a5-overlap) + 38px);
    padding-bottom: 56px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-invitation-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-message .ts-overline {
    margin-bottom: 16px;
    font-size: 9px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-message .ts-body {
    font-size: 13px;
    line-height: 2.1;
  }

  :where(body.um-v99-top) .a5-recruit .a5-action {
    padding: 0;
  }

  :where(body.um-v99-top) .a5-recruit .a5-action .ts-button {
    min-height: 68px;
    padding-inline: 22px;
  }

  :where(body.um-v99-top) .a5-recruit .a5-action .ts-button > span:last-child {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(body.um-v99-top) .a5-recruit .a5-action .ts-button,:where(body.um-v99-top) .a5-recruit .a5-action .ts-button > span:last-child {
    transition: none;
  }
}
