.name {
    font-size: 2em;
    font-weight: bold;
    margin-top: 20px;
    color: #fff;
}

.name-img {
    height: 200px;
    display: flex;
    align-items: center;
    margin: 20px 10% 0 0;
    padding-left: 8rem;
    background-color: #367cff;
    border-radius: 0 40px 40px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.name-img > .img {
    width: 150px;
    height: 150px;
    border-radius: 20%;
    overflow: hidden;
    position: relative;
    margin-right: 4rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-img > .img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%;
}

.name-img {
    height: 12rem;
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-right: 10%;
    padding-left: 8rem;
    background-color: #367cff;
    border-radius: 0 40px 40px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); /* 影を追加 */
}

.detail{
    width: 80%;
    margin: 8rem auto;
}

/* テキストコンテンツのスタイルをまとめる */
.self-pr, .background, .advice {
    font-size: 1.2em;
    line-height: 1.6;
}

.detail h3 {
    border-bottom: 2px solid #367cff;
    margin-top: 2rem;
    padding-bottom: 0.5em;
}

@media (max-width: 700px){
    .name-img {
        padding-left: 2rem;
        margin-right: 4rem;
        margin-top: 10px;
    }

    .name-img > .name {
        font-size: 1em;
    }
    
    .name-img > .img {
        width: 120px;
        height: 120px;
        margin-right: 2rem;
    }
    
    .name-text {
        font-size: 1em;
        margin-top: 10px;
    }
    
    .self-pr, .background, .advice {
        font-size: 1em;
    }

}