/*
 * sellmate.io 이전 페이지 공통 레이아웃. 기존 www CSS 와 충돌하지 않도록 sm- 접두어를 쓴다.
 * 치수·색은 sellmate.io 공개 페이지를 2026-11-05 에 직접 열어 측정한 값이다.
 */

/* 폰트는 WMS 프로젝트(frontend/wms)가 쓰는 Pretendard 서브셋 woff2 를 가져온 것이다. */
@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/pretendard/Pretendard-Regular.subset.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/pretendard/Pretendard-Medium.subset.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/pretendard/Pretendard-SemiBold.subset.woff2') format('woff2');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/pretendard/Pretendard-Bold.subset.woff2') format('woff2');
}

:root {
    --sm-font: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', 'Dotum', Arial, sans-serif;
    --sm-color-text: #252525;
    --sm-color-nav: #212121;
    --sm-color-line: #e5e7eb;
    --sm-color-primary: #4092f7;
    --sm-color-muted: #8c8c8c;
    --sm-color-link: #888;
    --sm-header-height: 66px;
    --sm-footer-width: 1144px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--sm-color-text);
    font: normal 16px/1.5 var(--sm-font);
}

/* 링크 색·밑줄 리셋은 헤더·푸터·플로팅으로 한정한다. 본문 링크 스타일은 각 페이지가 정한다. */
/* :where() 로 우선순위를 0 으로 낮춰, 아래 컴포넌트별 색상 클래스가 항상 이긴다. */
:where(.sm-header, .sm-footer, .sm-floating) a { color: inherit; text-decoration: none; }

/* ---------- 홈 상단 배너 (WWW-8, partials/top_banners) ---------- */
/* 원본 ImWeb 상단 배너: 전체 폭 띠, 이미지 가운데·최대 높이(배너마다)·화면 폭 이하.
   닫기는 오른쪽 30px·위 13px·14px(991px 이하는 세로 가운데, 767px 이하는 글자 없이 × 만).
   최대 높이는 배너의 style 이 정한 PC(992px 이상)·모바일(991px 이하) 값을 쓴다 */
.sm-top-banner {
    --sm-top-banner-height: var(--sm-top-banner-pc-height);
    position: relative;
    overflow: hidden;
    max-height: var(--sm-top-banner-height);
    text-align: center;
}
.sm-top-banner__link { display: block; }
.sm-top-banner__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--sm-top-banner-height);
    margin: 0 auto;
}
.sm-top-banner__close {
    position: absolute;
    top: 13px;
    right: 30px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
@media (max-width: 991px) {
    .sm-top-banner { --sm-top-banner-height: var(--sm-top-banner-mobile-height); }
    .sm-top-banner__close { top: 50%; transform: translateY(-50%); }
}
@media (max-width: 767px) {
    .sm-top-banner__close-text { display: none; }
}

/* ---------- 헤더 ---------- */
/* 원본: 높이 66px(아래 1px #f1f1f1 선 포함), 좌우 여백 60px(1200px 이하 20px) */
.sm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
}

.sm-header__inner {
    display: flex;
    align-items: center;
    min-height: 65px;
    padding: 0 60px;
}

/*
 * 원본 로고 폭은 '(헤더 내용 폭 - 177px) × 11.47%, 최대 106px' 로 측정값과 맞는다
 * (1060→95, 1080→97, 1090→98, 1100→99, 1201→102, 1210→103, 1220→104, 1235→105, 1245 이상→106px).
 * 세로는 원본처럼 가운데보다 2px 아래(y23).
 */
.sm-header__logo { flex: 0 0 calc((100% - 177px) * 0.1147); max-width: 106px; margin-top: 4px; }
.sm-header__logo-desktop { display: block; width: 100%; height: auto; }
.sm-header__logo-mobile { display: none; width: 96px; height: 26px; }

/* 모바일 전용 요소(서비스 소개서 버튼, 햄버거, 딤 배경, 닫기 버튼)는 데스크톱에서 숨긴다 */
.sm-header__brochure { display: none; }
.sm-header__toggle,
.sm-header__backdrop,
.sm-header__close,
.sm-nav__expand { display: none; }

.sm-header__toggle {
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

.sm-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px 0;
    background: #666;
}

/* min-width: 0 이 없으면 메뉴 폭 아래로 줄어들지 못해, 헤더가 넘치고 접힘 계산도 틀어진다 */
.sm-nav { display: flex; flex: 1; align-items: center; min-width: 0; }

/* 원본처럼 메뉴는 가운데가 아니라 오른쪽 버튼 쪽에 붙고, 버튼과 8px 떨어진다 */
.sm-nav__list { display: flex; margin: 0 8px 0 auto; padding: 0; list-style: none; }

.sm-nav__item { position: relative; }

.sm-nav__link {
    display: block;
    padding: 0 24px;
    color: var(--sm-color-nav);
    font-size: 16px;
    font-weight: 400;
    /* 원본 글자 위치(y22)에 맞춰 가운데보다 1px 위 */
    line-height: 63px;
    padding-bottom: 2px;
    white-space: nowrap;
    cursor: pointer;
}

/*
 * 드롭다운은 마우스 호버 또는 키보드 포커스(:focus-visible)일 때만 연다.
 * :focus-within 은 쓰지 않는다 — 마우스로 버튼(…)을 클릭하면 포커스가 남아, 마우스를 옮겨도
 * 그 드롭다운이 계속 열려 다른 드롭다운과 겹친다.
 * 키보드 규칙은 :has() 를 모르는 브라우저가 호버 규칙까지 버리지 않도록 호버 규칙과 따로 둔다.
 */
/* 상단 메뉴 호버 색은 네이비(#00295f). 원본은 링크 자체에 올렸을 때만 바뀌고 하위 메뉴로 내려가면 기본색이다. */
.sm-nav__link:hover { color: #00295f; }
.sm-nav__item:has(:focus-visible) > .sm-nav__link { color: #00295f; }
/* 현재 페이지가 속한 상단 메뉴(원본: 파란 굵은 글씨, 예 /sellmate → '셀메이트') */
.sm-nav__item.is-current > .sm-nav__link { color: #3d92f6; font-weight: 700; }

/* 드롭다운 상자: 폭 160px, 링크 글자 시작점(좌우 패딩 24px)에 맞춰 링크 아래 53px 에서 시작 */
.sm-nav__sub {
    display: none;
    position: absolute;
    top: 53px;
    left: 24px;
    min-width: 160px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
}

.sm-nav__item:hover > .sm-nav__sub { display: block; }
.sm-nav__item:has(:focus-visible) > .sm-nav__sub { display: block; }

/* 모바일 전용 하위 항목(config menu 의 mobile_only). 지금은 없다 — 고객지원 > 이벤트는 PC 드롭다운에도 보인다(2026-11-13 원본 측정) */
.sm-nav__subitem--mobile-only { display: none; }

/* 항목: 14px, #555, 높이 44px. 호버는 배경 #00295f + 흰 글자, 0.3s 전환 */
.sm-nav__sublink {
    display: block;
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    transition: all 0.3s;
}
.sm-nav__sublink:hover,
.sm-nav__sublink:focus-visible { background: #00295f; color: #fff; }

/* '…' 버튼과, 폭이 모자라 접힌 메뉴(header.js 가 .sm-nav__sub--more 로 옮긴다) */
.sm-nav__item[hidden] { display: none; }

.sm-nav__more-btn {
    display: flex;
    align-items: center;
    height: 65px;
    padding-bottom: 0;
    background: none;
    border: 0;
    font: inherit;
}

/* 하위 메뉴(고객지원)를 옆으로 펼쳐야 해서 overflow 를 잘라내지 않고, 모서리는 첫·마지막 항목이 맡는다 */
.sm-nav__sub--more { right: 0; left: auto; overflow: visible; }
.sm-nav__sub--more > .sm-nav__item:first-child > .sm-nav__link { border-radius: 4px 4px 0 0; }
.sm-nav__sub--more > .sm-nav__item:last-child > .sm-nav__link { border-radius: 0 0 4px 4px; }

/* 접힌 항목은 상단 메뉴가 아니라 드롭다운 항목처럼 보인다(위 .sm-nav__sublink 와 같은 모양) */
.sm-nav__sub--more > .sm-nav__item { position: relative; }
.sm-nav__sub--more .sm-nav__link {
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.3s;
}
.sm-nav__sub--more .sm-nav__item:hover > .sm-nav__link { background: #00295f; color: #fff; }
.sm-nav__sub--more .sm-nav__item:has(:focus-visible) > .sm-nav__link { background: #00295f; color: #fff; }

/* 하위 메뉴가 있는 접힌 항목(고객지원)은 화살표를 달고 하위 메뉴를 왼쪽 옆으로 펼친다 */
.sm-nav__sub--more > .sm-nav__item--has-children > .sm-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sm-nav__sub--more > .sm-nav__item--has-children > .sm-nav__link::after { content: '›'; font-size: 16px; }
.sm-nav__sub--more .sm-nav__sub { top: 0; right: 100%; left: auto; }

.sm-nav__actions { display: flex; align-items: center; gap: 10px; }
/* GTM 선택자용 래퍼(무료 체험하기). 상자를 만들지 않아 안의 링크가 그대로 flex 항목이 된다 */
.sm-nav__gtm-inline { display: contents; }

/* 버튼: 글자 16px, 137×41(무료 체험하기) / 91×41(관리자), 모서리 6px, 간격 10px */
.sm-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    line-height: 23px;
    white-space: nowrap;
}
.sm-btn--primary { color: #fff; background: var(--sm-color-primary); border-color: var(--sm-color-primary); }
.sm-btn--outline { color: #222; background: #fff; border-color: #d3d3d3; }
/* 관리자 버튼의 라벨은 데스크톱 '관리자', 모바일 '관리자 페이지' */
.sm-btn__text--mobile { display: none; }

/* ---------- 본문 ---------- */
.sm-main { min-height: 50vh; }

/* ---------- 푸터 ---------- */
/*
 * 원본(sellmate.io) 1300px 데스크톱 푸터를 2026-11-06 에 측정한 값이다. 주석의 y 는 '서비스' 글자 위쪽 기준이다.
 * 내용 폭 1144px, 위 구분선은 1160px 폭 1px #f4f4f4.
 */
.sm-footer { color: var(--sm-color-text); background: #fff; }

/* 데스크톱/모바일 푸터는 원본처럼 991/992px 에서 바뀐다 */
.sm-footer__mobile { display: none; }

/* 원본은 폭에 비례한다: 화면 양쪽 20px 를 두고 최대 1160px (1100·1150·1199·1201·1250px 측정 일치) */
.sm-footer__inner {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 70px 8px 0;
    border-top: 1px solid #f4f4f4;
}

.sm-footer__top { position: relative; }

/* 회사 열은 내용 폭의 17% 위치(1300px → 194px, 1100px → 175px) */
.sm-footer__columns { display: flex; }
.sm-footer__column { width: 17%; }

.sm-footer__title { display: block; color: #252525; font-size: 16px; font-weight: 700; line-height: 24px; }

/* 링크: 15px #888, 줄 높이 30px, 간격 8px (첫 링크 y47) */
.sm-footer__links { margin: 19px 0 0; padding: 0; list-style: none; }
.sm-footer__links li { display: flex; align-items: center; gap: 4px; height: 30px; margin: 0 0 8px; }
.sm-footer__links li:last-child { margin-bottom: 0; }
/* 원본의 링크 간격은 고르지 않다: 서비스 열 y47·84·124·164·198, 회사 열 y47·82 */
.sm-footer__column:first-child .sm-footer__links li:nth-child(1) { margin-bottom: 7px; }
.sm-footer__column:first-child .sm-footer__links li:nth-child(2),
.sm-footer__column:first-child .sm-footer__links li:nth-child(3) { margin-bottom: 10px; }
.sm-footer__column:first-child .sm-footer__links li:nth-child(4) { margin-bottom: 4px; }
.sm-footer__column:nth-child(2) .sm-footer__links li:nth-child(1) { margin-bottom: 5px; }
.sm-footer__links a { color: #888; font-size: 15px; line-height: 30px; }
.sm-footer__badge { display: block; width: 48px; height: 23px; }

/* 소셜 아이콘: 오른쪽 위, 간격 26px */
/* 소셜 아이콘은 내용 폭의 89.25% · 93.6% · 97.8% 위치(원본 측정, 세로는 '서비스' 글자 기준 0 / -3 / -2px) */
.sm-footer__social { margin: 0; padding: 0; list-style: none; }
.sm-footer__social li { position: absolute; }
.sm-footer__social li:nth-child(1) { top: 2px; left: 89.25%; }
.sm-footer__social li:nth-child(2) { top: -1px; left: 93.6%; }
.sm-footer__social li:nth-child(3) { top: 0; left: 97.8%; }
.sm-footer__social a,
.sm-footer__social img { display: block; }

/* 왼쪽(고객센터 + 약관)과 오른쪽(인증)이 나란히. 고객센터 제목 y334 */
.sm-footer__middle { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 106px; }

.sm-footer__customer-title { display: block; color: #06587d; font-size: 15px; font-weight: 700; line-height: 30px; }
.sm-footer__customer p { margin: 2px 0 0; font-size: 14px; line-height: 28px; }
.sm-footer__contact strong { color: #3d92f6; font-weight: 700; }
.sm-footer__kakao,
.sm-footer__hours { color: #8c8c8c; }
.sm-footer__email { color: #8c8c8c; font-weight: 700; }

/* 약관: y539, 이용약관 #15417d · 구분자 'ㅣ' #ababab · 개인정보처리방침 #3d92f6 */
/* flex 로 두어 마크업 공백이 간격에 끼지 않게 한다(원본 간격: 이용약관 7px ㅣ 8px 개인정보처리방침) */
.sm-footer__terms { display: flex; margin: 90px 0 0; font-size: 14px; line-height: 19.6px; }
.sm-footer__term { font-weight: 700; }
.sm-footer__term--dark { color: #15417d; }
.sm-footer__term--primary { color: #3d92f6; }
.sm-footer__terms-sep { margin: 0 7px; color: #ababab; }

/* 인증: 이미지 y387 오른쪽 정렬, 라벨(굵게)/값 네 줄 y477·505·533·561 */
.sm-footer__cert { margin-top: 59px; text-align: right; }
.sm-footer__cert img { display: block; margin-left: auto; }
.sm-footer__cert p { margin: 14px 0 0; color: #8c8c8c; font-size: 14px; line-height: 14px; }
.sm-footer__cert img + p { margin-top: 42px; }
.sm-footer__cert-label { font-weight: 700; }

/* (주)셀메이트 y605 왼쪽, Copyright 13px 오른쪽 */
.sm-footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 28px; }
.sm-footer__company { color: #222; font-size: 14px; font-weight: 700; line-height: 19.6px; }
.sm-footer__copyright { margin: 1px 0 0; color: #8c8c8c; font-size: 13px; line-height: 18.2px; }

/*
 * 사업자 정보: 최대 1120px 가운데 상자(화면 양쪽 최소 20px), 문단은 상자 폭을 다 쓴다.
 * 원본은 빈 오른쪽 칼럼 때문에 문단이 상자의 74.1% 였지만, 이전하면서 넓혔다(2026-11-06 결정).
 * 줄바꿈은 항목 단위로만 일어나게 flex-wrap 으로 늘어놓고, 간격은 원본 값(첫 줄 10.5px, 나머지 8px)을 gap 으로 낸다.
 * 항목 하나가 한 줄보다 길 때(모바일의 주소)는 keep-all 로 단어 중간이 아니라 띄어쓰기에서 끊고,
 * 띄어쓰기 없는 묶음이 그래도 넘치면 overflow-wrap 으로 마지막에만 글자 단위로 끊는다.
 */
.sm-footer__legal { width: calc(100% - 40px); max-width: 1120px; margin: 44px auto 0; padding: 0 0 40px; color: #222; font-size: 14px; line-height: 19.6px; word-break: keep-all; overflow-wrap: anywhere; }
.sm-footer__legal p { margin: 0; }
.sm-footer__legal-lead { display: flex; flex-wrap: wrap; column-gap: 10.5px; margin-bottom: 100px !important; }
.sm-footer__legal-row { display: flex; flex-wrap: wrap; column-gap: 8px; }
.sm-footer__legal-row + .sm-footer__legal-row { margin-top: 6px; }

/* ---------- 플로팅 버튼 (화면 오른쪽 고정) ---------- */
/* 원본 위치: 오른쪽 60px, 세로는 화면 높이의 48% 를 묶음 가운데로(높이 500/700/900 에서 측정) */
.sm-floating {
    position: fixed;
    top: 48%;
    right: 60px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.sm-floating__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100px;
    height: 100px;
    padding: 0 12px;
    text-align: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50%;
    /* 원본처럼 button 이므로 브라우저 기본 글꼴·커서를 덮는다 */
    font: inherit;
    cursor: pointer;
}

.sm-floating__label { font-size: 13px; font-weight: 700; line-height: 19.24px; }
/* 원본은 '뉴스레터 / 구독' 두 줄로 나온다 */
.sm-floating__btn--newsletter .sm-floating__label { width: 45px; }

.sm-floating__btn--consult { color: #2763d2; border-color: #6798f3; }
/* 원본은 상담 문의만 아이콘과 글자 사이가 8px, 나머지는 4px */
.sm-floating__btn--consult svg { margin-bottom: 4px; }
.sm-floating__btn--brochure { color: #3d92f6; border-color: #81bbff; }
.sm-floating__btn--newsletter {
    color: #fff;
    background: linear-gradient(#60a9ff 0%, #9d7aff 100%);
    border-width: 0;
}

/* 호버(원본 2026-11-13 측정, 전환 0s): 배경을 테두리색으로 채우고 글자·아이콘을 흰색으로. 뉴스레터는 그라데이션이 단색 #60a9ff 로 바뀐다 */
.sm-floating__btn--consult:hover { background: #6798f3; color: #fff; }
.sm-floating__btn--brochure:hover { background: #81bbff; color: #fff; }
.sm-floating__btn--newsletter:hover { background: #60a9ff; }

/* ---------- 태블릿 폭 축소 ---------- */
/* 원본 사이트 커스텀 CSS(custom.cm)의 규칙을 그대로 옮겼다. 767~1024px 에서는 화면 전체를 0.85배로 보여준다. */
@media (max-width: 1024px) and (min-width: 767px) {
    body { zoom: 0.85; }
}

/* ---------- 1200px 이하: 헤더 좌우 여백 20px (원본) ---------- */
@media (max-width: 1200px) {
    .sm-header__inner { padding: 0 20px; }
}

/* ---------- 좁은 화면 (991px 이하) ---------- */
/*
 * 원본은 기기 종류와 상관없이 폭만 보고 991/992px 에서 바뀐다(터치 태블릿 가로 모드도 992px 이상이면 데스크톱 헤더).
 * 데스크톱은 폭이 모자라면 오른쪽 끝 메뉴를 '…' 으로 접는다(header.js).
 * 모바일 메뉴는 오른쪽에서 슬라이드로 나오는 폭 300px 패널이다. 뒤는 검은 딤(불투명도 0.6)이고,
 * 패널 바로 왼쪽에 흰 ✕ 가 있다. 하위 메뉴는 접혀 있다가 펼친다. 아래쪽에 '관리자 페이지' → '무료 체험하기' 버튼.
 * 헤더는 높이 64px, 아래 선 없음, 좌우 여백 20px, 모바일 로고(96×26).
 */
@media (max-width: 991px) {
    .sm-header { border-bottom: 0; }
    .sm-header__inner { min-height: 64px; padding: 0 20px; }
    .sm-header__logo-desktop { display: none; }
    .sm-header__logo-mobile { display: block; }

    /* 열려 있는 동안은 헤더(와 그 안의 패널)가 플로팅 버튼(z-index 999)보다 위에 온다 */
    .sm-header.is-open { z-index: 1600; }
    html.sm-menu-open { overflow: hidden; }

    /* 서비스 소개서: 114×35, 14px 자간 -1px, 아이콘(17×14)과 글자 사이 6px */
    .sm-header__brochure {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        padding: 6px 10px;
        color: #3d92f6;
        font-size: 14px;
        line-height: 21px;
        white-space: nowrap;
        background: #fff;
        border: 1px solid #3d92f6;
        border-radius: 8px;
    }
    .sm-header__brochure svg { width: 17px; height: 14px; margin-right: 6px; }
    .sm-header__brochure-label { letter-spacing: -1px; }

    /* 햄버거: 36×38, 아이콘 #666 */
    .sm-header__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7px;
        width: 36px;
        height: 38px;
        margin-left: 12px;
    }
    .sm-header__toggle-bar { width: 24px; height: 1.5px; margin: 0; }

    .sm-header__backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0s linear 0.3s;
    }
    .sm-header.is-open .sm-header__backdrop { opacity: 1; visibility: visible; transition: opacity 0.3s; }

    /* 흰 ✕: 화면 왼쪽 고정이 아니라 패널(300px) 바로 왼쪽 10px 지점에 붙는다(원본 right: 310px, top: 9px) */
    .sm-header__close {
        display: block;
        position: fixed;
        top: 9px;
        right: 310px;
        z-index: 3;
        width: 32px;
        height: 32px;
        margin-top: 8px;
        padding: 0;
        background: none;
        border: 0;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0s linear 0.3s;
    }
    .sm-header.is-open .sm-header__close { opacity: 1; visibility: visible; transition: opacity 0.3s; }
    .sm-header__close::before,
    .sm-header__close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 2px;
        margin: -1px 0 0 -11px;
        background: #fff;
        transform: rotate(45deg);
    }
    .sm-header__close::after { transform: rotate(-45deg); }

    /* 패널: 폭 300px, 화면 높이 전체. 닫혀 있을 땐 화면 밖에 두고 포커스도 못 받게 한다 */
    .sm-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        flex-direction: column;
        align-items: stretch;
        width: 300px;
        max-width: 100%;
        overflow-y: auto;
        background: #fff;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s, visibility 0s linear 0.3s;
    }
    .sm-header.is-open .sm-nav { transform: none; visibility: visible; transition: transform 0.3s; }

    .sm-nav__list { flex-direction: column; margin: 0; }

    /* 행: 높이 46px(링크 45px + 구분선 1px) */
    .sm-nav__item { border-bottom: 1px solid var(--sm-color-line); }
    /* 글자 위치를 원본(행 위에서 16px)에 맞춰 위 13px · 아래 11px */
    .sm-nav__link { padding: 13px 20px 11px; color: #222; font-size: 13px; line-height: 21px; }
    .sm-nav__link:hover { color: #222; }

    /* 하위 메뉴가 있는 행: 오른쪽 화살표 버튼으로 접고 편다 */
    .sm-nav__expand {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 45px;
        padding: 0;
        background: none;
        border: 0;
        cursor: pointer;
    }
    .sm-nav__expand::after {
        content: '';
        display: block;
        width: 7px;
        height: 7px;
        margin: -5px auto 0;
        border-right: 1.5px solid #888;
        border-bottom: 1.5px solid #888;
        transform: rotate(45deg);
    }
    .sm-nav__item.is-expanded > .sm-nav__expand::after { margin-top: 3px; transform: rotate(-135deg); }

    /* 호버·포커스로 열리는 데스크톱 규칙을 끄고, is-expanded 일 때만 펼친다 */
    .sm-nav__sub {
        display: none;
        position: static;
        margin: 0 0 14px;
        min-width: 0;
        overflow: visible;
        background: none;
        border-radius: 0;
        box-shadow: none;
    }
    .sm-nav__item:hover > .sm-nav__sub { display: none; }
    .sm-nav__item:has(:focus-visible) > .sm-nav__sub { display: none; }
    .sm-nav__item.is-expanded > .sm-nav__sub { display: block; }

    .sm-nav__sub > li { border-top: 1px solid var(--sm-color-line); }
    .sm-nav__subitem--mobile-only { display: block; }
    /* 원본 측정: 하위 메뉴 글자(span.plain_name) 13px, 왼쪽 32px. 줄 높이 21px 로 행 높이 45px 유지 */
    .sm-nav__sublink { padding: 13px 32px 11px; color: #222; font-size: 13px; line-height: 21px; }
    .sm-nav__sublink:hover,
    .sm-nav__sublink:focus-visible { background: none; color: #222; }

    /* 하단 버튼: 관리자 페이지(테두리)가 위, 무료 체험하기(파랑)가 아래 */
    .sm-nav__actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        margin-top: auto;
        padding: 10px 10px 12px;
    }
    .sm-btn { padding: 14px 6px; font-size: 13px; text-align: center; }
    .sm-btn--outline { color: #00295f; border-color: #9fb5d3; }
    .sm-btn__text { display: none; }
    .sm-btn__text--mobile { display: inline; }
}

/* ---------- 모바일 푸터 (991px 이하) ---------- */
/*
 * 원본(sellmate.io) 390px 모바일 푸터를 2026-11-06 에 측정한 값이다. 주석의 y 는 '서비스' 글자 위쪽 기준이다.
 * 위쪽 화면 폭 전체 1px #eee 선, 내용 좌우 여백 32px. 플로팅 버튼은 원본처럼 보이지 않는다.
 */
@media (max-width: 991px) {
    .sm-floating { display: none; }

    .sm-footer__desktop { display: none; }
    .sm-footer__mobile { display: block; }
    .sm-footer__mobile { border-top: 1px solid #eee; }

    .sm-footer-m__inner { padding: 40px 32px 0; }

    .sm-footer-m__title { display: block; color: #252525; font-size: 14px; font-weight: 700; line-height: 28px; }
    .sm-footer-m__muted { color: #646464; }

    /* 서비스 / 회사(x156), 링크 14px #888, 40px 간격, 아래 1px #eee 구분선(y242) */
    .sm-footer-m__columns { display: flex; padding-bottom: 19px; border-bottom: 1px solid #eee; }
    /* 회사 열은 내용 폭의 50% (390px → 156, 600px → 261) */
    .sm-footer-m__column { width: 50%; }
    .sm-footer-m__links { margin: 0; padding: 0; list-style: none; }
    .sm-footer-m__links li { display: flex; align-items: center; gap: 7px; height: 28px; margin-top: 12px; }
    .sm-footer-m__links a { color: #888; font-size: 14px; line-height: 28px; }
    .sm-footer-m__badge { display: block; width: 40px; height: 19px; }

    /* 소셜: 46px 칸 가운데 정렬, 같은 탭에서 열린다 */
    .sm-footer-m__social { display: flex; margin: 21px 0 0; padding: 0; list-style: none; }
    /* 아이콘 칸은 내용 폭의 15% (390px → 46.7, 600px → 78), 아이콘은 칸 가운데. 네이버만 원본처럼 2.5px 왼쪽 */
    .sm-footer-m__social li { width: 15%; height: 36px; }
    .sm-footer-m__social li:nth-child(3) img { margin-left: -5px; }
    .sm-footer-m__social a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
    .sm-footer-m__social img { display: block; }

    /* 인증: 이미지 160×37(y344), 라벨 13px 굵게 / 값 13px, #646464 */
    .sm-footer-m__cert { margin-top: 45px; padding-left: 8px; color: #646464; font-size: 13px; line-height: 15px; }
    .sm-footer-m__cert img { display: block; }
    .sm-footer-m__cert p { margin: 31px 0 0; }
    .sm-footer-m__cert img + p { margin-top: 27px; }
    .sm-footer-m__cert strong { display: inline-block; margin-bottom: 8px; font-weight: 700; }

    /* 고객센터(y569): 14px 줄 높이 21px, 줄 간격 30px. 번호만 파란 굵은 글씨 */
    .sm-footer-m__customer { margin-top: 48px; }
    .sm-footer-m__customer p,
    .sm-footer-m__company p { margin: 9px 0 0; font-size: 14px; line-height: 21px; }
    .sm-footer-m__customer .sm-footer-m__title + p { margin-top: 15px; }
    .sm-footer-m__company .sm-footer-m__title + p { margin-top: 13px; }
    .sm-footer-m__number { color: #4299ff; font-weight: 700; }
    .sm-footer-m__email { color: #646464; font-weight: 700; }

    /* (주)셀메이트(y752) 회사 정보 */
    .sm-footer-m__company { margin-top: 33px; }
    .sm-footer-m__company .sm-footer-m__title { line-height: 21px; }
    /* 주소 줄: 줄바꿈 간격 30px(원본 390px 측정). 첫 줄 글자 위치는 다른 줄과 같게 위 여백을 4.5px 줄인다 */
    .sm-footer-m__company p.sm-footer-m__address { margin-top: 4.5px; line-height: 30px; }

    /* 약관(y960·994): 세로로 쌓고 둘 다 #15417d 굵게 */
    .sm-footer-m__terms { margin: 26.5px 0 0; padding: 0; list-style: none; }
    .sm-footer-m__terms li + li { margin-top: 10px; }
    .sm-footer-m__terms a { color: #15417d; font-size: 14px; font-weight: 700; line-height: 21px; }

    /* Copyright(y1051) 10px */
    .sm-footer-m__copyright { margin: 36px 0 0; color: #646464; font-size: 10px; line-height: 15px; }

    /* 사업자 정보: 좌우 여백 15px */
    .sm-footer__legal { width: auto; max-width: none; margin-top: 79px; padding: 0 15px 40px; }
}

/*
 * 스크롤하면 나타나는 효과(이전 페이지 공통, page.js). 원본 ImWeb 위젯의 fadeIn·fadeInUp 과 같다.
 * - head 의 인라인 스크립트가 html 에 .sm-js 를 붙이면, page.js 가 판정하기 전까지 대상을 숨긴다.
 *   page.js 는 판정한 요소에 .is-reveal-pending(대기, 투명)을 붙였다가, 첫 화면 요소는 원본처럼 페이지 로드가 끝난 뒤,
 *   아래쪽 요소는 화면에 들어온 뒤 — 둘 다 요소 안 이미지가 도착한 뒤 — .is-revealed 로 바꾼다. 대기 상태의 상한(3초)은 page.js 가 맡는다.
 * - JS 가 꺼져 있으면(.sm-js 없음) 숨기지 않고, page.js 가 실행되지 못해도(판정 전) 3초 뒤에는 보이게 한다(sm-reveal-failsafe).
 * 효과는 data-sm-reveal(값 없음·fade = 서서히, up = 아래에서 올라오기), 시간은 --sm-reveal-duration(기본 1초).
 */
@media (prefers-reduced-motion: no-preference) {
    .sm-js [data-sm-reveal]:not(.is-revealed):not(.is-reveal-pending) { opacity: 0; animation: sm-reveal-failsafe 0s linear 3s forwards; }
}
@keyframes sm-reveal-failsafe { to { opacity: 1; } }
[data-sm-reveal].is-reveal-pending { opacity: 0; }
[data-sm-reveal].is-revealed { animation: sm-reveal-fade var(--sm-reveal-duration, 1s) ease both; }
/* page.js 가 안전장치(3초)보다 늦게 실행되면 이미 보인 첫 화면 요소를 다시 숨기지 않는다 */
[data-sm-reveal].is-revealed.is-reveal-instant { animation: none; }
[data-sm-reveal="up"].is-revealed { animation-name: sm-reveal-up; }
@keyframes sm-reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-reveal-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    [data-sm-reveal].is-revealed { animation: none; }
    [data-sm-reveal].is-reveal-pending { opacity: 1; }
}

/* 이미지 위 링크 영역(pages/main_image_map 파셜). 여러 페이지가 함께 쓰므로 공통 CSS 에 둔다. 링크 위치는 이미지 대비 % */
.sm-imap ._img_box { position: relative; line-height: 0; }
.sm-imap img { display: block; width: 100%; height: auto; }
.sm-imap__area { position: absolute; display: block; }

/* ---------- 헤더 '관리자' 모달 (partials/admin_modal, header.js) ---------- */
/* 원본(아임웹 모달) 측정값(2026-11-24, 1920px): 덮개 검정 50%, 상자 너비 328px·위에서 80px·가운데·모서리 8px,
   제목 24px 굵게(28.8px), 안내 16px 2줄(줄 간격 28px), 그 아래 iframe 높이 160px, 닫기는 지름 34px 흰 원이 상자 오른쪽 위 모서리에 걸친다.
   층 순서는 플로팅 버튼(999)·열린 모바일 메뉴(1600)보다 위다. 좁은 화면에서는 닫기 버튼이 화면 밖으로 나가지 않게 폭을 줄인다 */
.sm-admin-modal { position: fixed; inset: 0; z-index: 2000; }
.sm-admin-modal[hidden] { display: none; }
.sm-admin-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.sm-admin-modal__box {
    position: relative;
    width: min(328px, calc(100vw - 40px));
    margin: 80px auto 0;
    padding: 31px 0 22px;
    color: #222;
    text-align: center;
    background: #fff;
    border-radius: 8px;
}
.sm-admin-modal__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 28.8px; }
.sm-admin-modal__desc { margin: 24px 0 0; font-size: 16px; font-weight: 400; line-height: 28px; }
.sm-admin-modal__frame { display: block; width: 100%; height: 160px; margin: 12px 0 0; border: 0; }
.sm-admin-modal__close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.sm-admin-modal__close::before,
.sm-admin-modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: #000;
    transform: translate(-50%, -50%) rotate(45deg);
}
.sm-admin-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* 열려 있는 동안 뒤 화면이 스크롤되지 않게 한다 */
html.sm-admin-modal-open { overflow: hidden; }

/* 화면에는 숨기고 화면 읽기 프로그램에는 읽히게 한다(원본이 이미지로만 둔 제목 등) */
.sm-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
