/* p-history
---------------------------------------------------------------------------- */
.p-history {
  padding-block: 8rem 10rem;
}

.p-history-blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-inline: 5rem;
}

.p-history-block {
  display: flex;
  align-items: flex-start;
  gap: 0 2rem;
}

.p-history-block-age {
  display: flex;
  align-items: baseline;
  gap: 0 0.2rem;
  color: #073190;
}

.p-history-block-age em {
  font-family: "Roboto";
  font-size: 2rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: normal;
}

.p-history-block-age small {
  font-size: 1.5rem;
  line-height: 1.9333333333;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-history-block-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.45rem;
}

.p-history-block-item {
  display: flex;
  align-items: start;
  gap: 0 2.7rem;
  position: relative;
}

.p-history-block-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0.4rem;
  z-index: -1;
  width: 0.2rem;
  height: calc(100% + 2em);
  border-left: 0.2rem dotted #073190;
}

.p-history-block:last-child .p-history-block-item:last-child::before {
  height: calc(100% + 1em);
}

.p-history-block-item-boxes {
  display: flex;
  align-items: center;
  gap: 0 2rem;
}

.p-history-block-item-boxes-circle {
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #073190;
}

.p-history-block-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 0.5rem;
  width: 12rem;
}

.p-history-block-item-box-year em,
.p-history-block-item-box-month em {
  font-family: "Roboto";
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-history-block-item-box-year small,
.p-history-block-item-box-month small {
  font-size: 1.5rem;
  line-height: 1.9333333333;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.p-history-block-item-wrap {
  flex: 1;
  position: relative;
}

.p-history-block-item-wrap-txt {
  font-size: 1.6rem;
  line-height: 1.8125;
  letter-spacing: 0.06em;
  font-weight: 400;
  width: fit-content;
  padding-right: 2rem;
  position: relative;
}

.p-history-block-item-wrap-txt._line::before,
.p-history-block-item-wrap-txt._line::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.p-history-block-item-wrap-txt._line::before {
  left: 100%;
  width: 1rem;
  height: 1rem;
  background-color: #fff;
  border: 0.2rem solid #073190;
  border-radius: 50%;
  box-sizing: border-box;
}

.p-history-block-item-wrap-txt._line::after {
  left: calc(100% + 0.5rem);
  z-index: -1;
  height: 1px;
  background-color: #BEBEBE;
}

.p-history-block-item-wrap-txt._line._01::after {
  width: 100%;
}

.p-history-block-item-wrap-txt._line._02::after {
  width: 200%;
}

.p-history-block-item-wrap-txt._line._03::after {
  width: 125%;
}

.p-history-block-item-wrap-txt._line._04::after {
  width: 230%;
}

.p-history-block-item-wrap-img {
  position: absolute;
  width: 26rem;
  aspect-ratio: 260/173;
}
.p-history-block-item-wrap-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.p-history-block-item-wrap-img._01 {
  bottom: -1rem;
  right: 0;
}

.p-history-block-item-wrap-img._02 {
  top: -0.7rem;
  right: 0;
}

.p-history-block-item-wrap-img._03 {
  bottom: -1rem;
  right: 30rem;
  width: 15rem;
  aspect-ratio: 150/225;
}

.p-history-block-item-wrap-img._04 {
  top: -1.3rem;
  right: 0;
}

.p-history-bannerArea {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 4rem;
  margin-top: 10rem;
}

.p-history-banner-link {
  display: block;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
}

.p-history-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 580/149;
}
.p-history-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 767px) {
  .p-history {
    padding-block: 12.8vw 13.3333333333vw;
  }
  .p-history-blocks {
    gap: 4vw;
    padding-inline: initial;
  }
  .p-history-block {
    flex-direction: column;
    gap: 1.3333333333vw;
  }
  .p-history-block-age {
    gap: 0 0.5333333333vw;
  }
  .p-history-block-age em {
    font-size: 5.3333333333vw;
  }
  .p-history-block-age small {
    font-size: 4vw;
  }
  .p-history-block-items {
    gap: 4vw;
    padding-left: 1.3333333333vw;
  }
  .p-history-block-item {
    flex-direction: column;
    align-items: flex-start;
    gap: initial;
  }
  .p-history-block-item::before {
    top: 3.2vw;
    left: 1.0666666667vw;
    width: 0.5333333333vw;
    height: calc(100% + 1em);
    border-left-width: 0.5333333333vw;
  }
  .p-history-block:last-child .p-history-block-item:last-child::before {
    height: 100%;
  }
  .p-history-block-item._last::before {
    height: 3em;
  }
  .p-history-block-item-boxes {
    gap: 0 5.3333333333vw;
  }
  .p-history-block-item-boxes-circle {
    width: 2.6666666667vw;
    height: 2.6666666667vw;
  }
  .p-history-block-item-box {
    gap: 0 1.3333333333vw;
    width: 32vw;
  }
  .p-history-block-item-box-year em,
  .p-history-block-item-box-month em {
    font-size: 5.3333333333vw;
  }
  .p-history-block-item-box-year small,
  .p-history-block-item-box-month small {
    font-size: 4vw;
  }
  .p-history-block-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.6666666667vw;
    padding-left: 8vw;
  }
  .p-history-block-item-wrap-txt {
    font-size: 4.2666666667vw;
    letter-spacing: 0.05em;
    padding-right: initial;
  }
  .p-history-block-item-wrap-txt._line::before,
  .p-history-block-item-wrap-txt._line::after {
    content: none;
  }
  .p-history-block-item-wrap-img {
    position: initial;
    width: 69.3333333333vw;
  }
  .p-history-block-item-wrap-img._03 {
    width: 40vw;
  }
}
