/* FAQ アーカイブページ用スタイル - TOPページと同じデザイン */

/* 基本セクション */
.faq {
  padding: 80px 0;
  background: #fff;
}

@media (width >=769px) {
  .faq {
    padding: 120px 0;
  }
}

.faq_inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ヘッダー */
.faq_header {
  text-align: center;
  margin-bottom: 50px;
}

@media (width >=769px) {
  .faq_header {
    margin-bottom: 70px;
  }
}

.faq_title {
  position: relative;
}

.faq_title picture {
  display: block;
  width: 80%;
  position: absolute;
  left: 0;
  top: -90px;
}

@media (width >=769px) {
  .faq_title picture {
    width: 35%;
  }
}

.faq_subtitle {
  font-size: 1.6rem;
  color: #000;
  text-align: left;
  letter-spacing: 0.1em;
}

@media (width >=769px) {
  .faq_subtitle {
    font-size: 2rem;
    text-align: left;
    padding-top: 50px;
  }
}

/* FAQリスト */
.faq_list {
  margin-bottom: 50px;
}

@media (width >=769px) {
  .faq_list {
    margin-bottom: 70px;
  }
}

/* FAQアイテム */
.faq_item {
  margin-bottom: 15px;
}

.faq_item:last-child {
  margin-bottom: 0;
}

/* 質問部分 */
.faq_question {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 25px;
  background: #f5f0e8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.5s ease-in-out;
  list-style: none;
}

@media (width >=769px) {
  .faq_question {
    padding: 25px 30px;
  }
}

.faq_question:hover {
  background: #ede6db;
}

.faq_question::-webkit-details-marker {
  display: none;
}

/* Q.ラベル */
.faq_question-label {
  font-size: 16px;
  font-size: 1.6rem;
  color: #000;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
}

@media (width >=769px) {
  .faq_question-label {
    font-size: 18px;
    font-size: 1.8rem;
  }
}

.faq_question-text {
  font-size: 1.4rem;
  color: #000;
  letter-spacing: 0.05em;
  flex: 1;
}

@media (width >=769px) {
  .faq_question-text {
    font-size: 1.6rem;
  }
}

/* プラス/マイナスアイコン */
.faq_question-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq_question-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 2px;
  background: #000;
}

.faq_question-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 16px;
  background: #000;
  transition: all 0.5s ease-in-out;
}

/* 開いた状態 */
details.faq_item[open] .faq_question {
  border-radius: 8px 8px 0 0;
}

details.faq_item[open] .faq_question-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* 回答部分 */
.faq_answer {
  display: none;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

details.faq_item[open] .faq_answer {
  display: block;
}

.faq_answer-inner {
  display: flex;
  padding: 20px 25px;
  border: 1px solid #f5f0e8;
  border-top: none;
}

@media (width >=769px) {
  .faq_answer-inner {
    padding: 25px 30px;
  }
}

/* A.ラベル */
.faq_answer-label {
  font-size: 16px;
  font-size: 1.6rem;
  color: #000;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
}

@media (width >=769px) {
  .faq_answer-label {
    font-size: 18px;
    font-size: 1.8rem;
  }
}

.faq_answer-text {
  font-size: 1.4rem;
  color: #666;
  letter-spacing: 0.05em;
  line-height: 2;
}

@media (width >=769px) {
  .faq_answer-text {
    font-size: 1.6rem;
  }
}

.faq_answer-text p {
  margin-bottom: 0;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin-top: 40px;
}