/*================================================
  page-header
================================================*/

.page-header-about {
    background-image: url(../../image/our-history/page-header-bg.jpg);
}
.page-header-title {
    max-width: 822px;
}
.page-header-title-ja {
    bottom: -10%;
    right: 10%;
}

@media print,
screen and (min-width: 1200px) {
    .page-header-title-ja {
        bottom: 0%;
        right: 10%;
    }
}

/*================================================
  history
================================================*/
.history {
    padding-top: calc(var(--layout-gap) * 2);
    color: var(--color-white);
}

.history .page-section-title-ja {
    padding-left: 16%;
}

/* history-timeline */
.history-timeline {
    position: relative;
    margin-top: calc(var(--layout-gap) * 2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 3%;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--color-white);
    border-radius: 50%;
}

.history-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    background-color: var(--color-white);
}

.timeline-item.left {
    width: 50%;
}

.timeline-item.right {
    width: 50%;
}

.year {
    font-size: clamp(4rem, 2rem + 4vw, 7.2rem);
    font-weight: bold;
    border-bottom: 2px solid var(--color-white);
    margin-bottom: calc(var(--layout-gap) / 4);
    position: relative;
    padding-inline: calc(var(--layout-gap) / 2);
}

.year span {
    font-size: 2.4rem;
    font-weight: 900;
}

.year::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-timeline-border);
    background-color: var(--color-primary);
}

.timeline-item.left .year::after {
    left: 0;
}

.timeline-item.right .year::after {
    right: 0;
}

.timeline-detail {
    padding-inline: calc(var(--layout-gap) / 2);
    font-size: 1.4rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

/* .timeline-detail:nth-of-type(3) {
    margin-top: calc(var(--layout-gap) / 4);
} */

.month {
    padding: calc(var(--layout-gap) / 5) calc(var(--layout-gap) / 2);
    background-color: var(--color-primary);
    border-radius: 20px;
    line-height: 1;
    margin-right: calc(var(--layout-gap) / 2);
    white-space: nowrap;
    font-size: 1.6rem;
    font-weight: bold;
}

.timeline-detail .text {
    font-size: 1.6rem;
    font-weight: 700;
}

/* 要素をずらす */

.timeline-item:nth-child(even) {
    margin-top: calc(var(--layout-gap) * 3);
}

/* .timeline-item.right:nth-child(2) {
    margin-top: calc(var(--layout-gap) * 3);
}

.timeline-item.right:nth-child(4) {
    margin-top: calc(var(--layout-gap) * 3);
}

.timeline-item.right:nth-child(6) {
    margin-top: calc(var(--layout-gap) * 3);
}

.timeline-item.right:nth-child(8) {
    margin-top: calc(var(--layout-gap) * 6);
} */

@media print,
screen and (min-width: 769px) {
    .history-timeline {
        padding-inline: 1%;
    }

    .timeline-detail {
        flex-direction: row;
    }

    .month {
        font-size: 1.8rem;
    }

    .timeline-detail .text {
        font-size: 1.8rem;
    }

}

@media print,
screen and (min-width: 1200px) {
    .history {
        padding-top: calc(var(--layout-gap) * 4);
    }

    /* history-timeline */
    .history-timeline {
        margin-top: calc(var(--layout-gap) * 3);
    }

    .history-timeline::before {
        width: 50px;
        height: 50px;
    }

    .history-timeline::after {
        width: 19px;
        height: 100%;
    }

    .year {
        padding-inline: var(--layout-gap);
    }

    .year span {
        font-size: 3.2rem;
    }

    .timeline-detail {
        padding-inline: var(--layout-gap);
        font-size: 1.8rem;
    }

}
