/* 会社概要ページ専用CSS */

/* グローバルアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* メインコンテンツ */
.main-company {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

/* ヒーローセクション */
.company-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    margin-bottom: 60px;
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.company-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.company-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.company-hero h2 {
    font-size: 2rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

/* 企業理念 */
.company-mission {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.company-mission:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #ffffff;
}

.mission-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.mission-content p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: justify;
}

.mission-content p:last-child {
    margin-bottom: 0;
}

/* 沿革 */
.company-history {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.company-history h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

/* タイムライン */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4b5563;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-date {
    flex: 0 0 200px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 20px;
    background: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #4b5563;
}

.timeline-content {
    flex: 1;
    padding: 16px 24px;
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 20px;
}

/* 会社概要 */
.company-overview {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.company-overview h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

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

.overview-table table {
    width: 100%;
    border-collapse: collapse;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overview-table td {
    padding: 20px;
    border-bottom: 1px solid #4b5563;
    vertical-align: top;
    color: #ffffff;
}

.overview-table td:last-child {
    border-bottom: none;
}

.overview-table .label {
    background-color: #1a1a1a;
    color: #d1d5db;
    font-weight: 600;
    width: 200px;
    border-right: 1px solid #4b5563;
}

.overview-table .value {
    color: #ffffff;
    line-height: 1.6;
}

/* お問い合わせ */
.company-contact {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.company-contact h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-details h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-details p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 16px;
}

.contact-details a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #4b5563;
    transition: border-color 0.2s ease;
}

.contact-details a:hover {
    border-bottom-color: #ffffff;
}

/* 製品・サービス */
.company-products {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.company-products h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
}

.product-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.product-card p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* CTAセクション */
.company-cta {
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 60px;
}

.company-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.company-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* アクティブナビゲーション */
.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .company-hero h1 {
        font-size: 2.5rem;
    }
    
    .company-hero h2 {
        font-size: 1.5rem;
    }
    
    .company-mission,
    .company-history,
    .company-overview,
    .company-contact,
    .company-products {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .company-mission h3,
    .company-history h3,
    .company-overview h3,
    .company-contact h3,
    .company-products h3 {
        font-size: 1.5rem;
    }
    
    .company-cta {
        padding: 60px 24px;
    }
    
    .company-cta h2 {
        font-size: 2rem;
    }
    
    .company-cta p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    /* タイムラインのモバイル対応 */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 20px;
        background: transparent;
    }
    
    .timeline-date {
        flex: none;
        width: 120px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .timeline-content {
        margin: 0 0 0 16px;
        font-size: 14px;
    }
    
    .overview-table .label {
        width: 150px;
        font-size: 14px;
    }
    
    .overview-table .value {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-company {
        padding-top: 80px;
    }
    
    .company-hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .company-hero h1 {
        font-size: 2rem;
    }
    
    .company-hero h2 {
        font-size: 1.3rem;
    }
    
    .company-mission,
    .company-history,
    .company-overview,
    .company-contact,
    .company-products {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .company-cta {
        padding: 40px 20px;
    }
    
    .company-cta h2 {
        font-size: 1.8rem;
    }
    
    .timeline-date {
        width: 100px;
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .timeline-content {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .overview-table td {
        padding: 12px;
    }
    
    .overview-table .label {
        width: 120px;
        font-size: 13px;
    }
    
    .overview-table .value {
        font-size: 13px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-hero {
    animation: fadeInUp 0.6s ease-out;
}

.company-mission {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
}

.company-history {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
}

.company-overview {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
}

.company-contact {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.4s;
}

.company-products {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.5s;
}

.company-cta {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.6s;
}

/* ホバー効果 */
.product-card:hover {
    background: #f1f5f9;
}

.contact-details a:hover {
    color: #6b7280;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
