/* ========================================
   よくある質問詳細ページ専用CSS
======================================== */

/* ========================================
   Page Hero
======================================== */
.faq-hero {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, #2a4d7a 0%, #3a6ea5 100%);
  text-align: center;
  margin-top: 80px;
}

.faq-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
}

.faq-hero p {
  font-size: 1.125rem;
  color: #dfeefd;
}

/* ========================================
   FAQ Categories
======================================== */
.faq-categories-section {
  padding: 80px 0;
  background: white;
}

.faq-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  padding: 20px;
  background: #dfeefd;
  border-radius: 8px;
}

.faq-category {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #595959;
  background: white;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.faq-category:hover {
  border-color: #182a88;
  color: #182a88;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-category.active {
  background: #182a88;
  color: white;
  border-color: #182a88;
}

/* ========================================
   FAQ Accordion
======================================== */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.hide {
  display: none;
}

.faq-item:hover {
  border-color: #182a88;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #dfeefd;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(223, 238, 253, 0.7);
}

.faq-item.active .faq-question {
  background: #182a88;
}

.faq-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #182a88;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: 'Noto Serif JP', serif;
}

.faq-item.active .faq-icon {
  background: #f5cd35;
  color: #182a88;
}

.faq-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: #242424;
}

.faq-item.active .faq-text {
  color: white;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #182a88;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #f5cd35;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  background: white;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 24px;
}

.faq-answer p {
  color: #595959;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.faq-answer strong {
  color: #182a88;
  font-weight: 700;
}

/* ========================================
   CTA Section
======================================== */
.faq-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #182a88 0%, #2a4d7a 100%);
  text-align: center;
  color: white;
}

.faq-cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
}

.faq-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Responsive - Tablet
======================================== */
@media (max-width: 1024px) {
  .faq-hero h1 {
    font-size: 2.5rem;
  }
}

/* ========================================
   Responsive - Mobile
======================================== */
@media (max-width: 768px) {
  .faq-hero {
    padding: 120px 0 60px;
    margin-top:60px;
  }

  .faq-hero h1 {
    font-size: 2rem;
  }

  .faq-categories {
    gap: 8px;
    padding: 12px;
  }

  .faq-category {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .faq-question {
    padding: 16px;
    gap: 12px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .faq-text {
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 16px;
  }

  .faq-cta h2 {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
