html {
  scroll-behavior: smooth;
}

body {
  counter-reset: number;
}

/* 背景写真 */
#Job_description {
  display: block;
  background-image: url("../assets/job_description/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
  padding: 20px;
}

.container {
  /* border: 2px solid blue; */
}

/*********** title ************/

/* Top画像 */
#Job_description .content.title {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  margin-top: 40px;
  background-color: white;
}

#Job_description .content.title::before,
#Job_description .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

#Job_description .wrapper .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

#Job_description .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

#Job_description h2 {
  font-size: 48px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

#Job_description h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media(max-width:997px) {
  #Job_description h2 {
    line-height: 48px;
    flex-direction: column;
  }

  #Job_description h2::after {
    line-height: normal;
  }
}

@media (max-width:576px) {
  #Job_description h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

#Job_description .form_text {
  font-size: 35px;
  text-align: left;
  /* border: 2px solid tomato; */
  margin: 3% 0 0;
  font-weight: unset;
}

.employ_type {
  /* border: 2px solid red; */
  justify-content: space-between;
  align-items: end;
  display: flex;
}

.btn_set {
  width: 15rem;
  display: inline-block;
}

.btn {
  width: 100%;
  display: inline-block;
  position: relative;
  border: 3px solid black;
  border-radius: 100px;
  padding: 5px 0px;
  font-weight: bold;
  background-color: var(--white);
}

.btn::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 0;
  border-bottom: solid 3px var(--black);
  border-right: solid 3px var(--black);
  position: absolute;
  top: 10px;
  margin-left: -20px;
  transform: rotate(45deg);
}

.main_employ,
.new_school {
  font-size: 32px;
  text-align: center;
  background: conic-gradient(from -45deg, #003768, #0055a1, #003768, #0055a1, #0055a1);
  background-size: 12px 12px;
  margin: 50px 0;
  padding: 15px 0;
  color: var(--white);
  position: relative;
}

.new_school {
  margin: 100px 0 50px;
}

/* グレーチングちゃんの表示 */
.main_employ:not(.main2)::before {
  display: block;
  position: absolute;
  content: "";
  background-image: url(../assets/job_description/hrs_gratingchan.png);
  background-size: contain;
  width: auto;
  height: 600px;
  aspect-ratio: 450/1280;
  top: -30px;
  right: 0;
  left: auto;
  /* 以下の書き方もできる */
  /* width: 100%;
  background-position: right; */
}

/* グレーチングの表示 */
.new_school::before {
  display: block;
  position: absolute;
  content: "";
  background-image: url(../assets/job_description/grating.png);
  background-size: contain;
  width: auto;
  height: 600px;
  aspect-ratio: 216/511;
  top: -100px;
  right: 0;
  left: auto;
  /*以下の書き方でも余白を消される。
  background-size: cover;
  background-position: center;
  aspect-ratio: 312/512;
 */
}

/* Inobookunの表示 */
.recruit_schedule::before {
  z-index: 4;
  display: block;
  position: absolute;
  content: "";
  background-image: url(../assets/job_description/hrs_inobookun_01.png);
  background-size: contain;
  width: auto;
  height: 330px;
  aspect-ratio: 517/1149;
  top: 200px;
  right: 0;
  left: auto;
}

/* タイトル前にトゲトゲを付ける */
.togetoge::before {
  display: inline-block;
  content: "";
  background-image: url(../assets/job_description/togetoge.png);
  background-size: contain;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.star_single::before {
  display: inline-block;
  content: "";
  background-image: url(../assets/job_description/icon_star_single.svg);
  background-size: contain;
  top: 4px;
  position: relative;
  width: 20px;
  height: 22px;
}

.job_type_text,
.job_type_new_text,
.main_job_text {
  /* border: 2px solid green; */
  width: 60%;
  font-size: 20px;
  line-height: 2;
}

.job_type_text_left,
.main_job_text_left {
  width: 40%;
  /* border: 2px solid red; */
}

.job_type_text_right,
.main_job_text_right {
  width: 100%;
  /* border: 2px solid blue; */
}

.job_type_text_left,
.job_type_text_right,
.main_job_text_left,
.main_job_text_right {
  border-bottom: 2px solid var(--black);
}

.job_type_text li,
.main_job_text li {
  display: flex;
  gap: 20px;
  font-size: 20px;
}

.job_type_text_right {
  display: flex;
  flex-direction: column;
}

.job_type,
.salary,
.up_salary,
.bonus,
.treatment_holiday,
.application_method,
.contact,
.welfare,
.job_type_new,
.main_job,
.location,
.salary_new,
.up_salary_new,
.bonus_new,
.time,
.holiday_vacation,
.welfare_new,
.selection,
.qualification,
.document {
  display: flex;
  text-align: left;
  font-weight: bold;
}

.job_type_title,
.salary_title,
.up_salary_title,
.bonus_title,
.treatment_holiday_title,
.application_method_title,
.contact_title,
.welfare_title,
.job_type_new_title,
.main_job_title,
.location_title,
.salary_new_title,
.up_salary_new_title,
.bonus_new_title,
.time_title,
.holiday_vacation_title,
.welfare_new_title,
.selection_title,
.qualification_title,
.document_title {
  font-size: 22px;
  width: 20%;
  /* border: 2px solid red; */
}

.salary_text,
.up_salary_text,
.bonus_text,
.treatment_holiday_text,
.application_method_text,
.contact_text,
.location_text,
.salary_new_text,
.up_salary_new_text,
.bonus_new_text,
.time_text,
.holiday_vacation_text,
.qualification_text,
.document_text {
  width: 80%;
  font-size: 20px;
  /* border: 2px solid blue; */
}

/* 部分ごとの下線 */
.line {
  border: 1px solid black;
  margin: 16px 0;
}

.line_height_adjust {
  margin-top: 40px;
}

.height_adjust {
  margin-top: 16px;
}

/****************** 
新規学校部分
*********************/
.job_type_new_yellow {
  margin-right: 10px;
  padding: 5px 10px;
  border: 2px solid var(--black);
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  line-height: 2;
}

.ico_hero.long {
  grid-column: 1/5;
}

.ico_hero::before {
  display: inline-block;
  content: "";
  background-image: url(../assets/job_description/ico_hero.svg);
  background-size: contain;
  top: 4px;
  position: relative;
  width: 20px;
  height: 22px;
}

.welfare_text_left,
.welfare_new_text_left,
.selection_text_left {
  width: 32%;
}

.welfare_text_right,
.welfare_new_text_right {
  width: 48%;
}

.selection_text_right {
  width: 48%;
}

.font_size_adjust {
  font-size: 20px;
}

.selection_title {
  display: flex;
  align-items: baseline;
}

#Job_description .entry_btn.title {
  width: 80%;
  padding: 10px;
  margin: 10px auto;
  text-align: center;
}

.entry_btn_text {
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  color: var(--black);
}

.entry_btn:hover {
  cursor: pointer;
}

/****************** 
採用スケジュール部分
*********************/
.recruit_schedule.pc {
  position: relative;
  z-index: 1;
  background-image: url("../assets/job_description/headquarters.png");
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
}

.recruit_schedule.sp {
  position: relative;
  z-index: 1;
  background-image: url("../assets/job_description/headquarters.png");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

.recruit_schedule::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.8;
  background-color: #005bac;
}

.recruit_schedule_title {
  text-align: center;
  position: relative;
  z-index: 3;
  padding-top: 50px;
  font-size: 30px;
  color: var(--white);
}

.recruit_schedule p {
  text-align: center;
  position: relative;
  z-index: 3;
  color: var(--white);
}

.recruit_schedule_steps {
  z-index: 3;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  min-width: 320px;
}

.steps {
  z-index: 3;
  position: relative;
  font-weight: bold;
  background-color: var(--white);
  border: 2px solid var(--black);
  font-size: 2vw;
  padding: 50px 16px 35px;
  margin: 0px 2px;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

.steps::before {
  content: "";
  z-index: -1;
  top: 0;
  left: 0;
  aspect-ratio: 82/109;
  background-size: contain;
  position: absolute;
  background-image: url(../assets/job_description/dot.png);
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fef100;
  mix-blend-mode: multiply;
}

.steps::after {
  z-index: 3;
  top: 0;
  left: 0;
  right: 5px;
  writing-mode: horizontal-tb;
  background-size: contain;
  transform: translateY(-50%);
  position: absolute;
  text-align: center;
  background-image: url(../assets/job_description/togetoge.png);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  counter-increment: number;
  white-space: pre-wrap;
  content: "STEP\A" counter(number);
}

.counter {
  display: flex;
}

.job_type_new_yellow,
.recruit_schedule_yellow {
  z-index: 3;
  background-color: #fef100;
}

.black_background {
  text-align: center;
  padding: 10px;
  background-color: #282828;
  color: var(--white);
}

#Job_description .apply_btn.title {
  z-index: 3;
  width: 56%;
  padding: 15px;
  margin: 40px auto;
  display: block;
}

.apply_btn_text {
  display: block;
  z-index: 3;
  cursor: pointer;
  font-weight: bold;
  font-size: 26px;
  text-align: center;
  color: var(--black);
}

.apply_btn:hover {
  cursor: pointer;
}

.arrow {
  display: block;
  float: right;
  margin: auto 0;
  border-color: transparent;
  border-style: solid;
  width: 0;
  height: 0;
  position: relative;
  line-height: 0;
}

.arrow-right {
  z-index: 3;
  border-width: 1em 0 1em 1em;
  border-top-color: transparent;
  border-left-color: var(--white);
}

@media screen and (min-width: 993px) and (max-width: 1050px) {

  /* グレーチングちゃんの表示 */
  .main_employ::before {
    height: 400px;
  }

  /* グレーチングの表示 */
  .new_school::before {
    top: -60px;
    height: 400px;
  }

  /* Inobookunの表示 */
  .recruit_schedule::before {
    /* aspect-ratio: 220/1210; */
    /* margin-top: 80px; */
  }
}

@media screen and (min-width: 993px) and (max-width: 1150px) {

  /* グレーチングちゃんの表示 */
  .main_employ:not(.main2)::before {
    height: 400px;
  }

  /* グレーチングの表示 */
  .new_school::before {
    top: -60px;
    height: 400px;
  }

  .main_job_text {
    width: 80%;
  }

  /* グレーチングの表示 */
  .new_school::before {
    top: -60px;
    height: 400px;
  }
}

.sp {
  display: none;
}

.pc {
  display: block;
}

@media screen and (max-width: 992px) {
  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .employ_type {
    display: block;
  }

  /* グレーチングちゃん、グレーチング、グレーチングの非表示 */
  .new_school::before,
  .main_employ:not(.main2)::before,
  .new_school::before {
    display: none;
  }

  .job_type_text,
  .job_type_new_text,
  .main_job_text {
    /* border: 2px solid green; */
    width: 100%;
  }

  .employ_type_btn {
    margin-top: 30px;
  }

  .btn_set {
    width: 20rem;
  }

  .btn {
    padding: 20px 0;
    font-size: 20px;
  }

  .btn::before {
    top: 40%;
  }

  .job_type,
  .age,
  .salary,
  .up_salary,
  .bonus,
  .treatment_holiday,
  .application_method,
  .contact,
  .welfare,
  .job_type_new,
  .main_job,
  .location,
  .salary_new,
  .up_salary_new,
  .bonus_new,
  .time,
  .holiday_vacation,
  .welfare_new,
  .selection,
  .qualification,
  .document {
    flex-wrap: wrap;
  }

  .job_type_title,
  .age_title,
  .age_text,
  .salary_title,
  .salary_text,
  .up_salary_title,
  .up_salary_text,
  .treatment_holiday_title,
  .treatment_holiday_text,
  .bonus_title,
  .bonus_text,
  .application_method_title,
  .application_method_text,
  .contact_title,
  .contact_text,
  .welfare_title,
  .welfare_text_left,
  .welfare_text_right,
  .job_type_new_title,
  .job_type_new_text,
  .main_job_title,
  .location_title,
  .location_text,
  .salary_new_title,
  .salary_new_text,
  .up_salary_new_title,
  .up_salary_new_text,
  .bonus_new_title,
  .bonus_new_text,
  .time_title,
  .time_text,
  .holiday_vacation_title,
  .holiday_vacation_text,
  .welfare_new_title,
  .welfare_new_text_left,
  .welfare_new_text_right,
  .selection_title,
  .selection_text_left,
  .selection_text_right,
  .qualification_title,
  .qualification_text,
  .document_title,
  .document_text {
    width: 100%;
  }

  .age_text,
  .salary_text,
  .treatment_holiday_text,
  .up_salary_text,
  .bonus_text,
  .application_method_text,
  .contact_text,
  .welfare_text_left,
  .welfare_text_right,
  .job_type_new_text,
  .location_text,
  .salary_new_text,
  .up_salary_new_text,
  .bonus_new_text,
  .time_text,
  .holiday_vacation_text,
  .welfare_new_text_left,
  .welfare_new_text_right,
  .selection_text_left,
  .qualification_text,
  .document_text {
    margin: 2% 0 2% 3%;
  }

  .selection_text_right {
    margin: 2% auto;
  }

  .main_job_text {
    width: 100%;
    margin: 2% 0 2% 3%;
  }

  .job_type_new_yellow {
    text-align: center;
    width: 9rem;
    display: inline-block;
  }

  .welfare_text_left,
  .welfare_text_right,
  .selection_text_left {
    font-size: 20px;
  }

  #Job_description .entry_btn.title {
    width: 93%;
    display: block;
  }

  .steps {
    /* padding: 30px 15px 15px; */
    font-size: 3vw;
  }

  .steps::after {
    right: 5px;
  }

  #Job_description .apply_btn.title {
    z-index: 3;
    width: 56%;
    padding: 15px;
    margin: 40px auto;
  }

  .recruit_schedule {
    padding-bottom: 20px;
    margin: 60px 0;
    width: 100vw;
    left: 50%;
    /* Center the element horizontally */
    transform: translateX(-50%);
    /* Offset the element to the left by half its width to center it */
  }

  .recruit_schedule::before {
    height: 335px;
    right: 50px;
    top: 310px;
  }

  .job_type_new_text {
    width: max-content;
    margin-left: auto;
  }
}

@media screen and (max-width: 768px) {
  .btn {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .steps {
    font-size: 3vw;
  }

  .steps::after {
    right: 0;
  }

  .recruit_schedule::before {
    top: 341px;
    right: 0px;
    height: 245px;
  }

  .apply_btn_text {
    font-size: 18px;
  }

  .btn_set {
    width: 12rem;
  }

  .btn::before {
    position: unset;
    margin-left: unset;
    margin-right: 0.5rem;
  }

  .job_type_new_yellow {
    width: 7rem;
  }
}

@media screen and (max-width: 576px) {
  .steps {
    font-size: 2.4vw;
  }

  .steps::after {
    right: -1px;
    width: 50px;
    height: 50px;
    font-size: 10px;
  }

  .recruit_schedule::before {
    height: 200px;
    right: 16px;
  }

  .arrow-right {
    border-width: 0.5em 0 0.5em 0.5em;
  }

  .job_type_new_yellow {
    width: 5.9rem;
    font-size: 14px;
  }
}

@media screen and (max-width: 499px) {
  .steps {
    font-size: 75%;
    padding: 50px 2% 35px;
  }

  .steps::after {
    right: 0;
    width: 30px;
    height: 30px;
    font-size: 5px;
  }

  .apply_btn_text {
    font-size: 13px;
  }

  .age_text,
  .salary_text,
  .up_salary_text,
  .bonus_text,
  .treatment_holiday_text,
  .application_method_text,
  .contact_text,
  .main_job_text,
  .location_text,
  .salary_new_text,
  .up_salary_new_text,
  .bonus_new_text,
  .time_text,
  .holiday_vacation_text,
  .qualification_text,
  .document_text {
    font-size: 12px;
  }

  .job_type_title,
  .salary_title,
  .salary_text,
  .up_salary_title,
  .up_salary_text,
  .treatment_holiday_title,
  .treatment_holiday_text,
  .bonus_title,
  .bonus_text,
  .application_method_title,
  .application_method_text,
  .contact_title,
  .contact_text,
  .welfare_title,
  .welfare_text_left,
  .welfare_text_right,
  .job_type_new_title,
  .main_job_title,
  .location_title,
  .location_text,
  .salary_new_title,
  .salary_new_text,
  .up_salary_new_title,
  .up_salary_new_text,
  .bonus_new_title,
  .bonus_new_text,
  .time_title,
  .time_text,
  .holiday_vacation_title,
  .holiday_vacation_text,
  .welfare_new_title,
  .welfare_new_text_left,
  .welfare_new_text_right,
  .selection_title,
  .selection_text_left,
  .selection_text_right,
  .qualification_title,
  .qualification_text,
  .document_title,
  .document_text,
  .font_size_adjust {
    font-size: 15px;
    width: 100%;
  }

  .welfare_text_left,
  .welfare_text_right,
  .selection_text_left {
    font-size: 12px;
  }

  .entry_btn_text {
    font-size: 13px;
  }

  .btn_set {
    width: 12rem;
    margin-bottom: 10px;
  }

  .btn {
    font-size: 12px;
  }

  .btn::before {
    top: 30%;
    width: 10px;
    height: 10px;
  }

  #Job_description .form_text {
    font-size: 20px;
  }

  .recruit_schedule::before {
    right: 0;
  }

  .main_employ,
  .new_school {
    font-size: 22px;
  }

  .job_type_new_yellow {
    width: max-content;
    font-size: 9px;
  }

  .holiday_vacation_text {
    margin: 0;
  }

  .job_type_text li,
  .main_job_text li {
    font-size: 12px;
  }

  .main_job_text li {
    gap: 1px;
  }
}