/*
기본 CSS를 작성합니다
기본으로 작성되는 CSS는 1199px보다 큰 화면에서 작동 됩니다.
*/

section {
    width: 100%;
    margin: 0 auto;
}

.hero-section {
    width: 100%;
    max-width: 98rem;
    height: 15rem;
    margin: 8rem auto 0;
    transition: all 0.3s ease;
}

.hero-content {
    width: 100%;
    height: 100%;
    padding: 3rem 5rem;
}

.title-wrapper {
    width: 100%;
    text-align: center;
    padding: 0 3rem;
    margin: 1rem 0;
}

.breadcrumb li, .breadcrumb li a {
    font-family: "Noto Sans KR", sans-serif;
    color: var(--s2-ink-3, #999);
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--s2-ink-3, #999);
}

.breadcrumb-item.active, .breadcrumb-item.active a {
    color: var(--brand-color);
}

.title-wrapper span {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-color);
}

.list-group {
    margin: 0 7.5rem;
    flex-wrap: wrap;
    justify-content: center;
}


.list-group-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border-radius: 1.375rem !important;
    margin: .2rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.list-group-item.active {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    margin: .2rem !important;
}


.menu-section {
    width: 100%;
    max-width: 98rem;
    transition: all 0.3s ease;
    min-height: 50rem;
}

.tab-content {
    margin-bottom: 5rem;
}

.menu-wrapper {
    padding: 5rem 8rem;
    justify-content: space-between;
}

.swiper-button-prev, .swiper-button-next {
    color: var(--brand-color);
}

.swiper-pagination-bullet {
    background-color: var(--brand-color);
}

.menu-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    /*height: 100%;*/
    object-fit: cover;
}

.menu-info-wrapper {
    padding: 5rem 0 0 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-info-grid {
    display: grid;
    height: 100%; /* 컨테이너의 높이를 부모 요소에 맞게 설정합니다. */
    grid-template-rows: auto 1fr; /* 첫 번째 행은 내용에 맞게, 두 번째 행은 남은 공간을 차지하도록 설정합니다. */
    width: 100%
}

.menu-text-wrapper {
    grid-row: 1;
    width: 100%
}

.menu-photo {
    grid-row: 2;
    align-self: end;
    width: 100%;
    overflow: hidden;
}

.menu-a-name {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.menu-a-price {
    display: block;
    color: var(--brand-color);
    font-weight: bold;
}

.menu-a-desc {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--s2-ink-2, #666);
    margin: 1rem 0;
    padding-right: 3rem;
}

.swiper2 .swiper-slide {
    width: 8rem;
}


.menu-photo {
    /*display: flex;*/
}

.menu-img {
    width: 8rem;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.menu-b-wrapper {
    padding: 5rem 8rem;
    justify-content: space-between;
}

.menu-b-name-area, .menu-b-price {
    /*flex-grow: 1;*/
    /*position: relative;*/
    /* 점선 리더를 가리는 용도라 반드시 지면 바탕색과 같아야 한다 */
    background-color: var(--s2-bg, white);
    z-index: 1;
    padding-left: 3px;
    padding-right: 3px;
    display: flex;
    align-items: center;

}

.menu-list {
    position: relative;
}

.menu-line {
    position: absolute;
    left: 0;
    top: 50%;
    content: "";
    flex: 1;
    border-bottom: 1px dashed var(--s2-line, #ccc);
    width: 100%;
    z-index: 0;
}

.menu-b-name {
    font-family: 'Noto Sans KR', sans-serif;
    margin-right: 4px;
}

.menu-tag-best,
.menu-tag-sig,
.menu-tag-new,
.menu-tag-event {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: bold;
    margin-left: 2px;
    padding: 2px 5px 3px;
    color: white;
    word-break: keep-all;
}

.menu-tag-best {
    background-color: red;
}

.menu-tag-new {
    background-color: #FFBB00;
}

.menu-tag-event {
    background-color: #8763FB;
}

.menu-b-price {
    font-weight: bold;
}

.menu-b-desc {
    display: inline-flex;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    color: var(--s2-ink-3, #B0B0B0);
    padding: 3px;
}

.menu-c-wrapper {
    padding: 5rem 8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}


.menu-c-img-wrapper {
    max-width: 25rem;
    text-align: center;
    margin: 30px auto;
}

.menu-c-img-wrapper img {
    width: 100%;
    aspect-ratio: 1/1.4;
}

.viewer-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
}


/*테스크탑 (가로 해상도가 1200px 보다 작은 화면에 적용)*/
@media (max-width: 1199px) {

    .hero-section {
        height: 10rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .menu-info-wrapper {
        padding: 3rem 0 0 3rem;
    }

    .menu-img {
        width: 6rem;
    }

    .menu-b-wrapper {
        padding: 5rem 2rem;
    }

    .menu-c-wrapper {
        padding: 5rem 2rem;
    }

}

/*태블릿 디바이스 (가로 해상도가 992px 보다 작은 화면에 적용)*/
@media (max-width: 991px) {

    .list-group {
        margin: 0 3rem;
    }

    .menu-wrapper {
        padding: 5rem 4rem;
    }

    .menu-info-wrapper {
        padding: 2rem 0 0 2rem;
    }

    .menu-img {
        width: 5.5rem;
    }

    .menu-b-wrapper {
        padding: 5rem 3rem;
    }

    .menu-c-img-wrapper {
        max-width: 20rem;
    }

}

/*가로모드 모바일 디바이스 (가로 해상도가 768px 보다 작은 화면에 적용)*/
@media (max-width: 767px) {

    .menu-wrapper {
        padding: 2rem;
    }

    .menu-info-wrapper {
        padding: 0 5rem 2rem 5rem;
        height: 30rem;
    }

    .menu-text-wrapper {
        grid-row: 2;
    }

    .menu-photo {
        grid-row: 1;
        align-self: start;
        text-align: center;
    }


    .swiper-button-next, .swiper-button-prev {
        position: absolute;
        top: 70%
    }

    .menu-a-desc {
        padding-right: 0;
    }

    .swiper2 {
        margin-top: 1rem;
        /*display: none;*/
    }

    .menu-c-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .menu-c-img-wrapper {
        max-width: 25rem;
    }

}

/*세로모드 모바일 디바이스 (가로 해상도가 576px 보다 작은 화면에 적용)*/
@media (max-width: 575px) {

    .hero-section {
        height: 8rem;
        margin-top: 6rem;
    }

    .title-wrapper {
        padding: 0;
        margin: 0 auto;
    }

    .list-group {
        margin: 0
    }

    .list-group-item {
        height: 2rem;
        font-size: .8rem;
        padding: 0 1rem;
    }

    .menu-info-wrapper {
        padding: 0;
    }

    .menu-text-wrapper {
        padding: 0 2rem;
    }

    .swiper0 {
        position: relative;
    }

    .swiper-button-next, .swiper-button-prev {
        position: absolute;
        top: 65%
    }

    .menu-b-wrapper {
        padding: 5rem 1rem;
    }

    .menu-b-name {
        font-size: 0.8rem;
    }

    .menu-b-price {
        font-size: .8rem;
    }

    .menu-tag-best,
    .menu-tag-sig,
    .menu-tag-new,
    .menu-tag-event {
        font-size: .5rem;
    }


}


/* ============================================================
   메뉴 목록 가로 밀림 — 2026-09-03
   ------------------------------------------------------------
   .menu-b-wrapper 에 부트스트랩 .row 가 함께 붙어 있어
   좌우로 -12px 씩(--bs-gutter-x 절반) 삐져나온다.
   .row 는 같은 크기의 패딩을 가진 .container 안에 있을 때를 전제로 한
   음수 마진인데, 여기서는 그 컨테이너가 없어 문서가 24px 넓어졌다
   (390px 화면에서 문서 402px).
   → 음수 마진만 없애고, 자식들의 좌우 거터는 그대로 둔다.
   ============================================================ */
.menu-b-wrapper.row,
.menu-c-wrapper.row {
    margin-left: 0;
    margin-right: 0;
}
