@charset "utf-8";
/* =====================================================================
   찹찹당 브랜드 소개(page/chapchap.php)
   - 회사소개(about.php)와 같은 결: 왼쪽 큰 영문 제목(Inter 700) + 한글 부제, 둥근 사진 박스, 좌우 여백 --sm-edge
   - 구성 레퍼런스 eis-lab.de: 맛마다 판 색이 바뀌는 냉동 찹쌀떡 → 선으로 나눈 수제 메뉴 칸 → 비껴 겹친 현장 카드
   - 브레드크럼은 회사소개와 같은 자리(첫 화면 왼쪽 위), 하위 메뉴 탭 없음
   ===================================================================== */

/* 서브 상단 사진 배너·하위 메뉴 탭은 쓰지 않음 — 헤더 바로 아래에서 첫 화면 시작 */
body:has(#sub-chapchap) .sm-subhead { display: none; }
body:has(#sub-chapchap) #container, body:has(#sub-chapchap) #container_wr { background: var(--sm-white); }
body:has(#sub-chapchap) #container { padding-top: 0; padding-bottom: 0; }

.sm-cc {
    --cc-pad: var(--sm-edge);
    --cc-ease: cubic-bezier(.22, .8, .24, 1);
    color: var(--sm-ink); overflow-x: clip;
}
#sub-chapchap.sm-cc { background: var(--sm-white); }
.sm-cc .sm-cc-br { display: inline; }
@media (max-width: 768px) { .sm-cc .sm-cc-br { display: none; } }

/* ---- 공통 글자(회사소개와 같은 값) ---- */
.sm-cc-display { margin: 0; font-family: var(--sm-font-display); font-size: clamp(44px, 7vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: var(--sm-ink); }
.sm-cc-text { margin: 20px 0 0; font-size: 16px; line-height: 1.95; color: var(--sm-ink-2); word-break: keep-all; }
.sm-cc-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.sm-cc-line > span { display: inline-block; }

/* 테두리 알약 버튼(메인 About Slowmil · View all news 와 같음): 아래에서 메인색이 차오르고 화살표가 밀려남 */
.sm-cc-pill {
    position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; box-sizing: border-box;
    border: 1.5px solid var(--sm-primary); border-radius: 999px; background: transparent; font-size: 16px; font-weight: 700; text-decoration: none;
    transition: color .35s ease, border-color .35s ease;
}
.sm-cc-pill:link, .sm-cc-pill:visited { color: var(--sm-primary); }
.sm-cc-pill::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--sm-primary); transform: translateY(101%); transition: transform .45s var(--cc-ease); }
.sm-cc-pill:hover, .sm-cc-pill:focus-visible { color: var(--sm-white); }
.sm-cc-pill:hover::before, .sm-cc-pill:focus-visible::before { transform: none; }
.sm-cc-pill i { transition: transform .4s var(--cc-ease); }
.sm-cc-pill:hover i { transform: translateX(6px); }
.sm-cc-pill:active { transform: scale(.96); }

/* ---- 브레드크럼(회사소개와 같은 모양) ---- */
.sm-cc-crumb { position: relative; z-index: 5; }
.sm-cc-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--sm-ink-3); }
.sm-cc-crumb ol > li { display: inline-flex; align-items: center; gap: 10px; }
.sm-cc-crumb ol > li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.sm-cc-crumb a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; transition: color .2s ease; }
.sm-cc-crumb a:hover, .sm-cc-crumb a:focus-visible { color: var(--sm-mango); }
.sm-cc-crumb i { font-size: 17px; }
.sm-cc-crumb-here { font-weight: 700; color: var(--sm-ink); }
.sm-cc-crumb-menu { position: relative; }
.sm-cc-crumb-menu > button { display: inline-flex; align-items: center; gap: 4px; margin: -6px -8px; padding: 6px 8px; border: 0; border-radius: 4px; background: none; font: inherit; color: inherit; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.sm-cc-crumb-menu > button svg { transition: transform .25s ease; }
.sm-cc-crumb-menu > button:hover, .sm-cc-crumb-menu.is-open > button { color: var(--sm-ink); background: color-mix(in srgb, var(--sm-ink) 5%, transparent); }
.sm-cc-crumb-menu.is-open > button svg { transform: rotate(180deg); }
.sm-cc-crumb-menu > ul {
    position: absolute; top: calc(100% + 10px); left: -8px; min-width: 168px; margin: 0; padding: 8px; list-style: none; border-radius: 8px; background: var(--sm-white);
    box-shadow: 0 0 0 1px var(--sm-line), 0 16px 40px rgba(18, 18, 18, .12);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .25s var(--cc-ease), visibility 0s linear .25s;
}
.sm-cc-crumb-menu > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sm-cc-crumb-menu.is-open > ul { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sm-cc-crumb-menu li a { display: block; padding: 10px 12px; border-radius: 4px; font-size: 15px; color: var(--sm-ink-2); white-space: nowrap; }
.sm-cc-crumb-menu li a:hover, .sm-cc-crumb-menu li a:focus-visible { color: var(--sm-ink); background: color-mix(in srgb, var(--sm-ink) 5%, transparent); }
.sm-cc-crumb-menu li a.is-active { font-weight: 700; color: var(--sm-mango); }
@media (hover: hover) {
    .sm-cc-crumb-menu:hover > ul { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .sm-cc-crumb-menu:hover > button svg { transform: rotate(180deg); }
}


/* ---- 1. 첫 화면: 사진 없이 글자만. 큰 제목 세 단어를 지그재그로(Chap 왼쪽 / Chap 오른쪽 / Dang 왼쪽), 빈자리에 한 문장·소개·아래로 링크 ---- */
.sm-cc-hero { display: flex; flex-direction: column; min-height: max(560px, calc(100svh - 40px)); padding: calc(var(--sm-hd-total) + 32px) var(--cc-pad) clamp(40px, 4vw, 64px); box-sizing: border-box; background: var(--cc-flavor, #ecd8bd); transition: background-color .8s ease; }
/* 첫 화면과 맛 고르기 색 판을 한 면으로 잇기 */
#sm-cc-flavors.sm-cc-sec { padding-top: 0; }
.sm-cc-hero-text { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 48px; }
/* 큰 제목: 글자마다 아래를 기준으로 --s 만큼 늘어남(스크립트가 마우스 거리로 정함) */
/* 글자 크기는 화면 폭에 맞춰 크게(스크롤이 길어져도 됨). 위 .28em 은 글자가 늘어날 자리(브레드크럼과 겹치지 않게) */
.sm-cc-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--hf) * 1.45) minmax(0, 1fr); column-gap: clamp(20px, 2.5vw, 48px); row-gap: .04em; align-items: center; padding-top: .28em; --hf: clamp(64px, 9.6vw, 190px); font-size: var(--hf); }
.sm-cc-stretch, .sm-cc-hero-row { display: contents; }
.sm-cc-stretch { font-weight: 700; line-height: .86; letter-spacing: -0.055em; color: var(--sm-ink); cursor: default; user-select: none; }
.sm-cc-word { display: block; font-family: var(--sm-font-display); font-weight: 700; line-height: .86; letter-spacing: -0.055em; white-space: nowrap; transform-origin: 50% 0; transform: scaleY(calc(1 + var(--pull, 0) * var(--pk, .3))); }
.sm-cc-word:nth-child(1) { grid-column: 1; grid-row: 1; justify-self: start; --pk: .22; }
.sm-cc-word:nth-child(2) { grid-column: 3; grid-row: 2; justify-self: end; --pk: .34; }
.sm-cc-word:nth-child(3) { grid-column: 1; grid-row: 3; justify-self: start; --pk: .46; }
/* 둘째·셋째 단어를 위로 당겨 세 단어가 첫 화면 높이 안에 들어오게(첫 단어 자리는 그대로, 가운데 떡 자리도 함께 올라감). */
@media (min-width: 769px) {
    /* 화면이 높으면(세로로 긴 태블릿 등) 그만큼 더 벌려 셋째 단어 아래가 화면 아래 끝(36px 위)에 오게 한다.
       계산: (화면 높이 - 아래 36px - 헤더 - 제목 위 자리 --cc-off - 제목 세 줄 4.23 × --hf) ÷ 2. 화면이 낮으면 당긴 값(-.3 × --hf = 단어 글자 크기의 .2)에서 멈춘다 */
    .sm-cc-hero-main { --cc-off: 100px; }
    .sm-cc-word:nth-child(2), .sm-cc-word:nth-child(3) { margin-top: max(calc(var(--hf) * -.3), calc((100svh - 36px - var(--sm-hd-total) - var(--cc-off)) / 2 - var(--hf) * 2.115)); }
    /* 첫 단어와 그 옆 한 문장은 아주 조금 위로: 글자가 가장 크게 늘어나도 브레드크럼에 닿지 않는 만큼만 */
    .sm-cc-word:nth-child(1), .sm-cc-hero-main .sm-cc-hero-lead { translate: 0 -14px; }
    /* 올라온 둘째 단어와 붙지 않게 한 문장은 첫 단어 윗선에 맞춘다 */
    .sm-cc-hero-main .sm-cc-hero-lead { align-self: start; margin-top: calc(var(--hf) * .14); }
}
.sm-cc-hero-lead { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; }
.sm-cc-hero-row .sm-cc-text { grid-column: 1 / -1; grid-row: 4; margin-top: calc(var(--hf) * 1.1 + 56px) !important; }
/* 세로로 길거나 정사각형에 가까운 화면(폭 ≤ 높이 × 1.1): 소개글까지 첫 화면에 들어오게 — 첫 화면 높이를 화면에 맞추고 소개글은 아래 끝에 붙인다.
   제목 세 단어는 화면이 높아도 너무 벌어지지 않게 줄 사이를 .8 × --hf 까지만 벌리고(남는 높이는 제목과 소개글 사이로),
   화면이 낮으면 소개글 자리(위 48px + 약 136px + 아래 40px)만큼 덜 벌린다 */
@media (min-width: 769px) and (max-aspect-ratio: 11/10) {
    .sm-cc .sm-cc-hero { min-height: 100svh; }
    .sm-cc-hero-main { flex: 1; grid-template-rows: auto auto auto 1fr; }
    .sm-cc-word:nth-child(2), .sm-cc-word:nth-child(3) { margin-top: clamp(var(--hf) * -.3, (100svh - 224px - var(--sm-hd-total) - var(--cc-off)) / 2 - var(--hf) * 2.115, var(--hf) * .8); }
    .sm-cc-hero-row .sm-cc-text { align-self: end; margin-top: 48px !important; }
}
/* 가운데 자리: 날아다니는 패키지+떡(.sm-cc-fly)이 처음 앉는 곳 */
.sm-cc-hero-slot { grid-column: 2; grid-row: 1 / 4; justify-self: center; align-self: center; width: 2px; height: min(2.7em, 70vh); pointer-events: none; }
.sm-cc-fly { position: fixed; left: 0; top: 0; z-index: 40; display: none; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; filter: drop-shadow(0 30px 34px rgba(18, 18, 18, .18)); }
/* 사진 한 장을 가운데를 축으로 바퀴처럼 돌린다 */
.sm-cc-fly-spin { position: absolute; inset: 0; transform-origin: 50% 50%; }
.sm-cc-fly-spin img { display: block; width: 100%; height: 100%; }
/* 떡이 봉지 안으로 다 들어가면 봉지가 한 번 꿀렁인다(transform 을 쓰는 효과와 겹치지 않게 scale 속성으로) */
.sm-cc-show-set.is-gulp { animation: sm-cc-gulp .6s cubic-bezier(.34, 1.56, .64, 1) !important; }
@keyframes sm-cc-gulp { 0% { scale: 1; } 35% { scale: 1.035 .955; } 70% { scale: .985 1.02; } 100% { scale: 1; } }
.sm-cc-ch { display: inline-block; overflow: hidden; padding: .12em 0 .04em; margin: -.12em 0 -.04em; vertical-align: bottom; }
.sm-cc-ch > i { display: inline-block; font-style: normal; transform-origin: 50% 100%; transform: scale(calc(1 + (var(--s, 1) - 1) * -.18), var(--s, 1)); transition: transform .7s cubic-bezier(.34, 1.7, .5, 1); }
.sm-cc-ch { overflow: visible; }
.sm-cc-ch.is-boing > i { animation: sm-cc-boing .9s cubic-bezier(.34, 1.56, .64, 1); }
.sm-cc-ch > i { color: var(--sm-ink); transition: transform .7s cubic-bezier(.34, 1.7, .5, 1), color .5s ease calc(var(--i) * .035s); }
@keyframes sm-cc-boing { 0% { transform: none; } 25% { transform: scale(.86, 1.38); } 50% { transform: scale(1.12, .84); } 75% { transform: scale(.96, 1.08); } 100% { transform: none; } }
.sm-cc-hero-lead { margin: 0; font-size: clamp(26px, 2.8vw, 46px); font-weight: 700; line-height: 1.3; letter-spacing: -0.04em; color: var(--sm-ink); word-break: keep-all; }
.sm-cc-hero-row .sm-cc-text { max-width: 520px; margin: 0; font-size: 17px; color: var(--sm-ink); }
/* "쫀득하게": 마우스를 올리면 떡처럼 옆으로 쭉 늘었다 돌아옴 */
.sm-cc-chewy { display: inline-block; color: var(--sm-primary); transform-origin: 0 100%; animation: sm-cc-chew 4.5s cubic-bezier(.34, 1.56, .64, 1) 2s infinite; }
@keyframes sm-cc-chew { 0%, 64%, 100% { transform: none; } 72% { transform: scale(1.22, .86); } 82% { transform: scale(.96, 1.05); } 92% { transform: scale(1.02, .98); } }
/* "시원하게": 마우스를 올리면 글자가 차례로 살짝 떨며 시원한 파랑으로 */
.sm-cc-cool { display: inline-block; }
.sm-cc-cool > span { display: inline-block; animation: sm-cc-frost 4.5s ease calc(2.6s + var(--k) * .08s) infinite; }
@keyframes sm-cc-frost { 0%, 100% { color: var(--sm-ink); transform: none; } 30%, 62% { color: #3f8fc6; } 34% { transform: translate(-1.5px, -1px) rotate(-3deg); } 38% { transform: translate(1.5px, 1px) rotate(3deg); } 42% { transform: none; } }
@keyframes sm-cc-shiver { 0%, 100% { transform: none; } 25% { transform: translate(-1.5px, -1px) rotate(-2deg); } 75% { transform: translate(1.5px, 1px) rotate(2deg); } }

/* ---- 공통 섹션: 큰 영문 제목 + 한글 부제(회사소개 .sm-ab-sec / .sm-ab-display / .sm-ab-kr 와 같은 값) ---- */
.sm-cc-sec { padding: clamp(120px, 12vw, 200px) var(--cc-pad) 0; scroll-margin-top: var(--sm-hd-total); }
.sm-cc-sub { margin: 14px 0 0; padding-left: .3em; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--sm-ink); }
.sm-cc-intro { max-width: 760px; margin-top: clamp(32px, 4vw, 56px); }

/* 한글 큰 제목(수제 과일 찹쌀떡): 가운데 정렬 */
.sm-cc-head.is-center { text-align: center; }
.sm-cc-kr-title { margin: 0; font-size: clamp(32px, 4vw, 60px); font-weight: 700; line-height: 1.2; letter-spacing: -0.04em; color: var(--sm-ink); word-break: keep-all; }
.sm-cc-head.is-center .sm-cc-text { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---- 2. 냉동 찹쌀떡: 화면 폭 가득 색 판, 배경 없이 패키지+떡. 가운데 크게, 양옆에 이전·다음 맛(eis-lab 구성) ---- */
.sm-cc-show {
    --mx: 0; --my: 0; --cc-item: clamp(440px, 44vw, 660px);
    position: relative; margin: 0 calc(var(--cc-pad) * -1); padding: clamp(72px, 7vw, 120px) 0 clamp(150px, 16vw, 300px); overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 clamp(140px, 18vw, 340px) clamp(140px, 18vw, 340px);
    background: var(--cc-flavor, #ecd8bd); transition: background-color .8s ease; text-align: center;
}
.sm-cc-show .sm-cc-head { position: relative; z-index: 45; margin-bottom: clamp(40px, 4vw, 64px); padding: 0 var(--cc-pad); }
.sm-cc-show-stage { position: relative; height: var(--cc-item); outline: 0; cursor: grab; touch-action: pan-y; user-select: none; }
.sm-cc-show-stage.is-drag { cursor: grabbing; }
.sm-cc-show-stage:focus-visible { outline: 2px solid var(--sm-ink); outline-offset: 8px; }
.sm-cc-show-item {
    position: absolute; left: 50%; top: 0; width: calc(var(--cc-item) * .54); height: var(--cc-item);
    opacity: 0; transform: translateX(-50%) scale(.3); transition: transform .9s var(--cc-ease), opacity .5s ease; pointer-events: none;
}
.sm-cc-show-item.is-current { opacity: 1; transform: translateX(-50%); z-index: 2; pointer-events: auto; }
.sm-cc-show-item.is-prev { opacity: 1; transform: translateX(calc(-50% - 175%)) scale(.62); pointer-events: auto; cursor: pointer; }
.sm-cc-show-item.is-next { opacity: 1; transform: translateX(calc(-50% + 175%)) scale(.62); pointer-events: auto; cursor: pointer; }
.sm-cc-show-item img { position: absolute; display: block; height: auto; -webkit-user-drag: none; transition: transform .6s var(--cc-ease); }
/* 패키지는 뒤 오른쪽에 살짝 기울여, 떡은 앞 왼쪽 아래 */
/* 패키지+떡 한 장(배경 없음): 칸 높이에 맞춰 가운데 */
.sm-cc-show-set { left: 50%; top: 0; width: auto !important; height: 100% !important; transform: translateX(-50%); filter: drop-shadow(0 30px 34px rgba(18, 18, 18, .18)); }
/* 가운데로 오면 떡이 튀어나오고, 마우스를 따라 패키지와 떡이 반대로 움직인다 */
.sm-cc-show-item.is-current .sm-cc-show-set { transform: translateX(-50%) translate(calc(var(--mx) * 18px), calc(var(--my) * 12px)) rotate(calc(var(--mx) * 3deg)); animation: sm-cc-pop .9s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
.sm-cc-show-item.is-current .sm-cc-show-set { rotate: 0deg; translate: 0 0; }
.sm-cc-show:not(.is-flying) .sm-cc-show-item.is-current .sm-cc-show-set { animation: sm-cc-pop .9s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }
@keyframes sm-cc-pop { from { opacity: 0; transform: translateX(-50%) translateY(12%) scale(.82) rotate(-5deg); } to { opacity: 1; transform: translateX(-50%); } }
@media (hover: hover) {
    .sm-cc-show-item.is-prev:hover, .sm-cc-show-item.is-next:hover { filter: brightness(1.04); }
    .sm-cc-show-item.is-prev:hover { transform: translateX(calc(-50% - 170%)) scale(.66); }
    .sm-cc-show-item.is-next:hover { transform: translateX(calc(-50% + 170%)) scale(.66); }
}
/* 이전·다음: 가운데 맛 양옆 */
.sm-cc-show-arrow {
    position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 80px; height: 64px; margin-top: -32px; padding: 0;
    border: 0; background: none; color: var(--sm-ink); cursor: pointer; opacity: .55; transition: opacity .3s ease, transform .45s var(--cc-ease);
}
.sm-cc-show-arrow.is-prev { left: calc(50% - var(--cc-item) * .27 - 120px); }
.sm-cc-show-arrow.is-next { right: calc(50% - var(--cc-item) * .27 - 120px); }
.sm-cc-show-arrow:hover, .sm-cc-show-arrow:focus-visible { opacity: 1; }
.sm-cc-show-arrow.is-prev:hover { transform: translateX(-8px); }
.sm-cc-show-arrow.is-next:hover { transform: translateX(8px); }
.sm-cc-show-arrow:focus-visible { outline: 2px solid var(--sm-ink); outline-offset: 2px; border-radius: 4px; }
.sm-cc-show-arrow:active { opacity: .8; }

.sm-cc-show-info { position: relative; z-index: 2; max-width: 640px; margin: clamp(32px, 3vw, 48px) auto 0; padding: 0 var(--cc-pad); }
.sm-cc-show-desc h3 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; line-height: 1.25; letter-spacing: -0.04em; color: var(--sm-ink); word-break: keep-all; }
.sm-cc-show-desc p { margin: 14px 0 0; font-size: 16px; line-height: 1.85; color: var(--sm-ink); word-break: keep-all; }
.sm-cc-show-desc.is-current > * { animation: sm-cc-desc .7s var(--cc-ease) both; }
.sm-cc-show-desc.is-current > p { animation-delay: .06s; }
.sm-cc-show-desc.is-current > span { animation-delay: .12s; }
@keyframes sm-cc-desc { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sm-cc-show-more { margin: 36px 0 0; }
.sm-cc-show-info .sm-cc-pill { border-color: var(--sm-ink); }
.sm-cc-show-info .sm-cc-pill:link, .sm-cc-show-info .sm-cc-pill:visited { color: var(--sm-ink); }
.sm-cc-show-info .sm-cc-pill::before { background: var(--sm-ink); }
.sm-cc-show-info .sm-cc-pill:hover, .sm-cc-show-info .sm-cc-pill:focus-visible { color: var(--sm-white); }

/* ---- 3. 수제 과일 찹쌀떡: 연한 바탕 칸을 가는 선으로 나눈 3×3(eis-lab 메뉴 칸), 배경을 딴 떡 사진과 이름 ---- */
.sm-cc-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(48px, 5vw, 80px) calc(var(--cc-pad) * -1) 0; padding: 0; list-style: none;
    border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); background: var(--sm-line);
}
.sm-cc-cell { position: relative; transition: background-color .45s ease; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(320px, 32vw, 470px); padding: clamp(64px, 5.6vw, 88px) 20px clamp(28px, 3vw, 44px); background: #faf8f4; box-sizing: border-box; }
.sm-cc-cell figure { position: relative; display: grid; place-items: center; flex: 1; width: min(76%, 300px); margin: 0; }
/* 떡 뒤의 흰 원: 평소엔 작게 숨어 있다가 마우스를 올리면 커진다 */
.sm-cc-cell figure::before { content: ""; position: absolute; left: 50%; top: 50%; height: 104%; aspect-ratio: 1; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.4, .64, 1), opacity .35s ease; }
.sm-cc-cell figure img { position: relative; }
/* 맛 설명: 칸 위쪽에 겹쳐 두고 마우스를 올리면 나타난다 */
.sm-cc-cell-desc { position: absolute; left: clamp(24px, 3vw, 56px); right: clamp(24px, 3vw, 56px); top: clamp(16px, 1.4vw, 24px); text-align: center; z-index: 1; pointer-events: none; }
.sm-cc-cell-desc p { margin: 0; font-size: clamp(13px, .95vw, 15px); line-height: 1.55; letter-spacing: -0.01em; color: var(--sm-ink); word-break: keep-all; opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .45s ease; }
.sm-cc-cell:hover { background: var(--hc, #faf8f4); }
.sm-cc-cell:hover figure::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sm-cc-cell:hover .sm-cc-cell-desc p { opacity: 1; transform: none; }
.sm-cc-cell img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 16px rgba(18, 18, 18, .12)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.sm-cc-cell.is-empty img { width: 46%; filter: none; }
.sm-cc-cell h3 { margin: 0; font-size: clamp(18px, 1.7vw, 26px); font-weight: 700; letter-spacing: -0.03em; text-align: center; color: var(--sm-ink); word-break: keep-all; transition: color .3s ease; }
@media (hover: hover) {
    .sm-cc-cell:hover img { transform: translateY(-10px) rotate(-5deg) scale(1.05); }
}

/* ---- 4. 요즘 대세는 찹찹당: 사진 + 비껴 겹친 정보 상자 ---- */
.sm-cc-pop { padding-bottom: clamp(120px, 12vw, 200px); }
.sm-cc-pop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); max-width: 1200px; margin: clamp(48px, 6vw, 96px) auto 0; padding: 0; list-style: none; }
.sm-cc-pop-card { position: relative; display: flex; flex-direction: column; }
.sm-cc-pop-card figure { position: relative; width: 80%; margin: 0 0 0 auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--sm-ice); }
.sm-cc-pop-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--cc-ease); }
.sm-cc-pop-card:hover img { transform: scale(1.05); }
.sm-cc-pop-info { position: relative; z-index: 2; flex: 1; width: 84%; margin-top: -10%; padding: 16px; box-sizing: border-box; border: 1px solid var(--sm-line); border-radius: 6px; background: var(--sm-white); box-shadow: 0 16px 40px rgba(18, 18, 18, .06); transition: transform .45s var(--cc-ease), box-shadow .45s ease; }
.sm-cc-pop-card:hover .sm-cc-pop-info { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(18, 18, 18, .1); }
.sm-cc-pop-info h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; color: var(--sm-ink); }
.sm-cc-pop-info p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--sm-ink-2); word-break: keep-all; }
.sm-cc-pop-more { margin: clamp(48px, 5vw, 72px) 0 0; text-align: center; }

/* ---- 인터랙션(html.sm-cc-on 일 때만. 회사소개와 같은 움직임) ---- */
/* 첫 화면: 제목 글자가 아래에서 차례로 쭉 늘어나며 솟아오르고, 문장·소개가 뒤이어 */
.sm-cc-on .sm-cc-ch { animation: sm-cc-rise 1.1s cubic-bezier(.34, 1.45, .5, 1) calc(.25s + var(--i) * .045s) both; transform-origin: 50% 100%; }
@keyframes sm-cc-rise { 0% { opacity: 0; transform: translateY(40%) scale(.9, .3); } 55% { opacity: 1; transform: translateY(0) scale(.92, 1.25); } 100% { opacity: 1; transform: none; } }
@keyframes sm-cc-up { from { transform: translateY(110%); } to { transform: none; } }
.sm-cc-on .sm-cc-crumb, .sm-cc-on .sm-cc-hero-lead, .sm-cc-on .sm-cc-hero-row .sm-cc-text { animation: sm-cc-fade 1s var(--cc-ease) both; }
.sm-cc-on .sm-cc-crumb { animation-delay: .2s; }
.sm-cc-on .sm-cc-hero-lead { animation-delay: .95s; }
.sm-cc-on .sm-cc-hero-row .sm-cc-text { animation-delay: 1.1s; }
@keyframes sm-cc-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 섹션 큰 제목은 가림막 아래에서 올라오고 한글 부제가 뒤이어 */
.sm-cc-on .sm-cc-head .sm-cc-line > span { transform: translateY(110%); transition: transform 1.1s cubic-bezier(.19, 1, .22, 1); }
.sm-cc-on .sm-cc-head.is-in .sm-cc-line > span { transform: none; }
.sm-cc-on .sm-cc-head .sm-cc-sub { opacity: 0; transform: translateY(12px); transition: opacity .8s ease .35s, transform .8s var(--cc-ease) .35s; }
.sm-cc-on .sm-cc-head.is-in .sm-cc-sub { opacity: 1; transform: none; }
.sm-cc-on .sm-cc-intro, .sm-cc-on .sm-cc-pop-more { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s var(--cc-ease); }
.sm-cc-on .sm-cc-intro.is-in, .sm-cc-on .sm-cc-show.is-in, .sm-cc-on .sm-cc-pop-more.is-in { opacity: 1; transform: none; }
/* 메뉴 칸: 칸 안 사진·이름이 차례로 떠오름 */
.sm-cc-on .sm-cc-grid[data-cc-in] { opacity: 1; transform: none; }
.sm-cc-on .sm-cc-cell > * { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--cc-ease); }
.sm-cc-on .sm-cc-grid.is-in .sm-cc-cell > * { opacity: 1; transform: none; }
.sm-cc-on .sm-cc-cell:nth-child(3n + 2) > * { transition-delay: .1s; }
.sm-cc-on .sm-cc-cell:nth-child(3n) > * { transition-delay: .2s; }
/* 현장 카드는 한 장씩 차례로 */
.sm-cc-on .sm-cc-pop-card { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1s var(--cc-ease); }
.sm-cc-on .sm-cc-pop-list.is-in .sm-cc-pop-card { opacity: 1; transform: none; }
.sm-cc-on .sm-cc-pop-card:nth-child(2) { transition-delay: .12s; }
.sm-cc-on .sm-cc-pop-card:nth-child(3) { transition-delay: .24s; }

/* ---- 태블릿: 사진 → 브레드크럼 아래로, 맛 판은 위 사진·아래 설명 ---- */
@media (max-width: 1024px) {
    .sm-cc-hero { min-height: 0; padding-top: calc(var(--sm-hd-total) + 24px); }
    .sm-cc-hero-text { gap: 64px; }
    .sm-cc-hero-main { --cc-off: 108px; }
    .sm-cc-show { --cc-item: min(64vw, 560px); }
    .sm-cc-pop-list { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 48px; }
}
/* ---- 모바일 ---- */
@media (max-width: 768px) {
    .sm-cc-hero { padding-top: calc(var(--sm-hd-total) + 16px); }
    .sm-cc-hero-text { gap: 32px; }
    /* 모바일: 제목을 작게 줄여 세 단어·한 문장·소개글을 모두 가운데 정렬 */
    .sm-cc-hero-main { grid-template-columns: minmax(0, 1fr); justify-items: center; font-size: 15vw; text-align: center; }
    .sm-cc-word:nth-child(1) { grid-column: 1; grid-row: 1; justify-self: center; }
    .sm-cc-word:nth-child(2) { grid-column: 1; grid-row: 2; justify-self: center; }
    .sm-cc-word:nth-child(3) { grid-column: 1; grid-row: 3; justify-self: center; }
    /* 제목과 한 문장 사이에 떡 한 알 자리(떡 폭은 자리 높이의 .66), 소개글은 첫 화면 아래 끝으로 */
    .sm-cc .sm-cc-hero { min-height: 100svh; }
    .sm-cc-hero-main { flex: 1; grid-template-rows: repeat(5, auto) 1fr; }
    .sm-cc-hero-slot { grid-column: 1; grid-row: 4; height: 40vw; margin-top: 8px; }
    .sm-cc-hero-lead { grid-column: 1; grid-row: 5; justify-self: center; margin-top: 8px !important; padding: 0; }
    .sm-cc-hero-row .sm-cc-text { grid-column: 1; grid-row: 6; justify-self: center; align-self: end; margin-top: 16px; }
    .sm-cc-word { transform: none; }
    .sm-cc-hero-row .sm-cc-text { margin-top: 32px !important; font-size: 15px; }
    .sm-cc-hero-lead { font-size: 30px; }
    .sm-cc-hero-row .sm-cc-text { font-size: 15px; }
    .sm-cc-sec { padding-top: 96px; }
    .sm-cc-sub { font-size: 17px; }
    .sm-cc-show { --cc-item: 110vw; padding: 56px 0 110px; border-radius: 0 0 50% 50% / 0 0 90px 90px; }
    .sm-cc-show .sm-cc-head { margin-bottom: 32px; }
    .sm-cc-show-item.is-prev { transform: translateX(calc(-50% - 150%)) scale(.55); }
    .sm-cc-show-item.is-next { transform: translateX(calc(-50% + 150%)) scale(.55); }
    .sm-cc-show-arrow { width: 44px; height: 48px; margin-top: -24px; opacity: .7; }
    .sm-cc-show-arrow svg { width: 36px; height: 16px; }
    .sm-cc-show-arrow.is-prev { left: 6px; }
    .sm-cc-show-arrow.is-next { right: 6px; }
    .sm-cc-show-desc h3 { font-size: 26px; }
    .sm-cc-show-desc p { font-size: 15px; }
    .sm-cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-cc-cell { min-height: 0; gap: 14px; padding: 24px 10px 20px; }
    .sm-cc-cell figure::before { height: 96%; }
    .sm-cc-cell figure { width: 82%; }
    .sm-cc-cell-desc { display: none; }
    .sm-cc-cell h3 { font-size: 16px; }
    .sm-cc-on .sm-cc-cell:nth-child(n) > * { transition-delay: 0s; }
    .sm-cc-on .sm-cc-cell:nth-child(2n) > * { transition-delay: .1s; }
    .sm-cc-pop { padding-bottom: 110px; }
}
/* 320px 아래로는 더 줄이지 않는다(문서 최소 폭) */
@media (max-width: 319px) {
    .sm-cc-display { font-size: 44px; }
    .sm-cc-hero-main { font-size: calc(var(--sm-min-width) * .15); }
    .sm-cc-show { --cc-item: calc(var(--sm-min-width) * 1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .sm-cc-hero-slot { display: none; } /* 떡이 나오지 않으므로 모바일의 떡 자리도 비우지 않는다 */
    .sm-cc-ch > i { transition: none; transform: none; }
    .sm-cc-word { transform: none; }
    .sm-cc-chewy, .sm-cc-cool > span, .sm-cc-ch.is-boing > i { animation: none; }
    .sm-cc-show, .sm-cc-show-item, .sm-cc-show-item img, .sm-cc-pill, .sm-cc-pill::before, .sm-cc-pill i,
    .sm-cc-cell, .sm-cc-cell figure::before, .sm-cc-cell-desc p, .sm-cc-cell img, .sm-cc-pop-card img, .sm-cc-pop-info, .sm-cc-crumb-menu > ul, .sm-cc-crumb-menu > button svg { transition: none; }
    .sm-cc-show-desc.is-current > *, .sm-cc-show-item.is-current .sm-cc-show-set { animation: none; }
}
