body{
    background-color: #f2f2f2;
}

#sec4_parent{
    height:100%; width: 100%;
    padding: 20px;
    font-family:"Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

/* タイトル設定 */
.sec4_heading{
    font-size: 3vw;
    font-weight: bold;
    text-align: center;
    color:#ec6f71 ;
}

.sec4_headingText{
    
    margin-top: 4vw;
    margin-bottom: 3vw;

}

#sec4_child1{
    text-align: center;
}

.sec4_frame{
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 90%;
    color: #2d2d2d;
    background: white; 
    height: auto; 
    margin: 2vw auto;
    padding: 3% 0;
}

.sec4_subtitle{
    text-align: left;
    margin-left: 8%;
    font-size: 1.4vw;
    font-weight: 500;
    color: #ff0000;
}

.sec4_title{
    color: #52958b;
    font-weight: bold;
    font-size: 2.2vw;
    margin-bottom: 1%;
    text-align: left;
    margin-left: 8%;
}

.sec4_text{
    width: 84%;
    margin: 0 auto;
    text-align: left;
    font-size: 1.5vw;
    font-weight: 530;
    margin-top: 1vw;
    margin-bottom: 2vw;
    line-height: 2.5vw;
}

.sec4_child6{
    margin-left: 8%;
    display: flex;
}
/* 緑背景ボックス*/
.sec4_box{
    box-sizing: border-box;
    background: #52958b;
    font-weight: bold;
    line-height: 1.8vw;
    height:11vw;
    width: 45%;
    margin-left: 2vw;
    padding-top: 1vw;
    padding-bottom: 1.1vw;
    text-align: left;
}

.sec4_center .sec4_box{
    height:13vw;
}

.sec4_bottom .sec4_box{
    height:14.5vw;
    width: 52%;
}

.sec4_boxtitle{
    color: #ffd966;
    margin-left: 2%;
    font-size: 2vw;
    left: 3%;
    top: 7%;
}

.sec4_boxtext{
    margin-left: 5%;
    color: #f2f2f2;
    font-size: 1.4vw;
    top: 30%;
    left: 3%;
}

.sec4_money_img{
    background-image: url("../image/sec4_negotiation.jpeg");
    width: 30%;
    left: 45%;
    background-size: cover;
    background-position:100%;
    background-repeat: no-repeat;
    float: left;
}

.sec4_center .sec4_money_img{
    width: 25vw;
    text-align: left;
    padding-top: 1vw;
    padding-left: 1vw;
}

.sec4_bottom .sec4_money_img{
    width: 30vw;
    text-align: left;
    padding-top: 1vw;
    padding-left: 1vw;
}

.sec4_money{
    font-size: 2.9vw;
    top: 9%;
    left: 50%;
    color: #fff;
    font-weight: bold;
}

.sec4_money_tax{
    font-size: 1.2vw;
}

.sec4_estimate{
    font-size: 1.3vw;
    line-height: 1vw;
    top: 9%;
    color: #fff;
    font-weight: bold;
    margin-bottom: 1vw;
}

.sec4_money_img .sec4_estimate2{
    text-align: right;
}

#sec4_pc{
    display: block;
}
#sec4_sp{
    display: none;
}

/* 指画像設定 */
.sec4_image_fin{
    width: 7%;
    height: auto;
    margin: 0;
    border-radius: 50%;
    opacity: 1.00;
    vertical-align: middle;
}
/* 緑背景の横の画像*/
.sec4_center .sec4_negotiation{
    height: 67%;
    width: 60%;
    left: 45%;
}
.sec4_bottom .sec4_negotiation{
    height: 72%;
    width: 60%;
    left: 45%;
}
/*イメージを見る */
.sec4_outimg{
    top: 20%;
    left: 10%;
    width: 15%;
    height: 32%;
    color: white;
}
.sec4_child6 a{
    position: absolute;
    color: #ffd966;
    font-size: 1.2vw;
    text-decoration: underline;
}

.sec4_open_text{
    color: white;
    text-decoration: underline white;
}

/* イメージ画像設定 */
.sec4_img_1{
    width: 80%;
    margin: auto;
}
.sec4_img_2{
    width: 70%;
    margin: auto;
}
.sec4_img_3{
    width: 65%;
    margin: auto;
}
/*虫眼鏡の画像設定*/
.magnifier_img{
    height:2vw;
}

/* bootstrapのclassを直接変更してます。 */
.modal.in .modal-dialog{
    width: 85%;
}
.modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}
.carousel-control.right{
    background-image: none;
    right: -15%;
}
.carousel-control.left{
    background-image: none;
    left: -15%;
}
.carousel-indicators {
    bottom: -40px;
}

.carousel{
    width: 70%;
    height: 38vw;
    margin:auto;    
}

.carousel-inner{
    height: 100%;
}

.close{
    color: white;
    opacity: 1;
    font-size: 45px;
}
.close:hover{
    color: white;
}

/* レスポンシブ↓*/
@media screen and (max-width:767px){
    .sec4_heading{
        font-size: 5vw;
    }
    
    .sec4_subtitle{
        font-size: 2vw;
    }

    .sec4_title{
        font-size: 3vw;
    }

    .sec4_text{
        font-size: 2.5vw;
        line-height: 4.2vw;
    }
    .sec4_box{
        height: fit-content!important;
    }
    .sec4_boxtitle{
        font-size: 3vw;
    }

    .sec4_boxtext{
        font-size: 1.5vw;
    }

    .sec4_money{
        font-size: 3vw;
    }

    .sec4_child6 a{
        font-size: 2vw;
    }

    .sec4_money_tax{
        font-size: 1.5vw;
    }
    
    .sec4_estimate{
        font-size: 1.5vw;
        line-height: 2vw;
    }

    .modal.in .modal-dialog{
        width: 80%;
    }
    .modal-dialog{
        margin: 30px auto;
    }
    .carousel{
        height: 100%;
        width: 100%;
    }
    .magnifier_img{
        height:2.5vw;
    }
}


@media screen and (max-width:576px){
    .sec4_frame{
        width: auto;
    }
    .sec4_heading{
        font-size: 6vw;
    }
    
    .sec4_subtitle{
        font-size: 3vw;
        font-weight: bold;
    }

    .sec4_title{
        font-size: 4vw;
    }

    .sec4_text{
        font-size: 3.5vw;
        line-height: 6.5vw;
    }
    .sec4_box{
        width: 80%!important;
        margin-left: 0;
        height: 100%!important;
        padding: 3vw;
        line-height: 4vw;
    }
    .sec4_boxtitle{
        font-size: 4.5vw;
    }

    .sec4_boxtext{
        font-size: 3vw;
        margin-left: 0;
    }

    .sec4_money{
        font-size: 5vw;
    }
    .sec4_child6{
        margin-left: 0%;
        flex-direction: column;
        align-items: center;
    }
    .sec4_child6 a{
        font-size: 3vw;
    }

    .sec4_money_tax{
        font-size: 2vw;
    }
    
    .sec4_estimate{
        font-size: 3vw;
        line-height: 3.5vw;
    }

    #sec4_pc{
        display: none;
    }

    #sec4_sp{
        display: block;
    }

    .sec4_money_img{
        background-image:none;
        background-color: #52958b;
        width:80%!important;
        padding-left: 3vw!important;
        padding-right: 3vw!important;
    }
    .magnifier_img{
        height:5vw;
    }
}