@charset "utf-8";
/* ===================================================================
   수완메디컬 공통 스타일 (토큰 · 리셋 · 레이아웃 · 버튼 · 모션 · 헤더 · 푸터)
   - 폰트 Pretendard 는 head.sub.php 에서 로드됨
   =================================================================== */

:root{
    --sm-primary:#1664F5;
    --sm-primary-2:#4E7DE2;
    --sm-grad:linear-gradient(108.41deg, #4E7DE2 1.49%, #1664F5 100%);
    --sm-ink:#111111;
    --sm-navy:#171C61;
    --sm-gray:#666666;
    --sm-line:#cccccc;
    --sm-bg-soft:#f4f7ff;
    --sm-content:1600px;
    --sm-ease:cubic-bezier(.22,.61,.36,1);
}

/* ---- reset-lite (수완 영역 한정) ---- */
.sm-wrap *,
.sm-wrap *::before,
.sm-wrap *::after{ box-sizing:border-box; }

.sm-wrap{
    font-family:'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    color:var(--sm-ink);
    line-height:1.5;
    word-break:keep-all;
    overflow-wrap:break-word;
    -webkit-font-smoothing:antialiased;
}
.sm-wrap img{ max-width:100%; vertical-align:top; }
.sm-wrap a{ color:inherit; text-decoration:none; }
/* .sm-wrap h1,.sm-wrap h2,.sm-wrap h3,.sm-wrap h4,.sm-wrap p,.sm-wrap ul,.sm-wrap li,.sm-wrap figure{ margin:0; padding:0; }*/
.sm-wrap ul{ list-style:none; }
.sm-wrap #bo_v_info { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sm-wrap #bo_v_info #bo_v_top { margin: 0 0 0 auto; float: none; }
.sm-wrap #bo_v_top .bo_v_com { display: flex; justify-content: flex-end; gap: 8px; float: none; margin: 0; }
.sm-wrap #bo_v_top .bo_v_com > li { margin: 0; }
.sm-wrap .sm-board-view-bottom { display: flex; justify-content: center; clear: both; margin-top: 60px; }
.sm-wrap a.sm-board-list-button { min-width: 140px; min-height: 50px; padding: 12px 30px; border: 1px solid var(--sm-primary); background: var(--sm-primary); color: #fff; border-radius: 8px; font-size: 18px; }
.sm-wrap a.sm-board-list-button:is(:hover, :focus-visible) { filter: brightness(1.08); }
.sm-subhero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #fff, rgba(22,100,245,.03)); }
.sm-subhero-bg > div { position: absolute; filter: blur(50px); opacity: .5; }
.sm-subhero-bg img { position: absolute; max-width: none; }
.sm-subhero-bg__left { left: max(calc((100% - 2000px) / 2 - 242px), -242px); top: 375px; width: 472px; }
.sm-subhero-bg__left img:nth-child(1) { left: 0; top: 0; mix-blend-mode: multiply; }
.sm-subhero-bg__left img:nth-child(2) { left: 43px; top: 16px; }
.sm-subhero-bg__left img:nth-child(3) { left: 16px; top: -73px; mix-blend-mode: multiply; }
.sm-subhero-bg__left img:nth-child(4) { left: 59px; top: -56px; }
.sm-subhero-bg__right { right: max(calc((100% - 2000px) / 2 - 36px), -36px); top: -170px; width: 759px; }
.sm-subhero-bg__right img:nth-child(odd) { left: 0; top: 0; mix-blend-mode: multiply; }
.sm-subhero-bg__right img:nth-child(even) { left: 69px; top: 73px; }
@media (max-width: 1024px) { .sm-subhero-bg__right { right: -260px; } }
.sm-wrap button{ font-family:inherit; cursor:pointer; border:0; background:none; }

/* default.css 요소 선택자 충돌 방지 (Pretendard·keep-all 유지) — 사용자 지시: 충돌 시 !important */
.sm-wrap h1,.sm-wrap h2,.sm-wrap h3,.sm-wrap h4,.sm-wrap h5,.sm-wrap h6,
.sm-wrap p,.sm-wrap a,.sm-wrap span,.sm-wrap li,.sm-wrap button,
.sm-wrap input,.sm-wrap textarea,.sm-wrap select{
    font-family:'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif !important;
}
.sm-wrap p,.sm-wrap h1,.sm-wrap h2,.sm-wrap h3,.sm-wrap h4,.sm-wrap h5,.sm-wrap h6,
.sm-wrap li,.sm-wrap span,.sm-wrap div{
    word-break:keep-all !important;
    overflow-wrap:break-word;
}
/* default.css 의 input:focus{border:1px solid #558ab7 !important; box-shadow:0 0 5px #9ed4ff} 충돌 제거
   → 폼 포커스는 브랜드 컬러로 통일, 기본 파란 글로우 제거 */
.sm-wrap input:focus,
.sm-wrap textarea:focus,
.sm-wrap select:focus{
    box-shadow:none !important;
    border-color:var(--sm-primary) !important;
}

/* ---- 콘텐츠 폭 ----
   ≥1641px : 정확히 1600px (좌우 여백 없음)
   ≤1640px : 좌우 20px 여백 적용 (브라우저 1640부터 들어감) */
.sm-inner{
    width:100%;
    max-width:1600px;
    margin:0 auto;
}
@media (max-width:1640px){
    .sm-inner{ max-width:none; padding-left:20px; padding-right:20px; }
}

/* ---- 공통 버튼 (통일된 부드러운 호버) ---- */
.sm-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:600;
    line-height:1.5;
    white-space:nowrap;
    border-radius:8px;
    transition:background-color .28s var(--sm-ease),
               color .28s var(--sm-ease),
               border-color .28s var(--sm-ease),
               box-shadow .28s var(--sm-ease),
               transform .28s var(--sm-ease),
               opacity .28s var(--sm-ease);
    will-change:transform;
}
.sm-btn__arrow{ display:inline-block; transition:transform .28s var(--sm-ease); }
.sm-btn:hover .sm-btn__arrow{ transform:translateX(4px); }

/* 대상과 행동이 함께 있는 버튼 문구 */
.sm-action-label { font-weight:400; }
.sm-action-label > strong { font-weight:600; }

/* 메인과 서브페이지에서 공통으로 사용하는 ↗ 링크 */
.sm-more-link__arrow { display:inline-block; font-size:20px; transition:transform .28s var(--sm-ease); }
.sm-more-link:is(:hover, :focus-visible) .sm-more-link__arrow { transform:translate(3px,-3px); }
.sm-wrap .sm-more-link--blue:is(:hover, :focus-visible) { color:var(--sm-primary); border-color:var(--sm-primary); }
@media (prefers-reduced-motion: reduce) {
    .sm-more-link__arrow { transition:none; }
    .sm-more-link:is(:hover, :focus-visible) .sm-more-link__arrow { transform:none; }
}

/* primary : 그라데이션 */
.sm-btn--primary{
    background-image:var(--sm-grad);
    color:#fff !important;   /* 그누보드 a 색상/.sm-wrap a 상속과 충돌 방지 */
}
.sm-btn--primary,
.sm-btn--primary *{ color:#fff !important; }
.sm-btn--primary:hover{ filter:brightness(1.08); }

/* 무료상담 버튼 글자색 흰색 강제 */
.sm-hd__consult,
.sm-hd__consult *,
.sm-drawer__consult,
.sm-drawer__consult *{ color:#fff !important; }

/* line : 외곽선 */
.sm-btn--line{
    background:#fff;
    color:var(--sm-ink);
    border:1px solid var(--sm-line);
}
.sm-btn--line:hover{ border-color:var(--sm-primary); color:var(--sm-primary); }

/* solid navy / white 변형은 섹션 CSS 에서 확장 */

/* ---- 스크롤 등장 모션 ---- */
.sm-reveal{
    opacity:0;
    transform:translateY(36px);
    transition:opacity .8s var(--sm-ease), transform .8s var(--sm-ease);
}
.sm-reveal.is-in{ opacity:1; transform:none; }
/* 모바일은 스크롤 등장 대기 없이 콘텐츠를 처음부터 표시한다. */
@media(max-width:1024px){.sm-wrap .sm-reveal{opacity:1;transform:none;transition:none;transition-delay:0s}}
.sm-reveal[data-delay="1"]{ transition-delay:.10s; }
.sm-reveal[data-delay="2"]{ transition-delay:.20s; }
.sm-reveal[data-delay="3"]{ transition-delay:.30s; }
.sm-reveal[data-delay="4"]{ transition-delay:.40s; }
.sm-reveal[data-delay="5"]{ transition-delay:.50s; }
@media (prefers-reduced-motion: reduce){
    .sm-reveal{ opacity:1; transform:none; transition:none; }
}

/* ===================================================================
   헤더
   =================================================================== */
#sm_header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    border-bottom:1px solid var(--sm-line);
}
.sm-hd__inner{
    max-width:1600px;
    margin:0 auto;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
@media (max-width:1640px){
    .sm-hd__inner{ max-width:none; padding-left:20px; padding-right:20px; }
}
.sm-hd__logo{ flex:0 0 auto; display:inline-flex; align-items:center; }
.sm-hd__logo img{ width:254px; height:45px; object-fit:contain; }

.sm-gnb{ flex:1 1 auto; display:flex; justify-content:flex-end; }
.sm-gnb__ul{ display:flex; align-items:center; }
.sm-gnb__li{ position:relative; }
.sm-gnb__a{
    display:block;
    padding:20px;
    font-size:17px;
    font-weight:500;
    color:var(--sm-ink);
    line-height:1.5;
    transition:color .25s var(--sm-ease);
}
.sm-gnb__a:hover,
.sm-gnb__li.is-active > .sm-gnb__a{ color:var(--sm-primary); }

.sm-hd__cta{ flex:0 0 auto; display:flex; align-items:center; gap:12px; }
.sm-hd__consult{
    min-height:39px;
    padding:8px 20px;
    font-size:17px;
    font-weight:600;
}

/* 모바일 햄버거 */
.sm-hd__ham{
    display:none;
    width:44px; height:44px;
    flex-shrink:0; padding:0;
    flex-direction:column; justify-content:center; align-items:center; gap:5px;
}
.sm-hd__ham span{ display:block; width:24px; height:2px; background:var(--sm-ink); transition:transform .3s var(--sm-ease), opacity .3s var(--sm-ease); }
body.sm-drawer-open .sm-hd__ham span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
body.sm-drawer-open .sm-hd__ham span:nth-child(2){ opacity:0; }
body.sm-drawer-open .sm-hd__ham span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* 모바일 드로어 */
.sm-drawer{ position:fixed; inset:0; z-index:1100; visibility:hidden; }
.sm-drawer__dim{ position:absolute; inset:0; background:rgba(0,0,0,.45); opacity:0; transition:opacity .3s var(--sm-ease); }
.sm-drawer__panel{
    position:absolute; top:0; right:0; height:100%; width:300px; max-width:84vw;
    background:#fff; transform:translateX(100%); transition:transform .32s var(--sm-ease);
    display:flex; flex-direction:column; padding:20px;
    border-left:1px solid #eee;
}
body.sm-drawer-open .sm-drawer{ visibility:visible; }
body.sm-drawer-open .sm-drawer__dim{ opacity:1; }
body.sm-drawer-open .sm-drawer__panel{ transform:none; }
.sm-drawer__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.sm-drawer__head > a{min-width:0;flex:1}
.sm-drawer__head img{ width:200px; max-width:100%; height:auto; }
.sm-drawer__close{ position:relative; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; background:transparent; font-size:0; color:var(--sm-ink); }
.sm-drawer__close::before,.sm-drawer__close::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:2px;background:currentColor}
.sm-drawer__close::before{transform:translate(-50%,-50%) rotate(45deg)}
.sm-drawer__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.sm-dnav__a{ display:block; padding:16px 6px; font-size:18px; font-weight:600; border-bottom:1px solid #eee; transition:color .25s var(--sm-ease); }
.sm-dnav__a:hover{ color:var(--sm-primary); }
.sm-drawer__consult{ margin-top:20px; width:100%; min-height:48px; font-size:17px; }

body.sm-no-scroll{ overflow:hidden; }

/* ---- 레이어 팝업 (경고창 대체) ---- */
.sm-popup{ position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; }
.sm-popup.is-open{ display:flex; }
.sm-popup__dim{ position:absolute; inset:0; background:rgba(17,17,17,.5); animation:smFade .2s var(--sm-ease); }
.sm-popup__box{
    position:relative; width:380px; max-width:calc(100vw - 40px);
    background:#fff; border-radius:16px; padding:40px 30px 30px; text-align:center;
    animation:smPopIn .32s var(--sm-ease);
}
.sm-popup__icon{ margin:0 auto 18px; width:52px; height:52px; }
.sm-popup__title{ font-size:20px; font-weight:700; color:var(--sm-ink); margin-bottom:8px; }
.sm-popup__msg{ font-size:15px; color:var(--sm-gray); line-height:1.6; }
.sm-popup__ok{ margin-top:24px; min-width:120px; min-height:46px; font-size:16px; }
@keyframes smFade{ from{opacity:0} to{opacity:1} }
@keyframes smPopIn{ from{opacity:0; transform:translateY(16px) scale(.96)} to{opacity:1; transform:none} }

/* 상단 이동 버튼 */
#sm_top_btn{
    position:fixed; right:28px; bottom:28px; z-index:900;
    width:50px; height:50px; border-radius:50%;
    background:var(--sm-navy); color:#fff; font-size:18px;
    display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden;
    transition:opacity .3s var(--sm-ease), transform .3s var(--sm-ease), background-color .25s var(--sm-ease);
}
#sm_top_btn.is-show{ opacity:1; visibility:visible; }
#sm_top_btn:hover{ background:var(--sm-primary); }

/* ===================================================================
   푸터 (Figma 7537:1294)
   =================================================================== */
#sm_footer{ background:#333333; padding:40px 0; }
.sm-ft__inner{ max-width:1600px; margin:0 auto; display:flex; }
@media (max-width:1640px){ .sm-ft__inner{ max-width:none; padding-left:20px; padding-right:20px; } }
.sm-ft__cols{ width:100%; display:flex; gap:125px; align-items:flex-start; }
.sm-ft__logo{ flex:0 0 auto; align-self:flex-start; }
.sm-ft__logo img{ width:254px; height:45px; object-fit:contain; }
.sm-ft__info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:16px; }
.sm-ft__links{
    width:100%; padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,.5);
    font-size:15px; font-weight:500; color:#fff; letter-spacing:-0.15px;
}
.sm-ft__links a{ transition:opacity .25s var(--sm-ease); }
.sm-ft__links a:hover{ opacity:.65; }
.sm-ft__links .sep{ margin:0 6px; }
.sm-ft__company{ font-size:17px; font-weight:400; color:#fff; letter-spacing:-0.17px; line-height:1.5; }
.sm-ft__copy{ font-size:15px; font-weight:300; color:#a2a2a2; letter-spacing:-0.15px; }

@media (max-width:1024px){
    .sm-ft__cols{ flex-direction:column; gap:24px; }
    .sm-ft__logo{ align-self:flex-start; }
    .sm-ft__logo img{ width:220px; height:auto; }
}
@media (max-width:480px){
    #sm_footer{ padding:32px 0; }
    .sm-ft__company{ font-size:14px; }
    .sm-ft__links, .sm-ft__copy{ font-size:13px; }
    .sm-ft__logo img{ width:190px; }
}

/* ---- 반응형 (헤더) ---- */
@media (max-width:1240px){
    .sm-gnb__a{ padding:20px 14px; font-size:16px; }
    .sm-gnb{ display:none; }
    .sm-hd__ham{ display:flex; }
}
@media (max-width:1024px){
    .sm-gnb{ display:none; }
    .sm-hd__consult{ display:none; }
    .sm-hd__ham{ display:flex; }
    .sm-hd__inner{ height:64px; }
    .sm-hd__logo img{ width:200px; height:36px; }
}
@media (max-width:480px){
    .sm-hd__logo img{ width:168px; height:30px; }
    #sm_top_btn{ right:16px; bottom:16px; width:44px; height:44px; }
}
