@charset "UTF-8";
/* FAQ セクション */
.faq {
  padding: 160px 0 120px 0;
  background: #fff;
}

/* ユーティリティクラス */
.pt-0 {
  padding-top: 0 !important;
}

.pb-150 {
  padding-bottom: 150px !important;
}

.faq .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 72px;
  box-sizing: content-box;
}

/* メインレイアウト */
.faq__wrapper {
  display: flex;
}

/* 左側：タイトル部分 */
.faq__left {
  flex: 0 0 300px;
}

.faq__title {
  font-size: 56px;
  font-weight: 500;
  color: #E62327;
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  margin-bottom: 10px;
  line-height: 1;
}

.faq__subtitle1 {
  font-size: 18px;
  margin: 0;
  margin-bottom: 50px;
}

.faq__subtitle {
  background: #CC1F22;
  color: #FFFFFF;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  margin-bottom: 50px;
}

.faq__more-btn {
  display: inline-flex;
  align-items: center;
  background: #E62327;
  color: #FFFFFF;
  padding: 12px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 50px;
}

.faq__more-btn::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 7px;
  height: 18px;
  background-image: url("../images/common/arr_w.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.faq__more-btn:hover {
  background: #CC1F22;
  transform: translateX(5px);
}

/* 右側：コンテンツ部分 */
.faq__right {
  flex: 1;
}

/* カテゴリータブ */
.faq__tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.faq__tab {
  padding: 16px 0 20px 16px;
  font-size: 18px;
  font-weight: 500;
  color: #95989A;
  text-align: left;
  line-height: 1;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  border-top: 4px solid #C4C4C4;
  transition: all 0.3s ease;
  width: calc(33.3333333333% - 24px);
}

.faq__tab.active {
  color: #2D3436;
  border-top-color: #E62327;
}

.faq__tab:hover {
  color: #2D3436;
}

/* FAQコンテンツ */
.faq__content {
  display: none;
}

.faq__content.active {
  display: block;
}

/* FAQリスト */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* FAQアイテム */
.faq__item {
  background: #FFFFFF;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

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

.faq__question {
  width: 100%;
  padding: 29px 60px 29px 30px;
  background: #8c8ca0;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border: none;
  position: relative;
  transition: all 0.3s ease;
}

.faq__question:hover {
  background: #7D7D8F;
}

/* 矢印アイコン */
.faq__icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.faq__item.open .faq__icon {
  transform: translateY(-50%) rotate(180deg);
}

/* 回答部分 */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #FFFFFF;
}

.faq__answer-content {
  padding: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: #2D3436;
}

.faq__item.open .faq__answer {
  max-height: 500px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .faq__wrapper {
    display: block;
  }
  .faq__title {
    font-size: 48px;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .faq__subtitle1 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .faq__more-btn {
    grid-column: 2;
    grid-row: 1/3;
    align-self: start;
  }
  .faq__left {
    flex: 1;
    width: 100%;
    margin-bottom: 30px;
  }
  /* トップページのみgridレイアウト（ボタンがある場合） */
  .faq__left:has(.faq__more-btn) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
  }
}
/* レスポンシブ */
@media (max-width: 768px) {
  .faq {
    padding: 80px 0;
  }
  .faq__subtitle1 {
    font-size: 16px;
  }
  .pb-150 {
    padding-bottom: 80px !important;
  }
  .faq .container {
    padding: 0 20px;
  }
  .faq__wrapper {
    flex-direction: column;
  }
  .faq__subtitle1 {
    font-size: 14px;
  }
  .faq__more-btn {
    font-size: 14px;
    padding: 10px 30px;
    padding-right: 45px;
  }
  .faq__more-btn::after {
    right: 18px;
    width: 6px;
    height: 16px;
  }
  .faq__subtitle {
    font-size: 14px;
    padding: 6px 8px;
  }
  .faq__right {
    width: 100%;
  }
  .faq__tabs {
    gap: 8px;
    margin-bottom: 24px;
  }
  .faq__tab {
    font-size: 16px;
    padding: 12px 8px 16px 12px;
  }
  .faq__question {
    padding: 20px 50px 20px 20px;
    font-size: 15px;
  }
  .faq__icon {
    width: 35px;
    height: 35px;
    right: 20px;
  }
  .faq__answer-content {
    padding: 20px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .faq__title {
    font-size: 28px;
  }
  .faq {
    padding: 60px 0;
  }
  .s_pt-60 {
    padding-top: 60px !important;
  }
  .pb-150 {
    padding-bottom: 90px !important;
  }
  .faq__left {
    margin-bottom: 30px;
  }
  .faq__subtitle {
    font-size: 12px;
    padding: 5px 8px;
    margin-bottom: 30px;
  }
  .faq__tabs {
    gap: 4px;
    margin-bottom: 20px;
  }
  .faq__tab {
    font-size: 14px;
    padding: 10px 4px 14px 8px;
    border-top-width: 3px;
  }
  .faq__item {
    margin-bottom: 12px;
  }
  .faq__question {
    padding: 16px 45px 16px 16px;
    font-size: 14px;
  }
  .faq__icon {
    width: 30px;
    height: 30px;
    right: 16px;
  }
  .faq__answer-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
  }
  .faq__more-btn {
    font-size: 12px;
    padding: 8px 25px;
    padding-right: 40px;
  }
  .faq__more-btn::after {
    right: 15px;
    width: 5px;
    height: 14px;
  }
}