#question {
  padding: 120px 0 200px 0;
}

.question-container {
  width: 1048px;
  margin: 0 auto;
}

/* Q全体を囲むコンテナ */
.question-box {
  border: solid 1px #A3A4A5;
  border-radius: 24.5px;
  width: 100%;
  padding: 13px 25px 13px 40px;
}

.question-box:nth-child(n+3) {
  margin-top: 16px;
}

/* Q部分だけクリック可能にする */
.question-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.question-box-txt {
  width: 91.1%;
}

.question-box-txt-h2 {
  color: #000;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 38.5px;
  display: flex;
  align-items: flex-start;
}

.question-box-txt-Q {
  color: #E94734;
  font-weight: bold;
  font-size: 40px;
  letter-spacing: 0.02em;
  line-height: 38.5px;
  margin-right: 16px;
}

/* A部分（閉じた状態） */
.question-box-answer {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid #000;
  transition:
    border-top-width 0.2s ease,
    max-height 0.4s ease,
    margin-top 0.4s ease,
    padding-top 0.4s ease;
  will-change: height;
  width: 89.6%;
  box-sizing: border-box;
}

/* A部分（開いた状態） */
.question-box-answer.open {
  margin-top: 10px;
  padding-top: 13px;
  border-top-width: 1px;
  width: 89.6%;
}

/* A内のテキスト */
.question-box-txt-p {
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 32px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.question-box-txt-A {
  color: #6D6D6D;
  font-weight: bold;
  font-size: 40px;
  letter-spacing: 0.02em;
  line-height: 32px;
  margin-right: 43px;
}

/* 矢印の回転 */
.question-box-arrow-img {
  transition: transform 0.3s ease;
}
.question-box-arrow-img.open {
  transform: rotate(180deg);
}

.question-box-arrow {
  width: 7.4%;
}

.question-none {
  color: #000;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 38.5px;
  text-align: center;
  margin-top: 20px;
}

.question-btn {
  img {
    box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.6);
    border-radius: 12.8px;
  }
}


@media screen and (max-width: 1200px) {
  .question-container {
    width: 80%;
  }
} 


/* タブレット */
@media screen and (max-width: 1024px) {
  .question-container {
    width: 80%;
  }

  .question-box-txt-Q {
    font-size: 30px;
  }

  .question-box-txt-h2 {
    font-size: 20px;
  }

  .question-box-txt-A {
    font-size: 30px;
  }

  .question-box-txt-p {
    font-size: 16px;
    line-height: 22px;
  }
}


/* SP */
@media screen and (max-width: 768px) {
  #question {
    padding: 52px 0 95px 0;
  }

  .question-container {
    width: 87.1%;
  }

  .question-box {
    position: relative;
    border: solid 1px #A3A4A5;
    border-radius: 24px;
    padding: 13px 24px 13px 23px;
  }
  .question-box:nth-child(n+3) {
    margin-top: 11px;
  }

  .question-box-txt {
    width: 100%;
  }

  .question-box-txt-h2 {
    width: 100%;
    font-size: 18px;
    line-height: 31px;
    flex-direction: column;
  }

  .question-box-txt-Q {
    display: block;
    font-size: 28px;
    line-height: 31px;
    margin-right: 0;
    margin-bottom: 7px;
  }

  .question-box-answer.open {
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
  }

  .question-box-txt-p {
    display: block;
    font-size: 16px;
    line-height: 24px;
  }

  .question-box-txt-A {
    display: block;
    font-size: 28px;
    line-height: 31px;
    margin-right: 0;
    margin-bottom: 7px;
  }

  .question-box-arrow {
    position: absolute;
    top: 2%;
    right: 4%;
    width: 15.4%;
  }
  .question-box-arrow img {
    width: 100%;
  }

  .question-btn {
    display: none;
  }

  .question-none {
    font-size: 16px;
  }
}