/* ===========================================
   FAQ Section - よくある質問
   Figma: y=9440-10198
   Background: red
   =========================================== */

.faq {
  position: relative;
  padding: 40px 16px 48px;
  overflow: hidden;
  background-color: #FFE4E4;
}

.faq::before { display: none; }

.faq__inner {
  position: relative;
  z-index: 1;
  max-width: 343px;
  margin: 0 auto;
}

/* Section Title */
.faq__title {
  text-align: center;
  margin-bottom: 32px;
}

.faq__title h2 {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1.45;
  color: var(--color-black);
}

.faq__title-marker { display: none; }

/* FAQ List Container */
.faq__list {
  max-width: 343px;
  margin: 0 auto;
}

/* FAQ Item */
.faq .faq-item {
  background: var(--color-white);
  border-radius: 6px;
  margin-bottom: 10px;
  border-bottom: none;
  overflow: hidden;
  position: relative;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.16);
}

/* Question row */
.faq .faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 8px 50px 8px 16px;
  cursor: pointer;
  position: relative;
  min-height: 62px;
}

.faq .faq-item__question::before { content: none; }

/* Q mark - hidden in new design */
.faq-item__q-mark { display: none; }

.faq-item__q-text {
  flex: 1;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 23px;
  letter-spacing: -0.05em;
  color: var(--color-black);
  display: flex;
  align-items: center;
  min-height: 46px;
}

/* Toggle button: closed = red, open = dark gray */
.faq .faq-item__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  background: #D82E2E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  transition: background 0.3s ease, border-radius 0.3s ease;
  border-radius: 0 6px 6px 0;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--color-white);
  transition: transform 0.3s ease;
}

.faq-item__toggle::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* Open state: dark gray bg, top-right only rounded, × icon */
.faq .faq-item.is-open .faq-item__toggle {
  background: #474747;
  border-radius: 0 6px 0 0;
}

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

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

/* Answer area */
.faq .faq-item__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 30px 0 30px;
  border-top: 1px solid #C6C6C6;
}

.faq .faq-item.is-open .faq-item__answer {
  max-height: 1000px !important;
  opacity: 1;
  padding: 12px 30px 16px;
}

/* A mark - hidden */
.faq-item__a-mark { display: none; }

.faq .faq-item__answer p {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  letter-spacing: -0.05em;
  color: var(--color-black);
  margin: 0;
}

/* ============================================================
   PC (>=768px) — FAQ
   ============================================================ */
@media (min-width: 768px) {
  .faq {
    padding: 80px 0 120px;
  }
  .faq__inner {
    max-width: 1100px;
    padding: 0 40px;
  }
  .faq__title {
    margin-bottom: 50px;
  }
  .faq__title h2 {
    font-size: 40px;
  }
  .faq__list {
    max-width: 1100px;
  }
  .faq .faq-item {
    margin-bottom: 16px;
    border-radius: 6px;
  }
  .faq .faq-item__question {
    padding: 20px 90px 20px 30px;
    min-height: 75px;
  }
  .faq-item__q-text {
    font-size: 24px;
    line-height: 35px;
    min-height: 35px;
  }
  .faq .faq-item__toggle {
    width: 75px;
    height: 100%;
    border-radius: 0 6px 6px 0;
  }
  .faq .faq-item.is-open .faq-item__toggle {
    border-radius: 0 6px 0 0;
  }
  .faq .faq-item__toggle::before {
    width: 32px;
    height: 4px;
  }
  .faq .faq-item__toggle::after {
    width: 4px;
    height: 32px;
  }
  .faq .faq-item__answer {
    padding: 0 42px;
  }
  .faq .faq-item.is-open .faq-item__answer {
    padding: 20px 42px 24px;
  }
  .faq .faq-item__answer p {
    font-size: 18px;
    line-height: 30px;
  }
}
