/* Enterprise関連セクション用のスタイル */
.enterprise-section {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.enterprise-lead {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.enterprise-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.enterprise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.enterprise-logo {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}


.enterprise-logo img {
    width: auto;
    height: auto;
    object-fit: scale-down; /* or 'contain'でも可 */
}


.enterprise-info {
    padding: 25px;
    flex: 1;
}

.enterprise-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.enterprise-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.enterprise-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}



/* 会社概要セクション */
.company-section {
    padding: 120px 0;
    background-color: #fff;
}

.company-table-container {
    max-width: 800px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.company-table th {
    width: 30%;
    text-align: left;
    font-weight: 500;
    color: #333;
    background-color: #f9f9f9;
}

.company-table td {
    width: 70%;
}

/* ヒストリーセクション */
.history-section {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    width: 2px;
    height: 100%;
    background-color: #ddd;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.scroll-active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    width: 120px;
    font-size: 1.4rem;
    font-weight: 700;
    padding-right: 30px;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #000;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
    }
    
    .history-timeline::before {
        left: 80px;
    }
    
    .timeline-year {
        width: 80px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding-left: 20px;
    }
    
    .company-table th,
    .company-table td {
        padding: 15px;
    }
    
    .company-table th {
        width: 35%;
    }
    
    .company-table td {
        width: 65%;
    }
}

@media (max-width: 480px) {
    .timeline-year {
        width: 60px;
        font-size: 1rem;
    }
    
    .history-timeline::before {
        left: 60px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .company-table th,
    .company-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}