.ecz-history-main-custom p {
  font-size: 12px;
  margin-bottom: 0px;
  letter-spacing: 1.5px;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

.ecz-history {
  margin-bottom: 50px;
}
.ecz-history .content-history-left,
.m-ecz-history .content-history-left {
  border-right: 1px solid #ddd;
  text-align: right;
  padding-top: 105px;
}

.ecz-history .content-history-left .flex-column {
  font-size: 20px;
}

.content-history-left .timeline {
  font-size: 14px;
  text-align: left;
  padding-bottom: 10px;
}
.content-history-left .nav .nav-item {
  position: relative;
}

.content-history-left .nav .nav-item a {
  color: #9e9e9e;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 5px;
}
.content-history-left .nav .nav-item a.active,
.content-history-left .nav .nav-item a:hover {
  color: #000000;
}

.content-history-left .nav .nav-item a:hover::before,
.content-history-left .nav .nav-item a.active::before {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #000000;
  content: "";
  border-radius: 20px;
  right: -5px;
  top: 14px;
}

.content-history-right {
  margin-left: 30px;
  flex: 2;
}

/* common */
.content-history-left .nav .nav-item {
  padding-right: 20px;
  padding-bottom: 5px;
}

#navbar {
  position: sticky;
  position: -webkit-sticky;
  top: 5px;
}

.cate-sticky,
.sidebar-left {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 12;
  background: #fff;
}
.button-sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
  z-index: 10;
}

.content-history-right .nav {
  font-size: 20px;
  padding: 35px;
}
.content-hs-main .flex1 {
  flex: 1;
}

.content-history-right .nav .nav-item a.nav-link {
  color: #000000;
}

.content-history-right .nav .nav-item a.nav-link.active {
  border-bottom: 1px solid black;
}

.card-history-title {
  height: 50px;
}
.card-history-title .card-history-content {
  position: absolute;
  top: 76px;
}
.card-history-title .card-history-content p {
  margin-bottom: 0;
  line-height: 26px;
}
.card-history-title .label-history {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  width: 100%;
  height: 50px;
  font-size: 16px;
}

.card-history-title .label-primary {
  background-color: #1b1464;
  border-color: #1b1464;
  color: #ffffff;
}

.card-history-title .label-danger {
  background-color: #8c272d;
  border-color: #8c272d;
  color: #ffffff;
}

.card-history-title .label-success {
  background-color: #004a37;
  border-color: #004a37;
  color: #ffffff;
}

.card-history-title .label-warning {
  background-color: #735c04;
  border-color: #735c04;
  color: #ffffff;
}

.content-hs-main {
  position: relative;
}
.card-history-block {
  position: relative;
  border-top: 1px solid #e6e6e6;
}
.card-history-block .block-time {
  position: absolute;
  right: 0px;
  width: fit-content;
  width: max-content;
  font-size: 40px;
  color: #e6e6e6;
  letter-spacing: 2px;
  top: -45px;
  padding: 0;
  margin: 0;
  z-index: 9;
}

.card-history-content {
  display: flex;
  flex-wrap: wrap;
  height: 60px;
  border-bottom: 1px dashed #e6e6e6;
  font-size: 15px;
  border-right: 4px solid #fff;
}
.card-history-content p {
  display: flex;
}

.card-history-content span {
  display: inline-block;
  min-width: 6.5px;
  margin-right: 8px;
  height: 15px;
  margin-top: 3px;
}

.card-history-content .icon-text-1 {
  background: #1b1464;
}
.card-history-content .icon-text-2 {
  background: #8c272d;
}
.card-history-content .icon-text-3 {
  background: #004a37;
}
.card-history-content .icon-text-4 {
  background: #735c04;
}

.card-history-block .card-history-content:last-child {
  border-bottom: none;
}

#btn-history-prev,
#btn-history-next {
  height: 50px;
  width: 50px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
#btn-history-prev {
  transform: rotate(180deg);
}

.content-hs-events .block-row {
  position: relative;
}

.content-hs-events .block-row .block-time {
  position: absolute;
  right: -9px;
  width: fit-content;
  width: max-content;
  font-size: 50px;
  color: #e5e5e5;
  letter-spacing: 5px;
  top: -57px;
  padding: 0;
  margin: 0;
}

.content-hs-events .block-row .block-line {
  position: absolute;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 0;
}

.cols-1 {
  flex: 1;
  background: #f1f1f5;
}
.cols-2 {
  flex: 1;
  background: #f7eff0;
}
.cols-3 {
  flex: 1;
  background: #ecf1f0;
}
.cols-4 {
  flex: 1;
  background: #f5f4ee;
}

/* .content-hs-events .row {
  border-top: 1px dashed #dddddd42;
  height: 65px;
} */

.content-hs-events > .row.border-solid {
  border-top: 1px solid #ddd;
}

.ecz-cate-menu ul li {
  padding: 10px 16px;
}
.ecz-cate-menu ul li a {
  font-size: 16px;
}

@media (max-width: 768px) {
  .ecz-header-bottom-history .ecz-header-bottom-2 .fst-italic {
    margin: 0;
    writing-mode: tb-rl;
    font-style: normal !important;
  }
  .ecz-header-bottom-history .ecz-header-bottom-2 .title-history {
    margin: 0;
  }

  .ecz-header-bottom-history .ecz-header-bottom-2 {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .ecz-cate-menu ul li a {
    font-size: 13px;
    font-weight: 700;
  }
  .card-history,
  .content-hs-events .row {
    height: auto;
    border-top: 0px;
  }
  .card-history .card-history-content {
    position: static;
    top: 0;
    padding-top: 10px;
  }
  .nav .nav-item {
    padding-right: 20px;
  }
  .content-history-left .nav .nav-item a {
    font-size: 20px;
  }
  #btn-history-prev {
    margin-bottom: 30px;
  }
  .content-hs-events .block-row .block-time {
    right: 0px;
  }
}

.content-history-right.history-slider {
  margin-left: 0;
}
#history-slider {
  margin-left: 0;
  overflow: hidden;
}
#history-slider .m-card {
  padding: 15px;
  padding-bottom: 0;
}
#history-slider .block-time {
  border-bottom: 1px solid #e6e6e6;
  text-align: right;
  font-size: 40px;
  color: #e6e6e6;
  letter-spacing: 2px;
  line-height: 35px;
}

#history-slider .m-card-content {
  padding-bottom: 15px;
}

#history-slider .m-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 34px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 15px;
}
#history-slider .m-primary {
  background-color: #1b1464;
}
#history-slider .m-danger {
  background-color: #8b272d;
}
#history-slider .m-success {
  background-color: #006837;
}
#history-slider .m-warning {
  background-color: #826f21;
}
#m-navbar .content-history-left .nav .nav-item {
  padding-right: 24px;
}
#m-navbar .nav-item a {
  display: block;
  height: 35px;
}

#prev-menu,
#next-menu {
  height: 40px;
  width: 57px;
  background: transparent;
  border: none;
}
#prev-menu {
  transform: rotate(180deg);
  /*display: flex;*/
  /*margin-left: 15px;*/

}
#next-menu {
  /*margin-left: 2px;*/
  /*margin-top: 5px;*/
}

.m-menu-sticky {
  position: sticky;
  top: 5px;
  display: flex;
  flex-direction: column;
}
.m-menu-sticky .timeline {
  padding-left: 15px;
}
.defaut-height {
  min-height: 300px;
}

.m-ecz-history .content-history-left {
  border-right: 0px solid #ddd;
}

.content-history-right.history-slider {
  position: relative;
}

.content-history-right.history-slider::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
  z-index: -1;
  left: -5px;
  background: #ddd;
}

.m-content-history-left.content-history-left .nav .nav-item a:hover::before,
.m-content-history-left.content-history-left .nav .nav-item a.active::before {
  right: 0;
  top: 10px;
}
.sticky-top-ie{
  position:fixed;
  width:100%;
  z-index:99;
  top:0px;
} 

@media print, screen and ( min-width: 768px) {
  .d-ecz-history {
    display: block;
  }
  .m-ecz-history {
    display: none;
  }
}
@media (max-width: 768px) {
  .d-ecz-history {
    display: none;
  }
  .m-ecz-history {
    display: block;
  }
}

.mr-1 {
  margin-right: .25rem!important;
}

.pl-0 {
  padding-left: 0;
}
.pr-0 {
  padding-right: 0;
}