/* タイムライン全体の枠 */
.timeline-container {
  position: relative;
  margin: 60px 0;
  padding-left: 140px; /* 日付エリア(100px) + 余白分 */
  max-width: 900px;
}

/* 縦のボーダーライン（実線） */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 140px; /* 日付と内容の真ん中 */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #25abc1;
}

/* 縦のボーダーライン（末尾の点線） */
.timeline-container::after {
  content: '';
  position: absolute;
  left: 140px;
  top: 100%;
  height: 50px; 
  width: 0px;
  border-left: 2px dashed #25abc1;
}

/* 点線部分 */
.timeline-container::after {
  content: '';
  position: absolute;
  left: 140px;
  /* 実線が終わる位置からスタート */
  top: 100%;
  height: 50px; 
  width: 2px;
  /* 点線（dashed）を指定 */
  border-left: 2px dashed #25abc1;
}

/* 各項目のブロック */
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  min-height: 60px;
}

/* ライン上の点 */
.timeline-item::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  background-color: #fff;
  border: 3px solid #25abc1;
  border-radius: 50%;
  z-index: 1;
}

/* 左側：日付（絶対配置） */
.timeline-left {
  position: absolute;
  left: -140px; 
  width: 120px;
  text-align: right;
}

.timeline-date {
  font-weight: bold;
  font-size: 18px;
  color: #25abc1;
}

/* 右側：内容エリア */
.timeline-right {
  text-align: left;
  margin: 20px;
}

.timeline-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

/* 場所のデザイン */
.timeline-location {
  font-size: 16px;
  color: #25abc1;
  margin-bottom: 8px;
  font-weight: bold;
}

.timeline-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  /* 本文が長い場合に備えて少し隙間をあける */
  padding-top: 5px;
}

/* 画像中央寄せ（year-body.txt用） */
.body-image-wrapper {
  text-align: center;
  margin: 25px 0;
}

.full-width-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .timeline-container {
    padding-left: 40px;
  }
  .timeline-container::before,
  .timeline-container::after {
    left: 20px;
  }
  .timeline-item {
    margin-bottom: 40px;
  }
  .timeline-left {
    position: static;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
  }
  .timeline-item::after {
    left: -29px; /* スマホ時の棒の位置に合わせる */
  }

}

