@charset "utf-8";

/** ***************************************************************************
 * 沿革
 * ************************************************************************* */

#history div.history dl.list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 15px;
}

#history div.history dl.list div.item {
  padding: 1em;
  border-radius: 6px;
  background-color: #f5f5f5;
}

#history div.history dl.list dt {
  margin-bottom: 0.25em;
  color: rgb(var(--accentcolor-1));
  line-height: 1.5;
  font-weight: 500;
}

#history div.history dl.list dd {
  line-height: 1.5;
}

@media screen and (min-width:768px) {

  #history div.history dl.list {
    gap: 0;
    position: relative;
    z-index: 0;
  }

  #history div.history dl.list::after {
    content: '';
    height: 100%;
    border-right: 1px solid rgb(var(--accentcolor-1));
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
  }

  #history div.history dl.list div.item {
    width: calc(100% / 2 - 70px);
    padding: 1em 1.5em;
    border-radius: 8px;
    position: relative;
    z-index: 0;
  }

  #history div.history dl.list div.item::before {
    content: '';
    width: 70px;
    border-top: 1px solid rgb(var(--accentcolor-1));
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 100%;
  }

  #history div.history dl.list div.item::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("../_image/_common/icon-pointer-1.png") 0 0 / 100% 100% no-repeat;
    position: absolute;
    z-index: 1;
    top: calc(50% - 10px);
    left: calc(100% + 60px);
  }

  #history div.history dl.list div.item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
  }

  #history div.history dl.list div.item:nth-child(even)::before {
    left: -70px;
  }

  #history div.history dl.list div.item:nth-child(even)::after {
    left: -80px;
  }

  #history div.history dl.list div.item:nth-child(n+2) {
    margin-top: -1.5em;
  }

}
