/* よくあるご質問ページ専用スタイル */

/* タブナビ（3列2行） */
.tab-nav__list {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* イントロセクション */
.intro {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  border-left: 5px solid #dc3545;
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: '?';
  position: absolute;
  font-size: 15rem;
  color: rgba(220, 53, 69, 0.05);
  top: -4rem;
  right: 2rem;
  font-weight: bold;
}

.intro h2 {
  font-size: 1.5rem;
  color: #dc3545;
  margin-bottom: 1rem;
  position: relative;
}

.intro p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.9;
  position: relative;
}

/* FAQ項目 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

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

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  font-weight: 600;
  color: #333;
  background: linear-gradient(to right, #fff 0%, #f8f9fa 100%);
  border-left: 4px solid #dc3545;
  transition: background 0.3s;
}

.faq-question:hover {
  background: linear-gradient(to right, #fff5f5 0%, #fff 100%);
}

.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  margin-right: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.faq-question-text {
  flex: 1;
  padding-top: 0.3rem;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #dc3545;
  transition: transform 0.3s;
  margin-left: 1rem;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
}

.faq-answer-content {
  padding: 1.5rem 1.5rem 1.5rem 5.5rem;
  color: #555;
  line-height: 1.9;
  position: relative;
}

.faq-answer-content::before {
  content: 'A';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.faq-answer-content a {
  color: #dc3545;
  text-decoration: underline;
}

.faq-answer-content a:hover {
  color: #c82333;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: #dc3545;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 1.05rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* スマホ対応 */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .tab-nav__list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  
  .tab-nav__item {
    padding: 18px 12px;
    font-size: 14px;
    border-radius: 8px;
    min-height: auto;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-question::before {
    min-width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 1.5rem 1rem 1.5rem 1rem;
  }

  .faq-answer-content::before {
    position: static;
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .cta-section {
    padding: 2rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}