/* 이지렌트 옛 화면(예약·센터·고객센터·FAQ·마이페이지 등)용 새 헤더 — 2026-11-04 큐 #350
   새 메인 styles.css 의 헤더·전체 메뉴 규칙을 .ezh 안으로만 묶어 옛 화면 스타일과 섞이지 않게 한다 */
.ezh {
  --red: #d7262e;
  --red-600: #b81f27;
  --red-50: #fdeeee;
  --red-100: #f9d8da;
  --green: #12804b;
  --green-50: #e6f4ec;
  --ink: #121418;
  --ink-2: #2a2f37;
  --ink-3: #464d58;
  --muted: #5d6571;
  --muted-2: #8b929d;
  --line: #e3e6eb;
  --line-2: #edf0f3;
  --bg-soft: #f5f6f8;
  --bg-soft-2: #eceff3;
  --sea: #e8edf3;
  --kakao: #fee500;
  --kakao-ink: #191600;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 18px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px -6px rgba(17, 24, 39, .08);
  --sh-2: 0 1px 2px rgba(17, 24, 39, .05), 0 18px 40px -18px rgba(17, 24, 39, .22);
  --sh-3: 0 30px 60px -28px rgba(17, 24, 39, .35);

  --container: 1200px;
  --wide: 1360px;
  --gutter: 20px;
  --header-h: 64px;
  --bar-h: 64px;
  /* PC 우측 하단 상담 버튼 줄(오른쪽 20px + 버튼 폭 + 여유) — 배너 표시가 그 밑에 깔리지 않게 */
  --float-lane: 196px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); letter-spacing: -0.01em; word-break: keep-all;
  -webkit-font-smoothing: antialiased; text-align: left;
}
@media (min-width: 768px) { .ezh { --gutter: 32px; } }
@media (min-width: 1024px) { .ezh { --gutter: 40px; --header-h: 80px; } }
.ezh *, .ezh *::before, .ezh *::after { box-sizing: border-box; }
.ezh img, .ezh svg { display: block; max-width: 100%; }
.ezh img { height: auto; }
.ezh a { color: inherit; text-decoration: none; }
.ezh a:hover, .ezh a:focus { text-decoration: none; }
.ezh button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: inherit; }
.ezh ul, .ezh ol { list-style: none; margin: 0; padding: 0; }
.ezh li { margin: 0; padding: 0; float: none; }
.ezh :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 8px; }
.ezh .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.is-locked { overflow: hidden; }
.ezh .ic { width: 24px; height: 24px; flex: none; }
.ezh .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ezh .skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; transform: translateY(-150%); transition: transform .2s;
}
.ezh .skip-link:focus { transform: none; }
/* ---------- 헤더 ---------- */
.ezh .site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.ezh .site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(17, 24, 39, .35); }
.ezh .header-in {
  height: var(--header-h); max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.ezh .brand { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 10px; }
.ezh .brand img { height: 36px; width: auto; }
.ezh .brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.ezh .brand-sub { font-size: 11px; font-weight: 800; color: var(--red); letter-spacing: .04em; }
.ezh .brand-main { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 1024px) { .ezh .brand img { height: 42px; } .ezh .brand-main { font-size: 21px; } .ezh .brand-sub { font-size: 12px; } }

.ezh .gnb { display: none; flex: 1; }
.ezh .gnb-list { display: flex; justify-content: center; gap: clamp(18px, 2.7vw, 50px); }
.ezh .gnb-list > li { position: relative; display: flex; align-items: center; }
.ezh .gnb-link {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h);
  font-size: 16.5px; font-weight: 700; color: var(--ink-2); transition: color .2s;
}
.ezh .gnb-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease);
}
.ezh .gnb-link:hover, .ezh .gnb-link[aria-current="page"] { color: var(--red); }
.ezh .gnb-link:hover::after, .ezh .gnb-link[aria-current="page"]::after { transform: scaleX(1); }
.ezh .sub-toggle { display: grid; place-items: center; width: 24px; height: 28px; margin-left: 2px; color: var(--muted); border-radius: 6px; }
.ezh .sub-toggle .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ezh .has-sub.is-open .sub-toggle .ic { transform: rotate(180deg); }
.ezh .sub-menu {
  position: absolute; top: calc(100% - 16px); left: 50%; min-width: 150px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.ezh .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .ezh .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .ezh .has-sub:hover .sub-toggle .ic { transform: rotate(180deg); }
}
.ezh .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ezh .sub-menu a:hover { background: var(--bg-soft); color: var(--red); }

/* 지금 사이트 헤더 오른쪽 전화번호 — 빨간 사선 박스 대신 메인 톤의 두 줄 번호 */
.ezh .hdr-call { display: none; align-items: center; gap: 10px; flex: none; }
.ezh .hdr-call__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red-50); color: var(--red); }
.ezh .hdr-call__ic .ic { width: 19px; height: 19px; }
.ezh .hdr-call__nums { display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ezh .hdr-call__main { font-size: 18px; font-weight: 800; color: var(--ink); border-radius: 6px; transition: color .2s; }
.ezh .hdr-call__main:hover { color: var(--red); }

.ezh .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; border-radius: 12px; color: var(--ink); }
.ezh .nav-toggle:hover { background: var(--bg-soft); }

@media (min-width: 1024px) {
  .ezh .gnb { display: block; }
  .ezh .hdr-call { display: inline-flex; }
  .ezh .nav-toggle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .ezh .header-in { gap: 16px; }
  .ezh .brand-text { display: none; }
  .ezh .gnb-list { gap: 22px; }
  .ezh .gnb-link { font-size: 15.5px; }
  .ezh .hdr-call__main { font-size: 16px; }
  .ezh .hdr-call__ic { width: 34px; height: 34px; }
}

/* ---------- 모바일 전체 메뉴 ---------- */
.ezh .drawer { position: fixed; inset: 0; z-index: 100; }
.ezh .drawer[hidden] { display: none; }
.ezh .drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .48); opacity: 0; transition: opacity .3s; }
.ezh .drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .38s var(--ease-out);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.ezh .drawer.is-open .drawer-backdrop { opacity: 1; }
.ezh .drawer.is-open .drawer-panel { transform: none; }
.ezh .drawer-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 10px 0 24px; border-bottom: 1px solid var(--line-2); }
.ezh .drawer-title { font-size: 15px; font-weight: 700; color: var(--muted); }
.ezh .drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.ezh .drawer-close:hover { background: var(--bg-soft); }
.ezh .drawer-nav > li { border-bottom: 1px solid var(--line-2); }
.ezh .drawer-nav > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 20px 0 24px; font-size: 18px; font-weight: 800; }
.ezh .drawer-nav > li > a .ic { width: 18px; height: 18px; color: var(--muted-2); }
.ezh .drawer-nav a:hover { color: var(--red); }
.ezh .drawer-sub { padding: 0 0 12px; margin-top: -6px; }
.ezh .drawer-sub a { display: block; padding: 10px 24px 10px 40px; font-size: 16px; font-weight: 600; color: var(--ink-3); }
.ezh .drawer-call {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 24px 0; height: 56px;
  border-radius: 16px; background: var(--red-50); color: var(--red); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ezh .drawer-call .ic { width: 20px; height: 20px; }

/* 옛 화면 위에서 겹침 순서 — 옛 요소(z 999 안팎)보다 위 */
.ezh .site-header { z-index: 1000; }
.ezh .drawer { z-index: 10000; }
