/* ================================================
よくある質問
================================================ */
.pageHead--scrollBg:before {
  background-image: url("/wp-content/themes/imcgraduates/assets/img/pageHead_faq.svg");
}

/*よくある質問*/
.question__img {
  padding-right: var(--commonSpaceSide);
  padding-left: var(--commonSpaceSide);
}

.question__img img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {
  .question__img {
    margin-top: 0;
  }

  .question__img img {
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
  }

}

/*新卒・中途選考切り替えボタン*/
.question__tabs {
  display: flex;
  width: calc(100% - clamp(5rem , 6vw ,10rem));
  border-bottom: 2px solid #ddd;
  margin: 0 auto;
}

.question__tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  font-size: clamp(14px, 2vw, 25px);

}

.question__tab:hover {
  border-bottom-color: #e60012;
  color: #e60012;
}

.question__tab.is-active {
  border-bottom-color: #e60012;
  color: #e60012;
  font-size: clamp(14px, 2vw, 25px);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Medium", "Meiryo",
    sans-serif;
  font-weight: bold;
}


.question__content {
  padding: clamp(20px, 2vw, 5rem);
}

/*新卒採用*/

.accordion__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: clamp(2rem , 2vw , 3rem);
  padding-right: clamp(2rem , 3vw , 5rem);
  padding-bottom: clamp(2rem , 2vw , 3rem);
  padding-left: clamp(2rem , 3vw , 5rem);
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border: none;
}

.accordion__label {
  color: #000;
  font-size: clamp(14px, 1.4vw, 24px);
  font-weight: bold;
  text-align: left;
  flex: 1;
}

.accordion__icon {
  font-size: 1.2rem;
  transition: transform .3s
}

.accordion__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0;
  background: #f9f9f9;
  line-height: 1.6;
  border-bottom: 1px solid #e5e5e5;
}

.accordion__answer p {
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 400;
}
@media (max-width: 767px) {
  .accordion__answer p {
  }
}

.accordion__item.is-open .accordion__answer {
  max-height: 500px;
  padding: 1rem;
}

@media (max-width: 768px) {
  .accordion__item.is-open .accordion__answer {
    padding: 0px;
  }
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg)
}
.accordion__question::before {
  content: "";
  display: inline-block;
  width: clamp(3rem , 3vw ,5rem);
  height: clamp(3rem , 3vw ,5rem);
  margin-right: clamp(1rem , 1.4vw ,2rem);
  background: url("/wp-content/themes/imcgraduates/assets/img/question_log.png") no-repeat center / contain;
  flex-shrink: 0;
}

.accordion__answerInner {
  display: flex;
  padding-top: clamp(2rem , 2vw , 3rem);
  padding-right: clamp(2rem , 3vw , 5rem);
  padding-bottom: clamp(2rem , 2vw , 3rem);
  padding-left: clamp(2rem , 3vw , 5rem);
}
.accordion__answerInner:before {
  content: "";
  display: inline-block;
  width: clamp(3rem , 3vw ,5rem);
  height: clamp(3rem , 3vw ,5rem);
  margin-right: clamp(1rem , 1.4vw ,2rem);
  background: url("/wp-content/themes/imcgraduates/assets/img/answer_log.png") no-repeat center / contain;
  transition: transform 0.2s ease-out;
  flex-shrink: 0;
}

.question__content {
  display: none;
}

.question__content.is-active {
  display: block;
}
