@charset "UTF-8";


/* 車探す売る */

.trade-point{
    display: table;
    font-size: 2rem;
    padding: 10px 40px;
    border-radius: 50vw;
    border: 3px solid #FFF64F;
    margin: 30px 0;
    background-color: #fff;
    text-align: center;

}
.main-item{
    width: 100%;
}
.trade-text{
    padding: 20px;
    background-color: #fff86e;
    font-size: 1.5rem;
    text-align: center;
    margin-block: 50px;
    font-weight: 800;
}
.sales-point{
    text-align: center;
    
}
.point-icon{
    width: 25px;
    margin-right: 10px;
}
.sales-point p{
    display: flex;
    align-items: flex-end;
    text-align: center; 
    justify-content: center; 
    margin-bottom: 0;
}
.sales-point span{
    font-size: 2.5rem;
    margin-bottom: -5px;
    margin-inline: 3px;
}
.sales-point ul{
    display: flex;
    justify-content: space-between;
    margin-block: 50px;
}
.sales-point li{
    margin: 5px;
    position: relative;
    flex: 1;
    padding-inline: 3px;
    letter-spacing: 1.5px;
}
.point-img{
    max-width: 350px;
    height: 200px;
    object-fit: cover;
    /* margin: 5px; */
}
.point-bg{
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 80px;
    object-fit: contain;

}
.point-img {
    margin-top: 100px;
}
.point-text{
    position: absolute;
    z-index: 6;

    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff; /* 文字色 (背景が白なら黒など) */
    font-weight: 700;
    line-height: 50px;
    font-size: 1.25rem;


}
.text-left{
    text-align: left;
    margin-top: 5px;
    /* border:2px double #1F4F9C; */
}
.flex{
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


@media screen and (max-width: 768px) {
    /* 1. 全体的な幅とテキストの調整 */
    .trade-point {
        font-size: 1.5rem;
        padding: 8px 25px;
        margin: 20px auto; /* スマホでは中央寄せ */
    }

    .trade-text {
        font-size: 1rem; /* スマホで1.5remは大きすぎるので調整 */
        margin-block: 30px;
        padding: 15px;
    }

    /* 2. 「3つのポイント」を縦に並べる */
    .sales-point ul {
        flex-direction: column; /* 縦並び */
        align-items: center;
        margin-block: 30px;
    }

    .sales-point li {
        width: 100%;
        max-width: 400px; /* 広がりすぎないように制限 */
        margin-bottom: 60px; /* 項目同士の隙間 */
        flex: none; /* PC版のflex: 1を解除 */
    }

    /* 3. 吹き出し（背景）と文字の調整 */
    .point-bg {
        height: 60px; /* スマホに合わせて少し低く */
    }

    .point-text {
        line-height: 50px; /* 吹き出しの高さに合わせる */
        font-size: 1.1rem;
        white-space: nowrap; /* 折り返し禁止 */
    }

    /* 4. 画像と説明文 */
    .point-img {
        margin-top: 70px; /* 吹き出しが低くなった分、隙間も詰める */
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .text-left {
        padding: 10px;
        font-size: 0.9rem;
        text-align: center; /* スマホでは中央寄せの方が綺麗に見えることが多いです */
    }

    /* お得な3つのポイント！の文字サイズ */
    .sales-point p.fs-xl {
        font-size: 1.2rem !important;
        justify-content: center;
    }

    .sales-point li {
        display: flex;
        flex-direction: column;
        align-items: center; /* 中身を全部中央に揃える */
        width: 100%;
    }

    /* 吹き出し背景の固定 */
    .point-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: auto; /* 左右中央に固定 */
        width: 280px;  /* スマホで綺麗に見える固定幅にするのが一番ズレない */
        height: 60px;
        z-index: 5;
    }

    .point-text {
        position: absolute;
        top: -3px;
        left: 0;
        right: 0;
        margin: auto;  
        width: 280px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        z-index: 6;
        font-size: 1.1rem;
        transform: none !important; /* PC版のtranslateXを打ち消す */
    }

    .point-img {
        margin-top: 70px !important; /* 吹き出しの下にしっかり配置 */
        width: 100%;
        max-width: 100%; /* スマホで大きすぎないサイズ */
        height: auto;
    }
    .service-title{
        width: 100%;
    }

}