/* Scoped TOP recruitment band and static employee photo columns. */
.top-page main > .top-recruit--flow {
  padding: 0;
  background: #fff;
}
.top-recruit--flow .recruit-curve-defs { position: absolute; pointer-events: none; }
.top-recruit--flow .top-recruit__band {
  position: relative;
  overflow: hidden;
  clip-path: none;
  background: #fff;
}
.top-recruit--flow .top-recruit__grid {
  position: relative;
  width: min(calc(100% - 80px), 1280px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  min-height: 1060px;
  padding-block: 210px 190px;
}
.top-recruit--flow .top-recruit__copy { position: relative; z-index: 1; }
.top-recruit--flow .top-heading,
.top-recruit--flow .top-heading em,
.top-recruit--flow .top-kicker,
.top-recruit--flow .top-copy { color: #003bbe; }
.top-recruit--flow .top-heading {
  font-size: clamp(64px, 5.6vw, 80px);
  line-height: 1.2;
  white-space: normal;
}
.top-recruit--flow .top-copy { max-width: 520px; margin-block: 32px 38px; font-size: 17px; line-height: 2; }
.top-recruit--flow .top-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 500px);
  min-height: 100px;
  margin: 0;
  padding: 24px 30px;
  border: 0;
  border-radius: 8px;
  background: #003bbe;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: default;
}
.top-recruit--flow .top-button::after {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-left: 16px;
  border-radius: 50%;
  color: #003bbe;
  background: white;
}
.top-recruit--flow .top-button:hover { transform: none; color: white; background: #002b8a; }
.top-recruit--flow .top-button:focus-visible { outline: 3px solid #ed1a3d; outline-offset: 5px; }
.top-recruit--flow .recruit-flow {
  position: absolute;
  inset: 0 0 0 auto;
  width: calc((100% - 64px) * .425);
  overflow: hidden;
}
.top-recruit--flow .recruit-flow__viewport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.top-recruit--flow .recruit-flow__track { min-width: 0; }
.top-recruit--flow .recruit-flow__track:first-child { margin-top: -60px; }
.top-recruit--flow .recruit-flow__track:last-child { margin-top: 110px; }
.top-recruit--flow .recruit-flow__group { display: grid; gap: 20px; }
.top-recruit--flow .recruit-flow figure { margin: 0; overflow: hidden; border-radius: 6px; }
.top-recruit--flow .recruit-flow img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.top-recruit--flow img[src*="0074"] { object-position: 65% center; }
.top-recruit--flow img[src*="0104"] { object-position: 38% center; }
.top-recruit--flow img[src*="0233"] { object-position: 58% center; }
.top-recruit--flow img[src*="0228"] { object-position: 50% center; }
.top-recruit--flow img[src*="0308"] { object-position: 62% center; }

@media (max-width: 900px) {
  .top-recruit--flow .top-recruit__grid {
    width: min(calc(100% - 44px), 640px);
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 150px 90px;
    min-height: 0;
  }
  .top-recruit--flow .top-heading { font-size: clamp(40px, 8vw, 48px); }
  .top-recruit--flow .top-copy { margin-block: 24px 28px; font-size: 16px; line-height: 1.95; }
  .top-recruit--flow .top-button { width: 100%; min-height: 90px; padding: 20px; }
  .top-recruit--flow .recruit-flow { position: relative; inset: auto; width: 100%; height: 470px; }
  .top-recruit--flow .recruit-flow__viewport { gap: 16px; }
  .top-recruit--flow .recruit-flow__group { gap: 16px; }
  .top-recruit--flow .recruit-flow__track:first-child { margin-top: -20px; }
  .top-recruit--flow .recruit-flow__track:last-child { margin-top: 45px; }
}
@media (max-width: 420px) {
  .top-recruit--flow .top-recruit__grid { padding-top: 140px; }
  .top-recruit--flow .recruit-flow { height: 430px; }
  .top-recruit--flow .top-button { font-size: 15px; }
}
@media (min-width: 901px) {
  .top-recruit--flow .recruit-flow__track:first-child img { aspect-ratio: 3 / 5; }
  .top-recruit--flow .recruit-flow__track:last-child img { aspect-ratio: 2 / 5; }
}

@media (min-width: 901px) {
  .top-recruit--flow .recruit-flow__track:first-child { margin-top: 85px; }
  .top-recruit--flow .recruit-flow__track:last-child { margin-top: 185px; }
  .top-recruit--flow .recruit-flow__track:first-child img { aspect-ratio: 3 / 4; }
  .top-recruit--flow .recruit-flow__track:last-child img { aspect-ratio: 3 / 5; }
}
.top-recruit--flow .top-heading em { font-style: normal; }
.top-recruit--flow .recruit-flow__group { padding-bottom: 20px; }
@media (max-width: 900px) {
  .top-recruit--flow .recruit-flow__group { padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .top-recruit--flow .recruit-flow__group[aria-hidden="true"] { display: none; }
}

/* White recruitment section: retain clear text and control contrast. */
.top-recruit--flow .top-copy { color: #183453; }
.top-recruit--flow .top-kicker::before { background: #003bbe; }

/* Let the recruitment photos meet the curved CONTACT edge. */
.top-page .morii-contact {
  margin-top: -64px;
  --recruit-contact-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 64' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 32C670 -48 1320 125 1904 1V64H0Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--recruit-contact-edge), linear-gradient(#000, #000);
  mask-image: var(--recruit-contact-edge), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 64px, 100% calc(100% - 63px);
  mask-size: 100% 64px, 100% calc(100% - 63px);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.top-page .morii-contact__wave { visibility: hidden; }
@media (max-width: 900px) {
  .top-recruit--flow .top-recruit__grid { padding-bottom: 0; }
}
@media (max-width: 767px) {
  .top-page .morii-contact {
    margin-top: -36px;
    -webkit-mask-size: 100% 36px, 100% calc(100% - 35px);
    mask-size: 100% 36px, 100% calc(100% - 35px);
  }
}
/* 採用導線の配色と間隔 */
.top-recruit--flow .top-button {border:1px solid #003bbe;}
.top-recruit--flow .top-button + .top-button {margin-top:20px;}
.top-recruit--flow button.top-button {color:#003bbe;background:linear-gradient(110deg,#fff 0%,#e0f3ff 100%);}
.top-recruit--flow button.top-button:hover {color:#fff;background:#003bbe;}
.top-recruit--flow a.top-button:hover {color:#fff;background:#ed1a3d;border-color:#ed1a3d;}
.top-recruit--flow .top-button:hover::after {color:#fff;background:#003bbe;}
.top-recruit--flow button.top-button:hover::after {color:#003bbe;background:#fff;}

.top-recruit--flow a.top-button:hover::after {color:#ed1a3d;background:#fff;}
