@charset "utf-8";
/* =====================================================================
   사업 영역(page/business.php)
   - 글꼴·여백·브레드크럼·섹션 제목·등장 효과는 회사소개 스타일(sm-about.css)을 그대로 쓴다
   - 배치는 이 페이지만의 것: 사진 알약을 끼운 큰 문장, 브랜드 색이 차오르는 영역 줄, 스크롤로 진해지는 단계 문장
   ===================================================================== */

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

/* ---- 1. 첫 화면: 큰 영문 세 줄 사이에 둥근 사진 알약 ---- */
.sm-bz-hero { padding: calc(var(--sm-hd-total) + 32px) var(--sm-ab-pad) 0; }
.sm-bz-say { display: flex; flex-direction: column; margin: clamp(40px, 6vw, 96px) 0 0; font-family: var(--sm-font-display); font-size: clamp(40px, 10vw, 200px); font-weight: 700; line-height: 1; letter-spacing: -0.055em; color: var(--sm-ink); }
.sm-bz-say-row { display: flex; align-items: center; gap: .22em; white-space: nowrap; }
.sm-bz-say-row.is-r { justify-content: flex-end; }
.sm-bz-w { display: inline-block; padding-bottom: .06em; }
.sm-bz-pill { display: inline-block; flex: none; width: 2.1em; height: .74em; overflow: hidden; border-radius: 999px; background: var(--sm-ice); }
.sm-bz-pill img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, .8, .24, 1); }
.sm-bz-pill:hover img { transform: scale(1.12); }
.sm-bz-hero-copy { max-width: 520px; margin: clamp(40px, 5vw, 72px) 0 0 auto; }
.sm-bz-hero-copy .sm-ab-hero-lead { margin: 0 0 16px; }
.sm-bz-hero-copy .sm-ab-text { margin: 0; }
/* 들어올 때: 단어가 아래에서 올라오고, 사진 알약이 가로로 펼쳐짐 */
.sm-ab-on .sm-bz-say-row { clip-path: inset(-.1em -.5em -.2em -.5em); }
.sm-ab-on .sm-bz-w { animation: sm-bz-up 1s cubic-bezier(.22, .8, .24, 1) both; }
.sm-ab-on .sm-bz-say-row:nth-child(2) .sm-bz-w { animation-delay: .12s; }
.sm-ab-on .sm-bz-say-row:nth-child(3) .sm-bz-w { animation-delay: .24s; }
.sm-ab-on .sm-bz-pill { animation: sm-bz-pill 1.1s cubic-bezier(.76, 0, .24, 1) .45s both; }
.sm-ab-on .sm-bz-say-row:nth-child(2) .sm-bz-pill { animation-delay: .6s; }
.sm-ab-on .sm-bz-say-row:nth-child(3) .sm-bz-pill { animation-delay: .75s; }
.sm-ab-on .sm-bz-hero-copy { animation: sm-bz-fade 1s ease .9s both; }
@keyframes sm-bz-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sm-bz-pill { from { width: 0; } to { width: 2.1em; } }
@keyframes sm-bz-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- 2. 사업 영역 줄: 마우스를 올리면 브랜드 색이 아래에서 차오르고 오른쪽 칸에 사진 알약이 튀어나옴 ---- */
.sm-bz-rows { margin: clamp(48px, 6vw, 96px) calc(var(--sm-ab-pad) * -1) 0; padding: 0; list-style: none; border-top: 1px solid var(--sm-ink); }
.sm-bz-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px) clamp(150px, 15vw, 240px); gap: clamp(16px, 2.4vw, 40px); align-items: center; padding: clamp(28px, 3vw, 44px) var(--sm-ab-pad); border-bottom: 1px solid #dedede; outline: 0; cursor: default; isolation: isolate; }
.sm-bz-row::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; background: var(--bz-c); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.76, 0, .24, 1); }
.sm-bz-row h3 sup { margin-left: .3em; font-family: var(--sm-font-display); font-size: .3em; font-weight: 600; letter-spacing: 0; vertical-align: super; color: var(--sm-ink-3); transition: color .3s ease; }
.sm-bz-row h3 { margin: 0; font-size: clamp(28px, 3.4vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: -0.045em; color: var(--sm-ink); word-break: keep-all; transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.sm-bz-row-desc p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--sm-ink); word-break: keep-all; }
.sm-bz-row-desc .sm-bz-row-do { margin-top: 6px; font-size: 14px; color: var(--sm-ink-3); }
.sm-bz-row-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 48% 8px 48% 8px / 60% 8px 60% 8px; background: var(--sm-ice); transform: scale(0) rotate(-8deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.sm-bz-row-img img { width: 100%; height: 100%; object-fit: cover; }
/* 줄 사진 모양: 1·4 동그라미, 2·5 아치, 3 잎사귀(기본) */
.sm-bz-row:nth-child(3n + 1) .sm-bz-row-img { justify-self: center; width: 70%; aspect-ratio: 1; border-radius: 50%; }
.sm-bz-row:nth-child(3n + 2) .sm-bz-row-img { justify-self: center; width: 70%; aspect-ratio: 4 / 5; border-radius: 999px 999px 10px 10px; }
.sm-bz-row:hover::before, .sm-bz-row:focus-visible::before { transform: none; }
.sm-bz-row:hover h3, .sm-bz-row:focus-visible h3 { transform: translateX(.3em); }
.sm-bz-row:hover .sm-bz-row-img, .sm-bz-row:focus-visible .sm-bz-row-img { transform: none; }
.sm-bz-row:hover .sm-bz-row-do, .sm-bz-row:focus-visible .sm-bz-row-do { color: var(--sm-ink-2); }
.sm-bz-row:hover h3 sup, .sm-bz-row:focus-visible h3 sup { color: var(--sm-ink); }
.sm-ab-on .sm-bz-row { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.22, .8, .24, 1); }
.sm-ab-on .sm-bz-rows.is-in .sm-bz-row { opacity: 1; transform: none; }
.sm-ab-on .sm-bz-row:nth-child(2) { transition-delay: .08s; }
.sm-ab-on .sm-bz-row:nth-child(3) { transition-delay: .16s; }
.sm-ab-on .sm-bz-row:nth-child(4) { transition-delay: .24s; }
.sm-ab-on .sm-bz-row:nth-child(5) { transition-delay: .32s; }

/* ---- 3. 진행 과정: 단계를 큰 글자 한 문장으로. 연하게 시작해 스크롤하는 만큼 진해짐 ---- */
/* 세 단계씩 두 줄, 각 줄은 화면 폭 끝까지 고르게 벌림. 번호는 단계 이름 위에 작게 */
.sm-bz-flow-line { margin: clamp(48px, 6vw, 96px) 0 0; font-size: clamp(28px, 3.6vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -0.045em; color: var(--sm-ink); word-break: keep-all; }
.sm-bz-flow-row { display: flex; align-items: flex-end; justify-content: space-between; gap: .3em; margin: 0; }
.sm-bz-flow-row + .sm-bz-flow-row { margin-top: .5em; }
.sm-bz-step { display: inline-flex; flex-direction: column; white-space: nowrap; color: var(--sm-ink); transition: color .5s ease; cursor: default; }
.sm-ab-on .sm-bz-step { color: #ddd7cd; }
.sm-ab-on .sm-bz-step.is-on { color: var(--sm-ink); }
.sm-bz-step.is-hot, .sm-ab-on .sm-bz-step.is-hot { color: var(--sm-mango); }
.sm-bz-step small { margin: 0 0 .5em .1em; font-family: var(--sm-font-display); font-size: max(13px, .24em); font-weight: 600; line-height: 1; letter-spacing: 0; color: var(--sm-ink-3); transition: color .3s ease; }
.sm-bz-step.is-hot small { color: var(--sm-mango); }
.sm-bz-step-desc { display: none; } /* 단계 바로 아래 설명: 폰(576px 이하)에서만 보임. 그 밖에는 아래 설명 목록(.sm-bz-notes)을 쓴다 */
.sm-bz-arrow { flex: none; display: block; width: .9em; height: .45em; margin-bottom: .38em; color: #c9c1b4; }
.sm-bz-arrow svg { display: block; width: 100%; height: 100%; }
.sm-bz-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; list-style: none; }
.sm-bz-notes li { display: flex; gap: 12px; padding: 20px 0; border-top: 1px solid #dedede; cursor: default; }
.sm-bz-notes span { flex: none; width: 24px; font-family: var(--sm-font-display); font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--sm-ink-3); transition: color .3s ease; }
.sm-bz-notes p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--sm-ink-2); word-break: keep-all; transition: color .3s ease; }
.sm-bz-notes li.is-hot span, .sm-bz-notes li.is-hot p { color: var(--sm-mango); }
.sm-ab-on .sm-bz-notes li { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .8s cubic-bezier(.22, .8, .24, 1); }
.sm-ab-on .sm-bz-notes.is-in li { opacity: 1; transform: none; }
.sm-ab-on .sm-bz-notes li:nth-child(3n + 2) { transition-delay: .08s; }
.sm-ab-on .sm-bz-notes li:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 1024px) {
    .sm-bz-say { row-gap: .28em; } /* 태블릿 이하: 첫 화면 큰 문장 세 줄이 붙어 보여 줄 사이를 띄움 */
    .sm-bz-flow-row { flex-wrap: wrap; justify-content: flex-start; row-gap: .5em; }
    .sm-bz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sm-bz-row-img { display: none; }
    .sm-bz-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .sm-bz-hero { padding-top: calc(var(--sm-hd-total) + 24px); }
    .sm-bz-say { font-size: 11vw; margin-top: 32px; }
    .sm-bz-pill { width: 1.5em; }
    @keyframes sm-bz-pill { from { width: 0; } to { width: 1.5em; } }
    .sm-bz-hero-copy { max-width: none; margin-top: 32px; }
    /* 모바일은 마우스가 없어 색 판 대신 사진을 처음부터 보여 줌 */
    .sm-bz-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px 16px; padding: 24px var(--sm-ab-pad); }
    .sm-bz-row h3 { font-size: 24px; }
    .sm-bz-row-desc { grid-column: 1; }
    .sm-bz-row-img { display: block; grid-column: 2; grid-row: 1 / span 2; align-self: start; transform: none; }
    .sm-bz-row:nth-child(n) .sm-bz-row-img { width: 100%; }
    .sm-bz-row:hover h3 { transform: none; }
    .sm-bz-flow-line { font-size: 3.6vw; } /* 577~768px: PC처럼 화살표로 이어지는 세 단계 두 줄이 한 줄씩 들어오도록 화면 폭에 맞춰 줄임 */
    .sm-bz-notes { grid-template-columns: minmax(0, 1fr); }
}
/* 모바일·세로 태블릿(768px 이하): 첫 화면 큰 문장의 위(브레드크럼 아래)와 아래(소개 글 위) 간격을 56px 로 같게.
   브레드크럼 아래 여백 16px 은 위 간격에 겹쳐 합쳐진다. 소개 글 아래는 다음 섹션 위 여백 96px(섹션 사이 간격) */
@media (max-width: 768px) {
    .sm-bz-say { margin-top: 56px; }
    .sm-bz-hero-copy { margin-top: 56px; }
}
/* 모바일(576px 이하): 첫 화면 큰 문장 글자를 키우고(11vw → 13.5vw) 줄 사이를 더 띄움. 한 줄에 들어가도록 사진 알약 폭은 줄임 */
@media (max-width: 576px) {
    .sm-bz-say { font-size: 13.5vw; row-gap: .4em; }
    /* 진행 단계: 폭이 좁은 폰에서만 한 단계씩 세로로, 화살표 대신 단계 사이 간격(577px 부터는 PC처럼 화살표로 가로로 이어짐) */
    .sm-bz-flow-line { display: flex; flex-direction: column; gap: 18px; font-size: 28px; }
    .sm-bz-flow-row, .sm-bz-flow-row + .sm-bz-flow-row { display: contents; margin: 0; }
    .sm-bz-arrow { display: none; }
    .sm-bz-step small { margin-bottom: 6px; }
    /* 단계 이름 바로 아래에 그 단계 설명을 붙이고, 아래 따로 있던 설명 목록은 숨김 */
    .sm-bz-flow-line { gap: 28px; }
    .sm-bz-step { display: flex; white-space: normal; }
    .sm-bz-step-desc { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; line-height: 1.7; letter-spacing: 0; color: var(--sm-ink-2); word-break: keep-all; transition: color .5s ease; }
    .sm-ab-on .sm-bz-step:not(.is-on) .sm-bz-step-desc { color: inherit; }
    .sm-bz-notes { display: none; }
    .sm-bz-pill { width: 1.2em; }
    @keyframes sm-bz-pill { from { width: 0; } to { width: 1.2em; } }
}
@media (max-width: 319px) {
    .sm-bz-say { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    .sm-bz-row::before, .sm-bz-row h3, .sm-bz-row-img, .sm-bz-step, .sm-bz-pill img { transition: none; }
}
