@charset "utf-8";

/** ***************************************************************************
 * タイムライン
 * ************************************************************************* */

#timeline div.timeline {
  padding: 40px 20px 60px;
}

#timeline div.item {
  margin-top: 30px;
  text-align: center;
}

#timeline div.item:where(:nth-of-type(odd)) {
  margin-left: 0;
  margin-right: auto;
}

#timeline div.item:where(:nth-of-type(even)) {
  margin-left: auto;
  margin-right: 0;
}

@media screen and (min-width:768px) {

  #timeline {
    min-height: 50vh;
  }

  #timeline div.frame {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    transition:
      height 0.4s ease-in-out 0.0s,
      top 0.4s ease-in-out 0.0s;
    height: calc(100vh - 100px);
    top: 100px;
  }

  body.scroll-up
  #timeline div.frame {
    transition:
      height 0.6s ease-in-out 0.2s,
      top 0.6s ease-in-out 0.2s;
    height: calc(100vh - 190px);
    top: 190px;
  }

  #timeline div.timeline {
    max-width: none;
    height: 100%;
    padding: 3vh 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 2.0s cubic-bezier(0.22, 1, 0.36, 1) 0.0s;
  }

  #timeline div.item {
    margin-top: unset;
    margin-left: 5vw;
    margin-right: 5vw;
    flex-shrink: 0;
  }

}

/**
 * 小
 */

/* SP表示 */

@media screen and (max-width:767px) {

  #timeline div.small {
    width: 30vw;
  }

  #timeline div.small + div.small {
    margin-top: -5vh;
  }

  #timeline div.small + div.medium1 {
    margin-top: -5vh;
  }

  #timeline div.small + div.medium2 {
    margin-top: -5vh;
  }

}

/* PC表示 */

@media screen and (min-width:768px) {

  #timeline div.small {
    width: 30vh;
    margin-left: unset;
    margin-right: unset;
    align-self: flex-start;
  }

  #timeline div.small + div.small {
    margin-left: -5vw;
    align-self: flex-end;
  }

  #timeline div.small + div.medium1 {
    margin-left: -5vw;
    align-self: flex-end;
  }

  #timeline div.small + div.medium2 {
    align-self: center;
  }

  #timeline div.small + div.small + div.small {
    margin-left: 5vw;
    align-self: center;
  }

  #timeline div.small + div.small + div.medium1 {
    margin-left: 5vw;
    align-self: center;
  }

}

/**
 * 中（小）
 */

/* SP表示 */

@media screen and (max-width:767px) {

  #timeline div.medium1 {
    width: 40vw;
  }

  #timeline div.medium1 + div.small {
    margin-top: -5vh;
  }

  #timeline div.medium1 + div.medium1 {
    margin-top: -5vh;
  }

}

/* PC表示 */

@media screen and (min-width:768px) {

  #timeline div.medium1 {
    width: 40vh;
  }

  #timeline div.medium1 + div.small {
    margin-left: -5vw;
  }

  #timeline div.medium1 + div.medium1 {
    margin-left: unset;
    align-self: flex-start;
  }

  #timeline div.medium1 + div.medium2 {
    margin-left: unset;
    align-self: center;
  }

  #timeline div.medium1 + div.medium1 + div.small {
    align-self: flex-end;
  }

  #timeline div.medium1 + div.medium1 + div.medium1 {
    margin-left: -5vw;
    align-self: flex-end;
  }

  #timeline div.medium1 + div.medium1 + div.medium2 {
    align-self: flex-end;
  }

}

/**
 * 中（大）
 */

/* SP表示 */

@media screen and (max-width:767px) {

  #timeline div.medium2 {
    width: 60vw;
  }

}

/* PC表示 */

@media screen and (min-width:768px) {

  #timeline div.medium2 {
    width: 55vh;
    align-self: flex-end;
  }

  #timeline div.medium2 + div.medium1 {
    margin-left: unset;
    align-self: flex-end;
  }

  #timeline div.medium2 + div.medium2 {
    margin-left: unset;
    align-self: flex-start;
  }

  #timeline div.medium2 + div.medium2 + div.medium2 {
    align-self: center;
  }

}

/**
 * 大
 */

/* SP表示 */

@media screen and (max-width:767px) {

  #timeline div.large {
    width: 70vw;
  }

}

/* PC表示 */

@media screen and (min-width:768px) {

  #timeline div.large {
    width: 70vh;
  }

  #timeline div.large + div.medium1 {
    align-self: flex-end;
  }

  #timeline div.large + div.large {
    align-self: flex-start;
  }

  #timeline div.large + div.large + div.large {
    align-self: flex-end;
  }

}

/**
 * 画像
 */

#timeline div.item div.image {
  margin-bottom: 10px;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.3));
  clip-path: shape(
    from 25% 0,
    line to 75% 0,
    line to 100% 50%,
    line to 75% 100%,
    line to 25% 100%,
    line to 0 50%,
    close
  );
}

#timeline div.item div.image img {
  width: 100%;
}

/**
 * 日付
 */

#timeline div.item div.time {
  display: flex;
  align-items: center;
  justify-content: center;
}

#timeline div.item div.time::before {
  content: '';
  width: 1em;
  height: 1em;
  margin-top: 0.125em;
  margin-right: 0.375em;
  background: url("../../_image/_common/icon-listmark-1.png") 0 0 / 100% 100% no-repeat;
}

/**
 * 記事無し
 */

#timeline div.notfound {
  padding: 5em 20px;
  text-align: center;
}

@media screen and (min-width:768px) {

  #timeline div.notfound {
    padding: 10em 20px;
  }

}

/** ***************************************************************************
 * プロダクトタイムライン一覧
 * ************************************************************************* */

#button div.body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#button a[href] {
  min-width: 300px;
  padding: 0.875em 1.5em 1em;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: #776251;
}

#button a[href]:hover {
  color: #fff;
  background-color: #000;
}

@media screen and (min-width:768px) {

  #button a[href] {
    min-width: 400px;
  }

}
