.mainarea #products {
    display: inline-block;
    position: relative;
}

.mainarea #products .circle {
    width: 20%;
    height: auto;
    position: absolute;
    left: -2%;
    bottom: -2%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mainarea #products .circle svg text {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    fill: rgb(157, 157, 157);
}

.mainarea #products .detail {
    padding-bottom: 0;
}

.mainarea #products .products_title {
    margin: auto;
    text-align: center;
}

.mainarea #products .product_nav {
    display: inline-flex;
    margin-top: 15px;
    margin-left: 20%;
}

.mainarea #products .product_nav li::after {
    content: "\007c";
    padding: 0 15px;
    color: #f5f5f5;
    
}

.mainarea #products .product_nav li:last-child::after {
    content: "";
    padding: 0 15px;
}

.mainarea #products .product_nav li a {
    color: rgb(140, 140, 140);
    position: relative;
}

.mainarea #products .product_nav li a::after {
    width: 0%;
    height: 1px;
    content: "";
    position: absolute;
    border-bottom: 1px solid rgb(255, 255, 255);
    left: 0;
    bottom: 0;
}

.mainarea #products .product_nav li a:hover {
    color: #b29275;
}

.mainarea #products .product_nav li a:hover::after {
    -webkit-animation: width .3s forwards;
    animation: width .3s forwards;
    content: "";
    position: absolute;
    border-bottom: 1px solid rgb(102, 102, 102);
    left: 0;
    bottom: 0;
}

.mainarea #products .product_nav .active a {
    color: #fff;
}

.mainarea #products .product_nav .active a::after {
    width: 100%;
    height: 1px;
    content: "";
    position: absolute;
    border-bottom: 1px solid #fff;
    left: 0;
    bottom: 0;
}

.mainarea #products .product_list {
    width: 80%;
    height: auto;
    margin: 2% auto;
    float: right;
    display: inline-flex;
    justify-content: flex-end;
    background: #232323;
    position: relative;
}

.mainarea #products .product_list::before {
    content: "-PRODUCTS-";
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left bottom;
    font-size: 5em;
    color: transparent;
    -webkit-text-stroke: 1px gainsboro;
}

.mainarea #products .product_list .product_group {
    width: 80%;
    height: auto;
    margin: 5% auto;
    display: none;
}

.mainarea #products .product_list .product_group ul, .mainarea #products .product_list .product_group li {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.mainarea #products .product_list .product_group li {
    width: calc(100% / 3);
    height: auto;
    padding: 15px;
    margin: 0;
    
}
.mainarea #products .product_list .product_group li>div{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.mainarea #products .product_list .product_group li {
    color: #333;
}

.mainarea #products .product_list .product_group li a{
    color: #fff;
}

.mainarea #products .product_list .product_group li .product_img {
    width: 100%;
    height: auto;
    position: relative;
    background: #5a5a5a;
}

.mainarea #products .product_list .product_group li .product_img img {
    width: 100%;
    height: auto;
    transition: opacity .3s;
}



.mainarea #products .product_list .product_group li .product_detail {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    justify-content: flex-end;
}

.mainarea #products .product_list .product_group li .product_detail h4 {
    font-size: 1.4em;
    text-align: center;
    padding-top: 15px;
    color: #f5f5f5;
    flex-grow: 1;
}

.mainarea #products .product_list .product_group li .product_detail .more {
    display: inline-flex;
    transition: .3s ease-in-out;
    color: #f5f5f5;
    cursor: pointer;
}

.mainarea #products .product_list .product_group li .product_detail .more p {
    font-size: .8em;
    padding: 0;
    padding-top: 5px;
    margin: 15px auto;
    display: inline-block;
    transition: .3s ease-in-out;
}

.mainarea #products .product_list .product_group li .product_detail .more svg {
    width: 59px;
    height: 59px;
    display: inline-block;
    margin: auto;
    fill: none;
    stroke-dashoffset: 184px;
    stroke-dasharray: 92px;
    transition: 0.3s cubic-bezier(0.79, 0.17, 0.15, 0.96);
}



.mainarea #products .product_list .product_group li:hover .product_detail {
    transition: .3s ease-in-out;
}

.mainarea #products .product_list .product_group li .product_detail .more:hover p {
    padding-left: 5px;
}

.mainarea #products .product_list .product_group li .product_detail .more:hover svg {
    fill: none;
    stroke-dashoffset: 92px;
    stroke-dasharray: 92px;
    transition: 0.5s cubic-bezier(0.08, 0.92, 0.35, 1);
}

.mainarea #products .product_list .active {
    display: block;
    -webkit-animation: move 1s;
    animation: move 1s;
}

@media all and (min-width: 1980px) {
    .mainarea #gallery .detail .gallery_desc {
        width: 80%;
        height: auto;
    }

    .mainarea #gallery .detail .gallery_desc::before, .mainarea #gallery .detail .gallery_desc::after {
        transform: skewX(0);
    }

    .mainarea #gallery .detail .gallery_box .gallery_2 {
        grid-row: 2 / 3;
    }

    .mainarea #gallery .detail .gallery_box .gallery_3 {
        grid-row: 7 / 9;
    }
}

@media all and (max-width: 1200px) {
    .mainarea #slogan #messenger {
        font-size: 8em;
    }

    .mainarea .detail {
        width: 90%;
        height: auto;
    }

    .mainarea #products .product_list::before {
        font-size: 4em;
    }
}

@media all and (max-width: 820px) {
    .mainarea #slogan #messenger {
        font-size: 6em;
    }

    .mainarea #kv {
        width: 100%;
        height: 50vh;
    }

    .mainarea #gallery .detail .gallery_desc {
        width: 80%;
        height: auto;
    }

    .mainarea #gallery .detail .gallery_desc::before, .mainarea #gallery .detail .gallery_desc::after {
        transform: skewX(-5deg);
    }

    .mainarea #gallery .detail .gallery_box {
        grid-template-columns: repeat(5, 1fr);
    }

    .mainarea #gallery .detail .gallery_box .gallery_1 {
        grid-column: 1 / 4;
        grid-row: 1 / 4;
    }

    .mainarea #gallery .detail .gallery_box .gallery_1 .symbol {
        bottom: -2em;
    }

    .mainarea #gallery .detail .gallery_box .gallery_2 {
        grid-column: 2 / 6;
        grid-row: 6 / 7;
    }

    .mainarea #gallery .detail .gallery_box .gallery_3 {
        grid-column: 1 / 5;
        grid-row: 9 / 10;
    }

    .mainarea #gallery .detail .gallery_box [class*=_title] {
        font-size: 8em;
    }

    .mainarea #gallery .detail .gallery_box .gallery_title_1 {
        top: 32%;
    }

    .mainarea #gallery .detail .gallery_box .gallery_title_2 {
        bottom: 22%;
    }

    .mainarea #products .product_list {
        width: 90%;
        height: auto;
    }

    .mainarea #products .product_list .product_group li {
        width: calc(100% / 2);
        height: auto;
    }

    .mainarea #products .circle {
        width: 40%;
        height: auto;
        right: 0;
        left: auto;
    }
}

@media all and (max-width: 500px) {
    .mainarea #gallery .detail .gallery_desc {
        width: 80%;
        height: auto;
    }

    .mainarea #gallery .detail .gallery_desc::before, .mainarea #gallery .detail .gallery_desc::after {
        transform: skewX(0);
    }

    .mainarea #gallery .detail .gallery_box [class^=gallery_] .gallery_text p {
        white-space: nowrap;
    }

    .mainarea #gallery .detail .gallery_box .gallery_1 {
        grid-column: 1 / 5;
    }

    .mainarea #gallery .detail .gallery_box .gallery_2 {
        grid-column: 2 / 6;
        grid-row: 5 / 7;
    }

    .mainarea #gallery .detail .gallery_box .gallery_2 .gallery_text p {
        right: 0;
        left: auto;
        white-space: normal;
    }

    .mainarea #gallery .detail .gallery_box .gallery_3 {
        grid-column: 1 / 5;
        grid-row: 8 / 11;
    }

    .mainarea #gallery .detail .gallery_box [class*=_title] {
        font-size: 6em;
    }

    .mainarea #gallery .detail .gallery_box .gallery_title_1 {
        top: 30%;
    }

    .mainarea #gallery .detail .gallery_box .gallery_title_2 {
        bottom: 25%;
    }

    .mainarea #products .product_nav {
        width: 100%;
        height: auto;
        margin: 2% auto;
        text-align: center;
    }

    .mainarea #products .product_nav li::after, .mainarea #products .product_nav li:last-child::after {
        content: "";
        padding: 0;
    }

    .mainarea #products .product_list .product_group li {
        width: 100%;
        height: auto;
    }

    .mainarea #products .product_list .product_group li .product_detail .more svg {
        width: 40px;
        height: 40px;
    }

    .mainarea #products .product_list::before {
        left: 5%;
        font-size: 3em;
    }

    .mainarea #products .circle {
        width: 100%;
        height: auto;
        position: relative;
    }
}


