/* オプションサービス */

.s7 {
    padding-top: 73px;
    padding-bottom: 134px;
}

.s7 .ttl_1 {
    width: 270px !important;
    position: relative;
    margin: 0 auto;
}

.s7 h2 {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    margin-top: 61px;
    margin-bottom: 58px;
    z-index: 1;
}

.s7 .contents {
    max-width: 1000px;
    padding:0 50px;
    margin: 0 auto;
}

.s7 .bg_1 {
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-50%, -50%);
    width: 159px;
    height: 154px;width: 159px;
    height: 154px;
    background-image: url("../../media/p1_s7_1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}
.s7 .option_service_contents {
    gap : 64px;
}

.s7 .option_service_contents_context{
    flex: 1;
    min-width: 0;
}

.s7 .option_service_contents_context .ttl{
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 22px;
    line-height: 1.5;
}
.s7 .option_service_contents_context .option_service_detail{
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    line-height: 36px;
}

.s7 .option_service_contents img {
    flex-shrink: 0; 
    max-width: 429px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .s7 {
        padding-top: 60px;
        padding-bottom: 100px;
    }
    .s7 .option_service_contents_context .ttl{
        font-size: 22px;
    }
    .s7 .option_service_contents_context .option_service_detail{
        font-size: 16px;
        line-height: 30px;
    }
    .s7 .option_service_contents img {
        max-width: 360px;
    }
}

@media screen and (max-width: 830px) {
    .s7 .bg_1 {
        width: 133px;
        height: 129px;
        left: 10%;
    }
}


@media (max-width: 768px) {
    .s7 .option_service_contents {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }
    .s7 .option_service_contents_context{
        flex: 1;
        max-width: 100%;
    }
    .s7 .option_service_contents img {
        max-width: 100%;
        width: 100%;
    }
    .s7 h2 {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .s7 .option_service_detail{
        width: 100%;
    }
    .s7 .contents {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .s7 {
        padding-top: 50px;
        padding-bottom: 80px;
    }
    .s7 .option_service_contents_context .ttl{
        font-size: 20px;
        margin-bottom: 16px;
    }
    .s7 .option_service_contents_context .option_service_detail{
        font-size: 15px;
        line-height: 28px;
    }
    .s7 .option_service_contents_context {
        padding: 0 10px;
    }
    .s7 h2 {
        margin-top: 32px;
        margin-bottom: 60px;
        font-size: 24px;
    }

    .s7 .contents {
        padding: 0 20px;
    }
}