/* ===========================
   Base Layout
=========================== */

.current-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  color: #222;

  /* ★ A案：読み込めるまで非表示 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* CSV読み込み完了時 */
.current-main.ready {
  visibility: visible;
  opacity: 1;
}

.section-title {
  font-size: 20px;
  font-weight: normal;
  margin: 40px 0 16px;
  color: #222;
}

/* ===========================
   Event List
=========================== */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}

/* タイトル部分全体がクリック範囲 */
.event-toggle {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 14px 0;
  cursor: pointer;
  display: block;
  color: #222;
  -webkit-tap-highlight-color: transparent;
}

.event-toggle:hover {
  opacity: 0.7;
}

.event-title {
  font-weight: bold;
}

/* event_type（上の小見出し） */
.type {
  font-size: 14px;
  color: #555;
  margin-bottom: 2px;
}

/* タイトル（太字） */
.event-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 4px;
}

/* summary */
.event-summary {
  margin-top: 6px;
  color: #555;
  font-size: 14px;
}

/* detail */
.event-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.event-item.open .event-detail {
  max-height: 500px;
}

.chevron {
  display: inline-block;
  margin-left: 16px;
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* ▶ */
}

.event-item.open .chevron {
  transform: rotate(90deg); /* ▼ に見える角度 */
}

/* open時の色保持（モバイル対策） */
.event-item.open .event-toggle {
  color: #222 !important;
  opacity: 1 !important;
}

/* close 時も色を戻す */
.event-item:not(.open) .event-toggle {
  color: #222 !important;
  opacity: 1 !important;
}

/* タイトル＋サマリーとシェブロンを左右に分ける */
.event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* 左側テキストのラッパー */
.event-text {
  flex: 1;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
  .current-main {
    padding: 24px;
  }
  .section-title {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .event-toggle {
    font-size: 16px;
  }
}