/* 딱나와 공통 상단·하단 스타일 (header.php, footer.php). main2.php에서 분리 — 2026-11-16 */
.top{--blue:#2563eb;--line:#e6eaf1;--bg2:#f6f8fb;--text:#101828}
.top{position:sticky;top:0;z-index:40;background:#fff;color:var(--text);border-bottom:1px solid var(--line)}
.top .bar{display:flex;align-items:center;gap:16px;height:84px}
.logo img{height:58px;width:auto;display:block}
.gnb{display:flex;gap:8px;margin-left:36px}
.gnb a{position:relative;padding:30px 20px;font-weight:700;font-size:19px;letter-spacing:-.02em;color:#1f2533;white-space:nowrap}
.gnb a:hover{color:var(--blue)}
.gnb a.on{color:var(--blue)}
.gnb a.on::after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--blue)}
/* 2026-11-16 링크인 메뉴 추가로 메뉴가 길어져 기준폭 조정(1024→1240, 모바일 메뉴 760→980) */
@media (max-width:1240px){
  .gnb{gap:4px;margin-left:16px}
  .gnb a{padding:30px 14px;font-size:17px}
  .gnb a.on::after{left:14px;right:14px}
}
.top .call{margin-left:auto;display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:var(--blue);color:#fff;font-weight:700;font-size:15px;white-space:nowrap}
.top .call svg{flex:none}
.subnav{display:none}
.top{background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid rgba(214,227,255,.7)}
.top .call{background:#111827}
.top a{color:inherit;text-decoration:none}
@media (max-width:980px){
  .top .bar{height:64px}
  .logo img{height:50px}
  .gnb{display:none}
  .top .call{padding:8px 12px;font-size:14px}
  .subnav{display:flex;gap:8px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none}
  .subnav::-webkit-scrollbar{display:none}
  .subnav a{flex:none;padding:8px 16px;border-radius:999px;font-size:15px;font-weight:700;letter-spacing:-.02em;color:#3a4458;background:var(--bg2);border:1px solid var(--line)}
  .subnav a.on{background:var(--blue);border-color:var(--blue);color:#fff}
}
@media (max-width:400px){
  .top .call span{display:none}
}
footer.site-foot a{text-decoration:none}
/* 하단: 다크블루 카드형 */
footer.site-foot{background:#0b1736;border-top:0;color:#c7d2e8;font-size:14px;padding:30px 0 40px;margin-top:40px}
.foot-links{display:flex;justify-content:center;flex-wrap:wrap;gap:0;margin-bottom:24px}
.foot-links a{color:#dbe4f5;font-size:14px;padding:4px 26px;position:relative}
.foot-links a+a::before{content:"";position:absolute;left:0;top:50%;width:1px;height:12px;margin-top:-6px;background:rgba(255,255,255,.18)}
.foot-links a:hover{color:#fff}
.foot-links b{color:#fff;font-weight:800}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}
.foot-card{background:#12224a;border:1px solid rgba(255,255,255,.06);border-radius:20px;padding:26px 30px}
.foot-card h2{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:16px;font-weight:800;color:#fff}
.foot-card .fi{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.08);color:#dbe4f5}
.biz-info{display:grid;grid-template-columns:1fr 1fr;gap:9px 24px;margin:0}
.biz-info div{display:flex;gap:12px;min-width:0}
.biz-info .wide{grid-column:1/-1}
.biz-info dt{flex:none;width:96px;color:#8193b8}
.biz-info dd{margin:0;color:#eef3fc;min-width:0;overflow-wrap:anywhere}
.biz-info dd a{color:#eef3fc}
.biz-info dd.hl{color:#7fb2ff;font-weight:800}
.cs-tel{display:block;font-size:38px;font-weight:900;color:#fff;letter-spacing:.01em;line-height:1.1;margin-bottom:14px}
.cs-hours{display:flex;align-items:center;gap:8px;margin:0 0 4px;color:#dbe4f5}
.cs-off{margin:0 0 18px;color:#c7d2e8;font-size:13px}
.cs-btns{display:flex;flex-wrap:wrap;gap:10px}
.cs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 24px;border-radius:999px;font-weight:800;font-size:15px;white-space:nowrap;transition:transform .2s,box-shadow .2s}
.cs-btn:hover{transform:translateY(-1px)}
.cs-btn.kakao{background:#fee500;color:#191600;box-shadow:0 8px 20px rgba(254,229,0,.22)}
.cs-btn.apply{background:linear-gradient(90deg,#ff2d55,#e8306f);color:#fff;box-shadow:0 8px 20px rgba(255,45,85,.25)}
.foot-copy{margin:22px 0 0;text-align:center;color:#7b8bad;font-size:13px}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr}}
@media (max-width:760px){
  footer.site-foot{padding:24px 0 100px}
  .foot-links a{padding:4px 12px;font-size:13px}
  .foot-card{padding:22px 20px;border-radius:16px}
  .biz-info{grid-template-columns:1fr}
  .biz-info dt{width:88px}
  .cs-tel{font-size:32px}
  .cs-btns .cs-btn{flex:1;padding:0 12px}
}

/* 상단 공지 띠 (진블루, 흐르는 문구) */
.notice-bar{position:relative;display:flex;align-items:center;height:52px;background:#0b1736;color:#fff;overflow:hidden}
.notice-bar[hidden]{display:none}
.notice-track{display:flex;flex:none;width:max-content;animation:notice-flow 36s linear infinite;color:#fff;text-decoration:none}
.notice-track span{flex:none;padding:0 64px 0 56px;font-size:17px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;line-height:52px}
.notice-bar:hover .notice-track{animation-play-state:paused}
.notice-close{position:absolute;right:0;top:0;bottom:0;width:52px;border:0;background:linear-gradient(90deg,rgba(11,23,54,0),#0b1736 40%);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.notice-close:hover{color:#9cc2ff}
@keyframes notice-flow{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.notice-track{animation-duration:70s}}
@media (max-width:760px){
  .notice-bar{height:42px}
  .notice-track span{font-size:14px;line-height:42px;padding:0 40px 0 32px}
  .notice-close{width:42px;font-size:20px}
}

/* 간편 상담신청 슬라이드 창 (consult_panel.php) */
.cs-dim{position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.42);opacity:0;transition:opacity .6s ease}
.cs-dim.show{opacity:1}
.cs-panel{position:fixed;top:0;right:0;bottom:0;z-index:96;width:min(480px,100%);background:linear-gradient(180deg,#fdf2f6,#f3f6ff);box-shadow:-12px 0 40px rgba(15,23,42,.2);border-radius:22px 0 0 22px;overflow-y:auto;overscroll-behavior:contain;transform:translateX(104%);opacity:.6;visibility:hidden;transition:transform .5s cubic-bezier(.55,0,.75,.4),opacity .5s ease,visibility 0s linear .5s;font-family:"Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#101828}
.cs-panel.open{transform:none;opacity:1;visibility:visible;transition:transform .85s cubic-bezier(.22,1,.36,1),opacity .6s ease}
body.cs-open{overflow:hidden}
.cs-panel-in{position:relative;padding:56px 22px 28px}
.cs-panel-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:40px;height:40px;border:1px solid #e3e8f2;border-radius:50%;background:#fff;color:#374151;cursor:pointer}
.cs-box{background:#fff;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.08);padding:26px 24px 18px}
.cs-box h2{margin:0 0 8px;font-size:24px;font-weight:800;letter-spacing:-.03em}
.cs-sub{margin:0 0 16px;padding-bottom:16px;border-bottom:1px dashed #e3e8f2;color:#5b667a;font-size:14px}
.cs-row{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:10px;margin:0 0 12px;padding:0;border:0;min-width:0}
.cs-row>label,.cs-row legend{font-size:14px;font-weight:700;color:#1f2937}
.cs-row input[type=text],.cs-row input[type=tel],.cs-row select{width:100%;height:46px;padding:0 14px;border:1px solid #dfe5ef;border-radius:10px;background:#fff;font:inherit;font-size:15px;color:#101828}
.cs-row input:focus,.cs-row select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.cs-checks{display:block}
.cs-checks legend{float:left;width:96px;padding-top:8px}
.cs-opts{margin-left:106px;display:flex;flex-wrap:wrap;gap:6px}
.cs-chip{position:relative;cursor:pointer}
.cs-chip input{position:absolute;opacity:0;pointer-events:none}
.cs-chip span{display:inline-block;padding:7px 12px;border:1px solid #dfe5ef;border-radius:999px;font-size:13px;font-weight:600;color:#374151;background:#fff}
.cs-chip input:checked+span{background:#0b1736;border-color:#0b1736;color:#fff}
.cs-chip input:focus-visible+span{outline:2px solid #2563eb;outline-offset:2px}
.cs-agree{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:14px;border-top:1px dashed #e3e8f2;font-size:13px;color:#374151}
.cs-agree label{display:flex;align-items:center;gap:8px;cursor:pointer}
.cs-agree input{width:18px;height:18px}
.cs-agree a{font-weight:800;text-decoration:underline;color:#1f2937}
.cs-submit{display:block;width:100%;height:56px;margin:16px 0 0;border:0;border-radius:14px;background:linear-gradient(90deg,#ff1f3d,#e8306f);color:#fff;font:inherit;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(255,31,61,.25)}
.cs-submit:hover{filter:brightness(1.05)}
.cs-promo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:20px 22px;border-radius:14px;background:#ffe23a}
.cs-promo span{display:block;font-size:15px;color:#1f2937}
.cs-promo b{display:block;font-size:19px;font-weight:900;color:#111827;letter-spacing:-.02em}
.cs-promo-ic{font-size:44px;line-height:1}
@media (max-width:760px){
  .cs-panel{width:100%;border-radius:0}
  .cs-panel-in{padding:56px 14px 24px}
  .cs-box{padding:22px 16px 16px}
  .cs-row{grid-template-columns:84px 1fr}
  .cs-checks legend{width:84px}
  .cs-opts{margin-left:94px}
}
@media (max-width:380px){
  .cs-row{grid-template-columns:1fr;gap:6px}
  .cs-checks legend{float:none;padding:0 0 6px}
  .cs-opts{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.cs-panel,.cs-dim{transition:none}}

/* 상담신청 창: 상담 상품 입력 상자 */
.cs-memo{align-items:start}
.cs-memo[hidden]{display:none}
.cs-memo label{padding-top:10px}
.cs-memo textarea{width:100%;min-height:118px;padding:10px 14px;border:1px solid #dfe5ef;border-radius:10px;background:#f8faff;font:inherit;font-size:14px;line-height:1.6;color:#101828;resize:vertical}
.cs-memo textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}

/* 상담신청 결과 안내 */
.cs-msg{margin:12px 0 0;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.5}
.cs-msg[hidden]{display:none}
.cs-msg.ok{background:#e9f8ef;color:#11733a;border:1px solid #bfe8cf}
.cs-msg.err{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.cs-submit:disabled{opacity:.7;cursor:default}
