/* ======================================================================
 p_faq
====================================================================== */


/* ======== faq-list =============== */
.faq-list {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 50px;
  overflow: hidden;
}

.faq-question {
  padding: 4px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #6C9FBA;
  color: #fff;
  transition: background-color 0.3s ease;
}

.faq-question .faq {
  position: relative;
  font-size: 18px;
  color: #fff;
  font-weight: var(--font-bold);
  display: flex;
  align-items: center
}

.faq-question .faq:before {
  content: "Q";
  font-size: 32px;
  color: #FFFFFF;
  font-weight: var(--font-medium);
  margin-right: 32px;
}

/* 疑似要素アイコン（+/-） */
.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-block;
  background: #fff;
  border-radius: 50%;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon::after {
  opacity: 0;
}


.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 30px;
  transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}

.faq-answer .faq-inner {
  overflow: hidden;
}

.faq-answer .answer {
  font-size: 16px;
  display: flex;
  align-items: center
}

.faq-answer .answer:before {
  content: "A";
  font-size: 32px;
  color: var(--color-deep-red);
  font-weight: var(--font-medium);
  margin-right: 32px;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding: 8px 32px;
}

@media screen and (max-width: 767px) {
  .faq-item {
    margin-bottom: 30px;
  }
  .faq-question {
    padding: 16px;
  }

  .faq-question .faq {
    font-size: 16px;
    line-height: 1.4;
  }
  .faq-question .faq:before {
    margin-right: 16px;
    font-size: 26px;
  }
  .faq-answer {
    padding: 0 16px;
  }
  .faq-item.active .faq-answer {
    padding: 16px;
  }
  .faq-answer .answer {
    line-height: 1.8;
    font-size: 14px;
  }
  .faq-answer .answer:before {
    margin-right: 16px;
    font-size: 26px;
  }
}



.faq-anchor-list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  row-gap: 42px;
}
.faq-anchor-list .c_btn_anchor{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}


/* ====== c_btn_anchor=========== */
.c_btn_anchor{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--font-bold);
  border: 2px solid #6C9FBA;
  border-radius: 8px;
  padding: 16px 24px;
  background-color: #fff;
  transition: 0.3s;
  box-sizing: border-box;
}

.c_btn_anchor:after{
  content: "";
  position: absolute;
  top: calc(100% + 6px); /* ボタンの下に表示 */
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-image: url('../common_img/ico_arrow_anchor.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
} 
.hover .c_btn_anchor:hover{
  background-color: #6C9FBA;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .faq-anchor-list{
    justify-content: space-between;
  }
  .c_btn_anchor{
    font-size: 11px;
    border-radius: 8px;
    padding: 8px;
    width: calc((100% - 16px) / 2); /* 2カラム + 16pxの間隔 */
  }
  
  .c_btn_anchor:after{
    width: 12px;
    height: 12px;
  } 
}

.faq-list + .c_ttl_13 {
  margin-top: 100px;
}