/* 職種別採用情報テンプレート専用CSS */

/* 共通スタイルの書き換え */
.ys-main__title {
}
@media screen and (max-width: 1039px) {
  .ys-main__title {
    font-size: 32px;
  }
}

.ys-recruit {
}

.ys-recruit__main {
}

.ys-recruit__table {
  width: 100%;
  border-collapse: separate;
  border-top: 1px solid var(--wp--preset--color--custom-gray-01);
  padding-inline: 0;
}

.ys-recruit__row {
  border-bottom: 1px solid var(--wp--preset--color--custom-gray-01);
  padding-block: var(--wp--preset--spacing--40);
  display: flex;
}
@media screen and (max-width: 1039px) {
  .ys-recruit__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wp--preset--spacing--40);
  }
}

.ys-recruit__table th,
.ys-recruit__table td {
  vertical-align: top;
}

.ys-recruit__table th {
  width: 180px;
  font-size: var(--wp--preset--font-size--large);
  color: var(--wp--preset--color--custom-black);
  font-weight: 500;
  text-align: left;
  line-height: 1.6;
}

.ys-recruit__table td {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--custom-black);
  font-weight: 500;
  line-height: 1.6;
}

/* 新入社員募集要項 */
body.page-id-74 {
  .career {
    display: none;
  }
}

/* キャリア向け募集要項 */
body.page-id-76 {
  .new {
    display: none;
  }
  .ys-recruit__row-title .new {
    display: none;
  }
}
/* 選考プロセス */
.ys-recruit__process {
  background-color: var(--wp--preset--color--custom-gray-01);
}
.ys-recruit__process-list {
  padding-block-start: var(--wp--preset--spacing--60);
}
.ys-process {
  position: relative;
}
.ys-process__item {
  position: relative;
  height: 252px;
  padding-inline-start: var(--wp--preset--spacing--80);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 12px solid var(--wp--preset--color--custom-bg-gray);

  &:last-child {
    height: auto;
  }
}
.ys-process__item:last-child {
  border-color: transparent;
}
.ys-process__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 16px;
  height: 38px;
  background-color: var(--wp--preset--color--custom-gray-01);
  z-index: 1;
}
.ys-process__item::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 11px;
  width: 16px;
  height: 16px;
  background: var(--wp--preset--color--custom-gray-02);
  border-radius: 50%;
  z-index: 2;
}
@media screen and (max-width: 1039px) {
  .ys-process__item {
    height: 332px;
    padding-inline-start: 22px;
    border-left: 10px solid var(--wp--preset--color--custom-bg-gray);
  }
  .ys-process__item:last-child {
    height: auto;
  }
  .ys-process__item::after {
    left: -13px;
  }
}

.ys-process__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--wp--preset--spacing--20);
}
.ys-process__title {
  font-size: var(--wp--preset--font-size--x-large);
  color: var(--wp--preset--color--custom-black);
  line-height: 1.6;
}
.ys-process__text {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--custom-black);
  line-height: 1.6;
}

.ys-recruit__button {
  > a {
    --ys-button-border-color: var(--wp--preset--color--custom-black);
    display: block;
    margin-inline: auto;
    width: fit-content;
  }
}


/* recruitment-information.php */
.ys-recruitment-info {

}

.ys-recruitment-info__main {
  .ys-title {
    margin-block-end: var(--wp--preset--spacing--40);
  }
 
  .ys-text {
    margin-block-end: var(--wp--preset--spacing--60);
  }
}

.ys-recruitment-info__list1 {
  display: flex;
  width: 100%;
  height: 240px;
  gap: 0;
}
@media screen and (max-width: 1039px) {
  .ys-recruitment-info__list1 {
    flex-direction: column;
    height: 327px;
  }
}


.ys-recruitment-info__item1 {
  width: 50%;
  flex: 1 1 auto;
  position: relative;

  background-image: var(--ys-recruitment-info-item1-bg-image);
  background-size: cover;
  background-position: center;
  
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0.1);
    opacity: 0;
    transition: opacity 0.1s ease-out;
    z-index: 1;
  }
  
  &:hover::before {
    opacity: 1;
  }

  &:nth-child(1) {
    --ys-recruitment-info-item1-bg-image: url(../images/recruitment-info__item1-image1.webp);
  }
  &:nth-child(2) {
    --ys-recruitment-info-item1-bg-image: url(../images/recruitment-info__item1-image2.webp);
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border: 1px solid var(--wp--preset--color--custom-white);
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    pointer-events: none;
    z-index: 3;
  }
}
@media screen and (max-width: 1039px) {
  .ys-recruitment-info__item1 {
    width: 100%;
  }
}

.ys-recruitment-info__item1-link {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ys-recruitment-info__item1-text {
  font-size: var(--wp--preset--font-size--x-large);
  color: var(--wp--preset--color--custom-white);
  position: relative;
  z-index: 2;
  text-align: center;
}


.ys-recruitment-info__voices {
  background-color: var(--wp--preset--color--custom-gray-01);
  .ys-title {
    margin-block-end: var(--wp--preset--spacing--40);
  }
}

.ys-main .ys-main__inner--full .ys-recruitment-info__voices-content {
  padding-inline-end: 0;
}

.ys-recruitment-info__voices-button {
  margin-block-start: var(--wp--preset--spacing--40);
  .ys-button {
    --ys-button-border-color: var(--wp--preset--color--custom-black);
  }
}

.ys-recruitment-info__entry {
  max-width: 760px;

  .ys-title {
    margin-block-end: var(--wp--preset--spacing--60);
  }
  
}

.ys-recruitment-info__entry-content {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--60);
  margin-block-end: var(--wp--preset--spacing--80);
}

.ys-recruitment-info__block {

}

.ys-recruitment-info__entry-title {
  font-size: var(--wp--preset--font-size--x-large);
  margin-block-end: var(--wp--preset--spacing--40);
}

.ys-recruitment-info__entry-button {
  .ys-button {
    margin-inline: auto;
    --ys-button-border-color: var(--wp--preset--color--custom-black);
  }  
}
@media screen and (max-width: 1039px) {
  .ys-recruitment-info__entry-button {
    margin-block-end: var(--wp--preset--spacing--60);
  }
}
