/* history.css - Delightful 沿革ページ用 */

body {
  overflow-x: hidden;
}

.history-timeline-container,
.history-timeline {
  max-width: 100vw;
  box-sizing: border-box;
}

.history-timeline-desc,
.history-timeline-year {
  word-break: break-word;
  overflow-wrap: break-word;
}

.history-timeline-section {
  background: #f6f1e6;
}
.history-hero,
.history-timeline-bg {
  background: none;
}

.history-timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 24px;
}

.history-timeline {
  position: relative;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

/* 縦ライン */
.history-timeline::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 16px;
  background: #e3dbc9;
  z-index: 0;
}

.history-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-bottom: 48px;
}

.history-timeline-item:last-child {
  margin-bottom: 0;
}

.history-timeline-dot {
  width: 36px;
  height: 36px;
  background: linear-gradient(142.96deg, #f4d19f 10.79%, #f4930b 87.78%);
  border-radius: 50%;
  position: absolute;
  left: 68px;
  top: 0;
  z-index: 2;
  border: 6px solid #f6f1e6;
  box-sizing: border-box;
  transition: top 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-timeline-dot-line {
  position: absolute;
  left: 128px;
  top: 0;
  width: 42px;
  height: 4px;
  background: #e4dcca;
  border-radius: 10px;
  z-index: 1;
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-timeline-year {
  font-family: "Dlfl Bold", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(142.96deg, #f4d19f 10.79%, #f4930b 87.78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-left: 120px;
  margin-bottom: 0.2em;
  line-height: 1.1;
}

.history-timeline-desc {
  font-size: 1rem;
  color: #6a5647;
  margin-left: 120px;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.history-timeline-desc p {
  color: #6a5647;
}

.fade-in-on-scroll {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-on-scroll.is-visible {
  opacity: 1;
}

.history-timeline-year,
.history-timeline-desc {
  margin-left: 200px;
}

.big-year {
  font-size: 3.5em;
}

@media (max-width: 763px) {
  .history-timeline::before {
    left: 20px;
    width: 13px;
  }
  .history-timeline-container {
    padding: 0 4vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .history-timeline {
    max-width: 100vw;
    box-sizing: border-box;
  }
  .history-timeline-desc,
  .history-timeline-year {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .history-timeline-dot {
    width: 30px;
    height: 30px;
    left: 10px;
    border-width: 4px;
  }
  .history-timeline-dot-line {
    left: 48px;
    width: 26px;
  }
  .history-timeline-year,
  .history-timeline-desc {
    margin-left: 90px;
  }
  .history-timeline-year {
    font-size: 1.3rem;
  }
  .history-timeline-desc {
    font-size: 0.95rem;
  }
  .big-year {
    font-size: 2.2em;
  }
}

.plain-bg {
  height: 60px;
  background: #f6f1e6;
}
