/* ========================================
  FAQ
======================================== */

.faq {
  overflow: hidden;
  background-color: #fff;
  border-bottom: 1px solid #d9d9d9;
  background-image: radial-gradient(#f6d800 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.faq__inner {
  padding-block: 72px;
}

@media screen and (max-width: 767px) {
  .faq__inner {
    padding-block: 48px;
  }
}

.faq__heading {
  text-align: center;
}

.faq__list {
  margin-top: 48px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ------------------------------
  FAQ Item
------------------------------ */

.faq-item {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.faq-item__question {
  position: relative;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 24px 56px 24px 24px;

  list-style: none;
  cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);
  color: #222;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__label {
  width: 18px;
  flex-shrink: 0;

  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.faq-item__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 0 56px 24px 24px;
}

.faq-item__label--answer {
  color: #ffe400;
  text-shadow:
    1px 0 0 #000,
    0 1px 0 #000,
    -1px 0 0 #000,
    0 -1px 0 #000;
}

.faq-item__answer p {
  margin: 0;

  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
}

/* ========================================
  Responsive
======================================== */

@media screen and (max-width: 767px) {
  .faq__list {
    margin-top: 32px;
    gap: 12px;
  }

  .faq-item__question {
    align-items: flex-start;
    padding: 18px 48px 18px 18px;
  }

  .faq-item__question::after {
    right: 18px;
    width: 20px;
    height: 20px;
  }

  .faq-item__label {
    font-size: 22px;
  }

  .faq-item__title {
    font-size: 16px;
    line-height: 1.6;
  }

  .faq-item__answer {
    padding: 0 18px 18px;
  }

  .faq-item__answer p {
    font-size: 15px;
    line-height: 1.75;
  }
}
/* PC：FAQは開いた状態で表示 */
.faq-item__answer {
  display: flex;
}

/* ========================================
 * 修正：SP FAQアコーディオンをなめらかに開閉
 * ======================================== */

@media screen and (max-width: 767px) {
  .faq-item {
    transition: box-shadow 0.35s ease;
  }

  .faq-item__answer {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 0 18px 18px;
    transition:
      grid-template-rows 0.35s ease,
      opacity 0.35s ease,
      padding 0.35s ease;
  }

  .faq-item__answer > * {
    overflow: hidden;
  }

  .faq-item:not([open]) .faq-item__answer {
    grid-template-rows: 0fr;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .faq-item__question {
    cursor: pointer;
  }

  .faq-item__question::after {
    transition: transform 0.35s ease;
  }

  .faq-item[open] .faq-item__question::after {
    transform: translateY(-50%) rotate(180deg);
  }
}