/*=================================
RECRUIT下層ページ エンジニア採用ページ
経験者・未経験いずれのCSSもここに記載
=================================*/
#recruit .section-colorbg.pink {
  background-color: #ff88ae;
}
#recruit.engineer .section-colorbg.green {
  background-color: #38a85e;
}
#recruit.engineer .section-colorbg.green .slide_text {
  color: #7adf95;
}
#recruit.engineer .section-colorbg.blue .slide_text {
  color: #7ab4df;
}
#recruit.engineer .section-colorbg.pink .slide_text {
  color: #ffbad0;
}

/*=================================
YES/NO診断 あなたに向いているのは？
=================================*/
#yes-no .parallax-box.star1 {
  top: min(10vw, 25px);
  left: 0;
  z-index: 5;
}
#yes-no .parallax-box.star2 {
  bottom: min(10vw, 25px);
  right: 0;
  z-index: 20;
}
@media (min-width: 2501px) {
  #yes-no .parallax-box.star2 {
    right: max(0px, var(--pc-max-width));
  }
  #yes-no .parallax-box.star1 {
    left: max(0px, var(--pc-max-width));
  }
}
#yes-no .section__inner {
  max-width: 600px;
  padding: 0 min(5vw, 15px);
  margin: min(10vw, 30px) auto;
  z-index: 20;
}
#yes-no .section__inner h2 {
  position: relative;
  /* color: #fff; */
  top: 0;
  left: 0;
  margin-bottom: min(10vw, 25px);
}
#yes-no .section__inner h2 .yes {
  color: #a50000;
}
#yes-no .section__inner h2 .no {
  color: #00319b;
}
#yes-no .section__inner h2 .sub-title {
  display: block;
  text-align: right;
  padding: 0;
}
/* #yes-no .slide_text {
  color: #ffbad0;
} */
@media (min-width: 750px) {
  #yes-no .parallax-box.star1 {
    display: none;
  }
  #yes-no .parallax-box.star2 {
    bottom: min(20vw, 150px);
    right: min(10vw, 70px);
    z-index: 10;
  }
  #yes-no .section__inner {
    max-width: calc(750px + min(10vw, 30px));
  }
}
@media (min-width: 2501px) {
  #yes-no .parallax-box.star2 {
    right: min(
      calc(10vw + var(--pc-max-width)),
      calc(70px + var(--pc-max-width))
    );
  }
}
/* -------------------------------
YES/NO診断関連CSSここから
------------------------------- */
.yes-no-container {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}
#start-box,
.question-card {
  height: 300px;
  font-weight: bold;
  border: 1px solid #fff;
  border-radius: 20px;
  background-color: #e03574;
  padding: 10px;
  margin-bottom: 20px;
}
#start-box #start-button {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 30px;
  font-weight: bold;
  border-radius: 13px;
  border: 4px solid #fff;
  background-color: #e03574;
}
#question-box {
  position: relative;
  height: 300px;
}
/* -----------------------------
YES/NO診断関連CSS
 上下に動くアニメーション
----------------------------- */
.fluffy {
  animation: fluffy 2.5s infinite; /*繰り返し*/
}
.fluffy.answer {
  animation-delay: 0.5s;
}
@keyframes fluffy {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (min-width: 750px) {
  @keyframes fluffy {
    50% {
      transform: translateY(-15px);
    }
  }
}
/* -----------------------------
 上下アニメーションここまで
----------------------------- */
.question-card {
  position: absolute;
  width: 100%;
  border: 1px solid #e03574;
  background-color: #fff;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.question-card:first-child {
  z-index: 1;
}
/* -----------------------------
YES/NO診断関連CSS
 スライドアウトアニメーション
----------------------------- */
.question-card.slide-out-right {
  transform: translateX(150%) rotate(20deg) !important;
  opacity: 0 !important;
}
.question-card.slide-out-left {
  transform: translateX(-150%) rotate(-20deg) !important;
  opacity: 0 !important;
}
.question-card.slide-hidden {
  transform: translateX(0);
  transition: none;
  opacity: 0;
  z-index: 0;
}
.question-card.behind {
  transform: translateX(0);
  opacity: 1;
  transition: none; /* 完全に無効化 */
  z-index: 0;
}
/* -----------------------------
 スライドアニメーションここまで
----------------------------- */

.question-card.slide-out-right,
.question-card.slide-out-right .question-card-inner,
.question-card.slide-out-right .question-card-inner p {
  color: #e03574;
  background-color: #e03574;
}
.question-card.slide-out-left,
.question-card.slide-out-left .question-card-inner,
.question-card.slide-out-left .question-card-inner p {
  color: #00319b;
  background-color: #00319b;
  border-color: #00319b;
}
.question-card.slide-out-right .question-card-inner img,
.question-card.slide-out-left .question-card-inner img {
  display: none;
}
.question-card.hidden {
  opacity: 0;
}

.question-card .question-card-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #e03574;
  border-radius: 15px;
  border: 5px solid #e03574;
  background-color: #fff;
  padding: 20px 10px;
  margin: 0 auto;
}
.question-card .question-img {
  width: 25vw;
  max-width: 100px;
  aspect-ratio: 1;
  object-fit: cover;
}
.question-card .question {
  padding-bottom: 15vw;
}
.question-card.fight .question,
.question-card.answer .question {
  padding-bottom: 0;
}
.question-card.fight .question-img,
.question-card.answer .question-img {
  display: none;
}
@media (min-width: 750px) {
  .question-card .question {
    padding-bottom: 0;
  }
}
#yes-no-button-box {
  position: absolute;
  bottom: 5px;
  width: 100%;
  z-index: 5;
}
#yes-no-button-box #yes-button,
#yes-no-button-box #no-button {
  position: absolute;
  bottom: 25px;
  width: 20vw;
  height: 20vw;
  max-width: 80px;
  max-height: 80px;
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  font-size: min(5vw, 20px);
  font-weight: bold;
  border: none;
  border-radius: 100%;
}
#yes-no-button-box #yes-button {
  right: 25px;
  background-color: #a50000;
}
#yes-no-button-box #no-button {
  left: 25px;
  background-color: #00319b;
}
#loading-box {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  border: 1px solid #fff;
  border-radius: 20px;
  background-color: #4f77b7;
  padding: 10px;
  margin-bottom: 20px;
}
@media (min-width: 750px) {
  .question-card.answer p.invisible {
    font-size: 20px;
  }
  .yes-no-title h3 {
    font-size: 45px;
  }
  #yes-no-button-box {
    bottom: 0;
  }
  #yes-no-button-box #yes-button {
    right: 100px;
    bottom: 70px;
  }
  #yes-no-button-box #no-button {
    left: 100px;
    bottom: 70px;
  }
}
/* -----------------------------
YES/NO診断関連CSS
診断中・結果表示アニメーション
----------------------------- */
.shrink-out {
  animation: shrinkOut 0.7s forwards; /*最後の状態を維持*/
}
@keyframes shrinkOut {
  to {
    transform: scale(0);
  }
}
.grow-in {
  animation: growIn 0.7s forwards;
}
@keyframes growIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
/* -----------------------------
診断中・結果表示アニメーションここまで
----------------------------- */
.yes-no-container .invisible,
#loading-box.invisible {
  display: none;
}
.question-card.answer p.invisible,
#result-box.fight #answer0.invisible,
#result-box.answer1 #answer1.invisible,
#result-box.answer2 #answer2.invisible,
#result-box.answer3 #answer3.invisible {
  display: block;
}
.question-card.answer p.none {
  font-size: 14px;
  line-height: 1.3;
}
.question-card.answer .question {
  color: #fff;
  font-size: min(5vw, 25px);
  font-weight: bold;
  background-color: #e03574;
}
#result-box {
  position: relative;
}
#result-box.fight .result-box-inner,
#result-box.answer1 .result-box-inner,
#result-box.answer2 .result-box-inner,
#result-box.answer3 .result-box-inner {
  position: relative;
  height: fit-content;
  font-weight: bold;
  border: 1px solid #e03574;
  border-radius: 20px;
  background-color: #fff;
  padding: min(8vw, 40px) min(5vw, 15px) min(4vw, 20px);
  margin: min(5vw, 25px) 0 100px;
}
#result-box.fight .result-box-inner {
  padding-top: 3vw;
}
#result-box h4 {
  width: 100%;
  text-align: center;
  font-size: min(10vw, 50px);
  line-height: 0.9;
  font-weight: bolder;
}
#result-box.fight h4 {
  top: -6.5vw;
  left: calc((100% - 78.5vw) / 2);
  width: 78.5vw;
  color: #ff7bea;
}
#result-box .prompt-box {
  color: #fff;
  text-align: center;
}
#result-box.answer1 h4,
.prompt-box .orange {
  color: orange;
}
#result-box.answer2 h4,
.prompt-box .blue {
  color: #00319b;
}
#result-box.answer3 h4 {
  font-size: min(8vw, 40px);
}
#result-box.answer3 h4 {
  color: green;
}
#result-box .job-name {
  font-size: min(5vw, 25px);
  font-weight: bold;
  margin: min(2vw, 10px) 0;
}
#result-box.answer3 .job-name {
  margin-top: 0;
}
.prompt-box {
  text-align: left;
  font-size: min(3vw, 15px);
  line-height: 1.4;
  background-color: #000;
  padding: 5px;
  margin-bottom: 10px;
}
.prompt-box br.block {
  display: none;
}
.result_description {
  /* color: #e8fe39; */
  font-size: min(3vw, 15px);
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: min(2vw, 10px);
}
.result_img-box {
  width: 100%;
  background-color: #fff;
}
.result_img-box.infra {
  aspect-ratio: 4/3;
}
.result_img-box .result_img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  vertical-align: bottom;
}
.result_img-box.infra .result_img {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
}
#result-box #restart-button {
  position: absolute;
  left: calc((100% - 200px) / 2);
  bottom: -40px;
  width: 200px;
  border: none;
  border-radius: 20px;
  background-color: #e03574;
}
#result-box #restart-button a {
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
@media (min-width: 750px) {
  .question-card.answer .question {
    font-size: 45px;
  }
  .question-card.fight .question {
    font-size: 30px;
  }
  #result-box.fight {
    margin-bottom: 120px;
  }
  #result-box.fight .result-box-inner,
  #result-box.answer1 .result-box-inner,
  #result-box.answer2 .result-box-inner,
  #result-box.answer3 .result-box-inner {
    padding: min(8vw, 20px) min(10vw, 30px);
  }
  #result-box.answer3 .result-box-inner {
    padding-top: 65px;
  }
  #result-box h4,
  #result-box.fight h4 {
    font-size: min(12vw, 60px);
  }
  #result-box.answer3 h4 {
    font-size: min(9vw, 45px);
  }
  #result-box .job-name {
    font-size: min(5vw, 25px);
  }
  #result-box .answer-flex-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  #result-box .answer-flex-box .result_img-box {
    width: 50%;
    margin-left: 10px;
  }
  #result-box .answer-flex-box .result_text-box {
    width: 50%;
  }
  .result_text-box .prompt-box {
    font-size: min(3vw, 15px);
  }
  #result-box #restart-button {
    left: calc((100% - 400px) / 2);
    bottom: -60px;
    width: 400px;
  }
  #result-box #restart-button a {
    font-size: 30px;
  }
}
/*=================================
エンジニア職の紹介
=================================*/
#recruit.engineer #jobs .section__inner {
  margin-bottom: min(20vw, 60px);
}
/*タブ切り替え全体のスタイル*/
.tabs {
  margin-top: 50px;
  background-color: #fff;
  border: 1px solid #333;
  border-radius: 7px;
  margin: 0 auto;
}
@media (max-width: 749px) {
  .tabs .is_sp {
    display: block;
  }
}

/*タブのスタイル*/
.tab_item {
  width: calc(100% / 3);
  font-size: min(3vw, 15px);
  line-height: 1.3;
  border-bottom: 1px solid #333;
  background-color: #ddd;
  text-align: center;
  color: #565656;
  display: block;
  float: left;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: min(5vw, 20px) 0;
}
.tab_item[for="front-end"] {
  border-radius: 6px 0 0 0;
}
.tab_item[for="back-end"] {
  border-right: 1px solid #333;
  border-left: 1px solid #333;
}
.tab_item[for="infrastructure"] {
  border-radius: 0 6px 0 0;
}
.tab_item:hover {
  color: #4f77b7;
  background-color: #dddddd88;
}

/*ラジオボタンを全て消す*/
input[name="tab_item"] {
  display: none;
}
/*タブ切り替えの中身のスタイル*/
.tab_content {
  display: none;
  padding: min(8vw, 40px);
  line-height: 1.5;
  clear: both;
  overflow: hidden;
}

/*選択されているタブのコンテンツのみを表示*/
#front-end:checked ~ #front-end_content,
#back-end:checked ~ #back-end_content,
#infrastructure:checked ~ #infrastructure_content {
  display: block;
}

/*選択されているタブのスタイルを変える*/
.tabs input:checked + .tab_item[for="front-end"] {
  color: #fff;
  background-color: orange;
}
.tabs input:checked + .tab_item[for="back-end"] {
  color: #fff;
  background-color: #00319b;
}
.tabs input:checked + .tab_item[for="infrastructure"] {
  color: #fff;
  background-color: green;
}
.tab_content h3 {
  font-size: min(7vw, 35px);
  line-height: 1.2;
}
#front-end_content h3,
#front-end_content .job-name {
  color: orange;
}
#back-end_content h3,
#back-end_content .job-name {
  color: #00319b;
}
#infrastructure_content h3,
#infrastructure_content .job-name {
  color: green;
}
.tab_content .job-name {
  font-size: min(5vw, 25px);
  font-weight: bold;
  margin-bottom: min(5vw, 25px);
}
