/**************************************************************************************
*****headerのz-index*****
**************************************************************************************/
.header {
  z-index: 100;
}

/**************************************************************************************
*****背景画像 部分*****
**************************************************************************************/
.history_first_part {
  background-image: url(../asset/history/bg1.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 50px;

}

.history_second_part {
  background-image: url(../asset/history/bg2.png);
  background-position: right -230px top 0;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: 120px;
}

@media screen and (max-width:992px) {

  .history_first_part,
  .history_second_part {
    background-image: none;
    padding: 0;
  }

  .for_sp_one_photo {
    background-image: url(../asset/history/bg_sp.png);
    background-position: left 0 top -100px;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 50px;
    padding-bottom: 120px;
  }
}

@media screen and (max-width:768px) {
  .history_first_part .content.title p {
    display: inline-block;
    font-size: 16px;
    margin-left: 0;
    line-height: 16px;
    position: absolute;
    top: 60px;
    left: 50%;
    translate: -50% 0;
  }
}


/**************************************************************************************
*****会社情報corporate 部分*****
**************************************************************************************/

.history_first_part .content.title {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  background-color: var(--white);
}

.history_first_part .content.title::before,
.history_first_part .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

.history_first_part .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

.history_first_part .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

.history_first_part h2 {
  font-size: 40px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.history_first_part h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media(max-width:997px) {
  .history_first_part h2 {
    line-height: 48px;
    flex-direction: column;
  }

  .history_first_part h2::after {
    line-height: normal;
  }
}

@media (max-width:576px) {
  .history_first_part h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

.history_first_part .content.title p {
  display: inline-block;
  font-size: 16px;
  margin-left: 4px;
  line-height: 48px;
  position: absolute;
  top: 24px;
}

@media screen and (max-width:768px) {
  .history_first_part .content.title p {
    display: inline-block;
    font-size: 16px;
    margin-left: 0;
    line-height: 16px;
    position: absolute;
    top: 60px;
    left: 50%;
    translate: -50% 0;
  }
}

/**************************************************************************************
*****沿革 共通部分*****
**************************************************************************************/

.timeline_box {
  width: 100%;
}

.timeline_title {
  text-align: left;
  padding: 32px 0;
  font-size: 24px;
  font-weight: bold;
  /* font-family: "Dela Gothic One"; */
}

.timeline_title h1 {
  font-size: 30px;
  font-weight: lighter;
}

section h1 span.border {
  width: 3rem;
}

.timeline_event {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

@media screen and (max-width:992px) {
  .timeline_title {
    padding: 20px 0;
    font-size: 22px;
  }
}

/**************************************************************************************
*****沿革以下年表の行の左側＝年月の部分*****
**************************************************************************************/

.timeline_textleft {
  width: 250px;
  padding-right: 70px;

  /* 年表の棒線部 */
  border-right: 3px solid var(--black);
}

/* 最終行のみ年表の傍線部を削除し1em分上に余白をつける */
.timeline_textleft.lastline {
  border: none;
  padding-top: 1em;
}

/* 年表部分の最初と最終の行を除く内側の行のみinsideで行の高さを調整 */
.inside {
  padding-top: 1em;
}

/* 文字の幅が広いものは左寄せにする */
.timeline_textleft .yeartext_box_left {
  display: flex;
  justify-content: flex-start;
}

/* 文字の幅が広くないものは右寄せにする */
.timeline_textleft .yeartext_box {
  display: flex;
  justify-content: flex-end;
  /* font-family: "Dela Gothic One"; */
}

.timeline_textleft .yearleft .yeartext_small {
  font-size: 18px;
  line-height: 24px;
  font-family: "Dela Gothic One";
}

.timeline_textleft .yearleft .yeartext_medium {
  font-size: 26px;
  line-height: 24px;
  font-family: "Dela Gothic One";
}

.timeline_textleft .yearright {
  line-height: 48px;
  font-family: "Dela Gothic One";
}

.timeline_textleft .yearright .yeartext_large {
  font-weight: bold;
  font-size: 48px;
  padding-left: 1px;
}

.timeline_textleft .yearright .yeartext_medium {
  font-weight: bold;
  font-size: 24px;
}

@media screen and (max-width:992px) {
  .timeline_textleft {
    padding-right: 35px;
  }
}

@media screen and (max-width:768px) {
  .timeline_textleft {
    width: 165px;
  }

  .timeline_textleft .yearleft .yeartext_small {
    font-size: 14px;
    line-height: 16px;
  }

  .timeline_textleft .yearleft .yeartext_medium {
    font-size: 22px;
    line-height: 16px;
  }

  .timeline_textleft .yearright {
    line-height: 32px;
  }

  .timeline_textleft .yearright .yeartext_large {
    font-size: 34px;
    padding-left: 1px;
  }

  .timeline_textleft .yearright .yeartext_medium {
    font-size: 16px;
  }
}

/**************************************************************************************
*****沿革以下年表の行の右側＝できごとの部分+とげとげ背景＆月の部分*****
**************************************************************************************/

.timeline_textright {
  width: calc(100% - 250px);
  padding-left: 70px;
  position: relative;

  /* 年表の棒線部 */
  border-left: 3px solid var(--black);
}

/* 最終行のみ年表の傍線部を削除し大きさを調整した傍線部を配置する */
.timeline_textright.lastline {
  border: none;
}

.lastline_timeline_border.left {
  position: absolute;
  height: 64px;
  width: 250px;
  border-right: 3px solid var(--black);
  left: -250px;
}

.lastline_timeline_border.right {
  position: absolute;
  height: 64px;
  border-left: 3px solid var(--black);
  left: 0px;
}

/* 年表の月のとげとげの背景画像を配置 */
.timeline_textright .month_bg_image {
  height: 60px;
  width: 60px;
  position: absolute;
  top: -10px;
  left: -60px;
  transform: translateX(45%);
  z-index: 10;
}

/* 年表のとげとげの中に月を配置 */
.timeline_textright .timeline_month {
  height: 60px;
  width: 60px;
  position: absolute;
  top: -10px;
  left: -60px;
  transform: translateX(45%);
  font-weight: bold;
  line-height: 60px;
  z-index: 20;
}



/* 最終行のみ年表の傍線部を削除し大きさを調整した傍線部を配置する */
.timeline_textright .month_bg_image.lastline {
  height: 60px;
  width: 60px;
  position: absolute;
  top: 10px;
  left: -57px;
  transform: translateX(45%);
  z-index: 10;
}

.timeline_textright .timeline_month.lastline {
  height: 60px;
  width: 60px;
  position: absolute;
  top: 10px;
  left: -57px;
  transform: translateX(45%);
  font-weight: bold;
  line-height: 60px;
  z-index: 20;
}



/* 年表部分の内側の行のみ月表示部分の高さを調整 */
.timeline_textright .inside_month_bg_image {
  height: 60px;
  width: 60px;
  position: absolute;
  top: 10px;
  left: -60px;
  transform: translateX(45%);
  z-index: 10;
}

/* 年表部分の内側の行のみ月表示部分の高さを調整 */
.timeline_textright .timeline_inside_month {
  height: 60px;
  width: 60px;
  position: absolute;
  top: 10px;
  left: -60px;
  transform: translateX(45%);
  font-weight: bold;
  line-height: 60px;
  z-index: 20;
}

/* 月表示部分を表示しない場合 */
.only_line {
  display: none;
}

/* 以下は右側のできごとテキスト部分のCSS */
/* テキスト部分を下線付きで表示する場合 */
.timeline_textright .event_text {
  border-bottom: 2px solid var(--black);
  padding-bottom: 1em;
  font-weight: bold;
}

/* 下線は表示しない場合 */
.timeline_textright .event_text_borderless {
  padding-bottom: 1em;
}

/* 沿革の最終行のみの指定 */
.timeline_textright .event_text_lastline {
  font-weight: bold;
  padding-top: 1em;

  position: relative;
}

/* 沿革の最終行のみの指定(下線部を配置) */
.lastline_border {
  width: 100%;
  position: absolute;
  bottom: -1em;
  left: 0;
  border-bottom: 2px solid var(--black);
}

/* テキスト部分の行数が行によって異なっても高さがそろうようにする */
.event_text_box {
  height: 100%;
  min-height: 48px;
  text-align: left;
  display: flex;
  align-items: center;
  font-weight: bold;
  /* font-family: "Dela Gothic One"; */
}

.event_text_box p {
  font-size: 18px;
}

@media screen and (max-width:992px) {
  /* .event_text_box p{
      font-size: 17px;
    } */

  .timeline_textright {
    width: calc(100% - 165px);
    padding-left: 35px;
  }
}

@media screen and (max-width:768px) {
  /* .timeline_textright{
      padding-left: 35px; 
    } */

  /* .event_text_box p{
      font-size: 16px;
    } */
}