/* 소망플란트치과 — 검정·노랑·흰색 */
:root{
  --bg:#ffffff; --bg-soft:#f7f5ef; --bg-warm:#fbf8f0;
  --ink:#141414; --ink-soft:#5c5c5c; --ink-mute:#8a8a8a; --line:#e9e5da;
  --dark:#141414; --dark-2:#1e1e1e;
  --brand:#141414; --brand-dark:#000; --accent:#fdf6e1; --warn:#fff7e6;
  --yellow:#e8b21c; --yellow-soft:#f5d36b; --yellow-ink:#8a6200;
  --radius:16px; --radius-s:10px; --max:1160px;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  line-height:1.8;font-size:17px;letter-spacing:-.01em;word-break:keep-all;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto}
b,strong{font-weight:700}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:9}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.kicker{margin:0 0 12px;font-size:12.5px;font-weight:700;letter-spacing:.16em;color:var(--yellow-ink);text-transform:uppercase}

/* ---------- header */
.top{background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px}
.logo{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-decoration:none;color:var(--ink)}
.logo img{height:40px;width:auto;max-width:none;display:block}
.logo small{white-space:nowrap;font-size:11.5px;color:var(--ink-soft);letter-spacing:0;line-height:1.3}
.logo small b{font-weight:600;color:var(--ink)}
.nav{display:flex;gap:2px 15px;flex-wrap:nowrap;font-size:14.5px;font-weight:500;white-space:nowrap}
.nav a{color:#333;text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.nav a:hover{color:#000;border-bottom-color:var(--line)}
.nav a[aria-current=page]{color:#000;font-weight:700;border-bottom-color:var(--yellow)}
.call{display:inline-flex;align-items:center;gap:8px;background:var(--dark);color:var(--yellow)!important;padding:10px 16px;border-radius:999px;text-decoration:none;font-weight:700;font-size:15px;white-space:nowrap;transition:background .15s}
.call:hover{background:#000}
.call svg{width:15px;height:15px}
@media(max-width:1199px){.call{display:none}}
@media(max-width:959px){
  .call{display:none}
  .top .wrap{min-height:0;padding-top:12px;gap:8px;flex-wrap:wrap}
  .logo img{height:34px}
  .nav{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px;scrollbar-width:none;gap:18px}
  .nav::-webkit-scrollbar{display:none}
  .nav a{white-space:nowrap}
}

/* ---------- buttons */
.btns{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 22px;border-radius:var(--radius-s);text-decoration:none;font-weight:700;font-size:16px;border:1px solid var(--dark);transition:all .15s;line-height:1.2}
.btn.primary{background:var(--dark);color:#fff}
.btn.primary:hover{background:#000}
.btn.ghost{background:#fff;color:var(--dark)}
.btn.ghost:hover{background:var(--bg-soft)}
.btn.yellow{background:var(--yellow);border-color:var(--yellow);color:#111}
.btn.yellow:hover{background:var(--yellow-soft);border-color:var(--yellow-soft)}
.btn.line{background:transparent;border-color:rgba(255,255,255,.35);color:#fff}
.btn.line:hover{border-color:#fff;background:rgba(255,255,255,.06)}

/* ---------- home hero */
.hero2{background:var(--dark);color:#fff;position:relative;overflow:hidden}
.hero2::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(232,178,28,.18),transparent 70%);pointer-events:none}
.hero2-grid{display:grid;gap:36px;align-items:center;grid-template-columns:1fr;padding-top:56px;padding-bottom:56px;position:relative;z-index:1}
@media(min-width:900px){.hero2-grid{grid-template-columns:1.05fr .95fr;gap:56px;padding-top:84px;padding-bottom:84px}}
.hero2 .kicker{color:var(--yellow)}
.hero2 h1{font-size:clamp(30px,4.6vw,52px);line-height:1.25;letter-spacing:-.035em;margin:0 0 22px;font-weight:800}
.hero2 h1 em{font-style:normal;color:var(--yellow)}
.hero2 .lead{font-size:clamp(16px,1.6vw,18px);color:#cfcfcf;margin:0 0 30px;max-width:560px;line-height:1.85}
.hero2 .lead b{color:#fff;font-weight:600}
.hero-photo{margin:0;position:relative}
.hero-photo img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;object-position:50% 40%;border-radius:20px}
.hero-photo::before{content:"";position:absolute;left:-14px;bottom:-14px;width:46%;height:46%;border:2px solid var(--yellow);border-radius:20px;z-index:-1}
.hero-photo figcaption{position:absolute;left:18px;bottom:18px;background:rgba(20,20,20,.82);color:#fff;font-size:13px;padding:8px 14px;border-radius:999px;margin:0;backdrop-filter:blur(4px)}
.hero-photo figcaption b{color:var(--yellow)}

/* credential strip */
.cred{background:var(--dark-2);color:#fff;border-top:1px solid rgba(255,255,255,.08)}
.cred-grid{display:grid;grid-template-columns:repeat(2,1fr)}
@media(min-width:860px){.cred-grid{grid-template-columns:repeat(4,1fr)}}
.cred-grid div{padding:22px 18px;border-left:1px solid rgba(255,255,255,.08)}
.cred-grid div:first-child{border-left:0}
@media(max-width:859px){.cred-grid div:nth-child(3){border-left:0}.cred-grid div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.08)}}
.cred-grid span{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--yellow);margin-bottom:4px;font-weight:600}
.cred-grid b{font-size:17px;font-weight:700;letter-spacing:-.02em}

/* ---------- sections */
main section{padding:44px 0;border-bottom:1px solid var(--line)}
main section:last-child{border-bottom:0}
main section > h2::before{content:"";display:block;width:28px;height:3px;background:var(--yellow);margin-bottom:16px;border-radius:2px}
h1.page{font-size:clamp(28px,4.4vw,44px);margin:0 0 10px;letter-spacing:-.035em;line-height:1.25;font-weight:800}
h2{font-size:clamp(23px,3vw,30px);margin:0 0 16px;letter-spacing:-.03em;line-height:1.35;font-weight:800}
h3{font-size:19.5px;margin:28px 0 8px;letter-spacing:-.02em;font-weight:700}
p{margin:0 0 14px}
.meta{color:var(--ink-mute);font-size:14px;margin:0 0 18px}
.crumbs{font-size:13.5px;color:#aaa;margin:0 0 14px}
.crumbs a{color:#ccc;text-decoration:none}
.crumbs a:hover{color:#fff}

/* sub page head */
.page-head{background:var(--dark);color:#fff;padding:44px 0 40px;position:relative;overflow:hidden}
.page-head::after{content:"";position:absolute;right:-80px;bottom:-140px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(232,178,28,.16),transparent 70%)}
.page-head .kicker{color:var(--yellow)}
.page-head .meta{color:#9a9a9a;margin:0}
.page-head h1.page{color:#fff}

/* home section head */
.sec{padding:76px 0;border-bottom:0}
.sec + .sec{border-top:1px solid var(--line)}
.sec-head{max-width:640px;margin-bottom:34px}
.sec-head h2::before{display:none}
.sec-head h2{font-size:clamp(26px,3.4vw,36px);margin-bottom:12px}
.sec-head p{color:var(--ink-soft);margin:0}
.sec-head.center{margin-left:auto;margin-right:auto;text-align:center}
.band{background:var(--bg-soft)}
.band .sec + .sec{border-top:0}
.more{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none;border-bottom:2px solid var(--yellow);padding-bottom:2px;margin-top:22px}
.more:hover{color:#000;border-bottom-color:#000}

/* summary */
.summary{background:var(--bg-warm);border:1px solid var(--line);border-left:4px solid var(--yellow);padding:20px 24px;border-radius:var(--radius-s);margin:28px 0 8px}
.summary strong{display:block;margin-bottom:6px;font-size:15px;letter-spacing:.02em}
.summary ul{margin:6px 0 0;padding-left:20px}
.summary li{margin:3px 0}

/* treatment cards (home) */
.tcards{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:620px){.tcards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.tcards{grid-template-columns:repeat(3,1fr)}}
.tcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s,border-color .2s}
.tcard:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#ddd5c1}
.tcard figure{margin:0;overflow:hidden;background:var(--bg-soft)}
.tcard figure img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:0;transition:transform .4s}
.tcard:hover figure img{transform:scale(1.04)}
.tcard .tbody{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.tcard .eng{font-size:11px;letter-spacing:.14em;color:var(--yellow-ink);font-weight:700;text-transform:uppercase}
.tcard b{font-size:20px;margin:4px 0 6px;letter-spacing:-.02em}
.tcard p{font-size:15px;color:var(--ink-soft);margin:0 0 14px;line-height:1.65}
.tcard i{margin-top:auto;font-style:normal;font-size:14px;font-weight:700;color:var(--ink)}
.tcard i::after{content:" →";transition:margin .2s}
.tcard:hover i::after{margin-left:4px}

/* doctor (home) */
.doc{display:grid;gap:36px;grid-template-columns:1fr;align-items:center}
@media(min-width:860px){.doc{grid-template-columns:.8fr 1.2fr;gap:64px}}
.doc figure{margin:0;position:relative}
.doc figure img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius)}
.doc figure::after{content:"";position:absolute;right:-12px;top:-12px;width:40%;height:40%;border-top:3px solid var(--yellow);border-right:3px solid var(--yellow);border-radius:0 var(--radius) 0 0}
.doc h2{font-size:clamp(26px,3.4vw,36px);margin-bottom:6px}
.doc h2::before{display:none}
.doc .role{color:var(--ink-soft);margin:0 0 22px;font-size:16px}
.doc ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.doc li{padding:11px 0 11px 22px;border-bottom:1px solid var(--line);position:relative;font-size:16px}
.doc li::before{content:"";position:absolute;left:2px;top:21px;width:8px;height:8px;border-radius:50%;background:var(--yellow)}

/* quote */
.quote{text-align:center;max-width:760px;margin:0 auto}
.quote p{font-size:clamp(22px,3vw,32px);font-weight:700;letter-spacing:-.03em;line-height:1.5;margin:0 0 14px}
.quote p::before{content:"“";display:block;font-size:64px;line-height:1;color:var(--yellow);margin-bottom:4px;font-family:Georgia,serif}
.quote span{color:var(--ink-soft)}

/* info grid (home) */
.info{display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:860px){.info{grid-template-columns:1.25fr 1fr}}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 28px}
.panel h3{margin:0 0 14px;font-size:18px}
.dl{margin:0}
.dl div{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:15.5px;line-height:1.7}
.dl div:first-child{border-top:0;padding-top:0}
.dl dt{color:var(--ink-mute);font-weight:600}
.dl dd{margin:0}
.panel table th{width:30%}

/* ---------- generic cards / tables */
.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.card{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-decoration:none;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
.card:hover{border-color:var(--yellow);box-shadow:var(--shadow)}
.card b{display:block;font-size:18px;margin-bottom:4px}
.card span{font-size:15px;color:var(--ink-soft)}

table{border-collapse:collapse;width:100%;font-size:16px}
th,td{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top}
th{width:34%;color:var(--ink-soft);font-weight:600}
.today{background:var(--accent)}
table.compare{margin:8px 0 20px;font-size:15px;border:1px solid var(--line);border-radius:var(--radius-s);overflow:hidden;display:table}
table.compare th,table.compare td{width:auto}
table.compare tr:first-child th{background:var(--bg-soft);color:var(--ink)}
table.compare tr:first-child th:last-child{background:var(--dark);color:var(--yellow)}
table.compare td:last-child{font-weight:600}
@media(max-width:600px){table.compare{font-size:13px}table.compare th,table.compare td{padding:8px 6px}}

ol.steps{counter-reset:s;list-style:none;padding:0;margin:0}
ol.steps li{counter-increment:s;position:relative;padding:0 0 16px 48px}
ol.steps li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:1px;width:34px;height:34px;border-radius:50%;background:var(--dark);color:var(--yellow);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:13px}

details{border:1px solid var(--line);border-radius:var(--radius-s);padding:16px 20px;margin:0 0 10px;background:#fff;transition:border-color .15s}
details[open]{border-color:#d9d1bd}
details summary{cursor:pointer;font-weight:700;list-style:none;position:relative;padding-right:28px}
details summary::-webkit-details-marker{display:none}
details summary::before{content:"Q. ";color:var(--yellow-ink)}
details summary::after{content:"+";position:absolute;right:0;top:-2px;font-size:22px;font-weight:400;color:var(--ink-mute);transition:transform .2s}
details[open] summary::after{transform:rotate(45deg)}
details[open] summary{margin-bottom:8px}
details p{margin:0;color:#333}

.note{background:var(--warn);border-radius:var(--radius-s);padding:16px 18px;font-size:15px;color:#5a4a1e}
.doctor{display:grid;gap:24px;grid-template-columns:1fr}
@media(min-width:760px){.doctor{grid-template-columns:260px 1fr}}
ul.tight{padding-left:20px;margin:6px 0}
ul.tight li{margin:3px 0}
.cols{display:grid;gap:28px;grid-template-columns:1fr}
@media(min-width:760px){.cols{grid-template-columns:1fr 1fr}}
.map{border:0;width:100%;height:320px;border-radius:var(--radius);background:var(--bg-soft)}

/* ---------- images */
figure{margin:0 0 20px}
figure img{display:block;width:100%;height:auto;border-radius:var(--radius-s);background:var(--bg-soft)}
figcaption{font-size:14px;color:var(--ink-mute);margin-top:8px}
figure.small{max-width:300px}
figure.small img{border:1px solid var(--line)}
figure.portrait{margin:0}
figure.portrait img{aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius)}
figure.mid{max-width:780px}
figure.info{max-width:540px}
figure.info img{border:1px solid var(--line);background:#fff}
.duo{display:grid;gap:18px;grid-template-columns:1fr;align-items:start;margin-bottom:6px}
.duo figure.info{max-width:none}
@media(min-width:700px){.duo{grid-template-columns:1fr 1fr}}
.gallery{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.gallery{grid-template-columns:repeat(4,1fr)}}
.gallery figure{margin:0;position:relative;overflow:hidden;border-radius:var(--radius-s)}
.gallery img{aspect-ratio:3/2;object-fit:cover;border-radius:0;transition:transform .4s}
.gallery figure:hover img{transform:scale(1.04)}
.gallery figcaption{position:absolute;left:10px;bottom:10px;margin:0;background:rgba(20,20,20,.75);color:#fff;font-size:12.5px;padding:4px 10px;border-radius:999px}
.gallery.g4 img{aspect-ratio:auto;object-fit:contain;background:#fff;border:1px solid var(--line);height:150px}
.gallery.g4 figcaption{position:static;background:none;color:var(--ink-mute);padding:6px 0 0}
.gallery.g3{grid-template-columns:1fr}
@media(min-width:760px){.gallery.g3{grid-template-columns:repeat(3,1fr)}}
/* home: first photo large */
.gallery.feature{grid-auto-flow:dense}
@media(min-width:760px){.gallery.feature figure:first-child{grid-column:span 2;grid-row:span 2}.gallery.feature figure:first-child img{height:100%;aspect-ratio:auto}}

/* promises */
.promises{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);margin-top:16px}
@media(min-width:760px){.promises{grid-template-columns:repeat(4,1fr)}}
.pcard{border:1px solid var(--line);border-radius:var(--radius);padding:12px 12px 16px;background:#fff;text-align:center}
.pcard figure{margin:0 0 10px}
.pcard img{aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.pcard b{display:block;font-size:16px;line-height:1.4}
.pcard b span{display:block;font-size:11.5px;color:var(--yellow-ink);letter-spacing:.12em;margin-bottom:2px}
.pcard p{margin:6px 0 0;font-size:14px;color:var(--ink-soft);line-height:1.55}

/* blog list */
.bloglist{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.bloglist li{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}
.bloglist li a{text-decoration:none}
.bloglist li a:hover{text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:4px}
.bloglist li span{color:var(--ink-mute);font-size:13px;white-space:nowrap;padding-top:2px}

/* ---------- footer */
footer{background:#111;color:#bdbdbd;font-size:14.5px;padding:52px 0 96px;margin-top:0;line-height:1.85}
footer a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.25)}
footer a:hover{border-bottom-color:var(--yellow)}
footer .wrap{display:grid;gap:28px}
@media(min-width:760px){footer .wrap{grid-template-columns:1.3fr 1fr 1fr}}
footer h2{font-size:15px;color:var(--yellow);margin:0 0 10px;letter-spacing:0}
footer h2::before{display:none}
footer p{margin:0}
footer .flogo{display:block;height:34px;width:auto;margin-bottom:14px;filter:brightness(0) invert(1);opacity:.9}

/* mobile bottom bar */
.bar{position:fixed;left:0;right:0;bottom:0;display:flex;background:#fff;border-top:1px solid var(--line);z-index:6;box-shadow:0 -4px 16px rgba(0,0,0,.06)}
.bar a{flex:1;text-align:center;padding:14px 4px;text-decoration:none;font-weight:700;font-size:15px;color:var(--ink)}
.bar a.c{background:var(--yellow);color:#111}
@media(min-width:960px){.bar{display:none}footer{padding-bottom:52px}}

/* 예전 홈에서 쓰던 이름 (다른 페이지 호환) */
.eyebrow{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--yellow-ink)}
.hero-tags{list-style:none;padding:0;margin:0 0 20px;display:flex;flex-wrap:wrap;gap:8px}
.hero-tags li{background:var(--dark);color:var(--yellow);font-size:14px;font-weight:700;padding:6px 12px;border-radius:999px}
li.hl{font-weight:700}
@media(max-width:599px){.kicker{letter-spacing:.1em;font-size:11.5px}.hero2-grid{padding-top:40px;padding-bottom:44px}.sec{padding:56px 0}.hero-photo::before{display:none}.doc figure::after{display:none}}
@media(max-width:599px){.cred-grid div{padding:16px 14px}.cred-grid span{font-size:9.5px;letter-spacing:.08em}.cred-grid b{font-size:15px}.top{background:#fff}}

/* ---------- 강조 메뉴(미니쉬·의식하진정) */
.nav a.hl{color:#000;font-weight:700;background:#fbefc6;padding:6px 11px;border-radius:999px;border-bottom:0;align-self:center}
.nav a.hl:hover{background:#f6e2a0}
.nav a.hl[aria-current=page]{background:var(--yellow);color:#000}
@media(min-width:1200px) and (max-width:1339px){.nav{font-size:14px;gap:2px 11px}}
@media(min-width:960px) and (max-width:1199px){.nav{font-size:13.5px;gap:2px 11px}}

/* ---------- 대표 진료 카드 */
.tcards.feat{margin-bottom:18px}
@media(min-width:620px){.tcards.feat{grid-template-columns:1fr}}
@media(min-width:980px){.tcards.feat{grid-template-columns:repeat(3,1fr)}}
.tcard.big{border-color:#e3d6b0;background:linear-gradient(180deg,#fffdf6,#fff)}
.tcard.big figure img{aspect-ratio:16/9}
.tcard.big .tbody{padding:22px 24px 24px}
.tcard.big b{font-size:22px}
.tcard.big p{font-size:15px}
.tcard .badge{align-self:flex-start;background:var(--dark);color:var(--yellow);font-size:12px;font-weight:700;letter-spacing:.04em;padding:5px 11px;border-radius:999px;margin-bottom:12px}
@media(min-width:980px){.tcards.rest{grid-template-columns:repeat(4,1fr)}.tcards.rest .tcard b{font-size:18px}.tcards.rest .tcard p{font-size:14.5px}.tcards.rest .tcard .tbody{padding:18px 18px 20px}}
.tcard.ask{background:var(--dark);border-color:var(--dark);color:#fff}
.tcard.ask .tbody{justify-content:flex-start;padding-top:26px}
.tcard.ask .eng{color:var(--yellow)}
.tcard.ask b{color:#fff;line-height:1.35}
.tcard.ask p{color:#bdbdbd}
.tcard.ask i{color:var(--yellow)}
@media(min-width:620px){.tcard.ask{grid-column:span 2}}
