/* FAQ text metrics follow the dedicated PC/SP Figma frames. */
.faq-sp-break,
.faq-pc-break {
  display: none;
}

.faq-item__icon::before {
  transform: translate(-50%, -50%);
}

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

.faq-item.is-open .faq-item__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 768px) {
  .faq-item:not(.is-open) {
    height: calc(90 / 14.4 * 1cqw);
  }

  .faq-item:nth-child(9) {
    margin-top: calc(4 / 14.4 * 1cqw);
  }

  .faq-item:nth-child(9):not(.is-open) {
    height: calc(86 / 14.4 * 1cqw);
  }

  .faq-pc-break {
    display: inline;
  }

  .faq-item__question {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(26 / 22);
  }

  .faq-item__answer {
    padding-right: 0;
  }

  .faq-item__answer p {
    width: calc(895 / 14.4 * 1cqw);
    font-size: calc(22 / 14.4 * 1cqw);
    line-height: calc(26 / 22);
    text-wrap: wrap;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .faq-item:nth-child(9) .faq-item__question {
    min-height: calc(86 / 14.4 * 1cqw);
    padding-top: 0;
  }

  .faq-item:nth-child(9) .faq-item__answer {
    padding-top: calc(25 / 14.4 * 1cqw);
  }

  .faq-item:nth-child(9) .faq-item__answer p {
    line-height: 1.5;
  }
}

@media (max-width: 767px) {
  .faq-item:not(.is-open) {
    height: calc(83 / 3.75 * 1cqw);
  }

  .faq-item:nth-child(3):not(.is-open),
  .faq-item:nth-child(4):not(.is-open) {
    height: calc(61 / 3.75 * 1cqw);
  }

  .faq-sp-break {
    display: inline;
  }

  .faq-item__question {
    align-items: center;
    min-height: calc(83 / 3.75 * 1cqw);
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(22 / 18);
    overflow-wrap: normal;
  }

  .faq-item:nth-child(3) .faq-item__question,
  .faq-item:nth-child(4) .faq-item__question {
    min-height: calc(61 / 3.75 * 1cqw);
  }

  .faq-item__q-text {
    flex: 0 0 calc(240 / 3.75 * 1cqw);
    width: calc(240 / 3.75 * 1cqw);
  }

  .faq-item__answer p {
    width: calc(262 / 3.75 * 1cqw);
    font-size: calc(16 / 3.75 * 1cqw);
    letter-spacing: .06em;
    line-height: calc(19 / 16);
    text-wrap: wrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .faq-item:nth-child(4) .faq-item__answer p {
    width: calc(270 / 3.75 * 1cqw);
  }

  .faq-item:nth-child(6) .faq-item__answer p,
  .faq-item:nth-child(7) .faq-item__answer p,
  .faq-item:nth-child(8) .faq-item__answer p {
    width: calc(269 / 3.75 * 1cqw);
  }

  /* Chromium's web-font punctuation is fractionally wider than Figma's
     Noto Sans JP metrics on this single near-full line. */
  .faq-item:nth-child(8) .faq-item__answer p {
    letter-spacing: .05em;
  }
}
