/* ================================================
   Top Page CSS
   ================================================ */

/* メインビジュアル */
.main-visual {
  background-image: url('/assets/images/parts/background/explanation.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 3.57 / 1;
  display: flex;
  align-items: center;
  padding: 2rem 4rem;
}

.main-visual-content {
  max-width: 600px;
  text-align: left;
}

.main-visual-catchcopy {
  font-size: 2rem;
  font-weight: bold;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.main-visual-description {
  font-size: 0.95rem;
  color: #5a5a5a;
  margin-top: 1.5rem;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .main-visual {
    padding: 1.5rem 2rem;
  }

  .main-visual-catchcopy {
    font-size: 1.5rem;
  }

  .main-visual-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main-visual {
    padding: 1rem 1rem;
  }

  .main-visual-catchcopy {
    font-size: 1.2rem;
  }

  .main-visual-description {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
}

/* バナーセクション */
.banner-section {
  margin: 1rem 0; /* 2rem → 1rem に変更 */
  padding: 0 2rem;
}

.banner-carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-item {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* グラデーションバナー */
.gradient-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* バナーコンテンツ */
.banner-content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 700px;
  z-index: 2;
}

.banner-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.banner-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* バナーカルーセルのドットカスタマイズ */
.banner-carousel-wrapper .carousel-dots {
  margin-top: 1.5rem;
}

.banner-carousel-wrapper .dot {
  width: 10px;
  height: 10px;
  background-color: #ddd;
}

.banner-carousel-wrapper .dot.active {
  width: 30px;
  border-radius: 5px;
  background: var(--gold);
}

/* バナーカルーセルの矢印カスタマイズ */
.banner-carousel-wrapper .carousel-btn {
  background: linear-gradient(135deg, var(--gold) 0%, #C4A037 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.banner-carousel-wrapper .carousel-btn:hover {
  background: linear-gradient(135deg, #E5BF47 0%, #D4AF37 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* お知らせセクション */
.announcements-section {
  background-color: var(--white);
  padding: 2rem 0;
}

.announcements-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.announcements-list {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.announcements-loading {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  border-left: 3px solid var(--dusty-blue);
}

.announcement-item:hover {
  background-color: #f0f0f0;
  border-left-color: var(--gold);
  transform: translateX(5px);
}

.announcement-date {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 90px;
}

.announcement-title {
  font-size: 1rem;
  color: var(--text-dark);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcements-section .no-data {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

/* イントロセクション */
.intro-section {
  background: linear-gradient(135deg, var(--dusty-pink) 0%, var(--dusty-lavender) 100%);
  padding: 1.5rem 0; /* 3rem → 1.5rem に変更 */
}

.intro-section h2 {
  text-align: center;  /* ← 追加 */
  margin-bottom: 1rem; /* 2rem → 1rem に変更 */
}

.intro-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* 占い師セクション */
.fortunetellers-section {
  background-color: var(--white);
  padding: 2rem 0; /* 4rem → 2rem に変更 */
}

/* goldbar装飾 */
.fortunetellers-section::before {
  content: '';
  display: block;
  background: url('/assets/images/parts/background/goldbar.png') center/contain no-repeat;
  height: 100px;
  width: 60%;
  margin: 0 auto 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem; /* 4rem → 2rem に変更 */
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--dusty-pink), var(--gold));
  margin: 0.5rem auto 0; /* 1rem → 0.5rem に変更 */
  border-radius: 2px;
}

.fortuneteller-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem; /* 上下を2rem → 1remに変更 */
}

/* カルーセルコンテナとトラックに余白を追加（影が切れないように） */
.fortuneteller-carousel-wrapper .carousel-container {
  padding: 1rem 0; /* 上下にパディング */
  overflow: visible; /* オーバーフローを表示 */
}

.fortuneteller-carousel-wrapper .carousel-track {
  padding: 1rem 0; /* 上下にパディング */
}

/* 1〜2人の場合の中央配置グリッド */
.carousel-container.centered-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.carousel-container.centered-grid .fortuneteller-card {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
}

/* 1人の場合 */
.carousel-container.centered-grid[data-count="1"] {
  justify-content: center;
}

/* 2人の場合 */
.carousel-container.centered-grid[data-count="2"] {
  justify-content: center;
}

/* カルーセルなしの場合、ボタンとドットを非表示 */
.carousel.no-carousel .carousel-btn,
.carousel.no-carousel .carousel-dots {
  display: none;
}

.fortuneteller-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.fortuneteller-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* フレームラッパー */
.fortuneteller-frame-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1rem;
}

/* ゴールドフレーム */
.fortuneteller-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/fortune-teller_card/RoundFrame.png') center/contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

.fortuneteller-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f8f9fa;
  z-index: 1;
}

/* リボン（待機中表示） */
.availability-ribbon {
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 70px;
  height: auto;
  z-index: 3;
}

.fortuneteller-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/*
 * 待機状態バッジ（旧デザイン - トップページ以外で使用）
 * トップページではリボン画像を使用
 */
.availability-badge {
    display: none; /* トップページでは非表示（リボンを使用） */
}

/* アイコン画像のスタイル */
.stat-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 4px;
}

.fortuneteller-name {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.fortuneteller-specialties {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.fortuneteller-stats {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: auto;
  padding-top: 0.5rem;
}

.fortuneteller-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-btn {
  display: block;
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 3rem; /* 上部に余白を追加 */
}

.view-all-btn:hover {
  color: var(--text-dark);
}

/* レビュー機能コメントアウト 2025-12-15
.review-section {
  background-color: var(--bg-light);
  padding: 2rem 0;
}

.review-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.review-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.review-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gender-icon {
  font-size: 1.5rem;
}

.age {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  min-width: 60px;
}

.rating {
  font-size: 0.85rem;
  margin-left: auto;
  color: #FFD700;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.review-card .fortuneteller-name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  font-weight: normal;
}

レビュー機能コメントアウト ここまで */

/* もっと見る / 詳細を見るリンク */
.more-link {
  display: block;
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 1.5rem;
}

.more-link:hover {
  color: var(--text-dark);
}

/* サブスクバナー */
.subscription-banner {
  background: linear-gradient(135deg, var(--dusty-lavender), var(--dusty-blue));
  padding: 1.5rem 0; /* 3rem → 1.5rem に変更 */
}

.banner-content-sub {
  text-align: center;
  color: var(--text-dark);
}

.banner-content-sub h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-btn {
  margin-top: 1.5rem;
  padding: 1rem 3rem;
  background-color: var(--gold);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover {
  background-color: #C29D2E;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* FAQセクション */
.faq-section {
  background-color: var(--bg-light);
  padding: 2rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.faq-loading {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.faq-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: var(--white);
  border-radius: 10px;
  border-left: 3px solid var(--dusty-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left-color: var(--gold);
}

/* 質問行 */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.faq-question h4 {
  color: var(--text-dark);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  flex: 1;
}

.faq-toggle {
  color: var(--text-light);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* 回答欄 - 未選択時は非表示 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
  margin-top: 0;
  opacity: 0;
}

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

/* 展開状態 */
.faq-item.expanded {
  background-color: #fff;
  border-left-color: var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item.expanded .faq-toggle {
  transform: rotate(180deg);
}

.faq-item.expanded .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
  opacity: 1;
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* お知らせセクション モバイル */
  .announcement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .announcement-date {
    font-size: 0.85rem;
  }

  .announcement-title {
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }

  /* モバイルでの中央配置グリッド（1人のみ） */
  .carousel-container.centered-grid {
    flex-direction: row;
    justify-content: center;
  }

  .carousel-container.centered-grid .fortuneteller-card {
    width: 100%;
    max-width: 300px;
  }

  .banner-section {
    padding: 0 1rem;
  }

  .banner-item {
    height: 150px;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .banner-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .banner-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem; /* 2rem → 1.5rem に変更 */
  }

  .fortuneteller-carousel-wrapper {
    padding: 1rem 1rem; /* 上下も1remに変更 */
  }

  .fortuneteller-frame-wrapper {
    width: 220px;
    height: 220px;
  }

  .fortuneteller-image-wrapper {
    width: 155px;
    height: 155px;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .banner-content-sub h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .banner-item {
    height: 125px;
  }

  .banner-title {
    font-size: 1.2rem;
  }

  .banner-subtitle {
    font-size: 0.85rem;
  }
}

/* ===============================
   イベント・特集セクション（トップページ）
   =============================== */

.events-section {
    background-color: var(--bg-light);
    padding: 2rem 0;
}

.events-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.events-preview-list {
    max-width: 900px;
    margin: 0 auto 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.events-loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

.events-section .no-data {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    grid-column: 1 / -1;
}

.feature-card {
    display: block;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: var(--dusty-lavender);
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

.feature-card-body {
    padding: 1rem 1.25rem;
}

.feature-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: '游明朝', 'Yu Mincho', serif;
}

.feature-card-content {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .events-section h2 {
        font-size: 1.5rem;
    }

    .events-preview-list {
        grid-template-columns: 1fr;
    }

    .feature-card-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 1.5rem 0;
    }

    .events-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}