.step-main {
    margin: 0px 0;
}

.site-main {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.step-content {
    position: relative;
    margin-bottom: 145px;
}


.step-about {
    width: 1240px;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto 78px;
}

.step-about__heading {
    font-size: .26rem;
    text-align: center;
    color: #61272F;
    font-weight: 500;
    margin-bottom: 38px;
}

.step-about__text p {
    font-size: .16rem;
    line-height: 2.2;
}

.step-about__img {
    width: 893px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-top: -146px;
}

.step-about__img img{
	width:100%;
}


/* 家づくりの流れ */
.step-flow__heading {
    font-size: .42rem;
    text-align: center;
    color: #660000;
    margin-bottom: 16px;
}

.step-flow {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}



.step-item h4 {
    font-size: .60rem;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: #B3B3B3;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
}

.step-item h4 span {
    font-size: .84rem;
    line-height: 1.4;
}

.step-item h4 span span {
    font-size: .36rem;
}

.step-item {
    padding-bottom: 57px;
    position: relative;
    display: flex;
    justify-content: space-between;
}



.step-text__box {
    width: 77%;
    margin-left: auto;
    position: relative;
    margin-top: 38px;
}

.step-text__midashi {
    font-size: .27rem;
    color: #61272F;
    line-height: 1.8;
    font-weight: 500;
}

.step-text__box img {
    margin-top: 18px;
    width: 78%;
}

.step-annotation {
    display: block;
    margin-top: 8px;
}

.step-item::before,
.step-item::after {
    position: absolute;
    height: 1px;
    background: #000;
    content: '';
}

.step-item::before {
    width: 8px;
    height: calc(100% - 133px);
    left: 85px;
    margin: auto;
    top: 133px;
    background-color: #F2F2F2;
}

.step-item::after {
    content: "";
    margin: auto;
    position: absolute;
    bottom: 0;
    bottom: 0;
    left: 66px;
    width: 45px;
    height: 45px;
    border-top: 9px solid #F2F2F2;
    border-right: 9px solid #F2F2F2;
    transform: rotate(134deg);
    background-color: initial;
}

/* .step-item::after {
    width: 19px;
    bottom: 7px;
    left: 29px;
    margin: auto;
    transform: rotate(315deg);
} */

.step-text {
    margin-bottom: 12px;
    font-size: .15rem;
    line-height: 2.4;
}

.step-text__box li {
    padding-left: 14px;
    position: relative;
    margin-bottom: 8px;
}

.step-text__box li::before {
    content: "";
    position: absolute;
    top: 10px;
    margin: auto;
    left: 0;
    width: 11px;
    height: 11px;
    background-color: #000;
}


.step-item9 {
    padding-bottom: 41px;
    position: relative;
}

.step-item9::after,
.step-item9::before {
    display: none;
}

.step-item9 {
    position: relative;
}



.route {
    --line: #F2F2F2;
    /* 線色 */
    --w: 8px;
    /* 線の太さ */
    --r: 45px;
    /* 角丸の大きさ */
    --inset: 22px;
    /* 線の内側オフセット */
    top: 39%;
    left: -0.7%;
    position: absolute;
    width: 100%;
    height: 360px;
    background: var(--bg);
    overflow: hidden;
}

/* 上：左上の角丸＋そこから下へ少し */
.route::before {
    content: "";
    position: absolute;
    left: 93px;
    top: var(--inset);
    width: 31%;
    height: 50%;
    border-left: var(--w) solid var(--line);
    border-bottom: var(--w) solid var(--line);
    border-bottom-left-radius: var(--r);
}

/* 下：途中から右へ→右側で下へ（右上角丸） */
.route::after {
    content: "";
    position: absolute;
    left: 17%;
    top: 54%;
    width: 34%;
    height: 26%;
    border-top: var(--w) solid var(--line);
    border-right: var(--w) solid var(--line);
    border-top-right-radius: var(--r);
}

/* 右下の矢印（画像みたいなV字） */
.route__arrow {
    position: absolute;
    left: 2.9%;
    right: 0;
    bottom: 18%;
    margin: auto;
    /* bottom: calc(var(--inset) - 2px); */
    width: 90px;
    height: 56px;
}

.route__arrow::before,
.route__arrow::after {
    content: "";
    position: absolute;
    top: 10px;
    width: var(--w);
    height: 52px;
    background: var(--line);
}

.route__arrow::before {
    left: 18px;
    transform: rotate(320deg);
}

.route__arrow::after {
    left: 46px;
    transform: rotate(40deg);
}


/* .step-arrow {
    position: absolute;
    left: 84px;
    top: 135px;
    min-width: 528px;
    width: auto;
    height: 283px;
} */

.step-arrow-b {
    position: absolute;
    width: 270px;
    left: 82px;
    top: 130px;
}

.step-arrow-a {
    position: absolute;
    width: 266px;
    left: 30%;
    top: 130px;
}

.close-text__container {
    width: fit-content;
    margin: 0 auto 65px;
}

.close-text__container p {
    font-size: .16rem;
    text-align: center;
}

.close-text__container strong {
    font-size: .21rem;
    font-weight: 500;
}

.close-text__color {
    color: #61272F;
}










.link-btn {
    border: solid 1px #000;
    color: #000;
    padding: 9px 0;
    position: relative;
    text-align: center;
    display: block;
    width: 220px;
    margin: 0 auto;
    font-size: .17rem;
    font-weight: 400;
}

.link-btn::before {
    content: "";
    width: 80px;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 200px;
    bottom: 0;
    margin: auto;
    transition: .3s;
}

.link-btn::after {
    content: "";
    width: 80px;
    height: 9.5px;
    border-right: solid 1px;
    transform: skew(45deg);
    transition: .3s;
    position: absolute;
    top: -10px;
    left: 190px;
    bottom: 0;
    margin: auto;
    opacity: 0;
    color: #000;
}

.link-btn:hover::after {
    opacity: 1;
    left: 175px;
}

.link-btn:hover::before {
    width: 60px;
}


.step-flow .link-btn {
    color: #61272F;
}

.step-flow .link-btn {
    width: 340px;
    padding: 5px 0;
}

.step-flow .link-btn::before {
    left: 320px;
}

.step-flow .link-btn:hover::after {
    opacity: 1;
    left: 295px;
}

.step-flow .link-btn::after {
    left: 320px;
}


.sp_only {
    display: none;
}

@media screen and (max-width:1120px){
	.step-about__img {
    margin-top: 0px;
}
}


@media screen and (min-width:735px) and (max-width:800px) {
    .route::after {
        top: 76% !important;
    }

    .route__arrow {
        left: 3.8% !important;
        bottom: 0px;
    }
	
	.route {
    height: 135% !important;
}
}

@media screen and (min-width: 660px) and (max-width: 736px) {
    .route::after {
        top: 76% !important;
    }
}

@media screen and (min-width: 590px) and (max-width: 660px) {
    .route::after {
    top: 75.5% !important;
}
}
@media screen and (min-width: 390px) and (max-width: 591px) {
.route::after {
    top: 74.5% !important;
}
}


@media screen and (min-width:500px) and (max-width:735px) {
.route__arrow {
    left: 3.4% !important;
    bottom: 0px;
}
}

@media screen and (max-width:800px) {
    .sp_only {
        display: block;
    }

    .pc_only {
        display: none;
    }

    .step-about__text p {
        font-size: .15rem;
        line-height: 2;
        margin-bottom: 25px;
    }


.step-about__img {
    width: 100vw;
    max-width: 100vw;
    margin-left: -19px;
    margin-top: 0;
}

    .step-about__heading {
        font-size: .20rem;
        margin-bottom: 20px;
    }
	
	.step-about {
    	margin: 0 auto 90px;
    	overflow: hidden;
	}

    /* 家づくりの流れ */
    .step-flow__heading {
        font-size: .34rem;
        line-height: 1.5;
		    margin-bottom: 20px;
    }

    .step-item h4 {
        font-size: .19rem;
    }

    .step-text__midashi {
        font-size: .20rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .step-item h4 span {
        font-size: .37rem;
        line-height: 1.4;
        margin-top: -7px;
    }

    .step-text__box {
        width: 77%;
        margin-top: 7px;
        margin-left: 12px;
    }
	
	.step-item2 .step-text__box,
	.step-item3 .step-text__box{
		margin-top: -7px;
	}

    .step-item::before {
        height: calc(100% - 60px);
        left: 24px;
        top: 60px;
    }

.step-item::after {
    left: 13px;
    width: 30px;
    height: 30px;
    border-top: 6px solid #F2F2F2;
    border-right: 6px solid #F2F2F2;
}

    .step-text {
    	line-height: revert;
	}


    .step-item {
        padding-bottom: 25px;
        margin-bottom: 20px;
        justify-content: initial;
    }


    .step-text__box img {
        margin-top: 5px;
        width: 100%;
    }


    .step-annotation {
        font-size: .13rem;
    }

    .step-content {
        margin-bottom: 100px;
    }


    /* 最後の矢印 */
    .route {

        --w: 8px;
        top: 10%;
        left: -0.7%;
        width: 100%;
        height: 115%;
    }

    .route::before {
        width: 28%;
        height: 71%;
        left: 26px;
    }

    .route::after {
    left: 23%;
    top: 74.8%;
    width: 30%;
    height: 22%;
}

    .route__arrow {
        left: 	1.8%;
        bottom: 0px;
		height: 48px;
		    width: 64px;

    }
	
	.route__arrow::before {
    	left: 20px;
		    transform: rotate(315deg);
	}
	
	.route__arrow::after {
    	left: 43px;
		transform: rotate(45deg);
	}
	
	.route__arrow::before, .route__arrow::after {
    height: 40px;
}


    .step-flow {
        padding: 0 20px 0 10px;
    }


    .step-flow .link-btn {
        width: 300px;
        padding: 5px 0;
        font-size: .15rem;
    }

    .step-flow .link-btn::before {
        left: 280px;
        width: 50px;
    }

    .step-flow .link-btn::after {
        left: 220px;
    }

    .step-flow .link-btn:hover::after {
        opacity: 1;
        left: 245px;
    }

}