/* =====================================
   FAQ ページ専用CSS
   トップページのデザイン体系 (オレンジ + ネイビー + クリーム) に統一
   ===================================== */

/* ===== Main / コンテナ ===== */
.faq-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

/* ===== カテゴリ (h2) ===== */
.faq-category {
  margin-top: 48px;
}
.faq-category:first-child {
  margin-top: 0;
}

.faq-category > h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--lp-navy-2, #050b4e);
  margin: 0 0 18px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(
    90deg,
    var(--lp-orange-light, #ffede0) 0%,
    rgba(255, 237, 224, 0.25) 100%
  );
  border-left: 6px solid var(--lp-orange-2, #ff6a00);
  border-radius: 0 12px 12px 0;
  line-height: 1.4;
}

/* ===== アコーディオン アイテム ===== */
.faq-item {
  background: #fff;
  border: 1px solid var(--lp-border-cream, #f2e3d1);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(45, 22, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 18px rgba(45, 22, 0, 0.08);
}

.faq-item.is-open {
  box-shadow: 0 10px 22px rgba(45, 22, 0, 0.1);
  border-color: rgba(255, 106, 0, 0.4);
}

/* ===== 質問 (Q クリック領域) ===== */
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--lp-cream, #fffaf4);
}

.faq-q-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--lp-orange, #ff5a09) 0%, var(--lp-orange-2, #ff6a00) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 8px rgba(255, 106, 0, 0.22);
}

.faq-q-text {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-navy-2, #050b4e);
  line-height: 1.6;
}

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--lp-orange-2, #ff6a00);
  transition: transform 0.3s ease;
  background: var(--lp-orange-light, #ffede0);
  border-radius: 50%;
  line-height: 1;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

/* ===== 回答 (A 開閉エリア) ===== */
.faq-answer {
  display: none;
  padding: 0 20px 22px;
}

.faq-item.is-open .faq-answer {
  display: flex;
  gap: 14px;
}

.faq-a-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--lp-navy-2, #050b4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.faq-a-text {
  flex: 1;
  font-size: 14px;
  color: var(--lp-text, #363d49);
  line-height: 1.85;
  padding-top: 4px;
}

.faq-a-text p {
  margin: 0 0 12px 0;
}

.faq-a-text p:last-child {
  margin-bottom: 0;
}

.faq-a-text strong {
  color: var(--lp-navy-2, #050b4e);
  font-weight: 900;
  background: linear-gradient(180deg, transparent 60%, var(--lp-orange-light, #ffede0) 60%);
  padding: 0 3px;
}

.faq-a-text ul,
.faq-a-text ol {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.faq-a-text ul li,
.faq-a-text ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.85;
}

.faq-a-text ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-orange-2, #ff6a00);
}

.faq-a-text ol {
  counter-reset: faq-step;
}
.faq-a-text ol li {
  padding-left: 32px;
  counter-increment: faq-step;
}
.faq-a-text ol li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-orange, #ff5a09) 0%, var(--lp-orange-2, #ff6a00) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
}

.faq-a-text a {
  color: var(--lp-orange-2, #ff6a00);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.faq-a-text a:hover {
  opacity: 0.7;
}

/* ===== FAQ CTA ===== */
.faq-cta {
  background: linear-gradient(90deg, var(--lp-orange-2, #ff6a00) 0%, #ff981a 78%, #ffdd4f 100%);
  padding: 56px 16px;
  text-align: center;
  color: #fff;
}

.faq-cta-inner {
  max-width: 880px;
  margin: 0 auto;
}

.faq-cta h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.5;
}

.faq-cta p {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 700;
  margin-bottom: 28px;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--lp-navy-2, #050b4e);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 900;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  color: var(--lp-navy-2, #050b4e);
}

/* ===== レスポンシブ ===== */
/* タブレット (≥768px) */
@media (min-width: 768px) {
  .faq-main {
    max-width: 880px;
    padding: 48px 32px 80px;
  }
  .faq-category > h2 {
    font-size: 24px;
    padding: 18px 22px 18px 26px;
  }
  .faq-question {
    padding: 22px 24px;
    gap: 16px;
  }
  .faq-q-text {
    font-size: 16px;
  }
  .faq-answer {
    padding: 0 24px 26px;
    gap: 16px;
  }
  .faq-a-text {
    font-size: 15px;
  }
  .faq-cta {
    padding: 72px 32px;
  }
  .faq-cta h2 {
    font-size: 28px;
  }
  .faq-cta p {
    font-size: 15px;
  }
}

/* PC (≥1024px) */
@media (min-width: 1024px) {
  .faq-main {
    max-width: 960px;
  }
  .faq-cta-inner {
    max-width: 960px;
  }
}

/* モバイル微調整 */
@media (max-width: 480px) {
  .faq-category > h2 {
    font-size: 18px;
    padding: 12px 14px 12px 18px;
  }
  .faq-question {
    padding: 16px;
    gap: 12px;
  }
  .faq-q-badge,
  .faq-a-badge {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .faq-q-text {
    font-size: 14px;
  }
  .faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .faq-answer {
    padding: 0 16px 18px;
    gap: 12px;
  }
  .faq-a-text {
    font-size: 13px;
  }
  .faq-category {
    margin-top: 36px;
  }
  .faq-cta {
    padding: 48px 16px;
  }
  .faq-cta h2 {
    font-size: 20px;
  }
}
