/* icefood common style */

.inner {
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* sticky footer — 콘텐츠가 적어도 푸터가 항상 뷰포트 바닥에 붙도록 */
.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-page,
.sub-page {
    flex: 1;
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e6eee3;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.site-header__logo a {
    display: block;
    width: 230px;
}

.site-header__logo img {
    display: block;
    width: 100%;
    transition: filter 0.22s ease;
}

.site-header__menu-btn {
    display: none;
}

.site-header__nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__item {
    position: relative;
}

.site-header__item--has-sub::after {
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    height: 12px;
    content: "";
}

.site-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 15px;
    color: #173321;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.18s ease;
}

.site-header__nav a.is-active,
.site-header__nav a:hover {
    color: #57b43e;
}

.site-header__nav a[aria-disabled="true"],
.site-footer__nav a[aria-disabled="true"] {
    cursor: default;
}

.site-header__nav .site-header__subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 150px;
    padding: 10px;
    background: #fff;
    border: 1px solid #f8fbf6;
    box-shadow: 0 0px 10px rgba(23, 51, 33, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.18s ease, visibility 0s linear 0.18s, transform 0.18s ease;
}

.site-header__item--has-sub:hover .site-header__subnav,
.site-header__item--has-sub:focus-within .site-header__subnav {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.18s ease, visibility 0s linear 0s, transform 0.18s ease;
}

.site-header__nav .site-header__subnav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 16px;
    color: #173321;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    justify-content: center;
}

.site-header__subnav a.is-active,
.site-header__subnav a:hover {
    background: #f8fbf6;
    color: #57b43e;
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__logo img {
    filter: brightness(0) invert(1);
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__nav a {
    color: #fff;
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__nav a.is-active,
.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__nav a:hover {
    color: #fff;
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__subnav a {
    color: #173321;
}

.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__subnav a.is-active,
.site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__subnav a:hover {
    color: #57b43e;
}

.site-footer {
    padding: 40px 0 25px;
    background: #173321;
    color: #fff;
}

.site-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

.site-footer__logo {
    display: block;
    width: 188px;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.site-footer__brand p,
.site-footer__copy {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 28px;
    padding-top: 8px;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer__info {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__info dl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
}

.site-footer__info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__info dt {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 700;
}

.site-footer__info dd {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.site-footer__bottom {
    margin-top: 28px;
}

.site-footer__copy {
    color: rgba(255, 255, 255, 0.48);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 25px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #57b43e;
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(87, 180, 62, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease, background 0.2s ease;
    z-index: 100;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0s linear 0s, transform 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
    background: #3f8f2d;
}

.back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 6px 18px rgba(87, 180, 62, 0.3), 0 0 0 4px rgba(87, 180, 62, 0.2);
}

/* ============================================================ */
/* Responsive */
/* ============================================================ */
@media (max-width: 1400px) {
    /* Layout: 1440px inner padding defaults cover this range. */
}

@media (max-width: 1024px) {
    .site-header__inner {
        min-height: 64px;
        align-items: center;
        flex-direction: row;
    }

    .site-header__logo a {
        width: 160px;
    }

    .site-header__item--has-sub::after {
        display: none;
    }

    .site-header__menu-btn {
        display: inline-flex;
        position: relative;
        z-index: 102;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .site-header__menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #173321;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease, background 0.18s ease;
    }

    .site-header.is-main-transparent:not(.is-solid):not(.is-menu-open) .site-header__menu-btn span {
        background: #fff;
    }

    .site-header.is-menu-open .site-header__menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-menu-open .site-header__menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .site-header__menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 101;
        width: min(82vw, 380px);
        height: 100dvh;
        padding-top: 64px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: -18px 0 36px rgba(23, 51, 33, 0.12);
        opacity: 1;
        visibility: hidden;
        transform: translateX(100%);
        transition: visibility 0s linear 0.24s, transform 0.24s ease;
    }

    .site-header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 15px 18px;
    }

    .site-header__nav li {
        border-bottom: 1px solid #f8fbf6;
    }

    .site-header__nav > ul > li:last-child {
        border-bottom: none;
    }

    .site-header__nav a {
        display: block;
        min-height: 0;
        padding: 15px 2px;
        color: #173321;
        font-size: 17px;
    }

    .site-header__nav .site-header__subnav {
        position: static;
        display: flex;
        min-width: 0;
        margin: -4px 0 10px;
        padding: 0 0 0 16px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .site-header__item--has-sub:hover .site-header__subnav,
    .site-header__item--has-sub:focus-within .site-header__subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .site-header__subnav li {
        border-bottom: none;
    }

    .site-header__nav .site-header__subnav a {
        min-height: 0;
        padding: 8px 0;
        color: #526b55;
        font-size: 15px;
        justify-content: flex-start;
    }

    .site-header__subnav a.is-active,
    .site-header__subnav a:hover {
        background: transparent;
        color: #57b43e;
    }

    .site-header.is-menu-open .site-header__nav {
        visibility: visible;
        transform: translateX(0);
        transition: visibility 0s linear 0s, transform 0.24s ease;
    }

    /* Footer */
    .site-footer {
        padding: 48px 0 32px;
    }

    .site-footer__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .site-footer__nav {
        justify-content: flex-start;
        gap: 10px 20px;
        padding-top: 0;
    }

    .site-footer__info {
        margin-top: 32px;
        padding-top: 24px;
    }

    .site-footer__info dl {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__info div {
        align-items: flex-start;
    }

    .site-footer__info dt {
        width: 60px;
        flex: 0 0 60px;
    }

    /* Back to top */
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .site-header__nav {
        width: min(82vw, 360px);
    }
}
