﻿.sp-only {
    display: none;
}

.pc-only {
    display: block;
}

.tebura-ttl {
    text-align: center;
    margin: 100px auto 50px;

    h2 img {
        width: 1088px
    }

    P {
        margin-top: 20px;
    }
}

.tebura-ttl__sub {
    position: relative;
    height: 1px;
    background-color: #000;
    margin: 40px auto;

    >p {
        width: fit-content;
        height: fit-content;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        background-color: #fff;
        padding: 0 12px;
        font-size: 20px;
        font-weight: bold;
    }
}

.tebura-step {
    margin: 75px auto;
}

.tebura-step__inner {
    width: 1140px;
    margin: auto;
}

.tebura-step__ttl {
    width: 361px;
    margin: auto;

    img {
        width: 100%;
        display: block;
        object-fit: contain;
    }
}

.tebura-step__list {
    margin-top: 50px;
    display: flex;
    justify-content: center;

    li {
        position: relative;
        list-style: none;

        img {
            width: 100%;
            display: block;
        }

        &::after {
            content: "";
            width: 11.5px;
            height: 20px;
            position: absolute;
            top: 0;
            bottom: 0;
            right: -20px;
            margin: auto;
            background-image: url(/cms/app/images/tebura_arrow.png);
            background-position: center;
            background-size: contain;
            background-repeat: no-repeat;
        }

        .step {
            width: 90px;
            object-fit: contain;
            margin: auto;
        }

        .ttl {
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            margin-top: 40px;
        }

        .imgWrap {
            margin-top: 19px;
            display: flex;
        }
    }

    li:nth-child(1) {
        width: 280px;
        margin-right: 45px;
    }

    li:nth-child(2) {
        width: 280px;
        margin-right: 57px;

        .imgWrap {
            margin-top: 50px;
        }
    }

    li:nth-child(3) {
        width: 535px;

        &::after {
            display: none;
        }

        .imgWrap {
            margin-top: 23px;
            gap: 16.3px;

            .txt {
                min-width: 212px;
                font-size: 14px;
            }

            .img {
                img { width: 306.69px;}
                p {
                    margin-top: 10px;
                }
            }
        }
    }
}

.tebura-step__contents {
    margin: 60px auto;
    width: 1010px;
    display: flex;
    gap: 90px;
    justify-content: center;
    align-items: center;

    .step-ttl {
        font-size: 18px;
    }

    p {
        margin-top: 10px;
        font-size: 14px;
    }
}

/* SP */
@media screen and (max-width: 750px) {
    .sp-only {
        display: block;
    }

    .pc-only {
        display: none;
    }

    .tebura-ttl {
        text-align: center;
        margin: calc(50 / 414 * 100vw) auto;
        h2 img {
            width: 100%;
        }
    }

    .tebura-step {
        margin: calc(50 / 414 * 100vw) auto;
    }

    .tebura-step__inner {
        width: 100vw;
        margin: auto;
        padding: 0 calc(25 / 414 * 100vw);
    }

    .tebura-step__ttl {
        width: calc(289 / 414 * 100vw);
        margin: auto;

        img {
            width: 100%;
            display: block;
            object-fit: contain;
        }
    }

    .step-contents {
        width: 100%;
        margin-top: calc(18 / 414 * 100vw);

        .step-ttl {
            font-size: calc(22 / 414 * 100vw);
            font-weight: bold;
            line-height: calc(30 / 414 * 100vw);
            margin-bottom: calc(15 / 414 * 100vw);
        }

        p {
            font-size: calc(16 / 414 * 100vw);
            line-height: calc(30 / 414 * 100vw);
            font-weight: normal;
        }
    }

    .tebura-step {
        margin: 75px auto;
    }

    .tebura-step__inner {
        width: 100%;
        margin: auto;
    }

    .tebura-step__ttl {
        width: 80%;
        margin: auto;

        img {
            width: 100%;
            display: block;
            object-fit: contain;
        }
    }

    .tebura-step__list {
        margin-top: 50px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;

        li {
            position: relative;
            list-style: none;

            img {
                width: 100%;
                display: block;
            }

            &::after {
                content: "";
                width: 11.5px;
                height: 20px;
                position: absolute;
                right: calc(-40 / 828 * 100vw);
                margin: auto;
                background-image: url(/cms/app/images/tebura_arrow.png);
                background-position: center;
                background-size: contain;
                background-repeat: no-repeat;
            }

            .step {
                width: 90px;
                object-fit: contain;
                margin: auto;
            }

            .ttl {
                font-size: 14px;
                font-weight: bold;
                text-align: center;
                margin-top: 30px;
            }

            .imgWrap {
                margin-top: 20px;
            }
        }

        li:nth-child(1) {
            width: 45%;
            margin-right: 0;
            margin-right: calc(45 / 828 * 100vw);
        }

        li:nth-child(2) {
            width: 45%;
            margin-right: 0;

            .imgWrap {
                margin-top: 62px;
            }
        }

        li:nth-child(3) {
            margin-top: 30px;
            width: 100%;

            &::after {
                display: none;
            }

            .imgWrap {
                display: flex;
                flex-direction: column;
                margin-top: 20px;
                gap: 15px;

                .txt {
                    width: 100%;
                    font-size: 14px;
                }

                .img {
                    img {
                        width: 100%;
                    }
                    p {
                        margin-top: 10px;
                        font-size: 11px;
                    }
                }
            }
        }
    }

    .tebura-step__contents {
        margin: 60px auto;
        width: 1010px;
        display: flex;
        gap: 90px;
        justify-content: center;
        align-items: center;
        text-align: center;

        .step-ttl {
            font-size: 18px;
        }

        p {
            margin-top: 10px;
            font-size: 14px;
        }
    }

    .tebura-step__contents {
        margin: 30px auto;
        width: 100%;
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        .step-img img {
            width: 55%;
        }
        .step-ttl {
            font-size: 18px;
        }

        p {
            margin-top: 10px;
            font-size: 14px;
        }
    }

}