.header_inner .header_lef :is(h1:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h1"])) {
    color: #868daa;
}

.header_item {
    color: #000;
}


main {
    margin-top: 200px;
}



header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    position: relative;
}

.breadcrumb {
    padding: 8px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-left: 50px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
    margin-bottom: 120px;
}

:is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
    content: "Service";
    left: 30%;
    transform: translateX(-50%);
}

.service_block {
    margin-bottom: 200px;
}

.service_more_box {
    display: none; /* 初期状態で非表示 */
    padding: 10px;
    margin-top: 10px;
}

.service_more_box.active {
    display: block; /* クラスが付与されたら表示 */
}

.service_explan {
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 200px;
}

.service_box {
    position: relative;
}

.service_box img {
    width: 1000px;
    height: 500px;
}

.service_tit {
    background-color: #162a70;
    color: #fff;
    width: 570px;
    height: 524px;
    position: absolute;
    top: 50px;
    right: 50px;
    padding: 90px 50px;
}

.service_tit :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
    margin-bottom: 50px;
    font-family: "yu-mincho-pr6n", sans-serif;
}

.service_tit p {
    line-height: 2;
}

.service_recommend_tit {
    font-size: 32px;
    text-align: center;
    margin-top: 145px;
    margin-bottom: 40px;
}

.service_recommend_block {
    display: flex;
    justify-content: center;
    margin-bottom: 90px;
}

.service_recommend_box {
    width: 374px;
    height: 374px;
    background-color: #f5f8fa;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2px;
}

.service_recommend_boxes img {
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
}

.service_recommend_boxes p {
   line-height: 2;
}

.service_more a {
    display: block;
    width: 1000px;
    height: 100px;
    background-color: #f8cf3f;
    color: #000;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto;
    position: relative;
}

.service_more a::after {
    content: "";
    display: inline-block;
    margin-left: 19px;
    width: 15px;
    height: 15px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(45deg);
    position: absolute;
    right: 65px;
    transition: transform 0.3s ease-in-out;
}

.service_more .active2::after {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.service_more_box {
    width: 1180px;
    margin: 0 auto;
    margin-top: 70px;
}

.service_more_box :is(h4:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h4"])) {
    font-size: 32px;
}

.service_more_box img {
    display: block;
    margin: 0 auto;
    margin-bottom: 15px;
}

.service_more_box .sp {
    display: none;
}

.service_more_box .service_more_img1 {
    width: 820px;
    margin-bottom: 100px;
}

.service_more_box .service_more_img2 {
    margin-bottom: 20px;
}

.service_more_box_blue {
    width: 820px;
    background-color: #3b4d87;
    color: #fff;
    padding: 35px 55px 45px 55px;
    
}

.service_block4 .service_more_box_blue {
    margin: 0 auto;
}

.service_more_txt1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.service_more_txt2 {
    font-size: 16px;
}

.service_more_box_blue :is(h4:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h4"])) {
    margin-bottom: 35px;
}

.service_block4 .service_more_box img {
    width: 820px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.service_block5 .service_more_box_blue {
    margin: 0 auto;
}

.service_block5 .service_more_box img {
    margin-bottom: 50px;
    width: 910px;
}

.more_plan {
    display: flex;
    justify-content: space-between;
}

.more_plan img {
    width: 48%;
    margin-bottom: 60px;
}

.service_more_box :is(h4:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h4"])) {
    margin-bottom: 20px;
}

@media screen and (max-width: 1000px) {
    .service_more_box .sp {
        display: block;
        width: 100%;
    }
    main {
        margin-top: 42.5vw;
    }
    .breadcrumb {
        padding-left: 4vw;
        font-size: 3.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"])) {
        margin-bottom: 22.5vw;
    }
    :is(h2:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h2"]))::before {
        left: 50%;
        bottom: 6.25vw;
    }
    .service_explan {
        width: 80%;
        margin: 0 auto;
        margin-bottom: 25vw;
    }
    .service_box img {
        width: 90vw;
        height: 56.25vw;
    }
    .service_tit {
        right: 0;
        width: 90vw;
        height: auto;
        padding: 10vw 7vw;
        top: 48.75vw;
    }
    .service_tit :is(h3:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h3"])) {
        margin-bottom: 15px;
        font-size: 6vw;
        line-height: 1.5;
    }
    
    .service_tit p {
        font-size: 4vw;
        line-height: 1.7;
    }
    .service_recommend_tit {
        margin-top: 110vw;
        font-size: 7vw;
    }
    .service_recommend_block {
        display: block;
    }
    .service_recommend_box {
        width: 80vw;
        height: 29.25vw;
        margin: 0 auto;
        margin-bottom: 0.75vw;
    }

    .service_recommend_boxes {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 80vw;
        padding: 0 2.5vw;
    }
    .service_recommend_boxes p {
        font-size: 4.25vw;
    }
    .service_block1 .service_recommend_boxes img {
        width: 16vw;
        margin: 0;
    }
    .service_block1 .service_recommend_boxes img {
        width: 18.25vw;
        margin: 0;
    }
    .service_block1 .service_recommend_boxes img {
        width: 16vw;
        margin: 0;
    }
    .service_block2 .service_recommend_boxes img {
        width: 11.75vw;
        margin: 0;
    }
    .service_block3 .service_recommend_boxes img {
        width: 12.5vw;
        margin: 0;
    }
    .service_block4 .service_recommend_boxes img {
        width: 13.75vw;
        margin: 0;
    }
    .service_block5 .service_recommend_boxes img {
        width: 13.75vw;
        margin: 0;
    }
    .service_recommend_boxes p {
        font-size: 4vw;
        width: 55vw;
        line-height: 1.5;
    }
    .service_more a {
        width: 80vw;
        font-size: 4.5vw;
    }
    .service_block {
        margin-bottom: 25vw;
    }
    .service_more_box :is(h4:where(:not([data-bal-as])),:is(h1,h2,h3,h4,h5,h6):where([data-bal-as="h4"])) {
        font-size: 7vw;
        text-align: center;
    }
    .service_more_box {
        width: 90%;
    }
    .service_more_box .pc {
        display: none;
      }
      .service_recommend_block {
        margin-bottom: 8.75vw;
      }
      .service_more_box .service_more_img1 {
        margin-bottom: 0;
      }
      .service_more_box .service_more_img2 {
        margin-top: 12.5vw;
      }
      .service_more_box  .service_more_img3 {
        margin-top: 7.5vw;
      }
      .service_more_box_blue {
        width: 100%;
      }
      .service_more_txt1 {
        font-size: 5.5vw;
        margin-bottom: 2.5vw;
      }
      .service_more_txt2 {
        font-size: 3.5vw;
      }
      .service_more_box_blue {
        padding: 8.75vw 8.75vw 11.25vw 8.75vw;
      }
      .service_more a::after {
        right: 35px;
        width: 10px;
        height: 10px;
      }
      .more_plan {
        display: block;
    }
    .more_plan img {
        margin-bottom: 30px;
    }
    }