/* トップセクション */
.top {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 96px;

  p {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
  }
}

.top__hero {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 192px);
  background: url("../images/recruit-mid.png") center/cover no-repeat;

  h2 {
    font-size: 48px;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;

  h1 {
    font-size: 64px;
  }

  p {
    font-size: 24px;
    line-height: 1;
  }
}

.top__positions {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  gap: 16px;

  a {
    width: 18rem;
    padding: 1.5rem;
    font-size: min(1.5rem, 2.1vw);
    text-align: center;
    border: 1px solid #000;
  }
}

@media (width <= 768px) {
  .top {
    gap: 48px;
    padding: 0;

    > p {
      padding: 0 32px;
      text-align: left;
    }
  }

  .top__hero {
    min-height: 100vh;

    h2 {
      font-size: 32px;
    }
  }

  .hero__title {
    h1 {
      font-size: 48px;
    }

    p {
      font-size: 24px;
    }
  }

  .top__positions {
    flex-direction: column;
    gap: 16px;
    padding: 0 32px;

    a {
      width: 100%;
      padding: 16px;
      font-size: 1.2rem;
    }
  }
}

/* 役職セクション */
.position {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
  width: 60%;
  padding: 96px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.position__title {
  display: flex;
  flex-direction: column;
  gap: 32px;

  h3 {
    font-size: 2rem;
  }
}

.position__requirements {
  position: relative;

  > span {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    aspect-ratio: 1;
    padding: 32px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #bacad3;
    border: 4px solid var(--color-bg);
    border-radius: 9999px;
    transform: translate(50%, -50%);
  }
}

.requirements__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.requirements__item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 48px;
  font-size: 1.2rem;
  background-color: #bacad3;

  p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  &::before {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    content: "";
    background: url("../images/recruit/checkmark.png") center/cover no-repeat;
  }
}

.position__view-more {
  width: 80%;
  padding: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
  border: 1px solid #000;
}

@media (width <= 768px) {
  .position {
    gap: 32px;
    width: 100%;
    padding: 48px 32px;
  }

  .position__requirements {
    display: flex;
    flex-direction: column;
    width: 100%;

    > span {
      position: static;
      aspect-ratio: unset;
      padding: 16px 0;
      color: #bacad3;
      background-color: transparent;
      transform: none;
    }
  }

  .requirements__list {
    gap: 16px;
  }

  .requirements__item {
    padding: 16px;

    &::before {
      width: 24px;
      height: 24px;
    }

    p {
      font-size: min(1.1rem, 4vw);
      color: #fff;
    }
  }

  .position__view-more {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }
}

/* 選考プロセスセクション */
.screening {
  display: flex;
  flex-direction: column;
  gap: 96px;
  align-items: center;
  width: 80%;
  padding: 96px;
  margin: 0 auto;
}

.screening__process {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 80%;
}

.process__item {
  display: flex;
  gap: 48px;
  align-items: center;

  span {
    flex-shrink: 0;
    width: 5rem;
    aspect-ratio: 1;
    padding: 16px;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    background-color: #bacad3;
    border-radius: 9999px;
  }

  p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background-color: #bacad3;
    padding: 16px;
  }

  & + li {
    position: relative;

    &::before {
      position: absolute;
      top: -48px;
      left: 2.5rem;
      display: block;
      width: 4px;
      height: 32px;
      content: "";
      border-left: dotted 4px #bacad3;
    }
  }
}

.screening__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  padding: 48px;
  background-color: #bacad3;

  h3 {
    font-size: 2.5rem;
    color: #fff;
  }

  p {
    font-size: 1.2rem;
    line-height: 1;
  }
}

.screening__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 80%;

  a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 6rem;
    padding-left: 48px;
    font-size: 1.3rem;
    vertical-align: middle;
    border: 1px solid #000;
  }
}

.screening__links--google-form::after {
  display: block;
  font-size: 0.8rem;
  content: "Google Form";
}

@media (width <= 768px) {
  .screening {
    gap: 32px;
    width: 100%;
    padding: 48px 0;
  }

  .screening__title {
    padding: 24px;

    h3 {
      font-size: 2rem;
    }

    p {
      font-size: 1rem;
    }
  }

  .screening__process {
    gap: 32px;
    width: 100%;
    padding: 32px;
  }

  .process__item {
    gap: 24px;

    span {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 3rem;
      height: 3rem;
      font-size: 1.2rem;
    }

    & + li {
      &::before {
        top: -24px;
        left: 1.5rem;
        height: 16px;
      }
    }
  }

  .screening__links {
    gap: 16px;
    width: 100%;
    padding: 0 32px;

    a {
      height: 4rem;
      padding: 16px;
      font-size: 1rem;
    }
  }

  .screening__links--google-form::after {
    content: "";
  }
}
