.timeline-bg {
  background-image: url(../../img/timeline/timeline-bg.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  background-color: #d3d7e5;
  padding: 100px 50px;
}

.timeline {
  padding: 70px 0 100px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.timeline__year {
  position: relative;
  margin-bottom: 100px;
}

.timeline-inner {
  /* max-width: 1498px; */
  max-width: clamp(56.25rem, -6.042rem + 83.06vw, 93.625rem);
  margin: 0 auto;
  padding: 0 15px;
}

.timeline-main-heading {
  margin-bottom: 50px;
}

.timeline-main-heading h2 {
  color: #0a395d;
  font-family: 'Noto Sans JP';
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin: 30px auto 20px;
}

.timeline-main-heading h2 span {
  color: #ff74b8;
}

.timeline-main-heading p {
  color: #e1c069;
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 30px;
}

.timeline-main-heading-img {
  max-width: 170px;
  margin: 0 auto;
}

.timeline__heading {
  color: #e1c069;
  text-align: center;
  font-family: 'Cormorant Unicase', serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
}

.timeline__line {
  position: relative;
}

.timeline__line:after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* background-color: rgba(181, 159, 91, 0.3);  */
  background-color: #e1c069;
  z-index: 1;
}

/* 上から塗り進めるライン（スクロールで変化） */
/* .timeline__line::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #b59f5b 0%, #b59f5b var(--line-fill, 0%), transparent var(--line-fill, 0%));
  z-index: 2;
} */

.timeline__items {
  /* display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px; */
  position: relative;
}

.timeline__items:before {
  content: '';
  position: absolute;
  background-color: #e1c069;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline__items:after {
  content: '';
  position: absolute;
  background-color: #e1c069;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.timeline__items--last:after {
  content: none;
}

.timeline__item {
  width: 50%;
  /* width: clamp(25rem, -9.792rem + 46.39vw, 45.875rem); */
  position: relative;
}

.timeline__item.left {
  text-align: left;
}

.timeline__item.right {
  text-align: right;
  margin-left: auto;
}

.timeline__date {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  margin-bottom: 10px;
}

.timeline__date-line {
  background-color: #e1c069;
  width: 100%;
  height: 2px;
  position: relative;
}

.timeline__date-line:after {
  content: '';
  position: absolute;
  background-color: #e1c069;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.timeline__date-line--left:after {
  right: auto;
  left: 0;
}

.timeline__date p {
  color: #e1c069;
  font-family: 'Cormorant Unicase', serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  display: block;
  /* margin-bottom: 10px; */
  position: relative;
}

.timeline__content {
  border-radius: 5px;
  border: 1px solid #f5f9ff;
  background: #fff;
  padding: 15px 15px 5px;
  /* 
  background-image: url(../../img/timeline/timeline__content-bg.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 359px 170px; */
  position: relative;
  overflow: hidden;
  z-index: 0;
  /* min-height: 180px; */
}
.timeline__content:after {
  content: '';
  position: absolute;
  background-image: url(../../img/timeline/timeline__content-bg-001.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  top: 55%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 356px;
  height: 207px;
  z-index: -1;
}

.timeline__content--deremas:after {
  background-image: url(../../img/timeline/timeline__content-bg-002.png);
  width: 312px;
  height: 267px;
}

.timeline__content--millimas:after {
  background-image: url(../../img/timeline/timeline__content-bg-003.png);
  width: 295px;
  height: 282px;
}

.timeline__content--shinymas:after {
  background-image: url(../../img/timeline/timeline__content-bg-004.png);
  width: 287px;
  height: 262px;
}
.timeline__content--sidem:after {
  background-image: url(../../img/timeline/timeline__content-bg-005.png);
  width: 318px;
  height: 189px;
}
.timeline__content--gakumas:after {
  background-image: url(../../img/timeline/timeline__content-bg-006.png);
  width: 356px;
  height: 330px;
}

.timeline__content--deremas p {
  color: #2581c7 !important;
}

.timeline__content--millimas p {
  color: #f6b900 !important;
}
.timeline__content--shinymas P {
  color: #679ff5 !important;
}

.timeline__content--sidem p {
  color: #11be93 !important;
}

.timeline__content--gakumas p {
  color: #ff8b00 !important;
}

.timeline__content-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.timeline__content--left {
  margin-right: 40px;
}

.timeline__content--right {
  margin-left: 40px;
  text-align: left;
}

.timeline__content p {
  color: #f34e6c;
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  /* flex-grow: 1; */
  width: 50%;
}

.timeline__content-imgs {
  display: flex;
  align-items: center;
}
.timeline__content-imgs img {
  /* max-width: 150px; */
  max-width: clamp(6.25rem, 1.042rem + 6.94vw, 9.375rem);
}

/*----------
 1個　
----------*/

.timeline__item--20100109,
.timeline__item--20141128,
.timeline__item--20181207,
.timeline__item--20190125,
.timeline__item--20220624 {
  padding-top: 45px;
  padding-bottom: 220px;
}

/*----------
 2個
----------*/

.timeline__item--20090725,
.timeline__item--20110521,
.timeline__item--20120714,
.timeline__item--20150821,
.timeline__item--20160422,
.timeline__item--20230203,
.timeline__item--20240426-001 {
  padding-top: 65px;
}

.timeline__item--20090822,
.timeline__item--20110827,
.timeline__item--20120804,
.timeline__item--20150925,
.timeline__item--20160429,
.timeline__item--20230315 {
  padding-bottom: 71px;
  position: relative;
  margin-top: -100px;
}

.timeline__item--20151016 {
  position: absolute;
  top: 364px;
}

.timeline__item--20250620 {
  padding-bottom: 270px;
}

.timeline__item--20210305,
.timeline__item--20240628-001,
.timeline__item--20250523-001 {
  padding-top: 65px;
  padding-bottom: 90px;
}

.timeline__item--20210312 {
  position: absolute;
  top: 193px;
  right: 0;
}

.timeline__item--20240426-002 {
  position: absolute;
  top: 193px;
  right: 0;
}
.timeline__item--20240628-002 {
  position: absolute;
  top: 492px;
  right: 0;
}

.timeline__item--20250523-002 {
  position: absolute;
  top: 193px;
  right: 0;
}
.timeline__item--20250726 {
  position: absolute;
  top: 492px;
  right: 0;
}

@media (max-width: 1200px) {
  .timeline__item {
    padding: 30px 0 0;
    margin-top: 0;
  }
  .timeline__item:last-child {
    padding-bottom: 30px;
  }
  .timeline__item--20151016 {
    position: relative;
    top: auto;
  }
  .timeline__item--20210312 {
    position: relative;
    top: auto;
  }
  .timeline__item--20240426-002 {
    position: relative;
    top: auto;
  }
  .timeline__item--20240628-002 {
    position: relative;
    top: auto;
  }

  .timeline__item--20250523-002 {
    position: relative;
    top: auto;
  }
  .timeline__item--20250726 {
    position: relative;
    top: auto;
  }
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {
  .timeline__content p {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .timeline-inner {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-main-heading {
    margin-bottom: 25px;
  }

  .timeline__heading {
    text-align: left;
    font-size: 64px;
    margin-bottom: 10px;
  }

  .timeline__line:after {
    left: 0;
    top: 2px;
    transform: none;
  }

  .timeline__items {
    position: relative;
  }

  .timeline__items:before {
    left: -4px;
    transform: none;
  }

  .timeline__items:after {
    left: -4px;
    bottom: -2px;
    transform: none;
  }

  .timeline__item {
    width: 100%;
    position: relative;
  }

  .timeline__item.left {
    text-align: left;
  }

  .timeline__item.right {
    text-align: right;
    margin-left: 0;
  }

  .timeline__date {
    gap: 20px;
    padding-right: 100px;
  }

  .timeline__date--left {
    flex-direction: row-reverse;
  }
  .timeline__date-line {
    background-color: #e1c069;
    width: 100%;
    height: 2px;
    position: relative;
  }

  .timeline__date-line:after {
    content: '';
    position: absolute;
    background-color: #e1c069;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .timeline__date-line--left:after {
    right: 0;
    left: auto;
  }

  .timeline__line::before {
    left: 0;
    top: 0;
    transform: none;
  }

  .timeline__date p {
    font-size: 36px;
  }

  .timeline__content {
    background: #fff;
    padding: 10px 10px 5px;
    /* background-image: url(../../img/timeline/timeline__content-bg.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 183.9px auto; */
    /* min-height: 100px; */
  }

  .timeline__content p {
    font-size: 10px;
  }

  .timeline__content:after {
    width: 183px;
    height: 107px;
  }

  .timeline__content--deremas:after {
    width: 132px;
    height: 114px;
  }

  .timeline__content--millimas:after {
    width: 116px;
    height: 110px;
  }

  .timeline__content--shinymas:after {
    width: 109px;
    height: 100px;
  }
  .timeline__content--sidem:after {
    width: 148px;
    height: 88px;
  }
  .timeline__content--gakumas:after {
    width: 114px;
    height: 106px;
  }

  .timeline__content--left {
    margin-right: 0;
    margin-left: 20px;
  }

  .timeline__content--right {
    margin-left: 20px;
  }

  .timeline__content-imgs img {
    max-width: 80px;
  }

  /* .timeline__item--20090725 {
    padding-top: 30px;
  }

  .timeline__item--20090822 {
    padding-top: 30px;
    padding-bottom: 30px;
  } */
  /* .timeline__item {
    padding-top: 30px;
    padding-bottom: 0;
    top: auto;
  }
  .timeline__item:last-child {
    padding-bottom: 30px;
  } */

  .timeline-bg {
    padding: 25px 10px 35px;
  }

  .timeline {
    padding: 25px 0 35px;
  }

  .timeline__year {
    margin-bottom: 20px;
  }

  .timeline-main-heading h2 {
    font-size: 21px;
    margin: 20px auto 10px;
  }

  .timeline-main-heading p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .timeline-main-heading-img {
    max-width: 85px;
  }

  .timeline__content-flex {
    align-items: center;
  }
}

@media (max-width: 400px) {
  .timeline__date {
    padding-right: 50px;
  }
}

.timeline__item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__content a {
  margin-bottom: 10px;
  display: block;
}

.timeline-cs {
  color: #e1c069;
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  line-height: 100%; /* 64px */
  margin-top: -100px;
}

@media (max-width: 1200px) {
  .timeline-cs {
    font-size: 48px;
    margin-top: -20px;
    text-align: left;
    padding-left: 20px;
  }
}
