.history {
  background: #faf9f5;
  padding: 80px 0;
  color: #4b3a34;
}

.history .container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  font-weight: bold;
  position: relative;
  margin-bottom: 20px;
  z-index: 1;
}

.page-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #94c2c3;
  margin-top: 16px;
}

.page-title .highlight-circle {
  position: absolute;
  left: -40px;
  top: 33%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: rgba(228, 153, 130, 0.5);
  border-radius: 50%;
  z-index: -1;
  filter: blur(8px);
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 40px;
  color: #999;
}

/* ===== 基本スタイル（PC時） ===== */
.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.history-text {
  flex: 1 1 60%;
  order: 1;
}

.history-img {
  flex: 1 1 35%;
  max-width: 300px;
  order: 2;
}

.history-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ▼ タイムライン全体 */
.history-timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.2px;
  background: #4b3a34;
  z-index: 0;
}

/* ▼ 年度ブロック */
.history-block {
  position: relative;
  margin-bottom: 100px;
}

.history-year {
  position: relative;
  margin-bottom: 40px;
}

.history-year .dot {
  position: absolute;
  left: -4px;
  top: 65px;
  width: 10px;
  height: 10px;
  background-color: #4b3a34;
  border-radius: 50%;
  z-index: 1;
}

.history-year .year-line {
  height: 1px;
  background-color: #4b3a34;
  width: 100%;
  margin: 8px 0;
}

.year-img {
  width: 300px;
  padding-left: 20px;
  opacity: .72;
}

/* ▼ 各項目 */
.history-entries {
  display: flex;
  flex-direction: column;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 48px 30px;
}

.history-text {
  flex: 1 1 60%;
}

.history-text .date {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.history-text .title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.title rt {
  font-size: 0.6em;
  line-height: 1;
  letter-spacing: 0;
}

.history-text .highlight-title {
  font-size: 1.8rem;
  line-height: 1.6;
}

.history-text .desc {
  color: #444;
  line-height: 1.6;
  padding-left: 1em;
  text-indent: -1em;
}

.history-img {
  flex: 1 1 35%;
  max-width: 300px;
}

.history-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ▼ フェードインアニメーション */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.highlight-title {
  display: inline;
  background-image: linear-gradient(to right, #fff176 0%, #fff176 100%);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0% 0.5em;
  padding-bottom: 3px;
  transition: background-size 1.5s ease;
}

.highlight-title.active {
  background-size: 100% 0.5em;
}

/* 共通レイアウトラッパー */
.history-block-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: transparent;
}

/* 令和3年度と5年度だけ背景色を指定 */
.reiwa3 .history-block-wrapper,
.reiwa5 .history-block-wrapper {
  background-color: #efefef;
}

/* 中央寄せの中身 */
.history-block {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding: 80px 0;
  box-sizing: border-box;
}

.history-block.no-padding {
  padding: 20px 0 80px !important;
}


@media screen and (max-width: 768px) {

  .page-title .highlight-circle {
    position: absolute;
    left: -10px;
    top: 20%;
    width: 70px;
    height: 70px;
  }

  .history-item {
    flex-direction: column;
  }

  .history-item.last-item {
    padding: 0;
  }

  .history-year .dot {
    position: absolute;
    top: 52px;
  }

  .year-img {
    width: 240px;
  }

}

@media screen and (max-width: 549px) {
  .history-text .highlight-title {
    font-size: 1.4rem;
  }

}