.atm-history-timeline {
    margin: 44px 0 8px;
    padding: 26px 24px 28px;
    border: 1px solid #ded7c8;
    border-radius: 12px;
    background: #f7f4eb;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.atm-history-timeline-heading {
    margin: 0 0 24px;
    color: #2e2a23;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    font-size: clamp(23px, 2.6vw, 30px);
    letter-spacing: .06em;
}

.atm-history-timeline-list {
    position: relative;
}

.atm-history-timeline-item {
    display: grid;
    grid-template-columns: 112px 30px minmax(0, 1fr);
    gap: 0 10px;
    min-height: 102px;
    margin: 0;
}

.atm-history-date {
    padding: 0 0 30px;
    text-align: right;
}

.atm-history-year,
.atm-history-era {
    display: block;
}

.atm-history-year {
    color: #332c23;
    font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.atm-history-era {
    margin-top: 5px;
    color: #7b6a52;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.atm-history-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.atm-history-rail::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #a88b62;
}

.atm-history-timeline-item:last-child .atm-history-rail::after {
    bottom: 35px;
}

.atm-history-dot {
    position: relative;
    z-index: 2;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border: 3px solid #f7f4eb;
    border-radius: 50%;
    background: #765a36;
    box-shadow: 0 0 0 1px #765a36;
}

.atm-history-body {
    padding: 0 0 30px;
}

.atm-history-event {
    margin: 0;
    color: #312f2b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.atm-history-references {
    margin: 2px 0 0 152px;
    padding-top: 18px;
    border-top: 1px solid #ded7c8;
    color: #776f63;
}

.atm-history-references-title {
    margin: 0 0 8px;
    color: #5f5548;
    font-size: 13px;
    font-weight: 700;
}

.atm-history-references-list {
    margin: 0;
    padding-left: 1.25em;
    font-size: 12px;
    line-height: 1.8;
}

.atm-history-references-list li {
    margin: 2px 0;
}

.atm-history-references-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 782px) {
    .atm-history-timeline {
        margin-top: 34px;
        padding: 22px 14px 24px;
    }

    .atm-history-timeline-item {
        grid-template-columns: 76px 22px minmax(0, 1fr);
        gap: 0 7px;
        min-height: 92px;
    }

    .atm-history-year {
        font-size: 17px;
    }

    .atm-history-era {
        font-size: 11px;
    }

    .atm-history-event {
        font-size: 14px;
        line-height: 1.75;
    }

    .atm-history-references {
        margin-left: 105px;
        padding-top: 16px;
    }
}
