/* FAQページ専用スタイル */
/* CSS変数はcss/base/variables.cssに統一 */

body {
  background: linear-gradient(135deg, #faf8f3 0%, #f8f6f0 100%);
  color: #333;
  min-height: 100vh;
}

/* ヒーロー背景画像 */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../../images/landscape2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* FAQページ専用ヒーロー高さ設定 */
.faq-hero {
  height: 35vh !important;
  min-height: 280px !important;
  max-height: 400px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.faq-hero .hero-content {
  text-align: center;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.faq-hero .hero-content h1 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero .hero-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* FAQ検索バー */
.faq-search-container {
  max-width: 800px;
  margin: 80px auto 30px;
  padding: 0 20px;
}

.faq-search {
  width: 100%;
  padding: 15px 20px 15px 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #d4af37;
  border-radius: 50px;
  color: #333;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.faq-search:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 1.2rem;
}

/* カテゴリータブ */
.faq-categories {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.category-btn {
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #d4af37;
  border-radius: 25px;
  color: #b8860b;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Noto Serif JP", serif;
}

.category-btn:hover {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.category-btn.active {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #1a1a1a;
  font-weight: 600;
}

/* FAQコンテナ */
.faq-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* FAQヘッダー */
.faq-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.faq-header h2 {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 15px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}

.faq-header p {
  color: #666;
  font-size: 1rem;
  line-height: 1.4;
}

/* FAQ項目 */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
  transform: translateX(5px);
}

.faq-item.active {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}

/* 質問部分 */
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-family: "Noto Serif JP", serif;
  position: relative;
}

.faq-question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #d4af37, #b8860b);
  transition: height 0.3s ease;
}

.faq-item.active .faq-question::before {
  height: 60%;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
  padding-left: 30px;
}

.faq-question span {
  flex: 1;
  padding-right: 20px;
  line-height: 1.5;
}

.faq-question i {
  color: #d4af37;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

/* 回答部分 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.3s ease-out;
  background: rgba(248, 246, 240, 0.8);
}

.faq-answer p {
  margin: 0;
  padding: 20px 25px 25px 30px;
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-top: 10px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #fff;
}

/* カテゴリラベル */
.faq-item[data-category] {
  position: relative;
}

.category-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  font-size: 0.85rem;
  color: #d4af37;
  font-weight: 500;
  display: none;
}

/* 検索結果なし */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.2rem;
  display: none;
}

.no-results i {
  font-size: 3rem;
  color: #666;
  margin-bottom: 20px;
  display: block;
}

/* 統計情報 */
.faq-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  color: #d4af37;
  font-weight: 700;
  display: block;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールトップボタン */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #b8860b, #d4af37);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.scroll-top i {
  color: #1a1a1a;
  font-size: 1.5rem;
}

/* お問い合わせ情報 */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

.contact-info p {
  margin: 0.8rem 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  width: 20px;
  font-size: 1.2rem;
  color: #d4af37;
}

.contact-info a {
  color: #b8860b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #d4af37;
  text-decoration: underline;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  /* FAQヒーロー高さをモバイル調整 */
  .faq-hero {
    height: 40vh;
    min-height: 250px;
  }
  .faq-container {
    padding: 30px 20px;
    margin: 20px 15px;
  }

  .faq-header h2 {
    font-size: 1.5rem;
  }

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

  .faq-question {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .faq-search-container {
    margin: 40px auto 20px;
  }

  .faq-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    gap: 8px;
  }

  .category-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .faq-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .faq-question {
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .faq-question span {
    font-size: 1.1rem;
  }

  .faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    padding: 15px 15px 20px 20px;
  }

  .faq-search-container {
    margin: 30px auto 15px;
  }

  .faq-container {
    margin: 15px 10px;
  }

  .faq-categories {
    gap: 6px;
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 1rem;
    border-radius: 23px;
  }
}
