@charset "UTF-8";


main{
  overflow: visible;
}

/* ---------------------------
  基本設定
--------------------------- */
.content-header::after{
  display: none;
}
.content-header .content-header-bg{
  background: transparent;
}
.history{
  &.type-1{
    background: linear-gradient(180deg, #003089 0%, #003089 12%, #0042BC 73%);
    margin: 0 0 -140px;
    position: relative;
    z-index: 0;
    *:not(.button-link, .text-link, .icon-container, svg, use) {
      color: #fff;
    }
    .history-main-v .title-area span{
      color: #A6EB37!important;
    }
    .history-content{
      &::after {
        background: linear-gradient(
          to top,
          #0042BC 0%,
          #0042BC 60%,
          rgba(0, 66, 188, 0.8) 70%,
          rgba(0, 66, 188, 0.6) 80%,
          rgba(0, 66, 188, 0.4) 90%,
          rgba(0, 66, 188, 0.2) 95%,
          transparent 100%
        );
      }
      .year-area{
        li{
          &:not(:last-child){
            &:after{
              background: url("data:image/svg+xml;utf8,<svg width='2' height='60' viewBox='0 0 2 60' fill='none' xmlns='http://www.w3.org/2000/svg'><path opacity='0.6' d='M1 1L0.999987 60' stroke='white' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 7'/></svg>") no-repeat center;
            }
          }
        }
      }
    }
    .year-active{
      color: #A6EB37;
    }
  }
  &.type-2{
    background: var(--Bg_BW2);
    margin: 0;
    position: relative;
    z-index: 0;
    *:not(.button-link, .text-link, .icon-container, .title, .year, svg, use) {
      color: #333;
    }
    .history-main-v .title-area span{
      color: #DE0012!important;
    }
    .history-content{
      &::after {
        background: linear-gradient(
          to top,
          #F2F2F2 0%,
          #F2F2F2 60%,
          rgba(242, 242, 242, 0.8) 70%,
          rgba(242, 242, 242, 0.6) 80%,
          rgba(242, 242, 242, 0.4) 90%,
          rgba(242, 242, 242, 0.2) 95%,
          transparent 100%
        );
      }
      .year-area{
        li{
          &:not(:last-child){
            &:after{
              background: url("data:image/svg+xml;utf8,<svg width='2' height='60' viewBox='0 0 2 60' fill='none' xmlns='http://www.w3.org/2000/svg'><path opacity='0.6' d='M1 1L0.999987 60' stroke='%23676767' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 7'/></svg>") no-repeat center;
            }
          }
        }
      }
      .year-active{
        color: #DE0012;
      }
    }
    + .footer::before,
    + div + footer::before {
      background-color: var(--Bg_BW2);
    }
  }
}

.history-main-v{
  margin: 0 0 64px;
  .title-area{
    margin: 24px 0 0;
    span{
      font-size: 2.0rem;
      font-family: Noto Sans;
      font-weight: 400;
      line-height: 24px;
    }
    p{
      color: white;
      font-size: 1.6rem;
      font-family: Noto Sans;
      font-weight: 400;
      line-height: 27.20px;
      margin: 8px 0 0;
    }
  }

  img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
  } 
}




/* ---------------------------
  コンテンツエリア
--------------------------- */
.history-content{
  position: relative;
  display: flex;
  gap: 0 100px;
  padding: 100px 0;

  &::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    /* width: 30%; */
    width: var(--year-area-width, 100px);
    height: 200px;
    pointer-events: none;
    /* content: '';
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    pointer-events: none; */
  }

  .year-area{
    position: sticky;
    top: 100px;
    align-self: flex-start;
    flex-shrink: 0;
    width: 320px; /* 固定幅を追加 - 最大フォントサイズに合わせて調整 */
    transition: top 0.4s ease;
    > ul{
      padding-bottom: 100px;
    }
    
    li{
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.4s ease, opacity 0.4s ease, transform 0.4s ease;

      color: white;
      font-size: 4.0rem;
      font-weight: 300;
      /* line-height: 4.8rem; */
      line-height: 1;
      white-space: nowrap;
      opacity: 0.6;

      &.year-hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px); /* オプション:上方向にスライド */
        pointer-events: none;
      }

      &.year-active{
        font-size: 14rem;
        font-weight: 250;
        line-height: 1;
        opacity: 1;
        &.text-small {
          font-size: 13.5rem;
        }
      }

      &:not(:last-child){
        &:after{
          content: "";
          display: block;
          width: 2px;
          height: 56px;
          background-size: contain;
          margin: 20px 0;
        }
      }

    }
  }
  
  .year-contents {
    flex: 1;
    min-width: 0;
    > .year-content-area{
      transition: all .6s;
      margin: 200px 0;
      &:first-child{
        margin: 0 0 200px;
      }
      &:last-child{
        margin: 200px 0 100px;
      }
      &.type-2 {
        margin-top: -40px;
        padding-top: 40px;
      }
    }

  }

  &.opacity-none {
    .year-contents {
      > .year-content-area {
        opacity: 1 !important;
      }
    }
  }
}



/* ---------------------------
  ページオリジナルデザイン
--------------------------- */
/* new_directions.html */
.mt-histry-top {
  margin-top: 40px;
}
@media (max-width: 1280px) {
  .mt-histry-top {
    margin-top: 24px;
  }
}
/* going_global.html */
.radius-10-hidden {
  border-radius: 10px;
  overflow: hidden;
}
.object-cover {
  object-fit: cover;
}
.history-bottom-content {
  padding: 0 0 60px 420px;
}
.history-card-link {
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--Umios_Blue);
  padding: 20px;
  border-radius: 20px;
  + .history-card-link {
    margin-top: 4px;
  }
  &:focus-visible {
    outline: 2px solid var(--Umios_text_Red);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--Umios_text_Red);
  }
}
.history-card-img {
  border-radius: 10px;
  overflow: hidden;
}
.history-card-text {
  > span,
  > .title,
  > .year {
    color: var(--Umios_White);
  }
  > .year {
    font-size: 1.6rem;
    font-weight: 500;
  }
  > .title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 8px;
  }
  > .text-link {
    margin-top: 12px;
    svg {
      color: var(--Umios_White);
    }
    &:hover {
      svg {
        transform: translateX(0);
      }
    }
  }
}
.history-card-link:hover {
  background: var(--Umios_White);
  .history-card-text {
    > .year {
      color: var(--Umios_text_Red);
    }
    > .title {
      color: var(--Umios_body_text);
    }
    > .text-link {
      color: var(--Umios_body_text);
      svg {
        color: var(--Umios_text_Red);
      }
    }
  }
}

@media (max-width: 1100px) {
  img[src*="formative_years/09.png"] { width: 155px; }
  img[src*="formative_years/10.png"] { width: 132px; margin: auto;}

  .history-main-v{
    margin: 24px 0 0;
    img{
      height: 184px;
      border-radius: 10px;
    }
    .title-area{
      margin: 32px 0 0;
      .main-copy{
        margin: 12px 0;
      }
    }
  }
  .history-content{
    gap: 0 40px;
    padding: 64px 0 100px;
    &::after{
      height: 40px;
    }

    .year-area{
      width: 44px;
      li{
        font-size: 1.2rem;
        &.year-active{
          font-size: 2rem;
          font-weight: 300;
          &.text-small {
            font-size: 1.8rem;
          }
        }
        &:not(:last-child){
          &:after{
            height: 64px;
            background: url("data:image/svg+xml;utf8,<svg width='2' height='64' viewBox='0 0 2 64' fill='none' xmlns='http://www.w3.org/2000/svg'><path opacity='0.6' d='M1 1L0.999987 64' stroke='white' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.1 7'/></svg>") no-repeat center;
            margin: 20px 0;
          }
        }
      }
    }
    .year-contents {
      > .year-content-area{
        min-height: auto;
        margin: 64px 0;
        &:first-child{
          margin: 0 0 64px;
        }
        &:last-child{
          margin: 64px 0 64px;
        }
        &.type-2 {
          margin: 64px 0;
          padding: 0;
        }
      }
    }
  }
  /* going_global.html */
  .history-bottom-content {
    padding-left: 0;
  }
}

@media (max-width: 769px) {
  img[src*="formative_years/09.png"] { width: 93px; min-width: 93px; }
  img[src*="formative_years/10.png"] { width: 132px; margin: 0;}

  .history-main-v{
    margin: 24px 0 0;
    img{
      height: 137px;
    }
  }
  .history-content{
    gap: 0 20px;

    .year-area{
      li{
        &.year-active{
          font-weight: 400;
        }
      }
    }
  }
  /* going_global.html */
  .history-card-link {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .history-card-text {
    order: 1;
    > .title {
      font-size: 1.6rem;
    }
  }
  .history-card-img {
    order: 2;
    width: 135px;
    margin-left: auto;
  }
}