* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;

    min-height: 100vh;
}

.main-content-service {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--color-secondary-green), var(--color-secondary-blue));
}

.container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

.profile-section {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-title {
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 10px;
}

/* .service-title::after { */
/* content: ''; */
/* position: absolute; */
/* bottom: 0; */
/* left: 50%; */
/* transform: translateX(-50%); */
/* width: 80px; */
/* height: 4px; */
/* background: linear-gradient(90deg, #5F9EA0, #66CDAA); */
/* border-radius: 2px; */
/* } */

.profile-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.profile-image {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    /* height: 200px; Removed fixed height */
    /* border-radius: 24px; Moved to .profile-photo */
    /* overflow: hidden; Moved to .profile-photo */
    /* position: relative; Moved to .profile-photo */

}

.profile-photo {
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(95, 158, 160, 0) 0%, rgba(95, 158, 160, 0.1) 100%);
    z-index: 1;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-photo img {
    transform: scale(1.05);
}

.profile-body {

    padding: 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.profile-name {
    font-size: 1.2rem;
    color: #676a6a;
    margin-top: 15px;
    /* Added margin top */
    margin-bottom: 0;
    /* Removed bottom margin as it's now at the bottom of this column */
    letter-spacing: 0.05em;
    text-align: center;
    /* Center align text */
    font-weight: 500;
}

.profile-subtitle {
    font-size: 1.2rem;
    color: #66CDAA;
    font-weight: 500;
    /* margin-bottom: 10px; */
    text-align: center;
    /* padding: 8px 16px; */
    /* background: rgba(102, 205, 170, 0.1); */
    /* border-radius: 20px; */
    display: inline-block;
    /* border-left: 4px solid #66CDAA; */
}

.profile-text p {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 16px;
}

.profile-text p:last-child {
    margin-bottom: 0;
}

.message-section {
    /* background: white; */
    /* border-radius: 24px; */
    /* padding: 60px; */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); */
    position: relative;
    overflow: hidden;
}

/* .message-section::before { */
/* content: ''; */
/* position: absolute; */
/* top: 0; */
/* left: 0; */
/* right: 0; */
/* height: 6px; */
/* background: linear-gradient(90deg, #5F9EA0, #66CDAA, #5F9EA0); */
/* } */

.message-content {
    max-width: 900px;
    margin: 0 auto;
}

.message-intro {
    font-size: 1.1rem;
    line-height: 2.2;
    color: #444;
    margin-bottom: 40px;
    text-align: justify;
}

.target-clients {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e9 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 15px;

    border-left: 4px solid #66CDAA;
}

.target-clients h3 {
    font-size: 1.4rem;
    color: #5F9EA0;
    margin-bottom: 15px;
    font-weight: 700;
}

.target-clients ul {
    list-style: none;
    padding: 0;
}

.target-clients ul li {
    font-size: 1.05rem;
    color: #737373;
    padding: 0 0 8px 35px;
    position: relative;
    line-height: 1.8;
}

.target-clients ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #66CDAA;
    font-weight: bold;
    font-size: 1.3rem;
}

.commitment {
    font-size: 1.1rem;
    line-height: 2.2;
    color: #444;
    text-align: justify;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e9 100%);
    border-radius: 12px;
    border-left: 4px solid #66CDAA;
}

.profile-footer,
.footer p {
    color: #555;
}


/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .profile-card {
        flex-direction: column;
        padding-bottom: 1.5rem; 
        align-items: center;
        width: 100%;
        max-width: 900px;
        /* target-clientsのmax-widthに合わせる */
    }

    .profile-image {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        height: 400px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .profile-name,
    .profile-subtitle {
        text-align: center;
    }

    .profile-body {
        padding: 40px 30px;
        align-items: center;
        text-align: start;
        width: 100%;
    }

    .message-section {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .main-content-service {
        padding: 40px 0;
    }

    .service-title {
        font-size: 2rem;
        margin: 20px 0 10px 0;
    }

    .profile-card {
        margin: 0 auto 40px;
        /* 中央配置 */
        width: 100%;
        max-width: 900px;
    }

    .profile-photo {
        height: 300px;
    }

    .profile-body {
        padding: 30px 20px;
        align-items: center;
        text-align: ;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    .profile-subtitle {
        font-size: 0.9rem;
    }

    .profile-text p {
        font-size: 1rem;
    }

    .message-section {
        padding: 20px 0;
    }

    .message-intro,
    .commitment {
        font-size: 1rem;
    }

    .target-clients {
        padding: 25px 20px;
    }

    .target-clients h3 {
        font-size: 1.2rem;
    }
    .footer-links {
            gap: 3px;
    }
}