
.faq-section {
  text-align: center;
  padding: 80px 20px;
  background: #F8F8F8;
}

.faq-h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 50px;
  color: black;
}

.faq-h2-sub {
  font-weight: 400;
  margin-bottom: 15px;
  color: #004296;
}

.faq-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 800px;
  margin: 60px auto 0 auto;
  flex-direction: column;
}

.faq-arrowbox {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 20px solid #cdcdcd;
}

.faq-box {
  display: flex;
  justify-content: stretch;
  align-items: center;
  flex-direction: row;
  position: relative;
  text-align: left;
  width: 100%;
  /**box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 30px 30px -30px rgba(0, 0, 0, 0.1);**/
  border-radius: 15px;
  background: white;
  border: 0;
  padding: 40px;
  gap: 20px;
}

.faq-img {
    max-width: 100%;
    width: 150px;
    margin: 0;
}

.faq-number {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: white;
  background: #004296;
  font-size: 14px;
  border-radius: 30px;
  width: fit-content;
  padding: 5px 20px;
  margin-bottom: 10px;
}

.faq-box {
  text-align: left;
}

.faq-h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
  text-align: left;
}

.faq-p {
  font-size: 16px;
  margin: 0;
}

.faq-answer-text {
  width: calc(100% - 53.3px);
  text-align: left;
  font-size: 15px;
}


.faq-ttl-en {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #004296;
  margin-bottom: 5px;
}

.faq-h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
}

.faq-item {
  background: white;
  border-radius: 15px;
  border: 0px;
  padding: 15px 20px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.faq-q {
  font-family: "poppines";
  background: #004296;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 8px;
}

.faq-question-text {
  flex: 1;
  text-align: left;
  font-size: 16px;
}

.faq-toggle {
  font-size: 20px;
  color: #004296;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

/* 開いているときは「−」に */
.faq-answer.open + .faq-toggle,
.faq-question.open .faq-toggle {
  content: '−';
  transform: rotate(180deg);
}

/* アコーディオン開閉アニメーション */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
  display: flex;
  font-size: 16px;
}

.faq-answer.open {
  max-height: 500px; /* 回答の長さに合わせて十分な値 */
  padding-top: 12px;
}

.faq-a {
  font-family: "poppines";
  background: #cdcdcd;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



@media screen and (max-width: 991px) {
  .faq-wrapper {
    gap: 20px;
  }
  .faq-box {
    padding: 30px;
  }
  .faq-txbox {
    margin-top: 0px;
  }
}

@media screen and (max-width: 768px) {
  .faq-wrapper {
    gap: 15px;
    margin: 35px auto 0 auto;
  }
  .faq-box {
    padding: 30px 20px;
    gap: 10px;
  }
  .faq-number {
    font-size: 13px;
  }
  .faq-h3 {
    font-size: 18px;
    margin: 10px 0 10px 0;
  }
  .faq-h2 {
    font-size: 22px;
    margin-bottom: 25px;
  }
  .faq-p {
    font-size: 13px;
  }
  .faq-arrowbox {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 13px solid #cdcdcd;
  }
  .faq-q, .faq-a {
    font-size: 13px;
    width: 25px;
    height: 25px;
  }
  .faq-toggle {
    font-size: 16px;
  }
  .faq-answer-text, .faq-question-text {
    font-size: 13px;
  }
  .faq-item {
    padding: 15px;
  }
}

@media screen and (max-width: 500px) {
  .faq-box {
    flex-direction: column;
  }
  .faq-img {
    width: 120px;
  }
}
