/* ============================================
   セミナー実績 アコーディオン＋タブ スタイル
   ファイル: css/seminar.css
   ============================================
   ★ 基本的にこのファイルは変更不要です。
     色やサイズを変えたい場合のみ編集してください。
   ============================================ */


/* --- セミナーセクション共通 --- */
.seminar-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 15px;
}

.seminar-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

.seminar-section .ttl {
  text-align: center;
  margin-bottom: 30px;
}

.seminar-map {
  text-align: center;
  margin-bottom: 30px;
}

.seminar-latest {
  text-align: center;
  margin-bottom: 30px;
}

.seminar-latest img {
  margin: 0 auto;
}

.seminar-photos {
  text-align: center;
  margin-top: 30px;
}

.seminar-photos img {
  margin: 0 auto;
}


/* ============================================
   アコーディオン
   ============================================ */
.accordion {
  margin-bottom: 30px;
}

/* トリガーボタン */
.accordion-trigger {
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}


/* 開閉アニメーション */
.accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
  padding: 0;
}

.accordion.is-open .accordion-body {
  max-height: 8000px;
  opacity: 1;
  padding: 20px 0 0;
}


/* ============================================
   タブ：楕円ボタン＋横スクロール
   ============================================ */
.year-tabs {
  margin-top: 0;
}

/* スクロールコンテナ外枠 */
.tab-scroll-wrapper {
  position: relative;
  margin-bottom: 4px;
}

/* フェードヒント（左右の影でスクロール可能を示す） */
.tab-scroll-wrapper::before,
.tab-scroll-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.tab-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

.tab-scroll-wrapper.fade-left::before {
  opacity: 1;
}

.tab-scroll-wrapper.fade-right::after {
  opacity: 1;
}

/* スクロールするボタン列 */
.tab-buttons {
  display: flex;
  gap: 10px;
  padding: 12px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-buttons.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* 楕円ボタン */
.tab-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: bold;
  color: #555;
  background: #f2f2f2;
  border: 2px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
  background: #e6f5f5;
  border-color: #2ba0a0;
  color: #2ba0a0;
}

.tab-btn:active {
  transform: scale(0.96);
}

/* アクティブ状態 */
.tab-btn.is-active {
  background: linear-gradient(135deg, #2ba0a0, #1a7878);
  color: #fff;
  border-color: #2ba0a0;
  box-shadow: 0 3px 10px rgba(43, 160, 160, 0.35);
}

.tab-btn.is-active:hover {
  background: linear-gradient(135deg, #33b3b3, #1f8a8a);
}

/* タブパネル */
.tab-panel {
  display: none;
  padding: 16px 0;
  text-align: center;
  animation: tabFadeIn 0.3s ease;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel img {
  margin: 0 auto;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 600px) {
  .accordion-trigger {
    font-size: 14px;
    padding: 14px 16px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 9px 18px;
  }
}
