/* ========================================
   FAQ / よくある質問
   ======================================== */

.faq__header {
  text-align: center;
  margin-bottom: 56px;
}

.faq__label {
  font-family: var(--font-jakarta);
  color: #5DA9E8;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  letter-spacing: .08em;
}

.faq__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--clr-navy);
  line-height: 1.4;
}

/* ── FAQ List ── */
.faq__list {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── FAQ Item ── */
.faq__item {
  background: linear-gradient(to right, rgba(173, 216, 239, .3), rgba(245, 184, 182, .3));
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__q-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-grad-blue);
  color: var(--clr-text);
  font-family: var(--font-jakarta);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__q-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--clr-text);
  line-height: 1.6;
}

.faq__q-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--clr-text);
}

.faq__q-toggle::before,
.faq__q-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: currentColor;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq__q-toggle::before {
  width: 14px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq__q-toggle::after {
  width: 1px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__item.is-active .faq__q-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__item.is-active .faq__q-toggle {
  color: var(--clr-text);
}

/* ── FAQ Answer ── */

.faq__answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
  visibility: hidden;
  overflow: hidden;
}

.faq__item.is-active .faq__answer-wrapper {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq__answer {
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 32px 0;
  min-height: 0;
  border-top: 1px solid rgba(12, 28, 55, .18);
  transition: padding-bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  opacity: 0;
}

.faq__item.is-active .faq__answer {
  padding-top: 24px;
  padding-bottom: 28px;
  opacity: 1;
  transition: padding-bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease 0.2s;
}

.faq__a-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-white);
  color: var(--clr-text);
  font-family: var(--font-jakarta);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__a-text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 2;
  letter-spacing: .05em;
  color: var(--clr-text);
  padding-top: 5px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .faq__list {
    max-width: 700px;
  }

  .faq {
    padding-block: 40px;
  }

  .faq__header {
    margin-bottom: 36px;
  }

  .faq__list {
    gap: 18px;
  }

  .faq__title {
    font-size: 24px;
  }

  .faq__question {
    align-items: flex-start;
    padding: 18px 16px;
    gap: 12px;
  }

  .faq__q-mark,
  .faq__a-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .faq__q-text {
    font-size: 14px;
  }

  .faq__answer {
    padding: 0 16px 0;
    gap: 12px;
  }

  .faq__item.is-active .faq__answer {
    padding-bottom: 18px;
  }

  .faq__a-text {
    font-size: 13px;
    line-height: 1.8;
  }
}
