.as-recruit {
  position: relative;
  overflow: hidden;
  padding: 40px 0 80px;
  background: #fff;
  color: #0b1220;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  z-index: 2;
}

.as-recruit__inner {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  min-height: 920px;
}

.as-recruit__rail {
  position: absolute;
  left: 200px;
  top: -10px;
  width: 150px;
  height: calc(100% + 120px);
  background: rgba(11, 18, 32, 0.04);
  overflow: hidden;
  z-index: 0;
}

.as-recruit__railFill {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.05);
  transform: scaleY(0);
  transform-origin: top;
}

.as-recruit__railWord {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 102px;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  color: rgba(11, 18, 32, 0.08);
  user-select: none;
  pointer-events: none;
  transform: translateY(-140px);
}

.as-recruit__arrows {
  position: absolute;
  left: calc(200px + 75px);
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.as-recruit__arrows span {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  opacity: 0.18;
  transform: rotate(45deg);
  transition: opacity 0.3s;
}

.as-recruit__arrows span:nth-child(1) {
  border-color: #004ea2;
  opacity: 0.55;
  animation: arrowGlow 1.8s infinite ease-in-out;
}

.as-recruit__arrows span:nth-child(2) {
  border-color: #532e8b;
  opacity: 0.7;
  animation: arrowGlow 1.8s infinite ease-in-out;
  animation-delay: 0.25s;
}

.as-recruit__arrows span:nth-child(3) {
  border-color: #a60d73;
  opacity: 1;
  animation: arrowGlow 1.8s infinite ease-in-out;
  animation-delay: 0.5s;
}

@keyframes arrowGlow {
  0% {
    opacity: 0.18;
  }

  25% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.45;
  }

  100% {
    opacity: 0.18;
  }
}

.as-recruit__head {
  width: fit-content;
  position: relative;
  z-index: 3;
  margin: 0 0 80px;
  padding-left: 12px;
}

.as-recruit__sub {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: #004ea2;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.as-recruit__sub::before {
  content: "";
  width: 54px;
  height: 1px;
  background: #004ea2;
}

.as-recruit__title {
  margin: 0;
  font-size: 102px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-family: "Noto Serif JP", Georgia, serif;
}

.as-recruit__titleMain {
  font-size: 102px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
}

.as-recruit__titleMain > span {
  color: #004ea2;
}

.as-recruit__content {
  display: grid;
  grid-template-columns: 1fr 580px;
  grid-template-areas:
    "lead visual"
    "body visual";
  column-gap: 80px;
  row-gap: 0;
  align-items: start;
  padding-left: 150px;
}

.as-recruit__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding-top: 18px;
  margin-top: -20px;
  font-family: "Noto Sans";
}

.as-recruit__lead {
  grid-area: lead;
  margin: 0 auto 56px;
  width: 600px;
  font-size: 45px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: center;
  justify-self: center;
}

.as-recruit__text {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 2.05;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.as-recruit__visual {
  grid-area: visual;
  position: relative;
  min-height: 560px;
}

.as-recruit__more {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
  min-width: 240px;
  padding-bottom: 14px;
  border-bottom: 1px solid #004ea2;
  color: #004ea2;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.as-recruit__moreText {
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.as-recruit__moreArrow {
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.as-recruit__more:hover .as-recruit__moreArrow {
  transform: translate(8px, -2px);
}

.as-recruit__photo {
  position: absolute;
}

.as-recruit__photo--main {
  left: 0;
  bottom: 0;
  width: 300px;
}

.as-recruit__photo--sub {
  right: 0;
  top: -120px;
  width: 260px;
}

.as-recruit__photoFrame {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.as-recruit__photo--main .as-recruit__photoFrame {
  aspect-ratio: 1 / 1.28;
}

.as-recruit__photo--sub .as-recruit__photoFrame {
  aspect-ratio: 1 / 1.32;
}

.as-recruit__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.as-recruit__photo img.is-active {
  opacity: 1;
}

.as-recruit__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.as-recruit__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 78, 162, 0.25);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.as-recruit__dots button.is-active {
  background: #004ea2;
  transform: scale(1.15);
}

.as-recruit__head,
.as-recruit__content,
.as-recruit__more {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.as-recruit.is-in .as-recruit__head,
.as-recruit.is-in .as-recruit__content,
.as-recruit.is-in .as-recruit__more {
  opacity: 1;
  transform: translateY(0);
}

.as-recruit__content {
  transition-delay: 0.2s;
}

.as-recruit__more {
  transition-delay: 0.4s;
}

@media (max-width: 767px) {
  .as-recruit {
    padding: 0 0 40px;
    background: #fff;
    overflow: hidden;
  }

  .as-recruit__inner {
    width: calc(100% - 28px);
    margin: 20px auto 0;
    position: relative;
    z-index: 2;
    min-height: auto;
  }

  .as-recruit__rail {
    position: absolute;
    left: 14px;
    top: 0;
    width: 62px;
    height: 400px;
    background: rgba(11, 18, 32, 0.05);
    overflow: hidden;
    z-index: 0;
  }

  .as-recruit__railFill {
    background: rgba(11, 18, 32, 0.04);
    transform: none;
  }

  .as-recruit__railWord {
    position: absolute;
    inset: auto;
    top: 39px;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    transform: none;
  }

  .as-recruit__head {
    position: relative;
    z-index: 3;
    margin: 25px 0 26px;
    padding-left: 16px;
    width: auto;
  }

  .as-recruit__sub {
    display: flex;
    justify-content: flex-start;
    width: fit-content;
    margin: 0 auto 5px;
    padding-right: 20px;
    gap: 10px;
    color: #004ea2;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .as-recruit__sub::before {
    content: "";
    width: 34px;
    height: 1px;
    background: #004ea2;
    flex: 0 0 34px;
  }

  .as-recruit__title,
  .as-recruit__titleMain {
    margin: 0;
    align-items: flex-start;
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: 0.1em;
    font-weight: 500;
  }

  .as-recruit__content {
    display: block;
    padding-left: 88px;
    position: relative;
    z-index: 2;
  }

  .as-recruit__lead {
    display: block;
    width: auto;
    max-width: none;
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: left;
    justify-self: auto;
    align-self: auto;
  }

  .as-recruit__visual {
    position: relative;
    display: block;
    width: calc(100% + 40px);
    height: 280px;
    min-height: 0;
    margin: 0 0 30px;
    margin-left: -10px;
  }

  .as-recruit__photo--main {
    left: 0;
    top: 70px;
    width: 45%;
    max-width: 220px;
  }

  .as-recruit__photo--sub {
    right: 25px;
    top: 0;
    width: 41%;
    max-width: 180px;
  }

  .as-recruit__body {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: -30px 0 0;
    padding: 0;
  }

  .as-recruit__text {
    margin: 0;
    padding: 0;
    max-width: none;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  .as-recruit__more {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 24px 20px 0 auto;
    min-width: 0;
    width: fit-content;
    max-width: none;
    white-space: nowrap;
    box-sizing: border-box;
    padding-bottom: 10px;
    border-bottom: 1px solid #004ea2;
    color: #004ea2;
    text-decoration: none;
  }

  .as-recruit__moreText {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .as-recruit__moreArrow {
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px);
  }

  .as-recruit__arrows {
    position: absolute;
    left: 45px;
    top: 80%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
  }

  .as-recruit__arrows span {
    width: 16px;
    height: 16px;
  }

  .as-recruit__content,
  .as-recruit__body,
  .as-recruit__more,
  .as-recruit__moreText {
    font-family:
      "Noto Sans JP",
      "Noto Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
    font-style: normal;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .as-recruit {
    padding: 10px 0 48px;
    background: #fff;
  }

  .as-recruit__inner {
    width: calc(100% - 40px);
    margin: 0 auto;
    margin-top: 44px;
    position: relative;
    z-index: 2;
    min-height: auto;
  }

  /* ===== 帯 ===== */
  .as-recruit__rail {
    left: 16px;
    top: 0;
    width: 72px;
    height: 100%;
    background: rgba(11, 18, 32, 0.05);
    overflow: hidden;
  }

  .as-recruit__railFill {
    background: rgba(11, 18, 32, 0.04);
    transform: none;
  }

  .as-recruit__railWord {
    position: absolute;
    inset: auto;
    top: 74px;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.02em;
    color: rgba(11, 18, 32, 0.1);
    transform: none;
  }

  /* ===== タイトル ===== */
  .as-recruit__head {
    position: relative;
    z-index: 3;
    margin: 0 0 22px;
    padding-left: 15px;
    width: auto;
  }

  .as-recruit__sub {
    display: flex;
    justify-content: flex-start;
    width: auto;
    margin: 0 0 8px;
    padding-left: 80px;
    gap: 12px;
    color: #004ea2;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .as-recruit__sub::before {
    content: "";
    width: 38px;
    height: 1px;
    background: #004ea2;
    flex: 0 0 38px;
  }

  .as-recruit__title,
  .as-recruit__titleMain {
    font-size: 46px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    transform: none;
    text-align: left;
    align-items: flex-start;
  }

  .as-recruit__content {
    display: block;
    padding-left: 92px;
    position: relative;
    z-index: 2;
  }

  .as-recruit__lead {
    display: block;
    width: auto;
    max-width: none;
    margin: 60px 0 24px;
    font-size: 32px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: left;
    justify-self: auto;
    align-self: auto;
  }

  /* ===== 写真 ===== */
  .as-recruit__visual {
    position: relative;
    display: block;
    width: calc(100% + 20px);
    height: 430px;
    min-height: 0;
    margin: -80px 0 28px;
    margin-left: -6px;
  }

  .as-recruit__photo {
    position: absolute;
  }

  .as-recruit__photo--main {
    left: 0;
    top: 120px;
    width: 48%;
    max-width: 380px;
  }

  .as-recruit__photo--sub {
    right: 80px; /* ← ここがポイント（寄せる） */
    top: 0;
    width: 46%;
    max-width: 360px;
  }

  .as-recruit__photoFrame {
    position: relative;
    overflow: hidden;
    background: #ddd;
  }

  .as-recruit__photo--main .as-recruit__photoFrame {
    aspect-ratio: 1 / 1.28;
  }

  .as-recruit__photo--sub .as-recruit__photoFrame {
    aspect-ratio: 1 / 1.32;
  }

  .as-recruit__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
  }

  .as-recruit__photo img.is-active {
    opacity: 1;
  }

  /* ===== 本文 ===== */
  .as-recruit__body {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 250px 0 0;
    padding: 0;
  }

  .as-recruit__text {
    margin: 0;
    padding: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 500;
    letter-spacing: 0.03em;
  }

  /* ===== READ MORE ===== */
  .as-recruit__more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 24px 104px 0 0px;
    min-width: 0;
    width: fit-content;
    padding-bottom: 6px;
    border-bottom: 1px solid #004ea2;
  }

  .as-recruit__moreText {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .as-recruit__moreArrow {
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px);
  }

  /* ===== arrows ===== */
  .as-recruit__arrows {
    position: absolute;
    left: 52px;
    top: auto;
    bottom: 90px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 10;
  }

  .as-recruit__arrows span {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    opacity: 0.18;
    transform: rotate(45deg);
  }

  .as-recruit__arrows span:nth-child(1) {
    border-color: #004ea2;
    opacity: 0.55;
    animation: arrowGlow 1.8s infinite ease-in-out;
  }

  .as-recruit__arrows span:nth-child(2) {
    border-color: #532e8b;
    opacity: 0.7;
    animation: arrowGlow 1.8s infinite ease-in-out;
    animation-delay: 0.25s;
  }

  .as-recruit__arrows span:nth-child(3) {
    border-color: #a60d73;
    opacity: 1;
    animation: arrowGlow 1.8s infinite ease-in-out;
    animation-delay: 0.5s;
  }
}

@media (min-width: 1280px) and (max-width: 1580px) {
  .as-recruit {
    padding: 40px 0 80px;
    background: #fff;
  }

  .as-recruit__inner {
    width: calc(100% - 40px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 780px;
  }

  /* =========================
     帯
  ========================= */
  .as-recruit__rail {
    left: 130px;
    top: 0;
    width: 120px;
    height: calc(100% + 20px);
    background: rgba(11, 18, 32, 0.04);
    overflow: hidden;
  }

  .as-recruit__railFill {
    background: rgba(11, 18, 32, 0.05);
  }

  .as-recruit__railWord {
    font-size: 84px;
    line-height: 1.05;
    letter-spacing: 0.06em;
    transform: translateY(-80px);
  }

  .as-recruit__head {
    margin: 8px 0 48px;
    padding-left: 132px;
    width: auto;
    position: relative;
    z-index: 3;
  }

  .as-recruit__sub {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    color: #004ea2;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding-left: 150px;
  }

  .as-recruit__sub::before {
    content: "";
    width: 54px;
    height: 1px;
    background: #004ea2;
  }

  .as-recruit__title,
  .as-recruit__titleMain {
    font-size: 84px;
    line-height: 1;
    letter-spacing: 0.14em;
    transform: none;
  }

  .as-recruit__content {
    display: grid;
    grid-template-columns: minmax(380px, 560px) minmax(360px, 1fr);
    gap: 32px;
    align-items: center;
    margin-left: 260px;
    padding-left: 0;
    width: calc(100% - 260px);
    max-width: 1180px;
    box-sizing: border-box;
  }

  .as-recruit__content {
    display: grid;
    grid-template-columns: minmax(340px, 500px) minmax(360px, 1fr);
    gap: 5px;

    align-items: center;

    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: 1180px;
    box-sizing: border-box;
  }

  .as-recruit__lead {
    margin: 0;
    font-size: 45px;
    line-height: 1.7;
    font-weight: 600;
    letter-spacing: 0.04em;

    align-self: center;
    justify-self: center;

    text-align: center;
    max-width: 460px;
  }

  .as-recruit__body {
    grid-area: body;
    padding-top: 20px;
    margin-top: 0;
    max-width: 600px;
    min-width: 0;
  }

  .as-recruit__text {
    margin: 0;
    font-size: 20px;
    max-width: 100%;
    line-height: 2;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .as-recruit__lead,
  .as-recruit__body,
  .as-recruit__text {
    max-width: 560px;
  }

  .as-recruit__visual {
    grid-area: visual;
    position: relative;
    width: 500px;
    min-width: 0;
    min-height: 500px;
    padding-left: 0;
    margin-top: 60px;
    max-width: 520px;
  }
  .as-recruit__photo--main {
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 320px;
  }
  .as-recruit__photo--sub {
    right: 50px;
    top: 0;
    width: 200px;
    max-width: 240px;
  }

  .as-recruit__more {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    margin-right: 20px;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #004ea2;
    color: #004ea2;
    text-decoration: none;
    white-space: nowrap;
  }

  .as-recruit__moreText {
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .as-recruit__moreArrow {
    font-size: 30px;
    line-height: 1;
    transform: translate(0, -2px);
  }

  .as-recruit__arrows {
    left: 183px;
    top: auto;
    bottom: 24px;
    transform: none;
    gap: 16px;
  }

  .as-recruit__arrows span {
    width: 18px;
    height: 18px;
  }
}
