/*  タブリスト */
.history-tab-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 32px;
  margin-bottom: 30px;
}
.history-tab-list.tab-list--over6 {
  gap: 20px 10px;
}
@media screen and (min-width: 1050px) {
  .history-tab-list {
    gap: 20px;
    margin-top: 43px;
    margin-bottom: 24px;
  }
  .history-tab-list.tab-list--over6 {
    gap: 11px;
  }
  .history-tab-list.tab-list--over6.history-years__tab-list {
    gap: 9px;
  }
}

.history-tab-list__item {
  flex: 1;
  position: relative;
  max-width: calc(50% - 5px);
  padding: 3px 5px;
  color: #7f1080;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  background-color: #ffffff;
  border: 1px solid #7f1080;
  border-radius: 40px;
  cursor: pointer;
  transition: .3s;
}
.tab-list--over6 .history-tab-list__item {
  flex: unset;
  width: calc(50% - 5px);
  font-size: 1.2rem;
}
.history-tab-list__item.is-active {
  color: #fff;
  background-color: #7f1080;
}

.history-tab-list__item::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: calc(tan(60deg) * 5px / 2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color: #7f1080;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.tab-list--over6 .history-tab-list__item::before {
  bottom: -6px;
  width: 7px;
  height: calc(tan(60deg) * 7px / 2);
}
.history-tab-list__item.is-active::before {
  opacity: 1;
  visibility: visible;
}
@media screen and (min-width: 1050px) {
  .history-tab-list__item {
    font-size: 1.6rem;
    max-width: 233px;
    padding: 7px 10px;
  }
  .tab-list--over6 .history-tab-list__item {
    width: calc(16.7% - 10px);
    font-size: 1.2rem;
    padding: 3px 5px;
  }
  .tab-list--over6.history-years__tab-list .history-tab-list__item {
    width: calc(14.28% - 8px);
    font-size: 1rem;
  }
  .history-tab-list__item:focus,
  .history-tab-list__item:hover {
    color: #fff;
    background-color: #7f1080;
  }
  .history-tab-list__item::before {
    bottom: -9px;
    width: 10px;
    height: calc(tan(60deg) * 10px / 2);
  }
  .tab-list--over6 .history-tab-list__item::before {
    bottom: -6px;
    width: 7px;
    height: calc(tan(60deg) * 7px / 2);
  }
}

/* アンカーリンクリスト */
.history-anchor-link__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.history-anchor-link__list.history-anchor-link__list--column4,
.history-anchor-link__list.history-anchor-link__list--column5 {
  gap: 11px 15px;
}
.history-anchor-link__list.history-anchor-link__list--column7 {
  gap: 14px 13px;
  margin-bottom: 22px;
}
.history-anchor-link__list.history-anchor-link__list--column10 {
  gap: 12px 13px
}
@media screen and (min-width: 1050px) {
  .history-anchor-link__list {
    margin-bottom: 60px;
  }
  .history-anchor-link__list,
  .history-anchor-link__list.history-anchor-link__list--column4,
  .history-anchor-link__list.history-anchor-link__list--column7 {
    gap: 20px;
  }
  .history-anchor-link__list.history-anchor-link__list--column5,
  .history-anchor-link__list.history-anchor-link__list--column10 {
    gap: 17px;
  }
}

.history-anchor-link__list__item {
  width: calc(33.3% - 7.3px);
}
.history-anchor-link__list--column4 .history-anchor-link__list__item,
.history-anchor-link__list--column5 .history-anchor-link__list__item {
  width: calc(50% - 7.5px);
}
.history-anchor-link__list--column7 .history-anchor-link__list__item {
  width: calc(25% - 9.8px);
}
.history-anchor-link__list--column10 .history-anchor-link__list__item {
  width: calc(20% - 10.4px);
}
@media screen and (min-width: 1050px) {
  .history-anchor-link__list__item {
    width: 234px;
  }
  .history-anchor-link__list--column4 .history-anchor-link__list__item {
      width: calc(25% - 15px);
  }
  .history-anchor-link__list--column5 .history-anchor-link__list__item {
      width: calc(20% - 14px);
  }
  .history-anchor-link__list--column7 .history-anchor-link__list__item {
      width: calc(14.3% - 18px);
  }
  .history-anchor-link__list--column10 .history-anchor-link__list__item {
      width: calc(10% - 15.3px);
  }
}

.history-anchor-link__list__item__anchor {
  display: block;
  position: relative;
  width: 100%;
  padding: 2px 17px;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  background-color: #7f1080;
  border: 1px solid #7f1080;
  border-radius: 15px;
  box-sizing: border-box;
  text-align: center;
  transition: .3s;
}
.history-anchor-link__list--column4 .history-anchor-link__list__item__anchor,
.history-anchor-link__list--column5 .history-anchor-link__list__item__anchor {
  padding: 5px 25px;
  font-size: 1.1rem;
}
.history-anchor-link__list--column7 .history-anchor-link__list__item__anchor {
  padding: 1.5px 18px;
  font-size: 1rem;
}
.history-anchor-link__list--column10 .history-anchor-link__list__item__anchor {
  padding: 2.5px 16px;
  font-size: .85rem;
}
@media screen and (min-width: 1050px) {
  .history-anchor-link__list__item__anchor {
    border-radius: 22px;
  }
  .history-anchor-link__list__item__anchor,
  .history-anchor-link__list--column4 .history-anchor-link__list__item__anchor {
    padding: 7px 35px;
    font-size: 1.6rem;
  }
  .history-anchor-link__list--column4 .history-anchor-link__list__item__anchor.history-anchor-link__list__item__anchor--text-small {
    padding: 4px 31px;
    font-size: 1.1rem;
    line-height: 1.36;
  }
  .history-anchor-link__list--column5 .history-anchor-link__list__item__anchor {
    padding: 5px 27px;
    font-size: 1.3rem;
  }
  .history-anchor-link__list--column7 .history-anchor-link__list__item__anchor {
    padding: 2px 20px;
    font-size: .9rem;
  }
  .history-anchor-link__list--column10 .history-anchor-link__list__item__anchor {
    padding: 2.5px 22px 4.5px;
    font-size: 1.2rem;
  }
  .history-anchor-link__list__item__anchor:focus,
  .history-anchor-link__list__item__anchor:hover {
    color: #7f1080;
    background-color: #ffffff;
  }
}
.history-anchor-link__list__item__anchor::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 5px;
  height: calc(tan(60deg) * 5.5px / 2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color: #ffffff;
  transition: .3s;
}
.history-anchor-link__list--column4 .history-anchor-link__list__item__anchor::before,
.history-anchor-link__list--column5 .history-anchor-link__list__item__anchor::before {
  right: 13px;
  width: 6.5px;
  height: calc(tan(60deg) * 7px / 2);
}
.history-anchor-link__list--column5 .history-anchor-link__list__item__anchor::before {
  right: 9px;
}
@media screen and (min-width: 1050px) {
  .history-anchor-link__list__item__anchor::before,
  .history-anchor-link__list--column4 .history-anchor-link__list__item__anchor::before {
    right: 20px;
    width: 10px;
    height: calc(tan(60deg) * 11px / 2);
  }
  .history-anchor-link__list--column5 .history-anchor-link__list__item__anchor::before {
    right: 15px;
    width: 8px;
    height: calc(tan(60deg) * 9px / 2);
  }
  .history-anchor-link__list--column7 .history-anchor-link__list__item__anchor::before {
    right: 9px;
    width: 5px;
    height: calc(tan(60deg) * 6px / 2);
  }
  .history-anchor-link__list--column10 .history-anchor-link__list__item__anchor::before {
    right: 11px;
    width: 7px;
    height: calc(tan(60deg) * 8px / 2);
  }
  .history-anchor-link__list__item__anchor:focus::before,
  .history-anchor-link__list__item__anchor:hover::before {
    background-color: #7f1080;
  }
}

section.history-years {
  padding-top: 0;
}
@media screen and (min-width: 1050px) {
  section.history-years {
    padding-top: 11px;
  }
}
.history-years__list-wrap {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
}
@media screen and (min-width: 1050px) {
  .history-years__list-wrap {
    width: 100%;
    margin: 0;
  }
}

.history-years__list__item {
  display: none;
  text-align: center;
}
.history-years__list__item.is-active {
  display: block;
}
.history-years__list-wrap.back-color {
  padding-top: 21px;
  padding-bottom: 48px;
}
@media screen and (min-width: 1050px) {
  .history-years__list-wrap.back-color {
    padding-top: 15px;
    padding-bottom: 0px;
    border-radius: 10px;
  }
}

.history-years__list__item__contents-wrap {
  padding: 20px 16px 20px 0;
  background-color: #ffffff;
  border-radius: 10px;
}

@media screen and (min-width: 1050px) {
  .history-years__list__item__contents-wrap {
    padding: 0;
    background-color: transparent;
  }
}

.history-years__list__item__contents-inner {
  max-height: 533px;
  overflow: hidden scroll;
  scrollbar-width: 3px;
  scrollbar-color: rgba(127, 16, 128, .3);
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents-inner {
    max-height: 1095px;
  }
}
.history-years__list__item__contents-inner::-webkit-scrollbar {
  background: rgba(127, 16, 128, .3);
  width: 3px;
  border-radius: 5px;
}
.history-years__list__item__contents-inner::-webkit-scrollbar-thumb {
  background-color: #7f1080;
  border-radius: 5px;
}
.history-years__list__item__contents {
  position: relative;
  padding-left: 11px;
}
.history-years__list__item__contents::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 2px;
  height: 100%;
  background-image: linear-gradient(to bottom, #74217f 3px, transparent 3px);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  background-position: bottom;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents {
    padding-left: 0;
  }
  .history-years__list__item__contents::before {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 65px);
    background-image: none;
    background-color: #74217f;
    background-size: 2px 8px;
  }
}
@media screen and (min-width: 1050px) {
  .history-years__list__item .history-anchor-link__list.history-anchor-link__list--column7 {
    margin: 12px 25px 30px;
  }
}
.history-years__list__item__contents__year {
  margin-bottom: 20px;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year {
    width: 50%;
    box-sizing: border-box;
  }
  .history-years__list__item__contents__year--first {
    width: 100%;
  }
  .history-years__list__item__contents__year--left {
    padding-right: 20px;
    text-align: right;
  }
  .history-years__list__item__contents__year--right {
    margin-left: auto;
    padding-left: 25px;
    text-align: left;
  }
}

.history-years__list__item__contents__year__inner {
  color: #7f1080;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
}
.history-years__list__item__contents__year--first .history-years__list__item__contents__year__inner {
  padding-top: 5px;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year__inner {
    font-size: 4rem;
  }
  .history-years__list__item__contents__year--first .history-years__list__item__contents__year__inner {
    padding-top: 10px;
  }
}
.history-years__list__item__contents__year-box {
  position: relative;
  width: calc(100% - 50px);
  margin-left: auto;
  margin-right: 16px;
  padding: 18px 11px 7px 11px;
  box-sizing: border-box;
  background-color: rgba(127, 16, 128, .1);
  border-radius: 5px;
}
.history-years__list__item__contents .history-years__list__item__contents__year-box {
  margin-bottom: 30px;
}
.history-years__list__item__contents__year-box::before {
  content: "";
  display: block;
  position: absolute;
  top: 18px;
  left: -12px;
  width: 12px;
  height: calc(tan(60deg) * 18px / 2);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background-color: rgba(127, 16, 128, .1);
}
.history-years__list__item__contents__year-box:after {
  content: "";
  display: block;
  position: absolute;
  top: 20px;
  left: -34px;
  width: 11px;
  height: 11px;
  border-radius: 10px;
  background-color: #7f1080;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box {
    position: relative;
    width: calc(50% - 50px);
    padding: 26px 20px 20px 21px;
    border-radius: 10px;
  }
  .history-years__list__item__contents__year-box--left {
    margin-left: 20px;
    margin-right: auto;
  }
  .history-years__list__item__contents__year-box--right {
    margin-left: auto;
    margin-right: 20px;
  }
  .history-years__list__item__contents__year-box::before {
    top: 50%;
    transform: translateY(-50%);
  }
  .history-years__list__item__contents__year-box:after {
    top: 50%;
    left: -41px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 22px;
  }
  .history-years__list__item__contents__year-box--left::before {
    left: auto;
    right: -12px;
    clip-path: polygon(0 100%, 0 0, 100% 50%);
  }
  .history-years__list__item__contents__year-box--left:after {
    left: auto;
    right: -41px;
  }
}
/* PC時の各要素の位置を調整する */
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year--1970 {
    margin-top: -180px;
  }
  .history-years__list__item__contents__year--1990 {
    margin-top: -200px;
  }
  .history-years__list__item__contents__year--2000 {
    margin-top: -200px;
  }
  .history-years__list__item__contents__year--2010 {
    margin-top: -200px;
  }
  .history-years__list__item__contents__year--2020 {
    margin-top: -200px;
  }
  .history-years__list__item__contents__year-box--1969 {
    margin-top: -215px;
  }
  .history-years__list__item__contents__year-box--1975 {
    margin-top: -50px;
  }
}
/* end */

.history-years__list__item__contents__year-box__year {
  position: absolute;
  top: -16px;
  left: 12px;
}
.history-years__list__item__contents__year-box__year__inner {
  color: #7f1080;
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__year {
    left: 22px;
  }
  .history-years__list__item__contents__year-box__year__inner {
    font-size: 2.6rem;
  }
}
.history-years__list__item__contents__year-box__category {
  display: flex;
  gap: 9px;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__category {
    margin-bottom: 15px;
  }

}
.history-years__list__item__contents__year-box__category__item {
  width: calc(50% - 4.5px);
  margin-bottom: 8px;
  padding: 3px 10px;
  box-sizing: border-box;
  background-color: #b20080;
  border-radius: 10px;
  text-align: center;
}
/* 背景色 */
.history-years__list__item__contents__year-box__category__item--business01 {
  background-color: #B20080;
}
.history-years__list__item__contents__year-box__category__item--business02 {
  background-color: #3B1E83;
}
.history-years__list__item__contents__year-box__category__item--business03 {
  background-color: #FFDA2A;
}
.history-years__list__item__contents__year-box__category__item--business03 .history-years__list__item__contents__year-box__category__item__inner {
  color: #7f1080;
}
.history-years__list__item__contents__year-box__category__item--company01 {
  background-color: #7f1080;
}
.history-years__list__item__contents__year-box__category__item--company02 {
  background-color: #B20080;
}
.history-years__list__item__contents__year-box__category__item--company03 {
  background-color: #007AB6;
}
.history-years__list__item__contents__year-box__category__item--company04 {
  background-color: #E20012;
}
.history-years__list__item__contents__year-box__category__item--company05 {
  background-color: #E20012;
}
.history-years__list__item__contents__year-box__category__item--company06 {
  background-color: #00851C;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__category__item {
    width: fit-content;
    min-width: 135px;
    margin-bottom: 8px;
    padding: 4px 10px;
  }
}

.history-years__list__item__contents__year-box__category__item__inner {
  color: #ffffff;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__category__item__inner {
    font-size: 1rem;
  }
}

.history-years__list__item__contents__year-box__text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__text {
    font-size: 1.4rem;
    line-height: 1.86;
  }
}
.history-years__list__item__contents__year-box__image {
  margin-top: 5px;
}
@media screen and (min-width: 1050px) {
  .history-years__list__item__contents__year-box__image {
    margin-top: 15px;
  }
}
.history-years__list__item__contents__year-box__link {
  text-align: left;
  margin-top: 5px;
  margin-bottom: 25px;
}

.history-years__list__item__contents__year-box__link__anchor {
  position: relative;
  padding-left: 47px;
  padding-right: 21px;
  color: #7f1080;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
.history-years__list__item__contents__year-box__link__anchor::before,
.history-years__list__item__contents__year-box__link__anchor::after{
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}
.history-years__list__item__contents__year-box__link__anchor::before {
  left: 0;
  width: 42px;
  height: 13px;
  background-image: url(../images/company/history/icon_ir_06.svg);
}
.history-years__list__item__contents__year-box__link__anchor::after {
  right: 0;
  width: 16px;
  height: 16px;
  background-image: url(../images/company/history/icon_ir_07.svg);
}

section.history-relation.section-has-ball.section-has-back-color {
  padding-top: 15px;
  padding-bottom: 250px;
}
@media screen and (min-width: 1050px) {
  section.history-relation.section-has-ball.section-has-back-color {
    padding-top: 5px;
    padding-bottom: 392px;
  }
}
.history-relation .back-color {
  margin-top: 0px;
  padding-top: 25px;
  padding-bottom: 30px;
}
@media screen and (min-width: 1050px) {
  .history-relation .back-color {
    padding-top: 52px;
    padding-bottom: 73px;
  }
}
.history-relation .heading-2 {
  margin-bottom: 20px;
  font-size: 1.7rem;
  letter-spacing: 0;
}
@media screen and (min-width: 1050px) {
  .history-relation .heading-2 {
    margin-bottom: 20px;
    font-size: 2.9rem;
    letter-spacing: .1em;
  }
}
.history-relation .link-button {
  margin-top: 15px;
}
@media screen and (min-width: 1050px) {
  .history-relation .link-button {
    margin-top: 0;
  }
}

