main{
    background-color: #fff;
}

.fade-in-about {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* --- ページヘッダー --- */
.page-header {
    padding: 120px 20px 60px;
    background-color: #f7f7f7;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.1em;
}
.page-header p {
    font-size: 1rem;
    color: #666;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- セクション共通ヘッダー --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #333;
}
.section-description {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* === 企業理念セクション === */
.vision-mission-section {
    padding: 80px 0;
}
.vision-mission-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.vision-card {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.vision-card__icon {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}
.vision-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.vision-card__subtitle {
    color: #888;
    margin-bottom: 15px;
}
.vision-card__text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* === 代表挨拶セクション === */
.ceo-message-section {
    padding: 80px 0;
    background-color: #f7f7f7;
}
.ceo-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.ceo-image-wrapper {
    flex: 0 0 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.ceo-photo {
    width: 100%;
    height: auto;
}
.ceo-text {
    flex: 1;
}
.ceo-paragraph {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #333;
    line-height: 2.0;
}
.ceo-signature {
    margin-top: 30px;
    font-size: 1rem;
    color: #333;
    text-align: right;
    line-height: 1.6;
}


/* === 会社情報セクション === */
.profile-section {
    padding: 80px 0;
}
.profile-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ddd;
}
.profile-table th, .profile-table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.profile-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    width: 25%;
}

/* === 沿革セクション (PC表示: 769px以上) === */
.history-section {
    padding: 80px 0;
    background-color: #f7f7f7;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 3px;
    background-color: #ddd;
}
.timeline-item {
    position: relative;
    padding-left: 150px;
    margin-bottom: 50px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item__year {
    position: absolute;
    left: 0;
    top: 5px;
    width: 100px;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    padding-right: 20px;
}
.timeline-item__content::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 10px;
    width: 23px;
    height: 23px;
    background-color: #fff;
    border: 3px solid #ddd;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item__content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.timeline-item__content p {
    color: #555;
    font-size: 0.95rem;
}

/* === 導入事例セクション === */
.case-study-section {
    padding: 80px 0;
    background-color: #fff;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f7f7f7;
    border-radius: 50%;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
}
.card-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}
.card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    text-align: left;
}


/* --- CTAセクション --- */
.call-to-action-section {
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.call-to-action-section .section__title {
    font-size: 2.2em;
    margin-bottom: 25px;
}

.call-to-action-section p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #333;
    color: #ffffff;
}

.contact-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .ceo-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .ceo-image-wrapper {
        flex: 0 0 auto;
        width: 200px;
    }
    .ceo-text {
        text-align: left;
    }
    .ceo-signature {
        text-align: right;
    }

    .profile-table th, .profile-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .profile-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .profile-table td {
        padding-top: 5px;
    }
    
    /* ★★★ ここから沿革セクションのレスポンシブを修正 ★★★ */
    .timeline {
        padding-left: 0;
        max-width: 100%;
    }
    .timeline::before {
        left: 10px; /* 縦線を左端から10pxの位置に */
        height: calc(100% - 50px); /* 最後の要素分の余白を考慮 */
    }
    .timeline-item {
        position: relative; /* 子要素の配置の基準に */
        padding-left: 40px; /* コンテンツの左余白 */
        margin-bottom: 40px;
    }
    .timeline-item::before { /* ドットをliに追加 */
        content: '';
        position: absolute;
        left: 10px; /* 縦線と同じ位置 */
        top: 5px;   /* テキストの高さに合わせて微調整 */
        width: 20px;
        height: 20px;
        background-color: #fff;
        border: 3px solid #ddd;
        border-radius: 50%;
        transform: translateX(-50%); /* 縦線の中央に配置 */
        z-index: 1;
    }
    .timeline-item__year {
        position: static; /* 通常の配置に戻す */
        width: auto;
        text-align: left;
        font-size: 1.2rem;
        padding: 0;
        margin-bottom: 8px;
    }
    .timeline-item__content {
        position: relative;
    }
    .timeline-item__content::before { /* 元のドット指定を削除 */
        content: none;
    }
    .timeline-item__content h3 {
        font-size: 1.1rem;
        margin-top: 0;
    }
    .timeline-item__content p {
        font-size: 0.9rem;
    }
    /* ★★★ ここまで ★★★ */
    
    .vision-card {
        padding: 30px 25px;
    }
    .vision-card__title {
        font-size: 1.4rem;
    }
    .vision-card__subtitle{
        font-size: 0.9rem;
    }
    .vision-card__text {
        font-size: 0.9rem;
    }
}