/* 法律監修者 */

.s8 {
    background-image: url("../../media/p1_s8_1.png");
    position: relative;
    padding-top: 153px;
    padding-bottom: 123px;
}
.s8 .inner {
    max-width: 910px;
    margin:  0 auto;
    padding: 0 20px;
}

.s8 .nowrap {
    white-space: nowrap;
}

.s8 .career {
    display: flex;
    justify-content: space-between;
    align-items: center;    
}
.s8 .ttl_1_text{
    position: relative;
   }

.s8 .ttl_1_text h2{
    margin-bottom: 50px;
    padding: 50px 0;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.s8 .name {
    font-size: 24px;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 20px;
    padding-bottom: 10px;
    width: 660px;
}
.s8 .career_list {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.s8 .career_list.start {
   align-items: flex-start;
}
.s8 .career_list_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.s8 .lawyer_image_pc {
    width: 238px;
    height: 299px;
    object-fit: cover;
}
.s8 .lawyer_image_sp {
    display: none;
}
.s8 .bg_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../media/p1_s8_1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -10;
}
.s8 .bg_2 {
    position: absolute;
    top: 0;
    left: 35%;
    width: 133px;
    height: 129px;
    background-image: url("../../media/p1_s8_3.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.s8 .ttl_1_text h2 { position: relative; z-index: 1; }

@media (max-width: 800px) {
    .s8 {
        background-size: 100% auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }
   .s8 .lawyer_image_pc {
       display: none;
   }
   .s8 .lawyer_image_sp {
       display: block;
       width: 166px;
       height: 208px;
   }
   .s8 .ttl_1 {
    display: flex;
     align-items: flex-start;  
     justify-content: space-between;  
     margin-bottom: 11px;         
   }
   .s8 .ttl_1_text h2{
    font-size: 24px;
    padding-top: 30px;
   }

   .s8 .name {
    font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        width: auto;
        max-width: 660px;
    }
    .s8 .bg_2{
        top: -10%;
        left: 0;
    }

    .s8 .career_list {
    font-size: 20px;
    gap: 10px;
    }
}