/* Our Story スライダー */
.story-slider {
    position: relative;
    margin: 2rem 0 3rem;
    overflow: hidden;
    background-color: #ECF0F1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.slide {
    padding: 3rem 1rem 4rem;
    display: none;
    height: 580px; /* 固定の高さを設定 */
    overflow-y: auto; /* 高さを超えるコンテンツはスクロール可能に */
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.slide::-webkit-scrollbar {
    width: 6px;
}

.slide::-webkit-scrollbar-track {
    background: transparent;
}

.slide::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.slide-active {
    display: block;
}

.slide-content {
    max-width: 1000px;
    width: 98%;
    margin: 0 auto;
    height: calc(100% - 10px); /* ナビゲーション用のスペースを考慮 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 1rem;
}

.slide-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    flex-shrink: 0;
}

.slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

.mission-box {
    background-color: white;
    border-left: 4px solid var(--accent-color, #3498DB);
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mission-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.mission-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 0.3rem;
}

/* タイムライン */
.timeline {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 0.5rem;
    overflow-y: visible;
    max-height: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color, #3498DB);
}

.timeline-item {
    position: relative;
    padding: 0.8rem 0 0.8rem 120px;
}

.timeline-year {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    width: 90px;
    text-align: right;
    padding-top: 10px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color, #3498DB);
    z-index: 1;
}

.timeline-content {
    background-color: white;
    padding: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* スライダーナビゲーション */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--accent-color, #3498DB);
}

.slider-arrows {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-arrow {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-arrow:hover {
    background-color: var(--accent-color, #3498DB);
}

/* スライド1（イントロダクション）用のスタイル調整 */
#slide1 .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
}

#slide1 p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* スライド2（ビジョン）用のスタイル調整 */
#slide2 .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1rem;
}

#slide2 p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* スライド3（ミッション）用のスタイル調整 - グリッドレイアウト */
#slide3 .slide-content {
    justify-content: flex-start;
    overflow-y: auto;
}

#slide3 .mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

#slide3 .mission-box {
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* スライド4（沿革）用のスタイル調整 */
#slide4 .slide-content {
    justify-content: flex-start;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .slide {
        padding: 2rem 0.5rem 4rem;
        height: 530px; /* モバイル用に少し小さく */
    }
    
    #slide3 .mission-grid {
        grid-template-columns: 1fr; /* モバイルでは１列に */
        gap: 0.8rem;
    }
    
    .mission-box {
        padding: 0.7rem 1rem;
    }
    
    .timeline::before {
        left: 80px;
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-year {
        width: 70px;
    }
    
    .timeline-year::after {
        right: -20px;
    }
}

/* タブレットサイズの対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide {
        height: 580px;
    }
    
    #slide3 .mission-grid {
        gap: 0.8rem;
    }
}