﻿.only-sp {
    display: none;
}

.only-pc {
    display: block;
}

.oem .top-arrowbtn {
    display: block;
    position: relative;
    width: 80px;
    height: 36px;
    border-radius: 23px;
    z-index: 1;
    overflow: hidden;
    background: #006230;
}

.oem .top-arrowbtn:before,
.oem .top-arrowbtn:after {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
}

.oem .top-arrowbtn:before {
    width: 100%;
    background: url("https://www.e-tokyodo.com/cms/img/usr/top/2502/icon_arrow_pc.png") no-repeat center/15px auto;
}

.oem .top-arrowbtn:after {
    width: 0;
    background: #0A4827;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    z-index: -1;
    border-radius: 23px;
}

@media screen and (min-width: 789px) {
    .oem-lead__link-btn:hover {
        .top-arrowbtn {
            opacity: 1;
        }

        .top-arrowbtn:after {
            width: 100%;
        }
    }
}

.oem .top-arrowbtn--wh {
    background: #FFF;
    color: #11723D;
}

.oem .top-arrowbtn--wh:before {
    -webkit-filter: brightness(0) saturate(100%) invert(35%) sepia(22%) saturate(1542%) hue-rotate(94deg) brightness(93%) contrast(91%);
    filter: brightness(0) saturate(100%) invert(35%) sepia(22%) saturate(1542%) hue-rotate(94deg) brightness(93%) contrast(91%);
}

@media screen and (min-width: 789px) {
    .oem-lead__link-btn:hover {
        .top-arrowbtn--wh:hover {
            opacity: 1;
        }

        .top-arrowbtn--wh:before {
            -webkit-filter: none;
            filter: none;
        }

        .top-arrowbtn--wh:after {
            width: 100%;
        }
    }
}

.oem {
    font-family: "Source Han Sans JP", "源ノ角ゴシック", sans-serif;
    color: #333;
}

.oem-mv {
    /* MV */
}

.oem-mv__inner {
    background-image: url(/cms/img/usr/oem/mv.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: calc(436 / 1920 * 100vw);
    color: #fff;
    position: relative;

    .title-wrap {
        position: absolute;
        display: block;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
        height: min-content;
        font-family: "shippori-mincho", sans-serif;
        font-style: normal;
        font-weight: 400;
    }

    h1 {
        font-size: calc(66.86 / 1920 * 100vw);
    }

    p {
        font-size: calc(25.61 / 1920 * 100vw);
    }
}

.oem-lead {
    position: relative;
    padding: 20px 0 100px;
    background-image: url(/cms/img/usr/oem/featuretitle.png);
    background-position: center 60px;
    background-size: 1188px;
    background-repeat: no-repeat;
    z-index: 1;
}

.flower-bg {
    position: absolute;
    z-index: 0;

    &.flower01 {
        top: 146px;
        left: 0;
    }

    &.flower02 {
        bottom: 323px;
        right: 0;
    }
}

.oem-lead__inner {
    width: 100%;
    max-width: 1029px;
    margin: auto;
    padding: 94px 0 0;
    position: relative;
    z-index: 1;

    h2 {
        font-family: "Source Han Sans JP", "源ノ角ゴシック", sans-serif;
        text-align: center;
        font-size: 40px;
        font-weight: bold;
        line-height: 76px;
    }
}

.oem-lead__list {
    margin: 32px auto 0;
    width: 100%;
    max-width: 952px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;

    li {
        width: 456px;
        border-bottom: 1px solid #11723D;
        padding-bottom: 8.5px;
        font-weight: bold;

        &::before {
            content: "";
            width: 33px;
            height: 33px;
            display: inline-block;
            vertical-align: middle;
            background-image: url(/cms/img/usr/oem/check.png);
            margin-right: 12px;
        }
    }
}

.oem-lead__text {
    margin: 80px auto 0;
    font-weight: normal;
    text-align: center;
    line-height: 32px;
    font-size: 15px;
    color: #333;
}

.oem-lead__link-wrap {
    margin: 80px auto 0;

}

.oem-lead__link {
    border: 2px solid #DEE5DF;
    border-radius: 5px;
    padding: 52px 93px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;

    .oem-lead__link-txt {
        width: 591px;
        font-size: 28px;
        color: #006230;
        line-height: 40px;
        border-right: 2px solid #DEE5DF;
    }

    .oem-lead__link-btn {
        .top-arrowbtn {
            margin: auto;
        }

        p {
            font-size: 16px;
            color: #006230;
        }
    }
}

.oem-sec {
    padding: 100px 16px;
    background-color: #F1F5F2;

    &.oem-works {
        background: #fff;
    }

    .oem-sec__inner {
        width: 1664px;
        margin: auto;
    }

    .oem-ttl__wrap {
        display: flex;
        align-items: center;
        gap: 40px;

        h2 {
            font-size: 28px;
            font-weight: bold;
            padding: 0;
            margin: 0;
        }

        p {
            padding: 0;
            color: #006230;
            font-size: 20px;

            &::before {
                content: "";
                display: inline-block;
                width: 12px;
                height: 12px;
                background-image: url(/cms/img/usr/oem/ttl_icon.png);
                margin-right: 8px;
            }
        }
    }

    .oem-text {
        margin-top: 20px;
        font-size: 15px;
        color: #333;

        .notice {
            color: #818181;
            font-size: 12px;
        }
    }
}

.oem-reason {
    /* 東京堂が選ばれる理由 */
}

.oem-reason__image {
    margin-top: 32px;
    width: 100%;
}

.oem-reason__list {
    margin: 32px auto 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: center;

    li.oem-reason__item {
        width: 816px;
        background: #fff;
        border-radius: 10px;
        padding: 40px;
    }

    .reason-ttl {
        .reason-index {
            display: inline-block;
            text-align: center;
            width: 32px;
            height: 32px;
            border-radius: 50px;
            background-color: #006230;
            font-size: 14px;
            font-weight: bold;
            line-height: 32px;
            color: #fff;
            vertical-align: middle;
            margin-right: 12px;
        }

        p {
            display: inline-block;
            font-size: 24px;
            font-weight: bold;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            color: #333333;
        }

    }

    .reason-txt {
        margin-top: 20px;
        color: #333333;
        font-size: 14px;
        line-height: 24px;
        font-weight: normal;
    }
}

.oem-works {
    /* ご利用シーンと制作例 */
}

.oem-works__list {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;

    li {
        width: 392px;

        img {
            display: block;
            width: 392px;
            height: 520px;
            object-fit: cover;
        }

        p {
            margin-top: 12px;
            font-size: 20px;
            font-weight: bold;
            font-weight: bold;
            text-align: center;
            padding: 0;
        }
    }
}

.oem-works-acd-wrap {
    position: relative;
}

.oem-works-acd {
    overflow: hidden;
    max-height: 1520px;
    transition: max-height 0.5s;
    position: relative;
}

.oem-works-acd-wrap.is-close::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.55) 45%,
            rgba(255, 255, 255, 0.95) 100%);
    transition: opacity 0.5s;
}

.oem-works .close-btn {
    position: relative;
    z-index: 1;
    margin: 40px auto 0;
    width: 420px;
    background-color: #fff;
    color: #006230;
    text-align: center;
    border: 1px solid #006230;
    border-radius: 50px;
    padding: 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;

    &::after {
        content: "";
        display: inline-block;
        vertical-align: middle;
        margin-left: 20px;
        width: 12px;
        height: 6px;
        background-image: url(/cms/img/usr/oem/arrow.png);
        transform: rotateX(180deg);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.oem-works-acd-wrap.is-open .close-btn::after {
    transform: rotateX(0);
}

.oem-works-acd-wrap.is-open .oem-works-acd {
    max-height: 5000px;
}

.oem-works-acd-wrap.is-open::after {
    opacity: 0;
    visibility: hidden;
}

.oem-flow {
    /* お取引の流れ */
}

.oem-flow__wrap {
    margin: 32px auto 40px;
    width: 100%;
    display: flex;
    gap: 60px;
}

ul.oem-flow__list {
    width: 802px;
}

li.oem-flow__step {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;

    &:last-child {
        margin-bottom: 0;
    }

    .step-icon {
        display: block;

        img {
            height: 179px;
        }
    }

    .step-box {
        width: 710px;
        height: 180px;
        background-color: #fff;
        display: flex;
        gap: 40px;
        padding: 0 40px;
        border-radius: 10px;
        align-items: center;

        .step-box__left {
            width: 450px;

            h3 {
                font-size: 24px;
                font-weight: bold;
            }

            p {
                margin-top: 12px;
                font-size: 14px;
                padding: 0;
            }

            p.notice {
                margin-top: 4px;
                font-size: 12px;
                color: #818181;
            }
        }

        img {
            width: 140px;
            height: 140px;
        }
    }
}

.oem-contact__inner {
    background-image: url(/cms/img/usr/oem/bottom_img.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: calc(312 / 1920 * 100vw);
    color: #fff;
    position: relative;

    .oem-contact__wrap {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
        height: min-content;
        display: flex;
        width: calc(1101 / 1920 * 100vw);
        justify-content: center;
        gap: calc(60 / 1920 * 100vw);
    }

    .oem-contact__text {
        font-size: calc(28 / 1920 * 100vw);
        text-align: left;
        font-weight: normal;
        line-height: calc(48 / 1920 * 100vw);
    }

    .oem-contact__link {
        position: relative;
        min-width: calc(480 / 1920 * 100vw);
        background-color: #fff;
        border-radius: 5px;
        color: #006230;
        text-align: left;
        font-size: calc(20 / 1920 *100vw);
        padding: calc(26 / 1920 * 100vw) calc(112 / 1920 *100vw) calc(26 / 1920 * 100vw) calc(56 / 1920 *100vw);

        &::after {
            position: absolute;
            content: "";
            width: calc(24 / 1920 * 100vw);
            height: calc(24 / 1920 * 100vw);
            top: 0;
            bottom: 0;
            right: calc(56 / 1920 * 100vw);
            margin: auto;
            display: block;
            background-image: url(/cms/img/usr/oem/arrow_btn.png);
            background-position: center;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }
}

@media screen and (max-width: 768px) {
    .only-sp {
        display: block;
    }

    .only-pc {
        display: none;
    }

    .oem-mv {
        /* MV */
    }

    .oem-mv__inner {
        background-image: url(/cms/img/usr/oem/mv_sp.png);
        width: 100vw;
        height: calc(321 / 390 * 100vw);

        h1 {
            font-size: calc(39.6 / 390 * 100vw);
        }

        p {
            font-weight: normal;
            margin-top: calc(16 / 390 * 100vw);
            font-size: calc(16 / 390 * 100vw);
        }
    }

    .oem-lead {
        position: relative;
        padding: calc(32 / 390 * 100vw) 0 calc(60 / 390 * 100vw);
        background-image: url(/cms/img/usr/oem/featuretitle_sp.png);
        background-position: center calc(30 / 390 * 100vw);
        background-size: 90%;
        background-repeat: no-repeat;
    }

    .oem-lead__inner {
        width: 100%;
        max-width: none;
        margin: auto;
        padding: calc(28 / 390 * 100vw) calc(16 / 390 * 100vw) 0;

        h2 {
            font-size: calc(22 / 390 * 100vw);
            line-height: calc(42 / 390 * 100vw);
        }
    }

    .oem-lead__list {
        margin: calc(40 / 390 * 100vw) auto 0;
        width: 100%;
        padding: 0 calc(16 / 390 * 100vw);
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 40px;
        justify-content: center;
        align-items: center;

        li {
            width: 100%;
            padding-bottom: calc(8 / 390 * 100vw);
            display: flex;
            gap: calc(12 / 390 * 100vw);
            align-items: center;
            font-size: calc(15 / 390 * 100vw);
            line-height: calc(22 / 390 * 100vw);

            &::before {
                content: "";
                background-size: contain;
                width: calc(28 / 390 * 100vw);
                height: calc(28 / 390 * 100vw);
                margin-right: 0;
            }
        }
    }

    .oem-lead__text {
        margin: calc(40 / 390 * 100vw) auto 0;
        padding: 0 calc(16 / 390 * 100vw);
        text-align: left;
        line-height: calc(24 / 390 * 100vw);
        font-size: calc(13 / 390 * 100vw);
    }

    .oem-lead__link-wrap {
        margin: 0 auto;

    }

    .oem-lead__link {
        border: 2px solid #DEE5DF;
        border-radius: 5px;
        padding: calc(16 / 390 * 100vw) calc(24 / 390 * 100vw);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: calc(16 / 390 * 100vw);

        .oem-lead__link-txt {
            text-align: center;
            width: 100%;
            font-size: calc(18 / 390 * 100vw);
            color: #006230;
            line-height: calc(28 / 390 * 100vw);
            border-right: none;
        }

        .oem-lead__link-btn {
            .top-arrowbtn {
                margin: auto;
            }

            .top-arrowbtn.top-arrowbtn {
                width: max-content;
                height: auto;
                color: #fff;
                text-align: center;
                padding: calc(7 / 390 * 100vw) calc(50 / 390 * 100vw);
                font-size: calc(16 / 390 * 100vw);

                &:before {
                    background-position: right calc(20 / 390 * 100vw) center;
                }
            }

            p {
                display: none;
            }
        }
    }

    .oem-sec {
        padding: calc(40 / 390 * 100vw) calc(16 / 390 * 100vw);
        background-color: #F1F5F2;

        .oem-sec__inner {
            width: 100%;
            margin: auto;
        }

        .oem-ttl__wrap {
            display: flex;
            align-items: center;
            flex-direction: column-reverse;
            gap: calc(4 / 390 * 100vw);

            h2 {
                font-size: calc(20 / 390 * 100vw);
            }

            p {
                font-size: calc(13 / 390 * 100vw);

                &::before {
                    content: "";
                    display: block;
                    width: calc(12 / 390 * 100vw);
                    height: calc(12 / 390 * 100vw);
                    margin: 0 auto calc(8 / 390 * 100vw);
                }
            }
        }

        .oem-text {
            margin-top: calc(12 / 390 * 100vw);
            font-size: calc(13 / 390 * 100vw);

            .notice {
                font-size: calc(12 / 390 * 100vw);
            }
        }
    }

    .oem-reason {
        /* 東京堂が選ばれる理由 */
    }

    .oem-reason__image {
        margin-top: calc(20 / 390 * 100vw);
    }

    .oem-reason__list {
        margin: calc(20 / 390 * 100vw) auto 0;
        gap: calc(16 / 390 * 100vw);
        justify-content: center;
        align-items: center;

        li.oem-reason__item {
            width: 100%;
            padding: calc(16 / 390 * 100vw) calc(24 / 390 * 100vw) calc(32 / 390 * 100vw);
        }

        .reason-ttl {
            .reason-index {
                display: block;
                text-align: center;
                width: calc(28 / 390 * 100vw);
                height: calc(28 / 390 * 100vw);
                font-size: calc(13 / 390 * 100vw);
                line-height: calc(28 / 390 * 100vw);
                margin-right: 0;
                margin: auto;
            }

            p {
                display: block;
                font-size: calc(18 / 390 * 100vw);
                text-align: center;
                margin-top: calc(8 / 390 * 100vw);
            }

        }

        .reason-txt {
            text-align: center;
            padding: 0;
            margin-top: calc(12 / 390 * 100vw);
            font-size: calc(13 / 390 * 100vw);
            line-height: calc(24 / 390 * 100vw);
        }
    }

    .oem-works {
        /* ご利用シーンと制作例 */
    }

    .oem-works__list {
        margin-top: calc(32 / 390 * 100vw);
        width: 100%;
        gap: calc(16 / 390 * 100vw);

        li {
            width: calc(170 / 390 * 100vw);

            img {
                width: calc(170 / 390 * 100vw);
                height: calc(226 / 390 * 100vw);
                object-fit: cover;
            }

            p {
                margin-top: calc(4 / 390 * 100vw);
                font-size: calc(14 / 390 * 100vw);
                padding: 0;
            }
        }
    }

    .oem-works-acd {
        overflow: hidden;
        max-height: calc(668 / 390 * 100vw);
        transition: max-height 0.5s;
        position: relative;
    }

    .oem-works .close-btn {
        margin: calc(32 / 390 * 100vw) auto 0;
        width: calc(308 / 390 * 100vw);
        padding: calc(12 / 390 * 100vw);
        font-size: calc(14 / 390 * 100vw);

        &::after {
            content: "";
            margin-left: calc(12 / 390 * 100vw);
            width: calc(10 / 390 * 100vw);
            height: calc(5 / 390 * 100vw);
        }
    }

    .oem-works-acd-wrap.is-close::after {
        height: calc(196 / 390 * 100vw);
    }

    .oem-flow {

        /* お取引の流れ */
        .oem-text {
            padding: 0;
            margin: 0;
        }
    }

    .oem-flow__wrap {
        margin: calc(20 / 390 * 100vw) auto calc(40 / 390 * 100vw);
        width: 100%;
        flex-direction: column;
        gap: calc(24 / 390 * 100vw);
    }

    ul.oem-flow__list {
        width: 100%;

        &:last-child {
            li .step-box {
                height: calc(130 / 390 * 100vw);
            }
        }
    }

    li.oem-flow__step {
        display: flex;
        gap: calc(12 / 390 * 100vw);
        margin-bottom: calc(24 / 390 * 100vw);
        align-items: start;

        &:last-child {
            margin-bottom: 0;
        }

        .step-icon {
            display: block;

            img {
                width: calc(40 / 390 * 100vw);
                height: auto;
            }
        }

        .step-box {
            position: relative;
            width: calc(306 / 390 * 100vw);
            height: auto;
            display: flex;
            flex-direction: column-reverse;
            gap: 0;
            padding: calc(20 / 390 * 100vw);
            align-items: center;

            .step-box__left {
                width: 100%;

                h3 {
                    height: calc(80 / 390 * 100vw);
                    width: calc(166 / 390 * 100vw);
                    text-align: center;
                    margin-left: auto;
                    font-size: calc(16 / 390 * 100vw);
                    line-height: calc(26 / 390 * 100vw);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                p {
                    margin-top: calc(28 / 390 * 100vw);
                    font-size: calc(14 / 390 * 100vw);
                    line-height: calc(24 / 390 * 100vw);
                    padding: 0;
                }

                p.notice {
                    margin-top: 4px;
                    font-size: 12px;
                    color: #818181;
                }
            }

            img {
                top: calc(24 / 390 * 100vw);
                left: calc(24 / 390 * 100vw);
                position: absolute;
                width: calc(80 / 390 * 100vw);
                height: calc(80 / 390 * 100vw);
            }
        }

        &:nth-child(1) {
            .step-box {
                height: calc(238 / 390 * 100vw);
            }
        }

        &:nth-child(2) {
            .step-box {
                height: calc(311 / 390 * 100vw);
            }
        }

        &:nth-child(3) {
            .step-box {
                height: calc(282 / 390 * 100vw);
            }
        }

        &:nth-child(4) {
            .step-box {
                height: calc(130 / 390 * 100vw);
            }
        }
    }

    .oem-contact__inner {
        background-image: url(/cms/img/usr/oem/bottom_img_sp.png);
        width: 100vw;
        height: calc(276 / 390 * 100vw);

        .oem-contact__wrap {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            text-align: center;
            height: min-content;
            display: flex;
            flex-direction: column;
            width: calc(358 / 390 * 100vw);
            justify-content: center;
            gap: calc(24 / 390 * 100vw);
        }

        .oem-contact__text {
            font-size: calc(18 / 390 * 100vw);
            text-align: center;
            line-height: calc(28 / 390 * 100vw);
        }

        .oem-contact__link {
            position: relative;
            width: calc(334 / 390 * 100vw);
            text-align: left;
            margin: auto;
            font-size: calc(16 / 390 *100vw);
            padding: calc(20 / 390 * 100vw);

            &::after {
                width: calc(24 / 390 * 100vw);
                height: calc(24 / 390 * 100vw);
                right: calc(20 / 390 * 100vw);
            }
        }
    }

}
