.history_wrap_pc {
  display: none;
  @media(min-width: 768px) {
    display: block;
  }
}
.history_wrap_sp {
  display: block;
  @media(min-width: 768px) {
    display: none;
  }
}

/* ページ内リンク */
.financial-results_year_list {
  margin-top: unset;
	margin-bottom: 3.56rem;
	padding: 1.67rem 4rem;
	display: flex;
	flex-wrap: wrap;
	column-gap: 3.72rem;
	row-gap: 1.67rem;
	align-items: center;
	background-color: #fafafa;
  list-style: none;
	@media (max-width: 767px) {
		margin-bottom: 2rem;
		padding: 1rem;
		display: grid;
		gap: 0.5rem;
		grid-template-columns: repeat(2, 1fr);
	}
}

.financial-results_year_item_link {
	column-gap: 0.39rem;
	display: grid;
	grid-template-columns: max-content max-content;
	align-items: center;
	color: #000000;
	font-weight: 500;
  opacity: 1;
  transition: .3s all ease-in-out;
	&::before {
		width: 0.89rem;
		aspect-ratio: 1 / 1;
		display: block;
		content: "";
		background: url("https://46923556.fs1.hubspotusercontent-na1.net/hubfs/46923556/ep_arrow-up.svg") no-repeat center / contain;
	}
  &:hover {
    opacity: 0.75;
  }
}

/* 歴史 */

/* 歴史PC */
.history_wrap_pc {
  .history_content {
    padding-block: 2.22rem;
    position: relative;
    &::before {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      width: calc((100% - 1.78rem) / 2);
      height: 100%;
      z-index: 0;
      background-color: #f0f3f5;
    }
    &::after {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      content: "";
      width: calc((100% - 1.78rem) / 2);
      height: 100%;
      z-index: 0;
      background-color: #f0f3f5;
    }
  }
  .history_content_list {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }
  .history_ttl_wrap {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 1.78rem;
    @media (min-width: 768px) {
      margin-bottom: 2.5rem;
    }
  }
  .history_ttl {
    margin: unset;
    font-size: 1.33rem;
    font-weight: 700;
    text-align: center;
    &.history_ttl--red {
      color: #ef0505;
    }
    &.history_ttl--green {
      color: #009a44;
    }
  }
  .history_year_content {
    position: relative;
    &::after {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 6px;
      height: calc(100% - 3.39rem + 2.22rem);
      display: block;
      content: "";
      background-color: #dedede;
      z-index: -1;
    }
    &::before {
      position: absolute;
      top: calc(100% - 3.39rem + 2.22rem);
      left: 50%;
      transform: translateX(-50%);
      width: 6px;
      height: 3.39rem;
      display: block;
      content: "";
      background: url("https://46923556.fs1.hubspotusercontent-na1.net/hubfs/46923556/history_last_line.svg") no-repeat center / contain;
      z-index: -1;
    }
  }
  .history_subttl_wrap {
    margin-bottom: 0.89rem;
    width: calc(100% - 0.67rem * 2);
    margin-inline: 0.67rem;
    &:not(:first-of-type) {
/*       margin-top: 0.89rem; */
      margin-top: -6rem;
/*       padding-top: calc(6rem + 1.4rem); */
      padding-top: calc(6rem + 0.89rem);
    }
    @media(min-width: 768px) {
      &:not(:first-of-type) {
        margin-top: -12rem;
        padding-top: calc(12rem + 0.89rem);
      }
    }
    margin-top: -6rem;
    padding-top: 6rem;
    @media(min-width: 768px) {
      margin-top: -12rem;
      padding-top: 12rem;

    }
  }
  .history_subttl {
    margin-top: unset;
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    background-color: #8d8c8c;
    text-align: center;
  }
  .history_detail {
    // margin-inline: 0.67rem;
    margin-bottom: 0.67rem;
    // display: grid;
    // grid-template-columns: 1fr 1.67rem 1fr;
    // align-items: center;
    &:last-of-type {
      margin-bottom: unset;
    }
  }
  .history_detail_content_wrap {
    margin-bottom: 0.67rem;
    display: grid;
    grid-template-columns: 1fr 1.67rem 1fr;
    align-items: center;
    justify-items: center;
    &:last-of-type {
      margin-bottom: unset;
    }
  }
  .history_detail_content {
    &.history_detail_content--back {
      padding: 1rem 0.5rem;
      margin-inline: 0.67rem;
      background-color: #ffffff;
      width: calc(100% - 0.67rem * 2);
      box-sizing: border-box;
    }
  }
  .history_detail_ttl {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    white-space: break-spaces;
    &::before {
      content: "";
      display: block;
      position: relative;
      top: 0.7rem;
      width: 0.78rem;
      height: 3px;
    }
    &.history_detail_ttl--red {
      &::before {
        background-color: #ef0505;
      }
    }
    &.history_detail_ttl--green {
      &::before {
        background-color: #009a44;
      }
    }
  }
  .history_detail_lead {
    padding-inline: 0.5rem;
    &:not(:last-of-type) {
      margin-bottom: 1rem;
    }
    display: grid;
    column-gap: 0.8rem;
    grid-template-columns: 1fr 9fr;
    @media(min-width: 768px) {
      grid-template-columns: unset;
      column-gap: unset;
      row-gap: 0.8rem;
    }
    @media(min-width: 1400px) {
      column-gap: 0.8rem;
      grid-template-columns: 1fr 9fr;
    }    
    .month {
      font-size: 1rem;
      font-weight: 700;
    }
  }
  .history_detail_img {
    padding-inline: 0.5rem;
    margin-top: 1rem;
/*     width: 100%; */
    margin-right: auto;
    margin-left: calc((1 / 10) * 100% + 0.8rem);
    width: calc(100% - ((1 / 10) * 100% + 0.8rem));
    @media(min-width: 768px) {
      margin-left: unset;
      width: 100%;
    }      
    @media(min-width: 1400px) {
      margin-left: calc((1 / 10) * 100% + 0.8rem);
      width: calc(100% - ((1 / 10) * 100% + 0.8rem));
    }
  }
  .history_detail_content_circle {
    display: grid;
    place-content: center;
    position: relative;
    border: 3px solid #000000;
    background-color: #ffffff;
    border-radius: 50vw;
    width: 0.67rem;
    height: 0.67rem;
    &.history_detail_content_circle--left {
      &::before {
        top: 50%;
        transform: translateY(-50%);
        content: "";
        display: block;
        position: absolute;
        right: 100%;
        width: 3rem;
        height: 1px;
        border-bottom: 3px dashed #000000;
        z-index: -1;
      }
    }
    &.history_detail_content_circle--right {
      &::after {
        top: 50%;
        transform: translateY(-50%);
        content: "";
        display: block;
        position: absolute;
        left: 100%;
        width: 3rem;
        height: 1px;
        border-bottom: 3px dashed #000000;
        z-index: -1;
      }
    }
  }
}

/* 歴史SP */
.history_wrap_sp {
  .history_year_content_outer {
    padding-block: 2.22rem;
    position: relative;
    &::before {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      width: 100%;
      height: 100%;
      z-index: -2;
      background-color: #f0f3f5;
      @media(min-width: 1300px) {
        width: calc((100% - 1.78rem) / 2);
      }
    }
    @media(min-width: 1300px) {
      &::after {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        content: "";
        width: calc((100% - 1.78rem) / 2);
        height: 100%;
        z-index: -2;
        background-color: #f0f3f5;
      }
    }
  }
  .materials_content {
    display: none;
    &.current {
      display: block;
    }
  }
  .history_content_list {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
  }
  .history_ttl_wrap {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 1rem;
    @media (min-width: 768px) {
      column-gap: 1.78rem;
      margin-bottom: 2.5rem;
    }
  }
  .history_ttl {
    margin: unset;
    padding-block: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    background: #f0f3f5;
    &::before {
      content: "";
      width: 1rem;
      height: 0.5rem;
      clip-path: polygon(0 0, 50% 100%, 100% 0);
      background: #ef0505;
      bottom: -0.5rem;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
    }
    &.history_ttl--green {
       &::before {
        background-color: #009a44;
      }
    }    
    &:hover {
      cursor: pointer;
    }
    &.current {
      background: #ef0505;
      color: #fff;
      &.history_ttl--green {
        background-color: #009a44;
      }
      &::before {
        opacity: 1;
      }
      &:hover {
        pointer-events: none;
      }
    }
    @media(min-width: 1300px) {
      font-size: 1.33rem;
    }
  }
  .history_year_content {
    position: relative;
    &::after {
      position: absolute;
      top: 0;
      left: 0.8rem;
      transform: translateX(-50%);
      width: 6px;
      height: calc(100% - 3.39rem + 2.22rem);
      display: block;
      content: "";
      background-color: #dedede;
      z-index: -1;
    }
    &::before {
      position: absolute;
      top: calc(100% - 3.39rem + 2.22rem);
      left: 0.8rem;
      transform: translateX(-50%);
      width: 6px;
      height: 3.39rem;
      display: block;
      content: "";
      background: url("https://46923556.fs1.hubspotusercontent-na1.net/hubfs/46923556/history_last_line.svg") no-repeat center / contain;
      z-index: -1;
    }
    @media(min-width: 1300px) {
      &::after {
        left: 50%;
      }
      &::before {
        left: 50%;
      }
    }
  }
  .history_subttl_wrap {
    margin-bottom: 0.89rem;
    width: calc(100% - 0.67rem * 2);
    margin-inline: 0.67rem;
    &:not(:first-of-type) {
/*       margin-top: 0.89rem; */
      margin-top: -6rem;
/*       padding-top: calc(6rem + 1.4rem); */
      padding-top: calc(6rem + 0.89rem);
    }
    @media(min-width: 768px) {
      &:not(:first-of-type) {
        margin-top: -12rem;
        padding-top: calc(12rem + 0.89rem);
      }
    }
  }
  .history_subttl {
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    background-color: #8d8c8c;
    text-align: center;
  }
  .history_detail {
    margin-bottom: 0.67rem;
    &:last-of-type {
      margin-bottom: unset;
    }
  }
  .history_detail_content_wrap {
    margin-bottom: 0.67rem;
    display: grid;
    grid-template-columns: 1.67rem 1fr;
    align-items: center;
    justify-items: center;
    @media(min-width: 1300px) {
      grid-template-columns: 1fr 1.67rem 1fr;
    }
    &:last-of-type {
      margin-bottom: unset;
    }
    @media(max-width: 1299px) {
      .history_detail_content_circle {
        grid-row: 1/2;
        grid-column: 1/2;
      }
      .history_detail_content {
        grid-row: 1/2;
        grid-column: 2/3;
      }
    }
    @media(min-width: 1300px) {
      &.left {
        .history_detail_content_circle {
          grid-row: 1/2;
          grid-column: 2/3;
        }
        .history_detail_content {
          grid-row: 1/2;
          grid-column: 1/2;
        }
      }
      &.right {
        .history_detail_content_circle {
          grid-row: 1/2;
          grid-column: 2/3;
        }
        .history_detail_content {
          grid-row: 1/2;
          grid-column: 3/4;
        }
      }
    }
  }

  .history_detail_content {
    &.history_detail_content--back {
      padding: 1rem 0.5rem;
      margin-inline: 0.67rem;
      background-color: #ffffff;
      width: calc(100% - 0.67rem * 2);
      box-sizing: border-box;
    }
  }
  .history_detail_ttl {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    white-space: break-spaces;
    &::before {
      content: "";
      display: block;
      position: relative;
      top: 0.7rem;
      width: 0.78rem;
      height: 3px;
    }
    &.history_detail_ttl--red {
      &::before {
        background-color: #ef0505;
      }
    }
    &.history_detail_ttl--green {
      &::before {
        background-color: #009a44;
      }
    }
    &:not(:first-of-type) {
/*       grid-template-columns: 11.2rem 1fr; */
      &::before {
        opacity: 0;
      }
    }
  }
  .history_detail_lead {
    padding-inline: 0.5rem;
    &:not(:last-of-type) {
      margin-bottom: 1rem;
    }
    display: grid;
    grid-template-columns: 1fr 4fr;
    column-gap: 0.8rem;
    @media(min-width: 1400px) {
      grid-template-columns: 1fr 9fr;
    }
    .month {
      font-size: 1rem;
      font-weight: 700;
    }
  }
  .history_detail_img {
    margin-inline: unset;
/*     margin-left: calc((1 / 9) * 100% + 0.8rem); */
    margin-bottom: unset;
    padding-inline: 0.5rem;
    margin-top: 1rem;
/*     width: 100%; */
    margin-right: auto;
    margin-left: calc((1 / 5) * 100% + 0.8rem);
    width: calc(100% - ((1 / 5) * 100% + 0.8rem));
    @media(min-width: 1400px) {
      margin-left: calc((1 / 10) * 100% + 0.8rem);
      width: calc(100% - ((1 / 10) * 100% + 0.8rem));
    }  
    &:not(:last-of-type) {
      margin-bottom: 1rem;
    }
  }
  .history_detail_content_circle {
    display: grid;
    place-content: center;
    position: relative;
    border: 3px solid #000000;
    background-color: #ffffff;
    border-radius: 50vw;
    width: 0.67rem;
    height: 0.67rem;
  }
  .left .history_detail_content_circle {
    @media(max-width: 1299px) {
      &::after {
        top: 50%;
        transform: translateY(-50%);
        content: "";
        display: block;
        position: absolute;
        left: 100%;
        width: 3rem;
        height: 1px;
        border-bottom: 3px dashed #000000;
        z-index: -1;
      }
    }
    @media(min-width: 1300px) {
      &::before {
        top: 50%;
        transform: translateY(-50%);
        content: "";
        display: block;
        position: absolute;
        right: 100%;
        width: 3rem;
        height: 1px;
        border-bottom: 3px dashed #000000;
        z-index: -1;
      }
    }
  }
  .right .history_detail_content_circle {
    &::after {
      top: 50%;
      transform: translateY(-50%);
      content: "";
      display: block;
      position: absolute;
      left: 100%;
      width: 3rem;
      height: 1px;
      border-bottom: 3px dashed #000000;
      z-index: -1;
    }
  }
}