/* =========================================
   JRFU 100th Anniversary - History (Timeline)
   ========================================= */

.timeline-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 100px 0;
    z-index: 99;
    font-family: 'EB Garamond', 'Noto Serif JP', serif;
    overflow: hidden;
}

/* --- Special Effects --- */
#timelineCherry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- Header --- */
.timeline-header {
    width: 100%;
    text-align: center !important;
    margin-bottom: 50px;
    padding: 0 20px;
}

.timeline-header h3 {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
    display: block;
}

.timeline-header p {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3em;
    margin-top: 10px;
    text-align: center;
    display: block;
}

/* --- Progress Bar Architecture --- */
.timeline-progress-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
}

.timeline-years-axis {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.timeline-years-axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Years Plot Sync */
.timeline-years-axis span:nth-child(1) {
    left: 0%;
    transform: none;
}

.timeline-years-axis span:nth-child(2) {
    left: 20%;
}

.timeline-years-axis span:nth-child(3) {
    left: 40%;
}

.timeline-years-axis span:nth-child(4) {
    left: 60%;
}

.timeline-years-axis span:nth-child(5) {
    left: 80%;
}

.timeline-years-axis span:nth-child(6) {
    left: 100%;
    transform: translateX(-100%);
}

/* Clickable Progress Bar (Swiper Override) */
.timeline-section .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.1) !important;
    height: 10px !important;
    top: auto !important;
    bottom: 0 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 150 !important;
}

.timeline-section .swiper-pagination-progressbar-fill {
    background: transparent !important;
    box-shadow: none !important;
}

/* Glow Dot Sync with Progress */
.progress-glow-dot {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fdeff4, 0 0 10px #fff;
    z-index: 120;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: block !important;
}

/* --- Swiper Slide Design --- */
.timeline-swiper {
    width: 100%;
    overflow: visible !important;
}

.swiper-slide.timeline-item {
    width: 400px;
    max-width: 85vw;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.swiper-slide-active.timeline-item {
    opacity: 1;
    filter: brightness(1.2);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    box-sizing: border-box;
}

.timeline-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: brightness(0.8);
    display: block;
}

/* --- Typography in Cards --- */
.year-western {
    font-size: 2.5rem;
    font-weight: 600;
    display: block;
    line-height: 1.1;
}

.year-japanese {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0 15px;
}

.timeline-description {
    text-align: left;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: #fdeff4;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(253, 239, 244, 0.8);
}

.timeline-text-single {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Swiper Controls --- */
.swiper-button-next,
.swiper-button-prev {
    color: #fdeff4;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Responsive） --- */
@media (max-width: 850px) {
    .timeline-progress-wrapper {
        margin-bottom: 40px !important;
    }

    .timeline-years-axis {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .timeline-swiper {
        margin-top: 0;
    }
}

.timeline-copy {
    text-align: center;
    margin-top: 2em;
}

.timeline-copy a {
    color: #fff;
}

.timeline-copy a:hover {
    color: #be0032;
}
