/* p-history
---------------------------------------------------------------------------- */
.p-history {
  padding: 4.5rem 0 0;
}
.p-history .m-bg-box {
  padding: 8rem 10rem;
}

.p-history-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem 6rem;
}

.p-history-year {
  font-size: 5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 600;
  font-family: "Rajdhani";
  margin-top: 2.5rem;
}

.p-history-event {
  padding: 4rem;
  border-radius: 1rem;
  background-color: #3E4547;
  position: relative;
}
.p-history-event::before, .p-history-event::after {
  position: absolute;
  content: "";
}
.p-history-event::before {
  top: 5.5rem;
  left: -3rem;
  width: 1px;
  height: calc(100% + 3rem + 3rem);
  background-color: #fff;
}
.p-history-event::after {
  top: 2rem;
  left: -5.7rem;
  width: 5.5rem;
  height: auto;
  aspect-ratio: 1/1;
  background: url(../../../images/common/icn_blur-circle_dot.png) no-repeat center/contain;
}
.p-history-event:last-child::before {
  height: calc(100% - 5.5rem);
}

.p-history-event-item dt {
  color: #3E4547;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 600;
  font-family: "Rajdhani";
  width: 11rem;
  padding: 0.5rem 0 0.3rem;
  text-align: center;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: #fff;
}
.p-history-event-item dd {
  padding-left: 1em;
}
.p-history-event-item:not(:last-child) {
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 767px) {
  .p-history {
    padding: 0;
  }
  .p-history .m-bg-box {
    padding: 9.3333333333vw 5.3333333333vw;
  }
  .p-history-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 6.6666666667vw;
  }
  .p-history-year {
    font-size: 9.6vw;
    margin: 0 0 4vw;
  }
  .p-history-event {
    padding: 8vw 5.3333333333vw;
    border-radius: 4vw;
  }
  .p-history-event:not(:last-child) {
    margin-bottom: 9.3333333333vw;
  }
  .p-history-event::before {
    top: -8vw;
    left: -5.8666666667vw;
    width: 0.2666666667vw;
    height: calc(100% + 8vw + 4vw + 9.3333333333vw);
  }
  .p-history-event::after {
    top: -15.4666666667vw;
    left: -12.2666666667vw;
    width: 13.3333333333vw;
  }
  .p-history-event:last-child::before {
    height: calc(100% + 8vw);
  }
  .p-history-event-item dt {
    font-size: 6.4vw;
    width: 33.6vw;
    padding: 1.3333333333vw 0 0.8vw;
    margin-bottom: 2.6666666667vw;
  }
  .p-history-event-item dd {
    font-size: 4.2666666667vw;
    line-height: 1.8125;
    padding-left: 0;
  }
  .p-history-event-item:not(:last-child) {
    margin-bottom: 6.6666666667vw;
  }
}
