@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css);

:root {
    --vadaro-max-width: 414px;
    --vadaro-max-height: 736px;
    --beta-main-color: #fd9c3c;
    /* 에스코어드림 */
    --font-family-light: 'S-CoreDream-3Light';
    --font-family-regular: 'S-CoreDream-4Regular';
    --font-family-bold: 'S-CoreDream-6Bold';
    --font-family-extra-bold: 'S-CoreDream-7ExtraBold';
    /* 나눔스퀘어 */
    --font-family-nanum-regular: 'NanumSquare', sans-serif;
}

/* 에스코어드림 */
@font-face {
    font-family: 'S-CoreDream-3Light';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'S-CoreDream-4Regular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'S-CoreDream-6Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'S-CoreDream-7ExtraBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-7ExtraBold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

html,
body {
    margin: auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
    font-family: var(--font-family-regular);
    display: flex;
    /* max-width: var(--vadaro-max-width); */
    /* max-height: var(--vadaro-max-height); */
}

section {
    height: 100%;
}

a,
a:link,
a:visited,
a:hover {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

button {
    border: none;
    outline-style: none;
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

h1,
p,
h3 {
    margin: 0;
}

img {
    vertical-align: top;
}

.app-container {
    max-width: var(--vadaro-max-width);
    position: relative;
    width: 100%;
    display: flex;
    height: 100%;
    flex-direction: row;
}

.tab {
    padding: 5px;
    width: 40px;
    box-shadow: 2px 1px 5px grey;
    height: 100%;
    background-color: var(--beta-main-color);
    z-index: 5;
}

.tab-icon.logo > a > img {
    width: 34px;
    position: relative;
    left: 50%;
    transform: translateX(-48%);
}

.tab-icon.home {
    margin-top: 50px;
}

.tab-icon:hover {
    cursor: pointer;
}

.content-container {
    width: 90%;
    margin-left: 1px;
}

.content-container::-webkit-scrollbar {
    width: 4px;
}

.content-container::-webkit-scrollbar-thumb {
    background-color: var(--beta-main-color);
    border-radius: 6px;
}

/* home */
.home-container {
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
}

/* .main-visual {
    width: 100%;
    height: 130px;
    background-size: 100%;
} */
.main-visual-container {
    width: 100%;
    display: flex;
    height: 150px;
    background-size: cover;
}

/* .visual-company-name {
    width: 60%;
    font-family: var(--font-family-extra-bold);
    font-size: 45px;
    letter-spacing: -4px;
    padding-left: 5vw;
    margin: auto 0px;
    text-align: start;
} */
.visual-company-name {
    width: 60%;
    background: no-repeat center;
}

.main-visual {
    width: 40%;
    background: no-repeat 0 -6.5vh /150%;
}

.home-content {
    /* background-color: #f8f8f8; */
    overflow-y: scroll;
    width: 100%;
    height: 88%;
    -ms-overflow-style: -ms-autohiding-scrollbar;

    /* cross browser */
    -moz-appearance: none;
    /* Firefox */
    -webkit-appearance: none;
    /*safari and chrome*/
    appearance: none;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.home-content::-webkit-scrollbar {
    display: none;
    width: 0;
}

.ad-container {
    position: absolute;
    justify-self: flex-end;
    width: 100%;
    height: 80px;
    background-image: url('../src/img/ad2_imp.jpg');
    background-size: cover;
    aspect-ratio: 37 / 8;
    bottom: 0px;
    /* calc(var(--vadaro-max-width)-2px); */
    max-width: 372px;
    background-position: center center;
    /* transform: translateX(-5%); */
}

.ad {
    display: block;
    width: 100%;
    height: 100%;
}

/* .ad {
    display: block;
    width: 100%;
    height: 100%;
} */
.category-container {
    width: 100%;
    margin: 20px 0px;
    text-align: start;
}

.product-slider {
    height: 200px;
    padding: 0px 10px 0px 5px;
    /* margin: 20px; */
    transition: left 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    background-color: white;
    /* -webkit-overflow-scrolling: touch; */
    /* -ms-overflow-style: -ms-autohiding-scrollbar;
    -ms-overflow-style: none; */
    /* justify-content: space-between; */
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    margin: 15px;
    padding-right: 5px;
    padding-left: 5px;
    width: 110px;
    height: 150px;
    box-shadow: 1px 1px 5px #d0d0d0;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.img-fig {
    width: 122%;
    height: 70%;
    display: flex;
    align-items: center;
    text-align: center;
}

.JUICE .wrap-product {
    /* margin-bottom: 15px; */
}

.JUICE .img-fig {
    /* margin-bottom: 25px; */
    position: relative;
    bottom: 10px;
}

.JUICE .card-bottom {
    margin-top: 6px;
}

.card-bottom {
    display: flex;
    width: 90%;
    height: 20%;

    vertical-align: middle;
    justify-content: center;
    margin: 10px 10px 6px 10px;
}

.wrap-product {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.wrap-product:hover {
    cursor: pointer;
}

.product-img {
    /* display: block; */
    width: 100%;
    max-height: 120%;
    object-fit: contain;
    /* left: -5px; */
    position: relative;
}

.name-wrap {
    display: flex;
    width: 80%;
    align-items: center;
    vertical-align: middle;
    padding-left: 2px;
    height: 100%;
    margin-right: 1px;
}

.JUICE .name-wrap {
    /* margin-top: 12px; */
}

.product-name {
    width: 100%;
    height: 100%;
    white-space: normal;
    font-size: 0.8rem;
    font-family: var(--font-family-regular);
    font-weight: bold;
    word-break: keep-all;
}

.arrow-fig {
    width: 15%;
    height: 100%;
    /* text-align: end; */
    display: flex;
    flex-direction: column;
    justify-content: end;
    vertical-align: bottom;
    margin-bottom: 2px;
}

.arrow {
    object-fit: contain;
    height: auto;
}

/* search */
.search-container {
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-box {
    margin-top: 20px;
    border: 2px solid #fd9c3c;
    width: 95%;
    height: 30px;
    border-radius: 5px;
    text-align: start;
    vertical-align: middle;
    padding: 3px 0px;
    display: flex;
}

.bx-search {
    margin-top: 2.5px;
    margin-left: 20px;
    color: #969696;
    vertical-align: middle;
    margin-bottom: 2px;
}

.search-input {
    border-radius: 5px;
    border: none;
    vertical-align: middle;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    font-family: var(--font-family-light);
}

.product-container {
    width: 95%;
    height: 90%;
}

.company-title {
    margin: 10px 0px;
    text-align: start;
    padding-left: 10px;
    font-size: 25px;
    font-family: var(--font-family-extra-bold);
}

.product-list {
    padding: 10px;
    border-radius: 10px;
    box-shadow: 2px 1px 5px grey;
    width: 100%;
    height: 50%;
    overflow-y: scroll;
}

.category-wrap {
    margin: 15px 0px;
}

.category-name {
    padding-left: 15px;
    margin-bottom: 6px;
    /* font-weight: bold; */
    font-family: var(--font-family-extra-bold);
    font-size: 16px;
}

.category-title {
    text-align: start;
    margin-left: 3px;
    margin-bottom: 5px;
    font-family: var(--font-family-extra-bold);
    font-size: 18px;
}

.products {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.category-product,
.menu {
    text-align: center;
    border: 1px solid #dcdcdc;
    padding: 6px 15px;
    border-radius: 26px;
    margin: 5px;
    box-shadow: 2px 1px 1px 80% grey;
    font-size: 14px;
    height: 35px;
}

.recommend-container {
    width: 100%;
    margin-top: 20px;
    height: 30%;
}

.recommend-title {
    text-align: start;
    margin: 0px;
    padding-left: 10px;
    font-family: var(--font-family-extra-bold);
    font-size: 20px;
}

.recommend-wrap {
    margin: 10px 0px;
    box-shadow: 2px 1px 5px grey;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 20px 20px 7px;
    /* justify-content: center; */
}

.menu {
    margin: 5px 5px;
}

/* product detail */
.detail-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* .detail-container::after {
    content: '';
    display: block;
    clear: both;
} */

.detail-content {
    margin-bottom: 100px;
    height: 667px;
    /* height: 500px; */
}

.detail-content:nth-child(4) {
    margin-bottom: 14vw;
}

.nav-container {
    width: 30px;
    height: 80px;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
    justify-content: space-between;
    /* align-content: space-between; */
}

.nav {
    width: 15px;
    height: 15px;
    margin: auto;
    border-radius: 100%;
    border: 2px solid white;
}

.nav.active {
    background-color: white;
}

.check-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.check-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background: no-repeat center center/100% auto;
}

.name-container {
    box-shadow: 2px 1px 5px grey;
    border-radius: 10px;
    width: 90%;
    margin: auto;
    padding: 10px;
    font-family: var(--font-family-extra-bold);
    font-size: 50px;
    position: relative;
    top: -40px;
    height: 80px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.check-product-name {
    width: 90%;
    font-family: var(--font-family-bold);
    font-size: 30px;
    text-align: start;
    /* margin-left: 20px; */
    vertical-align: middle;
    word-break: keep-all;
}

.check-container {
    box-shadow: 2px 1px 5px grey;
    border-radius: 20px;
    width: 90%;
    margin: auto;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 15px 30px 15px;
}

.point {
    width: 100%;
    display: flex;
    margin-top: 30px;
}

.check-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ingredient-name {
    font-family: var(--font-family-bold);
    font-size: 1.7em;
    text-align: start;
}

.summary-name {
    text-align: start;
    font-family: var(--font-family-bold);
    margin-left: 2px;
    font-size: 1.2em;
}

.check-right {
    text-align: start;
    width: 30%;
    font-size: 1.5em;
    font-family: var(--font-family-bold);
    vertical-align: middle;
    padding: 5px 0px;
    word-break: keep-all;
}

.food-mileage {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.food-mileage-right {
    display: flex;
    padding: 0px;
}

.food-mileage-explain {
    padding: 0px;
    font-size: 1em;
    width: 100%;
}

.check-right > small {
    font-size: 0.5em;
    padding-left: 3px;
    margin: auto;
}

/* trace */
.trace-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 10px;
}

.trace-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: -50px;
    text-align: center;
}

.step-head {
    display: flex;
}

.step-detail {
    width: 100%;
    text-align: end;
    padding-top: 15px;
    padding-right: 15px;
}

.trace-icon {
    width: 90px;
    z-index: 2;
}

.step-name,
.step-date {
    font-family: 'S-CoreDream-4Regular';
    /* font-family: 'NanumSquare', sans-serif; */
    /* color: orange; */
    color: white;
    background-color: var(--beta-main-color);
    /* font-size: 12px; */
    font-size: 13px;
    margin-bottom: 0px;
    border-radius: 20px;
    width: 50px;
    padding: 4px 6px 2px 6px;
    text-align: center;
    display: inline-block;
    line-height: 20px;
}

.step-date {
    display: none;
}

.trace-img {
    /* 이미지 모양 mask */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;

    position: relative;
    top: -40px;
    display: inline-block;
    width: 95%;
    height: 150px;
    margin: auto;
}

.type01 {
    -webkit-mask-image: url('../src/icon/trace_step1.png');
    mask-image: url('../src/icon/trace_step1.png');
}

.type02 {
    -webkit-mask-image: url('../src/icon/trace_step2.png');
    mask-image: url('../src/icon/trace_step2.png');
}

.type03 {
    -webkit-mask-image: url('../src/icon/trace_step3.png');
    mask-image: url('../src/icon/trace_step3.png');
}

/* story */
.story-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-visual {
    background-size: cover;
    width: 100%;
    height: 180px;
    /* height: 19.4vh; */
}

.company-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -1px 1px 5px grey;
    border-radius: 50px;
    position: relative;
    top: -40px;
    margin: auto;
    width: 100px;
    height: 100px;
    background-size: cover;
    /* margin-bottom: -30px; */
    background-color: white;
    padding: 3px;
}

.company-logo {
    width: 100%;
    background-color: white;
    border-radius: 50px;
}

.story-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.story-title {
    font-family: var(--font-family-bold);
    font-size: 25px;
    text-align: start;
    margin-left: 10px;
}

.story-title::after {
    content: '';
    display: block;
    width: 45px;
    border-bottom: 3px solid #fd9c3c;
}

.story-content {
    padding: 30px 10px;
    display: block;
    width: 100%;
    word-break: keep-all;
    line-height: 25px;
    height: 320px;
}

/* src section */
.src-section {
    width: 100%;
    height: 100%;
    padding-top: 10px;
}

.src-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 15px 25px 15px 15px;
    /* padding: 15px 15px 15px 15px; */
    margin: auto;
    /* margin-bottom: 15vh; */
    margin-bottom: 60px;
    box-shadow: 2px 1px 5px grey;
    width: 90%;
    /* width: 100%; */
    /* height: calc(450px + 2vh); */
    height: calc(430px + 2vh);
    border-radius: 15px;
}

.src-page {
    position: absolute;
    /* left: 0px;
    bottom: -40px; */
    right: 20px;
    top: 17px;
    background-color: var(--beta-main-color);
    border-radius: 15px;
    color: white;
    font-size: 14px;
    padding: 2px 13px 2px 13px;
}

.src-page-text {
}

.src-step::-webkit-scrollbar {
    /* height: 2px; */
    /* height: 0px; */
    display: none;
}

.src-step::-webkit-scrollbar-thumb {
    /* background-color: var(--beta-main-color);
    border-radius: 6px; */
}

.src-step {
    display: flex;
    /* display: -webkit-inline-box; */
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    justify-content: space-between;

    /* justify-content: flex-start; */
    /* width: 97%; */
    /* height: 90%; */
    /* height: 500px; */
}

.src-title {
    font-family: var(--font-family-bold);
    font-size: 20px;
    /* text-align: start;
    margin-left: 10px; */
}

.src-wrap.active {
    /* width: 85%; */
    /* border-radius: 20px; */
    /* box-shadow: 2px 1px 5px grey; */
    /* height: calc(350px + 2.5vh); */
}

.src-wrap {
    display: flex;
    /* display: -webkit-inline-box; */
    justify-content: center;
    align-items: center;
    flex: 0 0;
    z-index: -1;
    flex-basis: 92%;
    padding: 15px 10px 15px 5px;
    height: calc(340px + 2vh);
}

.src-wrap.active > img {
    width: 96%;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

.src-wrap > img {
    width: 93%;
    box-shadow: 2px 1px 5px grey;
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

/* src-btn css */
.src-btn-wrap {
    /* display: block; */
    /* opacity: 0; */
    /* transition: all 0.8s ease-in-out;
    -webkit-transition: all 0.8s ease-in-out; */
}

.src-btn-wrap.active {
    /* display: block;
    opacity: 1; */
    /* transition: all 0.8s ease-in-out;
    -webkit-transition: all 0.8s ease-in-out; */
}

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

/* float button */
.float-wrap {
    /* width: 100%; */
    position: absolute;
    right: 0px;
    bottom: 0px;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.float-button {
    display: block;
    width: 33px;
    height: auto;
    margin: 15px;
}

.web-logo-container {
    /* background-color: #ff8401; */
    display: none;
    width: 50%;
    align-items: center;
    justify-content: center;
}

.web-logo {
    width: 25vw;
    margin-bottom: 10px;
}

@media (min-width: 420px) {
    .app-container {
        margin-left: 10vw;
    }

    .company-logo-container {
        /* top: -70px; */
    }
}

@media (max-width: 420px) {
    .ad-container {
        max-width: 335px;
    }
}

@media (min-width: 768px) {
    .web-logo-container {
        display: flex;
        /* display: flex; */
        padding-bottom: 200px;
    }
}

@media (max-width: 840px) {
    .src-btn-wrap {
        /* display: none; */
    }
}

@media (max-height: 667px) {
    .detail-content {
        /* height: 500px; */
        /* height: calc(var(--vh, 1vh) * 100); */
    }

    .detail-content:nth-child(2) {
        height: 550px;
    }

    .trace-img {
        /* 이미지 모양 mask */
        height: 18vh;
    }

    .story-visual {
        /* background-size: 100% 110%; */
    }
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: black;
    border-radius: 2px;
    opacity: 0.6;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-next:focus,
.carousel-control-prev:focus {
    color: #fff;
    opacity: 0.5;
}

/* 테스트  */
body > div {
    /* transform: translateY(-100px);
    transition: 0.4s 0.22s ease-in-out; */
}

/* .loading-container {
    height: 100px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */

/* .loading-container .loading {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
    animation: loading 0.5s infinite forwards;
} */

/* @keyframes loading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */
