/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
History - timeline
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* --------------------------------------
Layout
--------------------------------------- */

#timeline .common-bg {
    padding: 160px 0 180px;
}

.s#timeline .common-bg {
    padding: 60px 0 150px;
}

#timeline .common-box {
    padding: 96px 40px;
    position: relative;
    overflow: hidden;
}

.s#timeline .common-box {
    padding: 30px 9%;
}

#timeline .common-box::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top,
            #fff 40%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

.s#timeline .common-box::after {
    height: 1.5%;
}

#timeline h4 {
    font-size: 12rem;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    position: relative;
}

.s#timeline h4 {
    font-size: 3.6rem;
}

/* --------------------------------------
	timeline-mv
--------------------------------------- */
#timeline .common-mv h2 {
    max-width: min(48px, 4.19vw);
}

/* --------------------------------------
	timeline-lead
--------------------------------------- */
.timeline-lead {
    font-size: 2.2rem;
    padding: min(160px, 11.11vw) 20px;
    max-width: 840px;
    margin: 0 auto
}

.s .timeline-lead {
    font-size: 1.6rem;
    padding: 60px 20px;
}

/* --------------------------------------
	timeline-content
--------------------------------------- */
.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #7f7f7f;
    transform: translateX(-50%);
    z-index: 2;
}

.s .timeline::before {
    top: 2.5vw;
    left: 0;
    width: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    position: relative;
}

.s .timeline-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 30px;
    padding-left: 20px;
    justify-self: start;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 15px;
    height: 15px;
    background: #000;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.s .timeline-item::after {
    top: 2.5vw;
    left: 0;
    width: 10px;
    height: 10px;
}

.timeline-item.has-image .timeline-image {
    grid-column: 1;
    max-width: 480px;
    position: relative;
    z-index: 0;
}

.s .timeline-item.has-image .timeline-image {
    max-width: 100%;
    padding-bottom: 10px;
    order: 2;
    margin-left: 35px;
    padding-top: 20px;
}

.timeline-image._item1926::after {
    content: "";
    position: absolute;
    top: 143%;
    left: -50%;
    width: 100%;
    aspect-ratio: 1138 / 1126;
    max-width: 569px;
    background: url(../img/history/timeline-gradation-r.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* transform: translate(20%, 15%); */
    pointer-events: none;
}
@media (min-width: 1440px) {
  .timeline-image._item1926::after {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 30%,
      rgba(0,0,0,0.5) 43%,
      black 65%
    );
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;

        mask-image: linear-gradient(to right, transparent 30%, rgba(0, 0, 0, 0.5) 43%, black 70%);    mask-repeat: no-repeat;
    mask-size: 100% 100%;
  }
}

.s .timeline-image._item1926::after {
    top: -117%;
    left: auto;
    right: -82%;
    background-size: 100%;
}

.timeline-image._item1953::before {
    content: "";
    position: absolute;
    top: -164%;
    right: -27%;
    width: 100%;
    aspect-ratio: 1196 / 1176;
    max-width: 598px;
    background: url(../img/history/timeline-gradation-b.png);
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* transform: translate(-39%, -48%); */
    pointer-events: none;
}
.s .timeline-image._item1953::before {
    background-size: 120%;
    right: auto;
    left: -108%;
}

.timeline-image._item1975::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1060 / 1019;
    max-width: 530px;
    background: url(../img/history/timeline-gradation-g.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(31%, -110%);
    pointer-events: none;
}

.s .timeline-image._item1975::after {
    background-size: 120%;
    transform: translate(88%, -132%);
}

.timeline-image._item2012::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1582 / 1582;
    max-width: 791px;
    background: url(../img/history/timeline-gradation-y-large.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(-34%, -130%);
    pointer-events: none;
}
@media (min-width: 1440px) {
  .timeline-image._item2012::before {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 10%,
      rgba(0,0,0,0.4) 20%,
      rgba(0,0,0,0.8) 30%,
      black 75%
    );
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-mode: alpha;

    mask-image: linear-gradient(
      to right,
      transparent 10%,
      rgba(0,0,0,0.4) 20%,
      rgba(0,0,0,0.8) 30%,
      black 75%
    );
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-mode: alpha;
  }
}
.s .timeline-image._item2012::before {
    background-size: 120%;
    transform: translate(-101%, -110%);
}
.timeline-image._item2012::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 73%;
    aspect-ratio: 1060 / 1019;
    max-width: 530px;
    background: url(../img/history/timeline-gradation-g.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(25%, 190%);
    pointer-events: none;
}
.s .timeline-image._item2012::after {
    background-size: 100%;
    transform: translate(121%, 168%);
}


.timeline-body {
    position: relative;
    z-index: 0;
}

.timeline-body._item1958::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1244 / 1250;
    max-width: 622px;
    background: url(../img/history/timeline-gradation-y-small.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(-150%, -46%);
    pointer-events: none;
}
@media (min-width: 1440px) {
  .timeline-body._item1958::after {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 20%,
      rgba(0,0,0,0.4) 30%,
      rgba(0,0,0,0.8) 40%,
      black 85%
    );
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-mode: alpha;

    mask-image: linear-gradient(to right, transparent 20%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.8) 40%, black 85%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-mode: alpha;
  }
}

.s .timeline-body._item1958::after {
    content: none;
}

.timeline-body._item1987::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1170 / 1174;
    max-width: 585px;
    background: url(../img/history/timeline-gradation-br.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(-103%, -46%);
    pointer-events: none;
}

.s .timeline-body._item1987::after {
    content: none;
}


.timeline-item.has-image .timeline-body {
    grid-column: 2;
    position: relative;
    z-index: 2;
}

.s .timeline-item.has-image .timeline-body {
    grid-column: 1;
    order: 1;
}

.timeline-item:not(.has-image) .timeline-body {
    grid-column: 2;
    position: relative;
    z-index: 2;
}

.s .timeline-item:not(.has-image) .timeline-body {
    grid-column: 1;
    order: 1;
}


.timeline-body ._year {
    font-size: 5rem;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    line-height: 1;
    padding-bottom: 20px;
    letter-spacing: 0.5rem;
}

.s .timeline-body ._year {
    font-size: 2.8rem;
    padding-bottom: 10px;
    letter-spacing: 0.3rem;
}

.timeline-body li:not(._year) {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    font-size: 1.6rem;
    font-weight: 500;
    padding-bottom: 10px;
}

.timeline-body li:not(._year) ._month {
    flex: 0 0 35px;
}

#timeline-content .center {
    max-width: 1440px;
    padding: 0;
}
#timeline-content .common-box {
    padding: 7%;
}