@charset "UTF-8";

/* ドロップダウンメニューのトランジション */
.dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.group:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 沿革タイムラインのスタイル */
.timeline {
  position: relative;
  max-width: 4xl;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: #10b981;
  /* emerald-500 */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 1rem 3rem;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 4rem;
}

.timeline-item.right {
  left: 50%;
  padding-left: 4rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #fff;
  border: 4px solid #10b981; /* emerald-500 */
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background-color: #fff;
  position: relative;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.timeline-date {
  font-weight: 700;
  color: #059669; /* emerald-600 */
  margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 1rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0%;
    padding-left: 50px;
  }

  .timeline-item.right::after,
  .timeline-item.left::after {
    left: 10px;
  }
}