/* ===========================================================
   File: /wp-content/themes/deer_child/assets/css/ai-tab-switching.css
   説明: AIレビューページ専用のタブUIスタイル
         （.ai-tab-section / .ai-tabs / .ai-tab / .ai-tab-content）
   =========================================================== */

/* タブのコンテナ */
.ai-tab-section {
  margin-top: 20px;
}

/* タブボタンの並び */
.ai-tab-section .ai-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 0 0;
  padding: 0;
}

/* タブボタン */
.ai-tab-section .ai-tab {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #f4f4f4;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-size: 16px;
  line-height: 1.2;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  outline: none;
}

/* アクティブなタブ */
.ai-tab-section .ai-tab.active {
  background: #3498db;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 0 #fff inset;
}

/* タブボタンの最後の余白調整（任意） */
.ai-tab-section .ai-tab:last-child {
  margin-right: 0;
}

/* タブの中身（デフォルトは非表示） */
.ai-tab-section .ai-tab-content {
  display: none;
  padding: 24px;
  border: 1px solid #ddd;
  border-top: none;
  margin-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

/* 表示する中身 */
.ai-tab-section .ai-tab-content.active {
  display: block;
}

/* モバイル最適化 */
@media (max-width: 768px) {
  .ai-tab-section .ai-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ai-tab-section .ai-tab {
    white-space: nowrap;
    font-size: 15px;
    padding: 10px 16px;
  }
  .ai-tab-section .ai-tab-content {
    padding: 16px;
  }
}
