.p-faq__group {
  margin-top: 10rem;
}

.qa__list__box { 
  margin: 4rem auto 0;
  width: 80%;
}

.faq__item {
  padding: 2.5rem;
  background-image: repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px);
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 100% 1px;
}

.faq__item:last-child {
  background-image: repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px), repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px);
  background-position: left top, left bottom;
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 1px, 100% 1px;
}

.faq__button{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.faq__q {
  color: #333;
  font-weight: 300; 
  opacity: .6; letter-spacing: .04em; 
}

.faq__question {
  color: #333;
  font-weight: 300; 
}

.faq__button:focus-visible{
  outline: 2px solid #111;
  outline-offset: 6px;
}

/* ＋アイコン */
.faq__icon{
  position: relative;
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}
.faq__icon::before,
.faq__icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #111;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, transform .25s ease;
}
.faq__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ここが重要：開いた時は縦線を消して「−」にする（.is-open基準） */
.faq__item.is-open .faq__icon{
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

/* 回答：高さをJSで制御 */
.faq__desc{
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}

.faq__answer{
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}

/* 高さが動くのと同時に文字も動かす */
.faq__item.is-open .faq__answer{
  opacity: .85;
  transform: translateY(0);
  color: #333;
  font-weight: 500;
}

.faq__note {
  margin-top: 7rem;
  font-size: 1.25rem;
  text-align: center;
  line-height: 2;
}

@media screen and (max-width: 900px) {
  .qa__list__box {
    width: 90%;
  }

  .faq__item {
    padding: 2.5rem 2rem;
  }

  .faq__icon::before,
  .faq__icon::after{
    width: 16px;
    height: 1.5px;
  }
}

@media screen and (max-width: 580px) {
  .p-faq__group {
    margin-top: 7rem;
  }

  .qa__list__box { 
    width: 95%;
    margin-top: 3rem;
  }

  .faq__item {
    padding: 2rem 1rem;
  }

  .faq__button{
    gap: 8px;
  }

  .faq__q {
    font-size: 3cqw;
  }

  .faq__question {
    font-size: 3cqw;
    line-height: 1.5;
  }

  .faq__icon::before,
  .faq__icon::after{
    width: 13.5px;
    height: 1.5px;
  }

  .faq__answer{
    padding: 1rem 0 0;
    font-size: 2.75cqw;
    line-height: 1.5;
  }

  .faq__note {
    margin-top: 5rem;
    font-size: 3.5cqw;
  }
}