.ys-home {
    --ys-ink: #1c282b;
    --ys-secondary: #465358;
    --ys-rule: #ced3d1;
    --ys-paper: #f8f8f5;
    --ys-red: #a32629;
    padding-top: 80px;
    color: var(--ys-ink);
    font-family: "Yusung Text", "Noto Sans KR", "Malgun Gothic", sans-serif;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.ys-home *, .ys-home *::before, .ys-home *::after { box-sizing: border-box; }
.ys-home :is(h1,h2,h3,p,ul) { margin: 0; }
.ys-home p { color: #455967; }
.ys-home :where(a:any-link) { color: inherit; text-decoration: none; }
.ys-home :is(a,summary):focus-visible { outline: 3px solid #aa2533; outline-offset: 2px; }
.ys-home a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ys-home .ys-wrap { width: min(1200px, calc(100% - clamp(36px, 9vw, 144px))); margin-inline: auto; }
.ys-hero { position: relative; overflow: hidden; }
.ys-home .ys-hero-img { display: block; width: 100%; height: clamp(165px, 26vw, 352px); object-fit: cover; object-position: 22% center; }
.ys-hero-motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% center; opacity: 0; pointer-events: none; }
.ys-hero-motion.is-playing { opacity: 1; }
.ys-hero-signature {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
    background: radial-gradient(ellipse at center, rgb(5 15 25 / 48%), transparent 75%);
}
.ys-hero-brand {
    display: flex; align-items: center; gap: clamp(10px, 1.55vw, 26px);
}
.ys-hero-mark {
    display: block; width: clamp(40px, 6.3vw, 94px); height: auto;
}
.ys-hero-name {
    display: block; white-space: nowrap; color: white; font-size: clamp(26px, 3.8vw, 56px);
    font-weight: 700; letter-spacing: -.045em; line-height: 1.35; text-shadow: 0 2px 8px #08152199;
}
.ys-hero-name small { margin-right: .1em; font-size: .55em; font-weight: 500; vertical-align: .1em; }
.ys-hero-name:lang(en) { font-size: clamp(18px, 3.15vw, 48px); letter-spacing: -.025em; }
@media (prefers-reduced-motion: no-preference) {
    .ys-hero[data-intro] .ys-hero-brand { animation: ys-brand-arrive 3s cubic-bezier(.42,0,.2,1) both paused; }
    .ys-hero[data-intro] .ys-hero-mark { animation: ys-mark-turn 2.85s cubic-bezier(.35,0,.2,1) both paused; }
    .ys-hero[data-intro] .ys-hero-name { animation: ys-name-reveal 2.9s ease-in-out both paused; }
    .ys-hero[data-intro="playing"] :is(.ys-hero-brand, .ys-hero-mark, .ys-hero-name) { animation-play-state: running; }
}
@keyframes ys-brand-arrive {
    from { transform: translateX(var(--arrival-offset, clamp(-420px, -22vw, -65px))); }
    to { transform: translateX(0); }
}
@media (max-width: 600px) {
    .ys-hero-brand { --arrival-offset: -2vw; }
}
@keyframes ys-mark-turn {
    0% { transform: rotate(-360deg); opacity: 0; }
    14% { opacity: 1; }
    100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes ys-name-reveal {
    0%, 26% { clip-path: inset(-10% 100% -10% -2%); opacity: 0; transform: translateX(-.22em); }
    88%, 100% { clip-path: inset(-10% -2%); opacity: 1; transform: translateX(0); }
}
.ys-home .ys-block { padding: clamp(44px, 5vw, 74px) 0; }
.ys-home h2 {
    color: var(--ys-ink); font-size: clamp(25px, 2.45vw, 35px);
    font-weight: 700; letter-spacing: -.045em; line-height: 1.24;
}
.ys-home .ys-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.ys-home .ys-heading p, .ys-home .ys-business-intro p {
    margin: 9px 0 0; font-size: 16px; line-height: 1.7; color: var(--ys-secondary);
}
.ys-home .ys-heading > a, .ys-home .ys-section-links a, .ys-home .ys-catalog-foot a {
    display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
    color: var(--ys-ink); font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none;
}
.ys-home .ys-heading > a { flex-shrink: 0; }
.ys-home .ys-heading > a:is(:hover,:focus-visible), .ys-home .ys-section-links a:is(:hover,:focus-visible),
.ys-home .ys-catalog-foot a:is(:hover,:focus-visible) { color: var(--ys-red); text-decoration: underline; text-underline-offset: 4px; }
.ys-home .ys-section-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.ys-home .ys-business { background: var(--ys-paper); border-bottom: 1px solid var(--ys-rule); }
.ys-home .ys-business-layout { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(0, 1.6fr); gap: clamp(32px, 6.2vw, 94px); }
.ys-home .ys-business-intro p { max-width: 33ch; margin: 15px 0 12px; }
.ys-home .ys-businesses { align-self: start; border-top: 2px solid var(--ys-ink); }
.ys-home .ys-businesses a {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr) 24px;
    gap: 20px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--ys-rule);
    color: var(--ys-ink); text-decoration: none;
}
.ys-home .ys-businesses h3 { color: inherit; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
.ys-home .ys-businesses p { font-size: 15px; line-height: 1.6; color: var(--ys-secondary); }
.ys-home .ys-row-arrow { align-self: center; justify-self: end; color: var(--ys-red); font: 20px/1 Arial, sans-serif; }
.ys-home .ys-businesses a:is(:hover,:focus-visible) h3 { text-decoration: underline; text-underline-offset: 5px; }
.ys-home .line-brands {
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0 clamp(16px, 2.2vw, 34px);
    margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ys-ink);
}
.ys-home .line-brands li { min-width: 0; border-bottom: 1px solid var(--ys-rule); }
.ys-home .line-brands li > a:first-child {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; height: 100%; min-height: 0; padding: 18px 0 16px; text-decoration: none;
}
.ys-home .line-brands li > a:first-child::after { display: none; }
.ys-home .line-brands a:is(:hover,:focus-visible) strong { color: var(--ys-red); text-decoration: underline; text-underline-offset: 3px; }
.ys-home .line-logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 41px; width: 100%; }
.ys-home .line-logo > img { width: min(124px, 90%); height: 29px; object-fit: contain; object-position: left center; }
.ys-home .line-logo:has(.line-former) > img { height: 24px; }
.ys-home .line-former { display: flex; align-items: center; gap: 4px; color: var(--ys-secondary); font-size: 10px; line-height: 1.2; }
.ys-home .line-former img { width: 31px; height: auto; }
.ys-home .line-copy strong { display: block; color: var(--ys-ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.ys-home .line-copy > span { display: block; margin-top: 4px; color: var(--ys-secondary); font-size: 13px; line-height: 1.5; }

.ys-home #maingallery { background: #f3f4f2; border-block: 1px solid var(--ys-rule); }
.ys-home #maingallery .ys-heading { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--ys-ink); }
.ys-home .hot-expand { max-width: none; margin: 0; }
.ys-home .hot-expand summary {
    display: flex; align-items: center; gap: 9px; margin: 2px 0 8px; min-height: 44px; padding: 4px 0;
    list-style: none; color: var(--ys-ink); font-size: 14px; font-weight: 600;
}
.ys-home .hot-expand summary::-webkit-details-marker { display: none; }
.ys-home .hot-expand summary::before { content: "+"; color: var(--ys-red); font: 20px/1 Arial,sans-serif; }
.ys-home .hot-expand[open] summary::before { content: "−"; }
.ys-home .ys-sample { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; }
.ys-home .hot-expand[open] + .ys-sample { display: none; }
.ys-home .hot-item-card { min-width: 0; padding: 0; color: var(--ys-ink); text-align: left; text-decoration: none; }
.ys-home .hot-item-card img {
    display: block; width: 100%; height: auto; aspect-ratio: 1.7; padding: 7px;
    object-fit: contain; background: #fff; border: 1px solid #dadedb;
}
.ys-home .hot-item-card strong { margin: 0; padding: 9px 0 0; color: var(--ys-ink); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.018em; }
.ys-home .hot-item-card:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: 3px; }
.ys-home .hot-item-card .hot-name { padding-top: 3px; color: var(--ys-ink); font-size: 14px; line-height: 1.45; }
.ys-home .hot-item-card .hot-category { padding-top: 3px; color: var(--ys-secondary); font-size: 13px; line-height: 1.45; }
.ys-home .ys-catalog-foot { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 3px; border-top: 1px solid var(--ys-rule); }
.ys-home .ys-contact { padding: clamp(28px, 3.5vw, 48px) 0; background: white; }
.ys-home .ys-contact .ys-heading { align-items: center; margin-bottom: 0; }
.ys-home .ys-contact h2 { font-size: clamp(22px, 2.1vw, 30px); }
.ys-home .ys-contact p { margin-top: 5px; }
.ys-home .ys-contact .ys-home-button { gap: 18px; min-height: 46px; padding: 10px 19px; background: #982624; color: #fff; }
.ys-home .ys-contact .ys-home-button:is(:hover,:focus-visible) { background: #751b1a; color: #fff; }
@media (max-width: 900px) {
    .ys-home .ys-business-layout { grid-template-columns: minmax(175px,.62fr) minmax(0,1.4fr); gap: 32px; }
    .ys-home .ys-businesses a { grid-template-columns: minmax(0,1fr) 22px; gap: 4px 12px; padding: 12px 0; }
    .ys-home .ys-businesses p { grid-column: 1; }
    .ys-home .ys-row-arrow { grid-area: 1 / 2 / 3; }
    .ys-home .line-brands { column-gap: 14px; }
}
@media (max-width: 800px) {
    .ys-home .ys-sample { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ys-home .ys-sample > a:nth-child(n+7) { display: none; }
}
@media (max-width: 680px) {
    .ys-home .ys-wrap { width: min(1200px, calc(100% - 32px)); }
    .ys-home .ys-business-layout { grid-template-columns: 1fr; gap: 12px; }
    .ys-home .ys-business-intro p { max-width: 47ch; margin: 9px 0 1px; }
    .ys-home .ys-businesses a { padding: 13px 0; }
    .ys-home .ys-heading { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
    .ys-home .ys-heading p, .ys-home .ys-business-intro p { font-size: 15px; line-height: 1.6; }
    .ys-home .line-brands { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
    .ys-home .line-brands li > a:first-child { gap: 4px; padding: 10px 0; }
    .ys-home .line-logo { height: 35px; }
    .ys-home .line-logo > img { width: min(112px,95%); height: 25px; }
    .ys-home .line-former { white-space: nowrap; }
    .ys-home .line-copy > span { display: none; }
    .ys-home .ys-contact .ys-heading { flex-wrap: wrap; row-gap: 14px; }
}
@media (max-width: 600px) {
    .ys-home .ys-sample { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
    .ys-home .ys-sample > a:nth-child(n+5) { display: none; }
    .ys-home .ys-catalog-foot { margin-top: 16px; }
}
@media (max-width: 575px) { .ys-home { padding-top: 75px; } }
@media (min-width: 1025px) {
    html:lang(en) body:has(.ys-home) #header .main-nav #gnb > li > a,
    html:lang(en) body:has(.ys-home) #header .shop-picker > summary { font-size: clamp(15px, 1.24vw, 17px); }
}

.ys-home-tools {
    --edge: 16px;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    position: fixed; z-index: 950; right: max(var(--edge), env(safe-area-inset-right));
    bottom: max(var(--edge), env(safe-area-inset-bottom));
    max-width: calc(100% - max(var(--edge), env(safe-area-inset-left)) - max(var(--edge), env(safe-area-inset-right)));
    max-height: calc(100dvh - 90px - max(var(--edge), env(safe-area-inset-bottom)));
    pointer-events: none;
}
.ys-home-tools > .top { position: static; flex: none; pointer-events: auto; line-height: 0; }
.ys-home-tools > .top img { display: block; }
.ys-product-notice[hidden] { display: none; }
.ys-product-notice {
    position: relative; isolation: isolate; width: 360px; max-width: 100%; min-height: 0; pointer-events: auto;
    max-height: 70vh; overflow: auto; padding: 0; background: white; color: #172d3a;
    border: 1px solid #bcc9cf; border-radius: 8px;
    box-shadow: 0 4px 18px rgb(21 43 57 / 14%); text-align: left; line-height: 1.4;
}
.ys-product-notice button {
    z-index: 1; min-height: 44px; margin: 0; border: 0; background: transparent; color: #495d68; font: inherit; cursor: pointer;
}
.ys-product-notice .ys-notice-close { position: absolute; top: 0; right: 0; min-width: 44px; padding: 0; font: 22px/1 sans-serif; }
.ys-notice-brand { display: flex; align-items: center; gap: 8px; padding: 12px 44px 8px 15px; min-height: 44px; box-sizing: border-box; }
.ys-notice-brand img { display: block; width: 77px; max-width: 100%; height: auto; }
.ys-notice-brand .ys-new-badge { padding: 2px 5px; background: #faeaec; color: #992638; font-size: 12px; letter-spacing: .08em; }
.ys-notice-foot { display: flex; justify-content: flex-end; margin: 0 15px; border-top: 1px solid #d8e1e5; }
.ys-home .ys-notice-link { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 6px 15px; color: #1c485f; text-decoration: none; }
.ys-notice-link + .ys-notice-link { border-top: 1px solid #edf0f2; }
.ys-notice-link img { display: block; width: 100%; height: 44px; object-fit: contain; }
.ys-notice-link strong, .ys-notice-link small { display: block; }
.ys-notice-link strong { font-size: 18px; line-height: 1.2; }
.ys-notice-link small { font-size: 13px; line-height: 1.4; color: #495c66; }
.ys-product-notice .ys-notice-today { position: relative; flex: none; padding: 0 3px; font-size: 12px; }
.ys-notice-link:hover, .ys-notice-today:hover { text-decoration: underline; text-underline-offset: 3px; }
.ys-notice-close:hover { color: #992638; }
.ys-product-notice :is(a, button):focus-visible { outline: 2px solid #942536; outline-offset: -2px; }
@media (max-width: 680px), (max-height: 500px) and (pointer: coarse) {
    .ys-home-tools {
        position: static; display: block; max-width: none; max-height: none;
        padding: 0; background: var(--ys-paper); pointer-events: auto;
    }
    .ys-home-tools:has(.ys-product-notice:not([hidden])) {
        padding: 12px 16px 0;
    }
    .ys-home-tools:has(.ys-product-notice:not([hidden])) + .ys-business {
        padding-top: 28px;
    }
    .ys-home-tools > .top {
        position: fixed; right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom)); z-index: 950;
    }
    .ys-home-tools > .top img { width: 42px; height: 42px; }
    .ys-product-notice {
        width: 100%; max-height: none; overflow: visible;
        box-shadow: 0 2px 10px rgb(21 43 57 / 9%);
    }
    .ys-home .ys-notice-link { grid-template-columns: 52px minmax(0,1fr) auto; padding-inline: 12px; }
    .ys-notice-brand { padding-inline-start: 12px; }
    .ys-notice-brand img { width: 68px; }
    .ys-notice-foot { margin: 0 12px; }
}

.ys-new-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.ys-new-badge {
    display: inline-block; flex: none; padding: 3px 5px; border-radius: 3px;
    background: #ac2132; color: #fff; font: 700 11px/1.15 Arial, sans-serif;
    letter-spacing: .04em; white-space: nowrap;
}
