/* FAQ Page Styles - 2025 Design Integration */

/* Q&A Design - Unified with brand colors */
.faq-q,
.faq-a {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 24px;
  transition: all 0.3s ease;
}

/* Q letter styling with primary color */
.q-letter {
  color: var(--primary-color) !important;
  background-color: transparent;
  border: 3px solid var(--primary-color);
  box-shadow: none;
}

/* A letter styling with secondary color */
.a-letter {
  color: var(--secondary-color) !important;
  background-color: transparent;
  border: none;
}

/* FAQ Text Content */
.faq-text {
  flex: 1;
  padding-top: 8px;
  padding-left: 20px;
}

.faq-text h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faq-text p {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ Item Container */
.faq-item {
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.faq-item:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
}

/* FAQ Section Styling */
.faq-section {
  margin-bottom: 3rem;
}

/* FAQ Question Styling */
.faq-question {
  border-bottom: 1px solid #adb5bd !important; /* 最も薄いグレー、1px */
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.faq-section h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* Breadcrumb Styling */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--secondary-light);
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

/* Title Styling */
.display-4 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.lead {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* FAQ Categories */
.faq-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--light-color);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.faq-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* FAQ Search */
.faq-search {
  margin-bottom: 2rem;
}

.faq-search .form-control {
  border: 2px solid var(--secondary-light);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  transition: border-color 0.3s ease;
}

.faq-search .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.faq-search .btn {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transition: all 0.3s ease;
}

.faq-search .btn:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

/* FAQ Accordion (if using Bootstrap accordion) */
.accordion-item {
  border: 1px solid var(--secondary-light);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.accordion-body {
  background-color: white;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-q,
  .faq-a {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .faq-text {
    padding-top: 4px;
    padding-left: 15px;
  }

  .faq-item {
    padding: 15px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .faq-category {
    padding: 1rem;
  }
}

/* Animation Classes */
.faq-item {
  /* animation: fadeInUp 0.5s ease forwards; */
  opacity: 0;
  transform: translateY(20px);
}

/* When .is-visible class is added by JavaScript */
.faq-item.is-visible {
  animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(1).is-visible {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2).is-visible {
  animation-delay: 0.2s;
}
.faq-item:nth-child(3).is-visible {
  animation-delay: 0.3s;
}
.faq-item:nth-child(4).is-visible {
  animation-delay: 0.4s;
}
.faq-item:nth-child(5).is-visible {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.faq-item:hover .q-letter,
.faq-item:hover .a-letter {
  transform: scale(1.1);
}

/* Focus States */
.faq-item:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading States */
.faq-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .faq-item:hover {
    transform: none;
    box-shadow: none;
  }

  .faq-search,
  .breadcrumb {
    display: none;
  }
}
