
/* ===== 속편한정내과 디자인 토큰 ===== */
:root{
  --teal:#10A1B1;          /* 로고 메인 컬러 */
  --teal-deep:#0A7C88;
  --teal-ink:#14707A;
  --teal-soft:#E3F4F6;
  --teal-mist:#F2F9FA;
  --ink:#1C2A30;
  --ink-2:#4A5A61;
  --ink-3:#5E6E74;
  --line:#DDE7EA;
  --white:#fff;
  --coral:#B8432A;         /* 포인트(아주 조금만) */
  --r-lg:22px;
  --r-md:14px;
  --r-sm:8px;
  --shadow:0 10px 30px rgba(11,78,87,.08);
  --shadow-up:0 18px 40px rgba(11,78,87,.14);
  --maxw:1180px;
  --hdr:78px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-y:scroll}
html.fl body{visibility:hidden}
#sp-header-slot{height:var(--hdr)}
body{font-size:19px;letter-spacing:-.01em;font-family:"Pretendard Variable","Pretendard",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:var(--white);line-height:1.65;word-break:keep-all;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
.sp-wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ===== 헤더 (아임웹 업로드 시 제거) ===== */
.sp-header{position:sticky;top:0;z-index:50;height:var(--hdr);background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.sp-header.is-scrolled{border-color:var(--line);box-shadow:0 4px 18px rgba(0,0,0,.04)}
.sp-header .sp-wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.sp-logo img{height:44px;width:auto}
.sp-gnb{display:flex;gap:6px}
.sp-gnb > li{position:relative}
.sp-gnb > li > a{display:block;padding:10px 16px;font-weight:600;font-size:17.5px;border-radius:999px;transition:background .2s,color .2s}
.sp-gnb > li > a:hover,.sp-gnb > li.is-on > a{color:var(--teal-deep);background:var(--teal-mist)}
.sp-gnb .sp-sub{position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%,6px);min-width:150px;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow);padding:8px;opacity:0;visibility:hidden;transition:.2s}
.sp-gnb > li:hover .sp-sub{opacity:1;visibility:visible;transform:translate(-50%,0)}
.sp-sub a{display:block;padding:8px 12px;border-radius:var(--r-sm);font-size:17.5px;color:var(--ink-2);white-space:nowrap}
.sp-sub a:hover{background:var(--teal-mist);color:var(--teal-deep)}
.sp-call{display:inline-flex;align-items:center;gap:8px;background:var(--teal-deep);color:#fff;font-weight:700;padding:10px 18px;border-radius:999px;font-size:17.5px}
.sp-call:hover{background:var(--teal-ink)}
.sp-burger{display:none;width:42px;height:42px;border:0;background:var(--teal-mist);border-radius:12px;cursor:pointer;position:relative}
.sp-burger span,.sp-burger::before,.sp-burger::after{content:"";position:absolute;left:11px;right:11px;height:2px;background:var(--teal-ink);border-radius:2px}
.sp-burger::before{top:14px}.sp-burger span{top:20px}.sp-burger::after{top:26px}
.sp-mnav{display:none}

/* ===== 공통 섹션 ===== */
.sp-sec{padding:96px 0}
.sp-sec.is-mist{background:var(--teal-mist)}
section[id]{scroll-margin-top:calc(var(--hdr) + 40px)}
.sp-eyebrow{display:inline-block;font-size:16px;font-weight:700;letter-spacing:.14em;color:var(--teal-deep);text-transform:uppercase;margin-bottom:12px}
h2.sp-title{font-size:clamp(24px,2.7vw,33px);line-height:1.3;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin-bottom:14px}
h2.sp-title em{font-style:normal;color:var(--teal-deep)}
p.sp-lead{font-size:19px;color:var(--ink-2);max-width:640px}
.sp-head{margin-bottom:48px}
.sp-head.is-center{text-align:center}
.sp-head.is-center p.sp-lead{margin:0 auto}

.sp-btn{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:700;font-size:19px;transition:.2s}
.sp-btn.is-fill{background:var(--teal-deep);color:#fff}
.sp-btn.is-fill:hover{background:var(--teal-ink)}
.sp-btn.is-line{border:1.5px solid var(--teal);color:var(--teal-deep);background:#fff}
.sp-btn.is-line:hover{background:var(--teal-mist)}
.sp-btn .arr{transition:transform .2s}
.sp-btn:hover .arr{transform:translateX(3px)}

/* 사진 박스 */
.sp-photo{border-radius:var(--r-lg);overflow:hidden;background:var(--teal-soft)}
.sp-photo img{width:100%;height:100%;object-fit:cover}
.sp-ph{border-radius:var(--r-lg);background:linear-gradient(135deg,var(--teal-soft),#fff);border:1.5px dashed #9fd3d9;display:flex;align-items:center;justify-content:center;color:var(--teal-deep);font-weight:600;font-size:17.5px;text-align:center;padding:20px;min-height:220px}

/* 카드 */
.sp-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:30px 28px;transition:transform .25s,box-shadow .25s,border-color .25s}
.sp-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-up);border-color:transparent}
.sp-card h3{font-size:21px;font-weight:700;margin-bottom:8px;letter-spacing:-.01em}
.sp-card p{color:var(--ink-2);font-size:17.5px}
.sp-ico{width:52px;height:52px;border-radius:16px;background:var(--teal-soft);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.sp-ico svg{width:26px;height:26px;stroke:var(--teal-deep);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 체크 리스트 */
.sp-check li{position:relative;padding-left:28px;margin-bottom:10px;color:var(--ink-2)}
.sp-check li::before{content:"";position:absolute;left:0;top:6px;width:18px;height:18px;border-radius:50%;background:var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300808D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat}

/* 교체 표시 */
.sp-todo{background:#FFF4D6;color:#8A5A00;padding:1px 6px;border-radius:4px;font-size:.9em;font-weight:600}

/* ===== 하위페이지 상단 ===== */
.sp-subhero{position:relative;padding:84px 0 70px;background:linear-gradient(120deg,var(--teal-deep) 0%,var(--teal) 55%,#3FC0CC 100%);color:#fff;overflow:hidden}
.sp-subhero::after{content:"";position:absolute;right:-80px;top:-80px;width:340px;height:340px;border-radius:50%;border:56px solid rgba(255,255,255,.07)}
.sp-subhero .crumb{font-size:16px;opacity:.75;margin-bottom:10px}
.sp-subhero h1{font-size:clamp(28px,3.3vw,38px);font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
.sp-subhero p{opacity:.88;font-size:19px;max-width:620px}

.sp-tabs{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:var(--hdr);z-index:40}
.sp-tabs ul{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.sp-tabs ul::-webkit-scrollbar{display:none}
.sp-tabs a{display:block;padding:18px 20px;font-weight:600;color:var(--ink-3);white-space:nowrap;border-bottom:3px solid transparent}
.sp-tabs a:hover{color:var(--ink)}
.sp-tabs a.is-on{color:var(--teal-deep);border-color:var(--teal)}

/* 아코디언 */
details.sp-acc{border:1px solid var(--line);border-radius:var(--r-md);background:#fff;margin-bottom:12px;overflow:hidden}
details.sp-acc summary{list-style:none;cursor:pointer;padding:20px 24px;font-weight:700;font-size:19px;display:flex;justify-content:space-between;align-items:center;gap:16px}
details.sp-acc summary::-webkit-details-marker{display:none}
details.sp-acc summary::after{content:"+";font-size:26px;font-weight:400;color:var(--teal-deep);transition:transform .2s}
details.sp-acc[open] summary::after{transform:rotate(45deg)}
details.sp-acc .acc-body{padding:0 24px 22px;color:var(--ink-2)}

/* 진료시간 표 */
.sp-hours{width:100%;border-collapse:collapse;font-size:17.5px}
.sp-hours th,.sp-hours td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left}
.sp-hours th{font-weight:700;width:110px;color:var(--ink)}
.sp-hours td{color:var(--ink-2)}
.sp-hours tr.is-off td{color:var(--coral);font-weight:600}

/* 지도 */
.sp-map{position:relative;height:260px;border-radius:var(--r-md);overflow:hidden;border:1px solid var(--line);background:var(--teal-mist)}
.sp-map.is-lg{height:420px}
.sp-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.sp-map-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.sp-map-links a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-size:17.5px;font-weight:600;color:var(--ink-2);background:#fff;transition:border-color .2s,color .2s}
.sp-map-links a:hover{border-color:var(--teal);color:var(--teal-deep)}
.sp-map-links a::after{content:"↗";font-size:15px}

/* ===== 하단 CTA / 푸터 ===== */
.sp-cta{background:var(--teal-ink);color:#fff;border-radius:28px;padding:54px 56px;display:flex;align-items:center;justify-content:space-between;gap:30px;position:relative;overflow:hidden}
.sp-cta::before{content:"";position:absolute;left:-60px;bottom:-120px;width:280px;height:280px;border-radius:50%;background:rgba(0,160,176,.35)}
.sp-cta > *{position:relative}
.sp-cta h2{font-size:clamp(20px,2.2vw,26px);font-weight:800;line-height:1.35}
.sp-cta p{opacity:.8;margin-top:6px}
.sp-cta .tel{font-size:clamp(24px,2.6vw,31px);font-weight:800;letter-spacing:.01em;color:#7FE3EC}

.sp-footer{background:#24434A;color:#C3D2D6;padding:56px 0 40px;font-size:17.5px}
.sp-footer .f-top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;margin-bottom:28px}
.sp-footer .f-name{margin-bottom:14px}
.sp-footer .f-name img{height:40px;width:auto}
.sp-footer .f-info span{display:inline-block;margin-right:14px}
.sp-footer .f-hours{min-width:240px}
.sp-footer .f-hours b{color:#fff;display:block;margin-bottom:8px}
.sp-footer .f-copy{display:flex;flex-wrap:wrap;gap:8px 22px;border-top:1px solid rgba(255,255,255,.12);padding-top:20px;font-size:16px;color:#AFC1C6}
.sp-footer .f-privacy{color:#fff;font-weight:700}
.sp-footer .f-privacy:hover{text-decoration:underline}

/* 스크롤 등장 */
.sp-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.sp-reveal.is-in{opacity:1;transform:none}

/* 퀵버튼 */
.sp-quick{position:fixed;right:22px;bottom:22px;z-index:60;display:flex;flex-direction:column;gap:10px}
.sp-quick a{width:56px;height:56px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;font-weight:700;box-shadow:var(--shadow-up)}
.sp-quick .q-tel{background:var(--teal-deep);color:#fff}
.sp-quick .q-top{background:#fff;color:var(--teal-ink);border:1px solid var(--line)}
.sp-quick svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;margin-bottom:1px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .sp-reveal{opacity:1;transform:none}
}

/* ===== 반응형 ===== */
@media (max-width:960px){
  :root{--hdr:64px}
  .sp-gnb,.sp-header .sp-call{display:none}
  .sp-burger{display:block}
  .sp-logo img{height:36px}
  .sp-mnav{display:block;position:fixed;inset:var(--hdr) 0 0 0;background:#fff;padding:20px 24px;overflow-y:auto;transform:translateX(100%);transition:transform .3s;z-index:49}
  .sp-mnav.is-open{transform:none}
  .sp-mnav > ul > li{border-bottom:1px solid var(--line);padding:14px 0}
  .sp-mnav > ul > li > a{font-weight:700;font-size:21px}
  .sp-mnav .m-sub{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px}
  .sp-mnav .m-sub a{color:var(--ink-2);font-size:17.5px}
  .sp-mnav .sp-call{margin-top:22px;width:100%;justify-content:center}
  .sp-sec{padding:72px 0}
  .sp-cta{flex-direction:column;align-items:flex-start;padding:40px 30px}
}
@media (max-width:600px){
  body{font-size:16.5px;line-height:1.6;letter-spacing:-.015em}
  .sp-wrap{padding:0 18px}
  .sp-sec{padding:56px 0}
  .sp-head{margin-bottom:28px}
  .sp-eyebrow{font-size:13.5px;letter-spacing:.12em;margin-bottom:8px}
  h2.sp-title{font-size:24px;margin-bottom:10px}
  p.sp-lead{font-size:16.5px;line-height:1.65}
  .sp-btn{font-size:16.5px;padding:12px 22px}
  .sp-subhero{padding:48px 0 40px}
  .sp-subhero .crumb{font-size:14px}
  .sp-subhero h1{font-size:28px;margin-bottom:6px}
  .sp-subhero p{font-size:16.5px}
  .sp-tabs a{padding:14px 12px;font-size:16px}
  .sp-card{padding:22px 20px}
  .sp-card h3{font-size:19px}
  .sp-card p{font-size:16px}
  .sp-check li{font-size:16px;padding-left:26px;margin-bottom:8px}
  .sp-check li::before{top:4px}
  .sp-hours{font-size:16px}
  .sp-hours th,.sp-hours td{padding:12px 6px}
  .sp-hours th{width:92px}
  details.sp-acc summary{font-size:17px;padding:16px 18px}
  details.sp-acc .acc-body{padding:0 18px 18px;font-size:16px}
  .sp-map-links a{font-size:15.5px;padding:7px 12px}
  .sp-mnav > ul > li > a{font-size:19px}
  .sp-mnav .m-sub a{font-size:16px}
  .sp-cta{padding:32px 22px;border-radius:22px}
  .sp-footer{font-size:15px;padding:44px 0 96px}
  .sp-footer .f-top{gap:24px}
  .sp-footer .f-name img{height:34px}
  .sp-footer .f-copy{font-size:14px}
  .sp-quick{right:14px;bottom:14px}
  .sp-quick a{width:50px;height:50px}
}
