/* ===== 会社概要ページ専用スタイル ===== */

/* 代表挨拶 */
.ceo-message {
    padding: 80px 0;
    background: #fff;
    width: 70%;
    margin: 0 auto;
}

.message-content {
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.message-intro h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
}

.message-body {
    line-height: 1.8;
    color: #555;
}

.message-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.ceo-signature {
    margin-top: 40px;
    text-align: right;
}

.ceo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.message-visual {
    display: flex;
    justify-content: center;
}

.ceo-photo-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ceo-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

/* 企業理念 */
.philosophy {
    padding: 80px 0;
    background: #f8f9fa;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.philosophy-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
}

.philosophy-icon svg {
    width: 40px;
    height: 40px;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.philosophy-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 会社情報 */
.company-info {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 30%;
    font-weight: 600;
    color: #333;
    padding-right: 20px;
}

.info-table td {
    color: #555;
    line-height: 1.6;
}

.map-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.access-info {
    margin-top: 25px;
}

.access-info h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.access-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-info li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.access-info li:last-child {
    border-bottom: none;
}

/* 沿革 */
.history {
    padding: 80px 0;
    background: #f8f9fa;
}

.history-timeline {
    margin-top: 60px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    transform: translateX(-50%);
}

.timeline-item {
    display: block;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    min-height: 120px;
    height: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #ff6b6b;
    transform: translateX(-50%);
    z-index: 2;
}

/* 奇数番目のアイテム（右側） */
.timeline-item:nth-child(odd) .timeline-year {
    position: absolute;
    left: calc(50% - 120px);
    top: 0;
    width: 100px;
    text-align: right;
    padding-right: 10px;
}

.timeline-item:nth-child(odd) .timeline-content {
    position: absolute;
    left: calc(50% + 40px);
    top: 0;
    width: calc(50% - 80px);
}

/* 偶数番目のアイテム（左側） */
.timeline-item:nth-child(even) .timeline-year {
    position: absolute;
    right: calc(50% - 120px);
    top: 0;
    width: 100px;
    text-align: left;
    padding-left: 10px;
}

.timeline-item:nth-child(even) .timeline-content {
    position: absolute;
    right: calc(50% + 40px);
    top: 0;
    width: calc(50% - 80px);
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b6b;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    min-height: 80px;
    height: auto;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* 会社概要ページレスポンシブデザイン */
@media (max-width: 768px) {
    .ceo-message {
        width: 100%;
    }
    
    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .message-intro h3 {
        font-size: 1.3rem;
    }
    
    .lead-text {
        font-size: 1.0rem;
    }
    .ceo-photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .ceo-photo {
        width: 140px;
        height: 140px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-table th {
        width: 35%;
    }

    .timeline-item {
        flex-direction: column;
        margin-left: 0;
        text-align: center;
        justify-content: center !important;
        position: relative;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: center;
    }

    .history-timeline::before {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
        top: 15px;
    }

    .timeline-year {
        position: absolute;
        top: -10px;
        left: 50px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #ff6b6b;
        z-index: 2;
        text-align: left;
        width: auto !important;
    }

    .timeline-content {
        margin-left: 50px;
        margin-right: 0 !important;
        text-align: left;
        max-width: calc(100% - 50px);
        flex: none;
        order: 2;
        position: static !important;
        width: auto !important;
        padding-top: 25px;
    }
}

@media (max-width: 480px) {
    .ceo-message,
    .philosophy,
    .company-info,
    .history {
        padding: 60px 0;
    }

    .philosophy-card {
        padding: 30px 20px;
    }

    .info-table th,
    .info-table td {
        padding: 12px 0;
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }
}