/* --- Main Container: .repeat-percentage --- */
.repeat-percentage {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: #43240e;
    margin-top: 230px;
    padding-bottom: 68px;
}

/* --- Header Section: .repeat-percentage-header --- */
/* The main flex container for the "90%" title */
.repeat-percentage-header .sub-repeat-percentage-header {
    font-size: 35px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* This aligns "EC運営代行" text with the number */
}

/* Container for "EC運営代行" and "リピート率" text */
.repeat-percentage-header .sub-repeat-percentage-header .root_sub-repeat-percentage-header {
    display: flex;
    flex-direction: column;
    font-family: futura-pt, sans-serif;
    line-height: 38px;
}

.repeat-percentage-header .sub-repeat-percentage-header .root_sub-repeat-percentage-header strong {
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif;
    /* Overrides the futura-pt font */
    font-size: 35px;
}

/* The number "90" */
.repeat-percentage-header .sub-repeat-percentage-header .ninety {
    position: relative;
    top: 20px;
    color: #902121;
    font-size: 99px;
    padding-left: 15px;
    font-family: futura-pt, sans-serif;
    font-weight: 500;
}

/* The percentage "%" symbol container */
/* NOTE: The HTML shows <span class="percentage"></span>, which means the '%' sign is generated by a CSS ::after pseudo-element */
.repeat-percentage-header .sub-repeat-percentage-header .percentage {
    color: #902121;
    font-size: 70px;
    /* This sets the font-size for the generated content */
    padding-right: 5px;
    padding-left: 0;
    position: relative;
    top: 13px;
    font-weight: 600;
    /* was 300, but overridden to 600 */
}

/* This specific font-family is also inherited by the pseudo-element */
.repeat-percentage-header .percentage {
    font-family: futura-pt, sans-serif;
}

/* This rule generates the "%" symbol */
.repeat-percentage-header .percentage::after {
    content: "%";
    font-size: 58px;
    /* Size of the % symbol */
}

/* "安心してお任せください" paragraph */
.repeat-percentage-header p {
    font-size: 50px;
    margin-top: 5px;
    font-weight: bold;
}

/* --- Illustration Image --- */
.repeat-percentage

/* a general rule for any image */
.illustration {
    width: 100%;
    height: auto;
    margin-top: 10px;
    max-width: 584px;
}

.repeat-percentage>img {
    max-width: 440px;
}

.repeat-percentage-footer+img {
    margin-bottom: 26px;
}

/* a general rule for any image */

/* --- Footer Section --- */
.repeat-percentage-footer {
    padding-top: 45px;
    padding-bottom: 35px;
}

.repeat-percentage-footer p {
    font-weight: 500;
    font-size: 25px;
    line-height: 45px;
}

@media (max-width: 877px) {
    .repeat-percentage-footer {
        padding-top: 45px;
        padding-bottom: 35px;
        max-width: 700px;
        margin: 0 auto;
    }

    .repeat-percentage-footer br {
        display: none;
    }

    .repeat-percentage-footer {
        padding-top: 30px;
        padding-bottom: 25px;
        max-width: 700px;
        margin: 0 auto;
    }

    .repeat-percentage {
        padding-left: 30px;
        padding-right: 30px;
    }

    .repeat-percentage {
        width: 100%;
    }

    .repeat-percentage-footer p {
        font-size: 15px;
        line-height: 25px;
        font-weight: 600;
    }

    .repeat-percentage .illustration {
        width: 100%;
        height: auto;
        margin-top: 10px;
        max-width: 484px;
    }
}

@media (max-width: 850px) {
    .repeat-percentage-header p {
        font-size: 37px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header {
        font-size: 24px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header .ninety {
        font-size: 84px;
    }

    .repeat-percentage-header .percentage::after {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .repeat-percentage {
        width: 95%;
        /* Adjusts container width */
    }

    /* This rule is for a commented-out <h1>, included for completeness */
    .repeat-percentage-header h1 {
        font-size: 20px;
    }

    .repeat-percentage-header .percentage::after {
        font-size: 30px;
    }

    .repeat-percentage-header p {
        font-size: 35px;
    }

    .repeat-percentage-footer p {
        font-size: 15px;
        line-height: 25px;
    }
}

@media (max-width: 550px) {
    .repeat-percentage {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
        margin-top: 10px;
    }

    .repeat-percentage {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .repeat-percentage>img.illustration {
        max-width: 340px;
    }

    .repeat-percentage-footer {
        padding-top: 30px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .repeat-percentage-footer p {
        font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", sans-serif;
        font-weight: 600;
        font-size: 15px;
        text-align: center;
        line-height: 30px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header .root_sub-repeat-percentage-header {
        line-height: 24px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header .root_sub-repeat-percentage-header strong {
        font-size: 17px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header .ninety {
        font-size: 57px;
        top: 10px;
    }

    .repeat-percentage-header .sub-repeat-percentage-header {
        font-size: 30px;
    }

    .repeat-percentage>img {
        max-width: 300px;
    }

    .repeat-percentage {
        padding-bottom: 42px;
        margin-top: 66px;
    }

    .repeat-percentage-header .percentage::after {
        font-size: 40px;
    }

    .repeat-percentage-header p {
        font-size: 28px;
    }
}