@charset "utf-8";

/** ***************************************************************************
 * 沿革
 * ************************************************************************* */

@media screen and (min-width:768px) {

  #history {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

}

/**
 * アンカーナビ
 */

#history div.anchornav {
  margin-bottom: 30px;
  position: sticky;
  z-index: 1;
  top: 80px;
}

#history div.anchornav ul.list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}

#history div.anchornav ul.list li {
  max-width: calc(100% / 4);
  margin: 0.5px;
  flex-grow: 1;
  flex-shrink: 0;
}

#history div.anchornav ul.list li a {
  height: 100%;
  padding: 1.125em 0.75em;
  color: #fff;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 1.0);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width:768px) {

  #history div.anchornav {
    width: 180px;
    margin-bottom: 0;
    top: 80px;
  }

  #history div.anchornav ul.list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  #history div.anchornav ul.list li {
    max-width: 100%;
  }

  #history div.anchornav ul.list li ~ li {
    margin-top: 15px;
  }

  #history div.anchornav ul.list li a {
    padding: 0.75em 3em 0.875em 2em;
    letter-spacing: 1px;
    color: #fff;
    border-radius: 9999px;
    display: block;
    position: relative;
    z-index: 0;
  }

  #history div.anchornav ul.list li a::before {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.3));
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out 0.0s;
    opacity: 0;
  }

  #history div.anchornav ul.list li a:hover::before {
    opacity: 1;
  }

  #history div.anchornav ul.list li a::after {
    content: '';
    width: 1em;
    height: 1.125em;
    background: url("../../_image/_common/icon-arrow-1.png") 0 0 / 100% 100% no-repeat;
    position: absolute;
    z-index: 1;
    top: calc(50% - 0.5625em);
    right: 1.25em;
  }

}

/**
 * 沿革
 */

@media screen and (min-width:768px) {

  #history div.history {
    width: calc(100% - 180px - 5.56%);
  }

}

/* 一覧 */

#history div.history dl.list div.item {
  border-bottom: 1px solid #dcdcdc;
  display: flex;
  align-items: stretch;
  justify-content:flex-start;
}

#history div.history dl.list dt {
  min-width: 2.625em;
  padding: 20px 0;
  color: #acacac;
  line-height: 1;
  font-family: 'DIN 1451', sans-serif;
  font-size: 1.857em;
  font-weight: 600;
  flex-shrink: 0;
}

#history div.history dl.list dd {
  padding: 22px 0;
  text-align: justify;
  text-justify: inter-character;
  border-left: 4px solid rgba(var(--accentcolor-marutsu-2));
}

#history div.history dl.list div.content {
  padding-left: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  z-index: 0;
}

#history div.history dl.list div.content ~ div.content {
  margin-top: 1.5em;
}

#history div.history dl.list div.content::before {
  content: '';
  width: 1em;
  height: 1em;
  border-radius: 9999px;
  background-color: rgba(var(--accentcolor-marutsu-2));
  position: absolute;
  z-index: 2;
  top: 0.25em;
  left: calc(-0.5em - 2px);
}

#history div.history dl.list div.content::after {
  content: '';
  width: 2em;
  height: 2px;
  background-color: #dcdcdc;
  position: absolute;
  z-index: 1;
  top: calc(0.25em + 0.5em - 1px);
  left: 0;
}

#history div.history dl.list div.content time {
  min-width: 2em;
  margin-right: 1em;
  color: rgba(var(--accentcolor-marutsu-1));
  font-weight: 600;
  flex-shrink: 0;
}

@media screen and (min-width:768px) {

  #history div.history dl.list dt {
    min-width: 3em;
    font-size: 2.625em;
  }

  #history div.history dl.list dd {
    padding: 30px 0;
    font-size: 0.875em;
  }

  #history div.history dl.list div.content time {
    min-width: 2.5em;
  }

}

/** ***************************************************************************
 * ボタン類
 * ************************************************************************* */

#button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#button > * {
  margin: 5px;
}
