/* ==================================================
   カタヤマの歩み（沿革）ページスタイル
   ================================================== */

/* Hero Section */
.history-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004B9A 0%, #0066CC 100%);
    color: white;
    overflow: hidden;
}

.history-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.history-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 75, 154, 0.7);
}

.history-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.history-hero__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.history-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .history-hero {
        min-height: 300px;
    }

    .history-hero__title {
        font-size: 2rem;
    }

    .history-hero__subtitle {
        font-size: 1rem;
    }
}

/* Timeline Section */
.history-timeline {
    padding: 6rem 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline Line */
.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #004B9A;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline__line {
        left: 40px;
    }
}

/* Timeline Item */
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.timeline__item:nth-child(even) .timeline__date {
    order: 3;
    text-align: left;
}

.timeline__item:nth-child(even) .timeline__content {
    order: 1;
    text-align: right;
}

.timeline__item:nth-child(odd) .timeline__content {
    text-align: left;
}

@media (max-width: 768px) {
    .timeline__item {
        grid-template-columns: 80px 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .timeline__item:nth-child(even) .timeline__date {
        order: 1;
    }

    .timeline__item:nth-child(even) .timeline__content {
        order: 2;
        text-align: left;
    }

    .timeline__date {
        grid-column: 1;
        text-align: left !important;
    }

    .timeline__dot {
        grid-column: 1;
    }

    .timeline__content {
        grid-column: 2;
    }
}

/* Timeline Date */
.timeline__date {
    padding: 0.5rem 1rem;
    text-align: right;
}

.timeline__year {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #004B9A;
    line-height: 1.2;
}

.timeline__month {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Timeline Dot */
.timeline__dot {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #A8C5DD;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline__dot--milestone {
    width: 100px;
    height: 100px;
    background: #004B9A;
}

.timeline__star {
    font-size: 2rem;
}

.timeline__item:hover .timeline__dot {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 75, 154, 0.3);
}

@media (max-width: 768px) {
    .timeline__dot {
        width: 60px;
        height: 60px;
    }

    .timeline__dot--milestone {
        width: 80px;
        height: 80px;
    }

    .timeline__star {
        font-size: 1.5rem;
    }
}

/* Timeline Content */
.timeline__content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline__item--milestone .timeline__content {
    border: 2px solid #004B9A;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%);
}

.timeline__content:hover {
    box-shadow: 0 4px 16px rgba(0, 75, 154, 0.15);
    transform: translateY(-2px);
}

.timeline__title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.timeline__item--milestone .timeline__title {
    color: #004B9A;
    font-size: 1.5rem;
}

.timeline__description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.timeline__image {
    margin-top: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.timeline__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* No Timeline Message */
.no-timeline {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    padding: 4rem 2rem;
}

/* Container */
.history-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .history-page .container {
        padding: 0 1rem;
    }
}
