/* 디자인그룹 프리즘 — 공통 스타일 */
:root{
  --bg:#101318; --bg2:#151920; --bg3:#0b0e12; --card:#171b22; --card2:#1b2028;
  --line:#262a31; --line2:#2c313a; --line3:#3a404a;
  --text:#eef0f3; --text2:#c9ced6; --muted:#a7adb7; --muted2:#8a919c;
  --c1:#ff4d4d; --c2:#ff9a3c; --c3:#ffd84a; --c4:#4cd38a; --c5:#3a9bff; --c6:#5363e0; --c7:#a274ff;
  --wrap:1312px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Gothic A1','Apple SD Gothic Neo','Malgun Gothic',sans-serif;word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
p,h1,h2,h3,li,dd,figcaption{text-wrap:pretty}
img{display:block;max-width:100%}
a{color:var(--text2);text-decoration:none;transition:color .2s}
a:hover{color:#fff}
a:focus-visible,button:focus-visible{outline:2px solid #fff;outline-offset:3px}
button{font:inherit}
.wrap{max-width:var(--wrap);margin:0 auto}
.sec{padding:112px 64px}
.sec.alt{background:var(--bg2)}
.h2{margin:0;font-weight:300;font-size:clamp(26px,3.6vw,40px);letter-spacing:-.02em;line-height:1.3}
.lead{margin:0;font-size:16px;color:var(--muted);line-height:1.7}
.row-between{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:24px}
.stack{display:flex;flex-direction:column}
.btn{display:inline-flex;align-items:center;min-height:52px;padding:0 28px;font-size:15px;border:1px solid var(--line3);color:var(--text);background:transparent;cursor:pointer}
.btn.solid{background:#fff;color:#101318;border-color:#fff;font-weight:700}
.btn.solid:hover{color:#101318;background:#e6e8eb}
.chip{min-height:44px;padding:0 18px;border:1px solid var(--line3);background:transparent;color:var(--text2);font-size:14px;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:#101318}

/* 상단 바: 모든 페이지 공통, 스크롤해도 로고가 보임 */
.topbar{position:fixed;left:0;right:0;top:0;z-index:50;padding:0 64px;transition:background .35s ease,box-shadow .35s ease}
.topbar.scrolled{background:rgba(11,14,18,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--line)}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;height:88px;transition:height .35s ease}
.topbar.scrolled .wrap{height:68px}
.logo{display:block;width:168px;transition:width .35s ease}
.topbar.scrolled .logo{width:136px}
.logo svg{display:block;width:100%;height:auto}
.nav{display:flex;align-items:center;gap:34px;font-size:15px}
.nav a[aria-current="page"]{color:#fff;border-bottom:2px solid #fff;padding-bottom:4px}
.nav .cta{padding:10px 18px;border:1px solid var(--line3);color:var(--text)}
.menu-btn{display:none;width:44px;height:44px;border:1px solid var(--line3);background:transparent;color:#fff;cursor:pointer;align-items:center;justify-content:center}
.page-top{height:120px}

/* 소제목 앞 ■ → 선 */
.dash{display:inline-flex;flex:0 0 auto;overflow:hidden;width:12px;height:12px;background:currentColor;transition:width 1s cubic-bezier(.65,0,.35,1),height .45s ease .85s}
.dash.on{width:var(--dash-w,28px);height:3px}
.dash.spec{background:#fff}
.dash.spec i{flex:1;opacity:0;transition:opacity .6s ease .3s}
.dash.spec.on i{opacity:1}
.dash.snap{transition:none}
.eyebrow{display:flex;align-items:center;gap:12px;font-size:14px;letter-spacing:.06em;color:var(--text2)}

/* 메인 첫 화면 */
.hero{position:relative;min-height:min(940px,100vh);min-height:min(940px,100svh);overflow:hidden;background:var(--bg3);display:flex;flex-direction:column}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1);transition:opacity 1.1s ease,transform 7s ease-out}
.hero-bg.on{opacity:1;transform:scale(1.06)}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,11,15,.94) 0%,rgba(9,11,15,.78) 30%,rgba(9,11,15,.25) 62%,rgba(9,11,15,.55) 100%)}
.hero-shade.b{background:linear-gradient(to top,rgba(9,11,15,.9),rgba(9,11,15,0) 30%)}
.hero-shade.t{background:linear-gradient(to bottom,rgba(9,11,15,.7),rgba(9,11,15,0) 18%)}
.hero-body{position:relative;flex:1;width:100%;max-width:1440px;margin:0 auto;padding:120px 64px 0;display:flex;flex-wrap:wrap;align-items:center;gap:48px}
.hero-copy{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:32px}
.hero h1{margin:0;font-weight:300;font-size:clamp(42px,6.4vw,84px);line-height:1.14;letter-spacing:-.04em;color:#fff}
.hero h1 b{font-weight:700}
.hero-copy p{margin:0;font-size:clamp(16px,1.5vw,19px);line-height:1.8;color:#d3d7dd;max-width:27em}
.hero-side{flex:0 1 640px;min-width:0;display:flex;align-items:center}
.prism-svg{flex:0 0 400px;overflow:visible}
.pz-node{animation:pzTw 3.2s ease-in-out infinite}
@keyframes pzTw{0%,100%{opacity:1}50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.pz-node{animation:none}}
.scenes{flex:1;min-width:180px;display:flex;flex-direction:column}
.scene-btn{height:52px;border:none;background:transparent;padding:0 0 0 4px;color:rgba(255,255,255,.62);font-size:16px;text-align:left;display:flex;align-items:center;gap:14px;cursor:pointer;transition:color .4s ease}
.scene-btn .mk{flex:0 0 22px;display:flex;align-items:center}
.scene-btn .mk i{display:block;width:6px;height:6px;border-radius:3px;transition:width .8s cubic-bezier(.65,0,.35,1) .15s}
.scene-btn[aria-pressed="true"]{color:#fff;font-size:22px;font-weight:700}
.scene-btn[aria-pressed="true"] .mk i{width:20px}
.hero-foot{position:relative;width:100%;max-width:1440px;margin:0 auto;padding:0 64px 44px;display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px}
.hero-foot small{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.hero-foot strong{font-weight:400;font-size:17px;color:#fff}
.progress{display:flex;align-items:center;gap:18px;font-size:14px;color:#d3d7dd;font-variant-numeric:tabular-nums}
.progress .bar{position:relative;width:160px;height:2px;background:rgba(255,255,255,.25)}
.progress .bar i{position:absolute;left:0;top:0;height:2px;background:#fff;transition:width .6s ease}

/* 공통 블록 */
.split{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.split>.txt{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;gap:26px}
.split>.fig{flex:1.2 1 520px;min-width:0;margin:0;display:flex;flex-direction:column;gap:12px}
.txt p{margin:0;font-size:17px;line-height:1.9;color:var(--muted)}
.fig .img{overflow:hidden;background:#1b1f26}
.fig .img img{width:100%;height:100%;object-fit:cover}
figcaption,.cap{font-size:14px;color:var(--muted)}
.grid{display:grid;gap:36px 24px}
.grid.c3{grid-template-columns:repeat(auto-fill,minmax(min(380px,100%),1fr))}
.grid.c4{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
.card{display:flex;flex-direction:column;gap:14px;color:var(--text)}
.card .img{position:relative;aspect-ratio:4/3;overflow:hidden;background:#1b1f26}
.card .img img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.card:hover .img img{transform:scale(1.04)}
.card .img::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--accent,var(--c5));z-index:1}
.card .meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.card .meta span:first-child{font-size:17px}
.card .meta span:last-child{font-size:14px;color:var(--muted);white-space:nowrap}
.card.book .img{aspect-ratio:1754/1240}
.svc{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:32px}
.svc a{display:flex;flex-direction:column;gap:16px;color:var(--text)}
.svc .img{position:relative;aspect-ratio:16/10;overflow:hidden;background:#1b1f26}
.svc .img img{width:100%;height:100%;object-fit:cover}
.svc .img::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--accent);z-index:1}
.svc h3{margin:0;font-size:24px;font-weight:500}
.svc p{margin:0;font-size:16px;line-height:1.8;color:var(--muted);height:3.6em;overflow:hidden}
.ticks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--text2)}
.ticks li{display:flex;gap:10px;align-items:center}
.ticks li::before{content:"";width:6px;height:1px;background:var(--muted2)}
.more-link{font-size:14px;color:var(--text);text-decoration:underline;text-underline-offset:4px}
.steps{margin:0;padding:0;list-style:none;display:grid;gap:16px}
.steps li{position:relative;display:flex;flex-direction:column;gap:12px;padding:24px 22px 26px;background:var(--card2)}
.steps li::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--accent)}
.steps .no{font-size:28px;font-weight:300;color:var(--muted2)}
.steps .t{font-size:17px;font-weight:500;line-height:1.45}
.steps .d{font-size:14px;line-height:1.7;color:var(--muted)}
.ba{position:relative;aspect-ratio:16/9;overflow:hidden;background:#1b1f26}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .5s ease}
.ba .tag{position:absolute;left:18px;top:18px;padding:7px 14px;background:var(--bg);font-size:14px}
.seg{display:flex}
.seg .chip{min-width:96px}
.note{display:flex;flex-wrap:wrap;gap:24px;padding:28px 32px;background:var(--bg);border:1px solid var(--line)}
.note b{font-weight:500;font-size:15px}
.note span{flex:1 1 520px;font-size:15px;line-height:1.8;color:var(--muted)}

/* 문의·푸터 */
.contact{background:var(--bg3);border-top:1px solid var(--line);padding:104px 64px}
.contact h2{margin:0;font-weight:300;font-size:clamp(26px,3.8vw,44px);line-height:1.3;letter-spacing:-.03em}
.contact .info{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:40px;padding-top:40px;margin-top:56px;border-top:1px solid var(--line)}
.contact dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:10px 28px;font-size:16px;color:var(--text2)}
.contact dt{color:var(--muted2)}
.contact dd{margin:0}
.footer{background:var(--bg3);padding:32px 64px 40px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--muted)}
.float{position:fixed;right:24px;bottom:24px;z-index:40}
.float a{width:52px;height:52px;border-radius:50%;background:#fee500;display:flex;align-items:center;justify-content:center}

/* 현상설계 슬라이드 */
.slider{position:relative;height:760px;overflow:hidden;background:var(--bg3)}
.slider img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease}
.slider img.on{opacity:1}
.slider .shade{position:absolute;inset:0;background:linear-gradient(to right,rgba(10,12,16,.82),rgba(10,12,16,.15) 60%),linear-gradient(to bottom,rgba(10,12,16,.6),rgba(10,12,16,0) 25%)}
.slider .body{position:relative;max-width:1440px;height:100%;margin:0 auto;padding:0 64px 72px;display:flex;flex-direction:column;justify-content:flex-end;gap:18px}
.slider h1{margin:0;font-weight:300;font-size:clamp(30px,4.4vw,52px);line-height:1.25;letter-spacing:-.03em;max-width:14em}
.slider .ctl{display:flex;align-items:center;gap:16px;margin-top:12px}
.arrow{width:48px;height:48px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dots{display:flex;gap:4px;margin-left:8px}
.dots button{width:44px;height:44px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.dots button i{display:block;width:14px;height:3px;background:rgba(255,255,255,.45);transition:width .3s ease}
.dots button[aria-pressed="true"] i{width:28px;background:#fff}

.empty{padding:40px;border:1px dashed var(--line3);color:var(--muted);text-align:center}

@media (max-width:900px){
  .topbar{padding:0 20px}
  .menu-btn{display:inline-flex}
  .nav{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:flex-start;gap:0;background:rgba(11,14,18,.97);padding:8px 20px 20px;display:none}
  .nav.open{display:flex}
  .nav a{padding:14px 0;width:100%;border-bottom:1px solid var(--line)}
  .sec,.contact{padding:80px 20px}
  .hero-body,.hero-foot,.slider .body{padding-left:20px;padding-right:20px}
  .hero h1{font-size:52px}
  .hero-side{display:none}
  .h2{font-size:30px}
  .slider{height:600px}
  .slider h1{font-size:34px}
  .footer{padding:28px 20px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.page-h1{margin:0;font-weight:300;font-size:clamp(34px,4.6vw,54px);line-height:1.28;letter-spacing:-.03em}
.about-h2{font-size:clamp(28px,3.8vw,44px)!important}

/* 태블릿 */
@media (max-width:1200px){
  .hero-side{flex:1 1 100%;justify-content:center}
  .hero-body{padding-top:110px;gap:24px}
}
/* 휴대폰 */
@media (max-width:900px){
  .hero{min-height:auto}
  .hero-body{padding-top:96px;padding-bottom:24px}
  .hero-copy{gap:22px}
  .hero-side{display:block;flex:1 1 100%}
  .prism-svg{display:none}
  .scenes{flex-direction:row;overflow-x:auto;gap:8px;margin-top:0!important;padding-bottom:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .scenes::-webkit-scrollbar{display:none}
  .scene-btn{flex:0 0 auto;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.3);border-radius:20px;font-size:14px;gap:8px;background:rgba(9,11,15,.45)}
  .scene-btn .mk{flex:0 0 auto}
  .scene-btn[aria-pressed="true"]{font-size:14px;background:#fff;color:#101318;border-color:#fff}
  .scene-btn[aria-pressed="true"] .mk i{width:14px}
  .hero-foot{padding-bottom:28px}
  .progress .bar{width:90px}
  .split{gap:32px}
  .split>.txt,.split>.fig{flex-basis:100%}
  .grid{gap:28px 16px}
  .svc{gap:40px}
  .svc p{height:auto}
  .steps{grid-template-columns:1fr 1fr!important}
  .steps li{min-height:0!important;padding:18px 16px}
  .contact .info{margin-top:36px}
  .contact dl{grid-template-columns:auto 1fr;font-size:15px}
  .btn{min-height:48px}
  .slider .ctl{flex-wrap:wrap}
  .dots{margin-left:0}
  .note{padding:20px}
  .page-top{height:88px}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr!important}
  .grid.c3,.grid.c4{grid-template-columns:1fr}
  .row-between{align-items:flex-start}
  .hero-copy .btn{flex:1 1 auto;justify-content:center}
  .float{right:16px;bottom:16px}
}

/* 문의 양식 */
.inq{margin-top:48px;padding:32px;background:var(--card);border:1px solid var(--line)}
.inq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}
.inq label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}
.inq label.wide{grid-column:1/-1}
.inq em{font-style:normal;color:#ff9a3c}
.inq input,.inq select,.inq textarea{font:inherit;color:var(--text);background:var(--bg3);border:1px solid var(--line3);padding:12px 14px;min-height:48px;border-radius:0;width:100%}
.inq textarea{resize:vertical;line-height:1.6}
.inq input:focus,.inq select:focus,.inq textarea:focus{outline:2px solid var(--c5);outline-offset:0;border-color:transparent}
.inq [aria-invalid="true"]{border-color:#ff6b6b}
.inq-note{margin:18px 0 0;font-size:14px;line-height:1.7;color:var(--muted)}
.inq-note b{color:var(--text);font-weight:500}
.inq-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}
.inq-msg{font-size:14px;color:#4cd38a}
.inq-msg.err{color:#ff6b6b}
@media (max-width:520px){.inq{padding:20px}.inq-acts .btn{flex:1 1 auto;justify-content:center}}

.inq fieldset.kinds{border:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.inq fieldset.kinds legend{font-size:14px;color:var(--muted);padding:0;margin-bottom:8px;width:100%}
.inq fieldset.kinds legend span{font-size:13px;color:var(--muted2)}
.inq fieldset.kinds label{flex-direction:row;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line3);background:var(--bg3);color:var(--text);cursor:pointer}
.inq fieldset.kinds label:has(input:checked){border-color:var(--c5);background:rgba(58,155,255,.12)}
.inq fieldset.kinds input{width:16px;height:16px;min-height:0;padding:0;accent-color:var(--c5)}
.inq fieldset.kinds[aria-invalid="true"] label{border-color:#ff6b6b}

.inq .wide{grid-column:1/-1}
.inq label>span{display:block}

/* ── 휴대폰 글씨 크기 줄이기 (PC 화면은 그대로) ── */
@media (max-width:600px){
  body{font-size:15px}
  .topbar .logo{width:128px}
  .topbar.scrolled .logo{width:112px}
  .sec,.contact{padding:56px 16px}
  .hero-body,.hero-foot,.slider .body{padding-left:16px;padding-right:16px}
  .footer{padding:24px 16px}

  /* 첫 화면: 글씨를 아래로 모으고 작게 해서 위쪽 이미지가 보이게 */
  .hero{min-height:100vh;min-height:100svh}
  .hero-body{align-items:flex-end;align-content:flex-end;padding-top:72px;padding-bottom:16px}
  .hero-shade{background:linear-gradient(to top,rgba(9,11,15,.92) 0%,rgba(9,11,15,.7) 38%,rgba(9,11,15,.08) 68%,rgba(9,11,15,.25) 100%)}
  .hero-shade.b{background:none}
  .hero-copy{gap:14px}
  .hero h1{font-size:28px;line-height:1.25;letter-spacing:-.03em}
  .hero-copy p{font-size:14px;line-height:1.65;min-height:3.3em!important}
  .hero-copy .btn{min-height:44px!important;font-size:14px!important;padding:0 16px!important}
  .eyebrow{font-size:12px;gap:8px}
  .scene-btn{height:34px;padding:0 12px;font-size:13px}
  .scene-btn[aria-pressed="true"]{font-size:13px}
  .hero-foot{padding-bottom:18px;gap:10px}
  .hero-foot small{font-size:11px;margin-bottom:2px}
  .hero-foot strong{font-size:13px}
  .progress{font-size:12px;gap:10px}

  /* 제목·본문 */
  .h2,.about-h2{font-size:22px!important;line-height:1.35}
  .page-h1{font-size:25px;line-height:1.35}
  .contact h2{font-size:22px}
  .slider{height:460px}
  .slider h1{font-size:22px;line-height:1.35}
  .txt p{font-size:14.5px;line-height:1.75}
  .split{gap:24px}
  .split>.txt{gap:16px}
  figcaption,.cap{font-size:12.5px}
  .svc{gap:32px}
  .svc h3{font-size:18px}
  .svc p,.svc li{font-size:14px}
  .steps li{padding:14px}
  .steps li *{font-size:14px}
  .steps li strong,.steps li b,.steps li h3{font-size:16px}
  .btn{min-height:44px;font-size:14px;padding:0 18px}

  /* 프로젝트 목록: 2칸으로 보여서 이미지가 더 많이 보이게 */
  .grid{gap:18px 10px}
  .grid.c3,.grid.c4{grid-template-columns:1fr 1fr}
  .card{gap:8px}
  .card .meta{flex-direction:column;gap:2px;align-items:flex-start}
  .card .meta span:first-child{font-size:13px;line-height:1.35}
  .card .meta span:last-child{font-size:11px}
  .chips button,.chip{font-size:13px;min-height:36px;padding:0 12px}

  /* 문의 */
  .inq{margin-top:28px;padding:16px}
  .inq label,.inq fieldset.kinds legend{font-size:13px}
  .inq input,.inq select,.inq textarea{font-size:15px;min-height:44px;padding:10px 12px}
  .inq fieldset.kinds label{min-height:38px;padding:0 10px;font-size:13px}
  .contact dl{font-size:14px}
}

/* 유튜브 영상 카드와 재생 창 */
.card.is-video .img{position:relative}
.card .play{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;background:rgba(0,0,0,.55);border:1.5px solid rgba(255,255,255,.85);transition:transform .2s,background .2s;pointer-events:none}
.card .play::after{content:"";position:absolute;left:21px;top:16px;border-style:solid;border-width:11px 0 11px 17px;border-color:transparent transparent transparent #fff}
.card.is-video:hover .play{transform:scale(1.08);background:var(--accent,#a274ff)}
.yt-modal{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.86);display:flex;align-items:center;justify-content:center;padding:16px;animation:ytIn .2s ease}
@keyframes ytIn{from{opacity:0}to{opacity:1}}
.yt-frame{position:relative;width:min(1100px,100%);aspect-ratio:16/9;max-height:calc(100vh - 80px)}
.yt-frame iframe{width:100%;height:100%;border:0;border-radius:6px;background:#000}
.yt-close{position:absolute;top:-44px;right:0;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(0,0,0,.5);color:#fff;font-size:18px;cursor:pointer}
.yt-close:hover,.yt-close:focus-visible{background:#fff;color:#000}
@media (max-width:600px){.card .play{width:42px;height:42px;margin:-21px 0 0 -21px}.card .play::after{left:16px;top:12px;border-width:9px 0 9px 14px}}

/* 상단 메뉴 카카오톡 상담 버튼 (assets/config.js 의 kakaoUrl 이 있을 때만 보임) */
/* 평소엔 말풍선 아이콘만(40px), 마우스를 올리거나 키보드로 선택하면 오른쪽으로 펼쳐지며 글자가 나타남('견적 문의'를 가리지 않음).
   자리(a)는 40px 로 고정, 노란 몸통(.kk)만 왼쪽 끝 기준으로 늘어나므로 다른 메뉴는 움직이지 않음.
   펼쳐질 자리는 margin-right 로 미리 비워 두어 화면 오른쪽 끝을 넘지 않음.
   평소엔 40px 원형, 펼치면 양 끝이 둥근 알약 모양(border-radius 20px) */
.nav .kakao-cta{position:relative;display:block;flex:0 0 auto;width:40px;height:40px;margin-right:60px;padding:0;border:0;background:none;color:#191919}
.nav .kakao-cta[hidden]{display:none}
.nav .kakao-cta .kk{position:absolute;left:0;top:0;z-index:2;height:40px;min-width:40px;border-radius:20px;display:flex;align-items:center;padding:0 11px;background:#fee500;color:#191919;font-weight:500;white-space:nowrap;transition:background .2s ease,box-shadow .25s ease}
.nav .kakao-cta .kk svg{flex:0 0 auto;width:18px;height:18px}
.kk-t{display:block;max-width:0;overflow:hidden;opacity:0;margin-left:0;transition:max-width .3s ease,opacity .2s ease,margin-left .3s ease}
.nav .kakao-cta:hover .kk,.nav .kakao-cta:focus-visible .kk{background:#ffeb3b;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.nav .kakao-cta:hover .kk-t,.nav .kakao-cta:focus-visible .kk-t{max-width:8em;opacity:1;margin-left:7px}
.nav .kakao-cta:focus-visible{outline:none}
.nav .kakao-cta:focus-visible .kk{outline:2px solid #fff;outline-offset:3px}
/* 휴대폰 메뉴·터치 기기: 메뉴 안 버튼은 글자까지 그대로 보임 */
@media (max-width:900px),(hover:none){
  .nav .kakao-cta{width:auto;height:auto;margin-right:0}
  .nav .kakao-cta .kk{position:static;display:inline-flex;height:auto;padding:10px 16px}
  .nav .kakao-cta .kk-t{max-width:none;opacity:1;margin-left:7px}
}
@media (max-width:900px){
  .nav .kakao-cta{margin-top:12px;padding:0;border-bottom:0}
  .nav .kakao-cta .kk{padding:12px 18px}
}
/* 오른쪽 아래 카카오톡 버튼: 평소 52px 동그라미, 호버/포커스 시 왼쪽으로 늘어나며 글자 (터치 기기는 아이콘만) */
.float a{width:auto;min-width:52px;height:52px;border-radius:26px;padding:0 14px;color:#191919;font-size:15px;font-weight:500;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.3);transition:background .2s ease}
.float a svg{flex:0 0 auto}
.float a:hover{color:#191919}
@media (hover:hover){
  .float a:hover{background:#ffeb3b}
  .float a:hover .kk-t{max-width:8em;opacity:1;margin-left:8px}
}
.float a:focus-visible .kk-t{max-width:8em;opacity:1;margin-left:8px}
