/* ════════════════════════════════════════════
   jinjucom.kr 홈페이지와 같은 상단(메뉴) · 하단(안내 바 · 카피라이트)
   홈페이지 blog.css 에서 가져와 #site-header / #site-footer 안에서만 적용되게 묶었다.
   견적 화면(style.css)과 색 변수 이름이 겹치지 않도록 변수도 이 두 영역에만 둔다.
   ════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');
#site-header,#site-footer{
  --paper:#ffffff; --panel:#f4f6f9; --panel-2:#eceff3;
  --ink:#111214; --head:#3F3F3F; --ink-2:#4a4f57; --ink-3:#8b919b;
  --nav-ink:#3f3f3f; --nav-active:#1187CF;
  --line:#e3e6ea; --line-2:#d6dae0;
  --brand:#123a6b; --brand-2:#0073dd; --brand-ink:#ffffff;
  --yellow:#ffd81f; --good:#1c7d54;
  --maxw:1160px; --util-h:38px; --nav-h:60px; --content:720px;
  --header-h:calc(var(--util-h) + var(--nav-h));
}
body{padding-top:98px}  /* 고정된 상단 높이(38 + 60)만큼 */
:where(#site-header,#site-header *,#site-footer,#site-footer *){box-sizing:border-box;margin:0;padding:0;word-break:keep-all;overflow-wrap:normal;line-break:strict}
:where(#site-header,#site-footer){font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;font-size:16px;line-height:1.75;color:var(--ink)}
:where(#site-header a,#site-footer a){color:inherit;text-decoration:none}
:where(#site-header img,#site-footer img){max-width:100%;height:auto;display:block;border-radius:12px}
#site-footer .wrap{width:auto;max-width:var(--maxw);margin:0 auto;padding-inline:24px}
/* style.css 의 button 기본값(둥근 모서리 · 큰 글씨)이 메뉴 버튼에 번지지 않게 */
#site-header button{border-radius:0;font-size:inherit;padding:0;line-height:inherit}

/* ---- header (홈페이지와 동일) ---- */
#site-header .util-bar{height:var(--util-h);background:var(--brand);color:#fff;
  border-bottom:1px solid color-mix(in srgb,var(--brand) 70%,#000)}
#site-header .util-inner{max-width:var(--maxw);margin:0 auto;padding:0 16px;height:100%;
  display:flex;align-items:center;justify-content:flex-end;gap:2px}
#site-header .util-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#fff;
  padding:7px 11px;border-radius:8px;transition:background .15s ease;white-space:nowrap}
#site-header .util-link:hover,#site-header .util-link:focus-visible{background:rgba(255,255,255,.16)}
#site-header .util-link svg{width:19px;height:19px;flex:none}
#site-header{position:fixed;inset:0 0 auto 0;z-index:100;
  background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line)}
#site-header .nav{max-width:var(--maxw);margin:0 auto;padding:0 24px;height:var(--nav-h);
  display:flex;align-items:center;justify-content:space-between;gap:16px}
#site-header .logo{display:flex;align-items:center;gap:9px;font-weight:900;font-size:18px;letter-spacing:-.02em}
#site-header .logo .mk{height:26px;width:auto;object-fit:contain;border-radius:0;flex:none}
#site-header .menu{display:flex;align-items:center;gap:10px}
#site-header .menu > a,#site-header .menu > .has-sub > button{font:inherit;font-weight:700;font-size:15px;color:var(--nav-ink);
  background:none;border:0;cursor:pointer;padding:8px 10px;
  display:inline-flex;align-items:center;gap:5px;transition:color .15s ease}
#site-header .menu > a:hover,#site-header .menu > .has-sub:hover > button,#site-header .menu > a.active,#site-header .menu > .has-sub.active > button{color:var(--nav-active)}
#site-header .has-sub{position:relative}
#site-header .has-sub .caret{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
#site-header .has-sub:hover .caret,#site-header .has-sub:focus-within .caret{transform:rotate(225deg) translateY(0)}
#site-header .sub{position:absolute;top:calc(100% + 12px);left:-6px;transform:translateY(6px);
  background:var(--paper);border:1px solid var(--line);border-radius:14px;
  padding:10px;min-width:200px;box-shadow:0 22px 48px -20px rgba(15,30,60,.28);
  opacity:0;visibility:hidden;transition:opacity .18s ease,transform .18s ease}
#site-header .sub::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}
#site-header .has-sub:hover .sub,#site-header .has-sub:focus-within .sub{opacity:1;visibility:visible;transform:translateY(0)}
#site-header .sub a{display:block;padding:11px 14px;border-radius:9px;font-size:14.5px;font-weight:600;color:var(--nav-ink);white-space:nowrap}
#site-header .sub a:hover{background:var(--panel);color:var(--nav-active)}
#site-header .nav-cta{flex:none;background:var(--brand);color:var(--brand-ink);font-weight:800;font-size:15.5px;
  padding:11px 19px;border-radius:999px;white-space:nowrap}
#site-header .menu-toggle{display:none}
@media (max-width:860px){
  #site-header .menu{
    display:none;
    position:fixed;top:var(--header-h);left:0;right:0;z-index:90;
    flex-direction:column;align-items:stretch;gap:2px;
    background:var(--paper);border-bottom:1px solid var(--line);padding:12px;
    box-shadow:0 22px 44px -18px rgba(0,0,0,.3);
    max-height:calc(100vh - var(--header-h));max-height:calc(100dvh - var(--header-h));overflow-y:auto
  }
  #site-header.open .menu{display:flex}
  #site-header .menu > a,#site-header .menu > .has-sub > button{width:100%;justify-content:space-between;font-size:16px;padding:13px 14px}
  #site-header .has-sub{width:100%}
  #site-header .has-sub .sub{position:static;transform:none;opacity:1;visibility:visible;box-shadow:none;border:0;border-radius:0;padding:0 0 6px 12px;min-width:0}
  #site-header .has-sub:not(.open) .sub{display:none}
  #site-header .menu-toggle{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);
    border-radius:10px;background:var(--paper);cursor:pointer;z-index:95}
  #site-header .menu-toggle span,#site-header .menu-toggle span::before,#site-header .menu-toggle span::after{content:"";display:block;width:18px;height:2px;background:var(--ink);position:relative}
  #site-header .menu-toggle span::before{position:absolute;top:-6px}
  #site-header .menu-toggle span::after{position:absolute;top:6px}
  #site-header .nav-cta{font-size:14px;padding:9px 14px}
}
@media (max-width:620px){
  #site-header .util-inner{justify-content:space-around;padding:0 4px;gap:0}
  #site-header .util-link{flex:1;justify-content:center;padding:8px 4px;gap:0;font-size:11px}
  #site-header .util-link span{display:none}
  #site-header .util-link svg{width:23px;height:23px}
}


/* ---- footer ---- */
#site-footer{border-top:1px solid var(--line);padding:40px 0 64px;background:var(--panel)}
/* ---------------- 하단 안내 바 (맞춤견적 프로그램과 같은 모양) ---------------- */
#site-footer .infobar{display:flex;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:14px;margin-bottom:26px}
#site-footer .ib-item{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:11px;padding:14px 18px;color:inherit;text-decoration:none}
#site-footer .ib-item + .ib-item{border-left:1px solid var(--line)}
#site-footer a.ib-item:hover{background:var(--panel)}
#site-footer .ib-ic{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--panel);color:var(--brand-2);display:grid;place-items:center}
#site-footer .ib-ic svg{width:18px;height:18px}
#site-footer .ib-tx{min-width:0}
#site-footer .ib-tx b{display:block;font-size:14px;font-weight:800;color:var(--ink);letter-spacing:-.2px;white-space:nowrap}
#site-footer a.ib-item .ib-tx b{color:var(--brand-2);font-size:15.5px}
/* 주소 칸: 네이버 플레이스로 연결. 글자 모양은 다른 칸과 같게 */
#site-footer a.ib-item.ib-addr .ib-tx b{color:var(--ink);font-size:14px}
#site-footer .ib-tx small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--ink-3)}
#site-footer .ib-map{flex:0 0 auto;display:flex;align-items:center;gap:7px;margin:0 16px 0 18px;padding:12px 16px;
  border:1px solid var(--brand-2);border-radius:999px;background:var(--paper);
  color:var(--brand-2);font-size:14px;font-weight:800;white-space:nowrap}
#site-footer .ib-map img{width:22px;height:auto;display:block}
#site-footer .ib-arrow{font-size:17px;line-height:1}
#site-footer .ib-map:hover{background:var(--panel)}
/* 좁은 화면: 2칸씩 → 한 칸씩 */
@media (max-width:1000px){
  #site-footer .infobar{flex-wrap:wrap}
  #site-footer .ib-item{flex:1 1 46%}
  #site-footer .ib-item:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  #site-footer .ib-map{flex:1 1 100%;justify-content:center;margin:12px 16px 16px}
}
@media (max-width:620px){
  #site-footer .infobar{flex-direction:column;align-items:stretch}
  #site-footer .ib-item{flex:1 1 auto}
  #site-footer .ib-item + .ib-item{border-left:0;border-top:1px solid var(--line)}
  #site-footer .ib-item:nth-child(3){border-left:0}
}
#site-footer .infobar{margin-bottom:0}
#site-footer .copy{margin:18px 0 0;text-align:center;font-size:12.5px;color:var(--ink-3);letter-spacing:.01em}

/* 아이폰 홈바에 가리지 않게 */
#site-footer{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
/* 인쇄 · 견적다운(그림 저장)에는 상단 · 하단을 넣지 않는다 */
@media print{
  #site-header,#site-footer{display:none !important}
  body{padding-top:0 !important}
}
