/* サービス内容 */

.s4 {
    position: relative;
    padding-top: 96px;
    padding-bottom: 149px;
}

.s4 h2{
    margin-bottom: 11px;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    color: #535353;
}
.s4 p{
    text-align: center;
}
.s4 .t2 {
    font-size: 20px;
    font-weight: 400;
    color: #535353;
    margin: 119px auto 8px auto;
}
.s4 p{
    text-align: center;
}
.s4 .t3 {
    line-height: 1.3;
}

.s4 .line {
    display: block;
    width: 750px;
    height: 1px;
    background-color: #D9D9D9;
    margin: 0 auto;
}

.s4 .under_arrow {
    width: 38px;
    height: 17px;
    background-image: url("../../media/p1_s4_2.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: -2px auto 33px auto;
}

.s4 .service_contents {
    gap: 9px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.s4 .service_content_card {
    width: 280px;
    height: 180px;
    border: 1px solid #4C84D6;
    border-radius: 30px;
    box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.s4 .service_content_card p {
    font-size: 20px;
    font-weight: 500;
    color: #535353;
    text-align: center;
    line-height: 1.5;
}

.s4 .bg_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../media/p1_s4_1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}
.s4 .nowrap {
    white-space: nowrap;
}

/* ===================== Responsive ===================== */
@media (max-width: 1200px) {
    .s4 { padding-top: 80px; padding-bottom: 120px; }
    .s4 h2 { font-size: 28px; }
}

@media (max-width: 1024px) {
    .s4 .line { width: 600px; }
    .s4 .service_content_card { width: 260px; }
}

@media (max-width: 900px) {
    .s4 .line { width: 70%; }
    .s4 .service_content_card { width: 45%; min-width: 240px; height: 170px; }
    .s4 .t2 { margin-top: 70px; }
}

@media (max-width: 768px) {
    .s4 { padding-top: 64px; padding-bottom: 96px; }
    .s4 h2 { font-size: 26px; }
    .s4 .t2 { font-size: 18px; margin-top: 56px; }
    .s4 .service_content_card { width: 48%; height: 160px; border-radius: 24px; }
}

@media (max-width: 600px) {
    .s4 { padding-top: 56px; padding-bottom: 80px; }
    .s4 h2 { font-size: 24px; }
    .s4 .t2 { font-size: 17px; margin-top: 48px; }
    .s4 .line { width: 80%; }
    .s4 .service_content_card { width: 80%; height: auto; min-height: 140px; }
    .s4 .service_content_card p { font-size: 18px; }
    .s4 .service_contents {gap: 25px; margin-bottom: 50px}
}

@media (max-width: 430px) {
    .s4 { padding-top: 48px; padding-bottom: 64px; }
    .s4 h2 { font-size: 22px; }
    .s4 .t2 { font-size: 16px; margin-top: 40px; }
    .s4 .under_arrow { margin-bottom: 28px; }
    .s4 .service_content_card { border-radius: 20px; padding: 18px; }
    .s4 .service_content_card p { font-size: 17px; line-height: 1.4; }
}

@media (max-width: 360px) {
    .s4 h2 { font-size: 20px; }
    .s4 .service_content_card p { font-size: 16px; }
    .s4 { padding-left: 12px; padding-right: 12px; }
}
