/* 메인 상단 히어로 — /home/chabaro sec1 기반 */
.tabom-hero {
    margin-top: 70px;
    padding: 80px 0 20px;
}

.tabom-hero > .inner-128 {
    display: grid;
    grid-template-columns: minmax(0, 52fr) minmax(0, 44fr);
    column-gap: 48px;
    align-items: center;
}

.tabom-hero__text,
.tabom-hero__visual {
    min-width: 0;
}

.tabom-hero__headline {
    margin: 0 0 20px;
    color: #111;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.tabom-hero__roller {
    display: block;
    height: 1.35em;
    margin-bottom: 4px;
    overflow: hidden;
}

.tabom-hero__roller-track {
    display: block;
    will-change: transform;
}

.tabom-hero__roller-item,
.tabom-hero__headline-fixed {
    display: block;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.35;
}

.tabom-hero__roller-item {
    height: 1.35em;
    overflow: hidden;
    color: var(--primary, #773594);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tabom-hero__search {
    width: 100%;
    margin: 24px 0 20px;
}

.tabom-hero__search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 67px;
    padding: 0 20px 0 24px;
    border: 1.5px solid #eee;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.tabom-hero__search-box:focus-within {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.tabom-hero__search-box input {
    width: 100%;
    height: 100%;
    padding: 0 48px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 16px;
}

.tabom-hero__search-box input::placeholder {
    color: #b8b8b8;
}

.tabom-hero__search-btn {
    position: absolute;
    top: 50%;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary, #773594);
    cursor: pointer;
    transform: translateY(-50%);
}

.tabom-hero__search-btn svg {
    width: 29px;
    height: 29px;
}

.tabom-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tabom-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.tabom-hero__tag:hover {
    background: #e9ecef;
    color: #111;
}

.tabom-hero__banner-stack {
    --hero-peek: 64px;
    position: relative;
    padding: 36px 0 14px;
}

.tabom-hero__banner-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 640;
}

.tabom-hero__banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - var(--hero-peek));
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform;
}

.tabom-hero__banner-item[data-stack="0"] {
    z-index: 4;
    transform: translate3d(0, 0, 0);
}

.tabom-hero__banner-item[data-stack="1"] {
    z-index: 3;
    opacity: 0.94;
    pointer-events: none;
    transform: translate3d(calc(var(--hero-peek) * 0.5), -10px, 0);
}

.tabom-hero__banner-item[data-stack="2"] {
    z-index: 2;
    opacity: 0.88;
    pointer-events: none;
    transform: translate3d(var(--hero-peek), -22px, 0);
}

.tabom-hero__banner-card,
.tabom-hero__banner-img {
    display: block;
    width: 100%;
    height: 100%;
}

.tabom-hero__banner-card {
    overflow: hidden;
    border-radius: 22px;
}

.tabom-hero__banner-img {
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tabom-hero__banner-paging {
    position: absolute;
    right: 44px;
    bottom: 44px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.tabom-hero__banner-paging button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.tabom-hero__banner-paging button svg {
    width: 18px;
    height: 18px;
}

.tabom-hero__banner-count {
    display: inline-flex;
    gap: 4px;
}

.tabom-hero__banner-current {
    font-style: normal;
    font-weight: 800;
}

.tabom-hero__banner-total {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1200px) {
    .tabom-hero > .inner-128 {
        grid-template-columns: minmax(0, 50fr) minmax(0, 46fr);
        column-gap: 32px;
    }
}

@media (max-width: 1024px) {
    .tabom-hero {
        padding: 60px 0;
    }

    .tabom-hero > .inner-128 {
        display: block;
    }

    .tabom-hero__visual {
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .tabom-hero {
        padding: 48px 0;
    }

    .tabom-hero__headline {
        margin-bottom: 16px;
    }

    .tabom-hero__roller-item,
    .tabom-hero__headline-fixed {
        font-size: clamp(1.5rem, 6.5vw, 1.875rem);
        line-height: 1.4;
    }

    .tabom-hero__roller,
    .tabom-hero__roller-item {
        height: 1.4em;
    }

    .tabom-hero__roller-item {
        line-height: 1.4;
    }

    .tabom-hero__search {
        margin: 16px 0;
    }

    .tabom-hero__search-box {
        height: 62px;
        padding: 0 18px 0 20px;
    }

    .tabom-hero__search-box input {
        font-size: 15px;
    }

    .tabom-hero__tags {
        gap: 6px;
    }

    .tabom-hero__tag {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tabom-hero__banner-stack {
        --hero-peek: 48px;
        padding-top: 28px;
        padding-bottom: 10px;
    }

    .tabom-hero__banner-item[data-stack="1"] {
        transform: translate3d(calc(var(--hero-peek) * 0.5), -8px, 0);
    }

    .tabom-hero__banner-item[data-stack="2"] {
        transform: translate3d(var(--hero-peek), -16px, 0);
    }

    .tabom-hero__banner-card,
    .tabom-hero__banner-img {
        border-radius: 18px;
    }

    .tabom-hero__banner-paging {
        right: 36px;
        bottom: 36px;
    }
}

@media (max-width: 380px) {
    .tabom-hero__tag {
        padding: 7px 10px;
        font-size: 12px;
    }
}
