.about-page-section {
    padding: 60px 0;
}


.about-content-header {
    margin-bottom: 40px;
}

.about-content-title {
    font-size: 48px;
    color: #0ABAB5;
    margin-bottom: 5px;
    font-weight: 400;
}

.about-content-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #0ABAB5;
    margin-bottom: 30px;
}

.about-content-text {
    font-size: 20px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 80px;
}

.about-feature {
    margin-bottom: 60px;
}

.about-feature-title {
    font-size: 20px;
    color: #0ABAB5;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-feature-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-feature-text {
    flex: 1.4;
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.about-feature-image {
    flex: 1;
    max-width: 45%;
}

.about-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-features-group {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    align-items: flex-start;
}

.about-features-group-left {
    flex: 0 0 calc(60% - 20px);
}

.about-features-group-right {
    flex: 1;
    display: flex;
    margin-right: calc(-50vw + 50%);
}

.about-features-group-right img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.about-feature-btn {
    margin-top: 30px;
    margin-left: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 50px;
    box-sizing: border-box;
    padding: 9px 92px 9px 82px;
    border: 1px solid #3e3e3e;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    position: relative;
    font-size: 14px;
    transition: all 0.3s ease;
    gap: 10px;
}

.about-feature-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -55px;
    width: 100px;
    height: 1px;
    background-color: #3e3e3e;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.about-feature-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Partner Logos (reused from index) */
.features-logos {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.logos-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: center;
}

.partner-logo {
    height: auto;
    max-height: 95px;
    object-fit: contain;
}

/* Make service tabs wider for the About section (About, Message, Overview pages) */
.service-tabs .service-tab {
    flex: 1;
    max-width: 290px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .about-content-title {
        font-size: 32px;
    }
    .about-content-text {
        font-size: 14px;
        line-height: 1.8;
    }
    .about-feature-text {
        font-size: 14px;
    }

    .about-feature-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-feature-image {
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }

    /* 3, 2, 2 Logos layout with Flexbox */
    .features-logos {
        width: 100%;
        justify-content: center;
    }
    .logos-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .logo-group {
        display: contents;
    }
    
    .partner-logo {
        flex: 0 0 calc(33.333% - 12px);
        max-width: 100px;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }
    
    .logo-group:nth-child(1) .partner-logo:nth-child(4),
    .logo-group:nth-child(2) .partner-logo:nth-child(1),
    .logo-group:nth-child(2) .partner-logo:nth-child(2),
    .logo-group:nth-child(2) .partner-logo:nth-child(3) {
        flex: 0 0 calc(50% - 15px);
        max-width: 150px;
    }

    /* Mobile-specific logo reordering to match the design */
    .logo-group:nth-child(1) .partner-logo:nth-child(2) { order: 1; } /* Advisor */
    .logo-group:nth-child(1) .partner-logo:nth-child(1) { order: 2; } /* Freee */
    .logo-group:nth-child(1) .partner-logo:nth-child(3) { order: 3; } /* Expert Acc */
    
    .logo-group:nth-child(2) .partner-logo:nth-child(2) { order: 4; } /* MF Platinum */
    .logo-group:nth-child(2) .partner-logo:nth-child(1) { order: 5; } /* MF Logo */
    
    .logo-group:nth-child(2) .partner-logo:nth-child(3) { order: 6; } /* SME Agency */
    .logo-group:nth-child(1) .partner-logo:nth-child(4) { order: 7; } /* Expert HR / SME 2 */

    /* Features group stacking */
    .about-features-group {
        flex-direction: column;
        margin-top: 40px;
        gap: 60px;
    }
    .about-features-group-right {
        margin-right: -5vw;
        width: calc(100% + 5vw);
    }
    .about-features-group-right img {
        border-radius: 20px 0 0 20px;
    }

    /* Button overflow and line fix */
    .about-feature-btn {
        width: calc(100% - 40px);
        max-width: 320px;
        margin-left: 40px;
        padding: 10px 15px 10px 35px;
        font-size: 13px;
    }
    .about-feature-btn::before {
        left: -40px;
        width: 65px;
    }
}

@media (max-width: 768px) {
    .service-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .service-tabs .service-tab {
        font-size: 11px;
        padding: 8px 5px;
        min-height: 54px;
    }
    .about-features-group-right {
        margin-right: -20px;
        width: calc(100% + 20px);
    }
}
/* ===== 1ページ集約タブ（ssk-tax: about/message/overview をJS切替） ===== */
.about-page-section .tab-panel { display: none; }
.about-page-section .tab-panel.active { display: block; }
/* タブを <button> で実装しているため、ボタン既定の枠線・余白のみリセット。
   背景色・文字色・太字は service.css の .service-tab / .active を活かす。 */
.about-page-section .service-tabs button.service-tab {
	cursor: pointer;
	border: none;
	margin: 0;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}
/* テンプレートのインラインスタイルを集約 */
.about-feature--last { margin-bottom: 0; }
.about-consulting-img { width: 100%; height: 100%; object-fit: cover; }
