@charset "utf-8";

.history {
  position: relative;
  padding-bottom: 50px;
}
.history::after{
  content: "";
  position: absolute;
  background-color:#e6002d;
  left: 38px;
  width: 4px;
  display: block;
  top: 88px;
  bottom: 0;
  margin: auto;
  z-index: -999;
}
.history:last-of-type {
  padding-bottom: 30px;
}

.history-anc{
  font-size: 18px;
  font-weight: bold;
  justify-content: space-between;
  border-radius: 28px;
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.15);
}

.anc-1-pcAuto-sp1 .anc-1 {
  margin:0;
  flex: 1 0 0;
  text-align:center;
  border-right: #ddd 1px solid;
}
.anc-1 a{
  padding: 15px;
  justify-content: center;
}
.anc-1 a:before{
  top: 1.3em;
  left: 35px;
}
.anc-1:nth-of-type(5){
  border-right: none;
}
.anc-1:nth-of-type(5) a:before{
  left: 63px;
}

.history h2 {
  font-size: 3rem;
  padding: 20px 70px;
  border-radius: 30px;
  margin-bottom: 5px;
  text-align: center;
  background-color: #feefd9;
}
.history h2 span{
  font-size: 2.6rem;
}

.history-item {
  margin-left: 100px;
  display: grid;
  grid-template-columns:150px 1fr;
  position: relative;
  padding-top: 14px;
  margin-right: 36px;
}
.history-item::before {
  content: "";
  position: absolute;
  background-color: #ffffff;
  border-radius: 14px;
  width: 28px;
  height: 28px;
  top: 22px;
  left: -74px;
  border: 4px solid #e6002d;
  z-index: 99;
}
.history-item:last-of-type{
  border-bottom: 1px solid #ddd;
}

.history-border-top {
  border-top: 1px solid #ddd;
}

.history-year {
  font-weight: bold;
  font-size: 2.6rem;
}
.history-year span{
  font-size: 2rem;
}

.history-description-block {
  margin-top: 6px;
  display: flex;
  gap: 36px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.history-description-block.history-border-top{
  padding-top: 20px;
}
.history-description-block .description-block-first,
.history-description-block > p {
  flex: 1;
}
.history-description-title{
  margin-bottom: 10px;
  font-size: 18px;
}
.history-description-block figure {
  width: 255px;
}

figcaption {
  margin-top: 5px;
}

@media only screen and (max-width:767.98px) {
  .history {
    padding-bottom: 40px;
  }
  .history::after{
    left: 27px;
    width: 3px;
    top: 63px;
    bottom: 0;
  }

  .history-anc {
    font-size: 14px;
  }
  
  .history h2 {
    font-size: 2.1rem;
    padding: 15px ;
    border-radius: 30px;
    margin-bottom: 13px;
    margin-top: 0;
  }
  .history h2 span {
    font-size: 2rem;
  }

  .history-item {
    margin-left:45px;
    display: block;
    position: relative;
    padding-top: 20px;
    margin-right: 15px;
  }
  .history-item::before {
    border-radius: 10px;
    width: 20px;
    height: 20px;
    top: 24px;
    left: -27px;
    border-width: 3px;
  }
  
  .history-description-block {
    display: block;
    padding-left: 0px;
    padding-right: 0px;
  }
  .history-year {
    font-size: 2rem;
  }
  .history-year span {
    font-size: 1.8rem;
  }
  .history-description-block figure {
    width: 255px;
    padding-top: 30px;
  }
  .history-anc{
    border-radius: 23px;
    padding: 7px 0;
  }
  
  .anc-1-pcAuto-sp1 .anc-1{
    flex: 0 1 auto;
    border: none;
    width: 50%;
  }
  .anc-1 a {
    justify-content: flex-start;
    padding: 8px 15px 8px 35px;
  }
  .anc-1 a:before {
    top: 0.9em;
    left: 20px;
  }
  .anc-1:nth-of-type(5) a:before {
    left: 20px;
  }
  figcaption {
    margin-top: 9px;
  }

}

