@media screen and (min-width: 1200px) {
    header .navi {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
    }
}

@media (max-width: 1200px) {
    header {
        height: 70px;
        padding-left: 20px;

        .header-logo {
            width: 215px;
            height: auto;
            object-fit: contain;

            img {
                width: 100%;
            }
        }
    }

    header .navi {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        z-index: 100;
        padding: 40px 20px;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;

        ul.navi-menu {
            width: 100%;
            flex-direction: column;
            gap: 20px;
            align-items: anchor-center;

            li {
                display: inline-block;
                width: 100%;
                text-align: center;
                height: 35px;
                padding-bottom: 10px;
                border-bottom: 1px solid #0772b8;

                a {
                    color: #0571b8;
                    font-weight: 500;

                    :hover {
                        opacity: 0.8;
                    }
                }
            }

            :nth-last-child(2) {
                border-bottom: none;
            }



            li.navi-menu-contact {
                border-bottom: none;
                height: auto;
                padding: 15px;
            }

        }
    }


    header .navi.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    header .hamburger {
        display: flex;
        margin-right: 20px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .top-img {
        .top-img-txt {
            &::before {
                height: 100%;
            }

            h1 {
                font-size: 30px;
            }

            p {
                font-size: 21px;
            }
        }

    }

    /*下層ページ top-img*/
    .lower-img {
        height: 70vh;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .lower-img-txt {
            .heading {
                .bg-en {
                    font-size: 4rem;
                }
            }

            p {
                padding-left: 0;
                line-height: 1.8;
            }
        }
    }

    .top-wrapper-04 {

        .top-wrapper-04-contents {
            flex-direction: column;

            .top-wrapper-04-contents-img {
                width: 100%;
            }

            .top-wrapper-04-contents-txt {
                width: 100%;
                display: flex;
                gap: 15px;

                .top-wrapper-04-contents-txt-card {
                    flex-direction: column;
                    gap: 20px;

                    &::before {
                        display: none;
                    }

                    .top-wrapper-04-contents-txt-card-left {
                        width: 100%;
                        text-align: center;

                        h5 {
                            &::after {
                                display: none;
                            }
                        }

                    }

                    .top-wrapper-04-contents-txt-card-right {
                        width: 100%;
                        padding-left: 0;
                    }
                }
            }
        }
    }

    footer {
        .footer-flex {
            flex-direction: column;
            gap: 20px;

            .footer-left {
                .footer-menu {
                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: center;
                    }
                }
            }

            .footer-right {
                .offices {
                    justify-content: center;
                }
            }
        }
    }

    /*下層ページ*/
    .product-wrapper-02 {
        .product-wrapper-02-contents {
            grid-template-columns: 1fr;

            .product-wrapper-02-contents-cards {
                justify-content: space-around;
            }
        }
    }

    .product-wrapper-02.example {
        .product-wrapper-02-contents {
            grid-template-columns: 1fr 1fr;
        }
    }

    .achievements-wrapper-01 {
        background-position: top right;
        padding: 80px 15px 80px;

        .achievements-wrapper-01-flex {
            flex-direction: column;

            .left {
                width: 100%;
                max-width: 700px;
                margin: 40px 0 0;
            }

            .center {
                width: 100%;
                max-width: none;
                height: 350px;

                h4 {
                    top: 50%;
                }
            }
        }
    }


}

@media screen and (max-width: 1100px) {
    .top-wrapper-product {
        .product-cards {
            flex-wrap: wrap;

            .product-card-wrap {
                max-width: 415px;
            }
        }
    }


    .top-wrapper-03 {
        padding: 90px 15px;

        .quality-control-contents-flex {
            display: flex;

            /*NIKE認定証明*/
            .quality-control-contents {
                width: 100%;
                height: auto;
                margin: 60px auto 0;
                padding: 30px 20px;
                display: block;
            }

            .quality-control-contents-img {
                position: static;
                width: 100%;
                max-width: 450px;
                height: 320px;
                transform: none;
                margin: 0 auto 30px;
                text-align: center;

                img {
                    width: 100%;
                    object-fit: contain;
                }
            }

            .quality-control-contents-txt {
                margin: 0;
                padding: 0;
                text-align: left;

                .heading {
                    gap: 1rem;
                    margin: 25px 0;

                    .jp {
                        left: 0;
                    }
                }


                p {
                    max-width: none;
                    margin: 0 0 20px 0;
                }
            }

            .quality-control-contents.oeko-tex {
                margin: 60px auto 0;
                padding: 30px 20px;


                &::before {
                    display: none;
                }

                .quality-control-contents-txt {
                    padding: 0;

                    p {
                        max-width: none;
                        margin-right: 0;
                        margin: 0 0 20px 0;

                    }
                }

                .heading {
                    justify-content: left;
                }



                .quality-control-contents-img {
                    max-width: 350px;
                    margin: 0 auto 30px;
                    transform: translateX(0);
                }
            }
        }
    }
}



@media (max-width: 1000px) {
    .top-wrapper-01 {
        padding: 0 0 30px;

        .top-wrapper-about {
            flex-direction: column;

            .top-wrapper-about-inner {
                width: 100%;
                flex-direction: column;
                align-items: flex-start;
                padding: 15px;

                .top-wrapper-about-txt {
                    width: 100% !important;

                    h3 {
                        font-size: 22px;
                        letter-spacing: 0;
                    }

                    p {
                        width: 100%;
                        letter-spacing: 1px;
                        margin: 20px 0;
                    }
                }
            }

            .top-wrapper-about-img {
                position: static;
                transform: none;
                width: 100%;
                min-width: auto;
                margin-top: 20px;
                padding-left: 15px;
            }
        }
    }

    .top-wrapper-02 {
        h2 {
            text-align: left;
        }

        .top-wrapper-02-flex {
            flex-direction: column;

            .top-wrapper-02-txt {
                width: 100%;
            }

            img {
                width: 100%;
                max-width: 475px;
            }
        }
    }

    footer {
        padding: 50px 30px 15px;
    }

    .quality-wrapper-01 {
        padding: 80px 15px 30px;

        .quality-wrapper-01-flex {
            flex-direction: column;

            .left {
                width: 100%;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .right {
                width: 100%;
                max-width: 400px;
                margin: 20px auto;
            }
        }
    }

}

@media (max-width: 875px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 60px;

        .contact-wrapper-right {
            padding-left: 40px;

            .btn {
                padding: 10px 10px 10px 30px;
                margin-left: -38px;
            }
        }
    }

    footer {
        .footer-right {
            .offices {
                .offices-contents {
                    width: 100%;
                    border-right: none;

                    p {
                        br {
                            display: none;
                        }
                    }
                }
            }
        }
    }

    .product-wrapper-01 {
        .product-wrapper-01-contents {
            grid-template-columns: 1fr 1fr;
        }
    }

    .quality-wrapper-02 {
        padding: 80px 13px 50px;
    }

    .achievements-wrapper-02 {
        padding: 80px 15px;

        .achievements-wrapper-02-contents {
            flex-direction: column;

            .achievements-wrapper-02-cards {
                width: 100%;
            }
        }
    }

    /*お知らせ一覧*/
    .news-archive-wrapper {
        flex-direction: column;

        .sidebar {
            width: 100%;
        }
    }

}

@media (max-width: 768px) {
    .top-img {
        height: 70vh;

        img {
            height: 100%;
            object-fit: cover;
            object-position: left;
        }

        .top-img-txt {
            left: 10px;

            &::before {
                display: none;
            }

            h1 {
                font-size: 27px;
            }

            p {
                font-size: 19px;
            }
        }

    }

    .top-wrapper-product {
        padding: 80px 15px 45px;
        overflow: hidden;
        gap: 30px;
    }

    .quality-control-contents-flex {
        flex-direction: column;

        .quality-control-contents {
            width: 100%;
        }
    }

    .top-wrapper-03 {
        .quality-control-contents-flex {
            .quality-control-contents-img {
                height: fit-content;
            }
        }
    }


    .top-wrapper-04 {
        .top-wrapper-04-contents {
            gap: 20px;

            .top-wrapper-04-contents-txt {
                flex-direction: column;

                .top-wrapper-04-contents-txt-card {
                    flex-direction: row;

                    .top-wrapper-04-contents-txt-card-left {
                        width: fit-content;
                    }
                }
            }
        }
    }

    footer {
        li {
            width: 100%;
        }

    }

    .company-wrapper-01 {
        padding: 80px 15px;

        .massage-txt {
            padding: 30px;
            width: 100%;
        }

        .philosophy {
            p {
                padding: 15px;
                width: 100%;
            }
        }
    }

    .company-wrapper-02 {
        padding: 0 15px 50px;

        .timeline {
            width: 100%;
            border-radius: 15px;

            .timeline-list {
                .timeline-list-item {
                    .date {
                        width: 30%;
                        padding: 0 22px 0 0;
                    }
                }
            }
        }
    }

    .company-wrapper-03 {
        padding: 0 15px;

        .company-profile {
            width: 100%;

            tbody,
            tr,
            th,
            td {
                display: block;
                width: 100%;
            }

            tr {
                margin-bottom: 15px;
            }

            th {
                background-color: #0169b8;
                color: #fff;
                text-align: left;
                text-align-last: auto;
                letter-spacing: 0.5em;
                padding: .6em 1em;
            }

            td {
                padding: .8em 1em;
            }
        }
    }

    .company-wrapper-04 {
        padding: 0 15px;

        .locations-list {
            padding: 0;
            width: 100%;

            .list {


                table {
                    padding: 0;

                    th {
                        display: block;
                        width: 100%;
                        background: #0169b8;
                        color: #fff;
                        padding: 10px 15px;
                    }

                    td {
                        display: block;
                        width: 100%;
                        padding: 15px;
                    }

                }
            }
        }
    }

    .whatis-wrapper-01 {
        padding: 80px 15px;

        .whatis-wrapper-01-flex {
            flex-direction: column;

            .left {
                width: 100%;
            }

            .right {
                width: 100%;
                max-width: 450px;
                margin-top: 40px;
            }
        }
    }

    .whatis-wrapper-02 {
        padding: 80px 15px;


        .heading,
        p,
        .whatis-wrapper-02-grid {
            width: 100%;
            padding: 0;
        }

        .whatis-wrapper-02-grid {
            grid-template-columns: 1fr;
            grid-row-gap: 15px;
        }

        .grid1,
        .grid2,
        .grid3,
        .grid4,
        .grid5 {
            grid-area: auto;
            grid-column: auto;
        }

        .grid5 {
            flex-direction: column;

            h6.big {
                font-size: 19px;
            }
        }
    }

    .product-wrapper-02.example {
        .heading {
            width: 100%;
        }

        .product-wrapper-02-contents {
            width: 100%;
            grid-template-columns: 1fr;
        }
    }

    .whatis-wrapper-03 {
        padding: 50px 15px;

        .whatis-wrapper-03-flex {
            flex-direction: column;

            .left {}

            .right {
                width: 100%;
            }
        }
    }

    .top-wrapper-03.quality-policy {
        padding: 80px 15px;

        .quality-policy-flex {
            flex-direction: column;

            img {
                width: 100%;
                max-width: 400px;
            }

            .right {
                width: 100%;
            }
        }
    }

    .quality-wrapper-02 {
        .quality-wrapper-02-flex {
            .circle {
                width: calc(50% - 15px);
                max-width: 200px;
            }
        }
    }

    .quality-wrapper-03 {
        padding: 70px 15px;

        .quality-wrapper-03-flex {
            flex-direction: column;
            margin: 0 auto;

            .left {
                width: 100%;
            }

            .right {
                width: 100%;
                max-width: 500px;
            }
        }
    }
}


@media (max-width :731px) {
    .top-wrapper-product {
        .product-cards {
            gap: 20px;
        }

        .btn.btn-white {
            margin: 150px auto 0;
        }

    }
}

@media (max-width: 600px) {
    .btn {
        font-size: 16px;
    }

    .heading {
        gap: 0.6rem;

        .bg-en {
            top: 22%;
        }

        .jp {
            font-size: 1.6rem;
            letter-spacing: 4px;
            left: 5px;
        }

        .sub-en {
            width: 100%;
            left: 8px;
        }
    }

    .top-wrapper-product {
        .product-card-wrap {
            .product-card {
                .card-num {
                    font-size: 45px;
                }
            }
        }
    }

    .product-wrapper-02 {
        padding: 80px 15px;

        .product-wrapper-02-contents {
            .product-wrapper-02-contents-cards {
                flex-direction: column;

                .left {
                    width: 100%;

                    .left-title {
                        h6 {
                            span {
                                display: block;
                            }

                            &::before {
                                font-size: 4.5rem;
                                bottom: -4px;
                            }
                        }
                    }
                }

                .right {
                    width: 100%;
                    max-width: 200px;
                    margin: 15px auto 0;
                }

            }

            .product-wrapper-02-contents-cards:nth-of-type(n + 6):nth-of-type(-n + 8) {

                .left {
                    .left-title {
                        h6 {
                            &::before {
                                font-size: 4.5rem;
                                bottom: -28px;
                            }
                        }
                    }
                }
            }
        }
    }

    .product-wrapper-02.example {
        padding: 60px 15px;

        .product-wrapper-02-contents {
            .product-wrapper-02-contents-cards {
                .left {
                    .left-title {
                        h6 {
                            &::before {
                                bottom: -30px;
                            }
                        }
                    }
                }
            }
        }
    }


    .product-wrapper-03 {
        .product-wrapper-03-img {
            width: 100%;
        }

        .product-wrapper-03-img-flex {
            width: 100%;
            flex-wrap: wrap;

            img {
                width: 100%;
            }
        }
    }
}

@media (max-width: 500px) {
    .top-wrapper-04 {
        .top-wrapper-04-contents {
            .top-wrapper-04-contents-txt {
                .top-wrapper-04-contents-txt-card {
                    flex-direction: column;
                }
            }
        }
    }

    .product-wrapper-01 {
        .product-wrapper-01-contents {
            grid-template-columns: 1fr;
        }
    }

    .achievements-wrapper-01 {
        .achievements-wrapper-01-flex {
            .right {
                .flow {
                    .flow-item {
                        .icon {
                            width: 100px;
                            min-width: 100px;
                        }

                        .card {
                            h5 {
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
    }

    .achievements-wrapper-02 {
        .achievements-wrapper-02-contents {
            .achievements-wrapper-02-cards {
                .achievements-wrapper-02-cards-flex {
                    flex-direction: column;

                    .left {
                        width: 100%;
                    }

                    .right {
                        width: 100%;
                        margin: 20px auto 0;
                    }

                }
            }
        }
    }

    .news-archive-wrapper {
        margin: 40px auto;

        .news-item {
            flex-direction: column;

            .news-thumb {
                width: 100%;
                max-height: 200px;
            }
        }
    }

}