html,
body {
  font-family:
    "Pretendard",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

/* ====== 공통 변수 ====== */
:root {
  --menu-h: 55px; /* 대메뉴 높이 */
  --menu-a-w: 130px; /* 대메뉴 탭 기본 폭 */
  --panel-w: 200px; /* 드롭 판넬 폭 */
  --panel-item-h: 37px; /* 드롭 항목 높이 */
}

/* ====== 헤더 래퍼 ====== */
div.headerWrap {
  position: relative;
  top: -59px;
  left: 0;
  width: 860px;
  height: var(--menu-h);
  margin: 0 auto;
  z-index: 10;
}
div.headerWrap > div {
  position: absolute;
  top: 0;
  left: -80px;
  width: 900px;
  height: var(--menu-h);
  margin: 0 auto;
}

/* ====== 메뉴 컨테이너 ====== */
.nawoo {
  position: absolute;
  top: 15px;
  right: 161px;
  width: 900px;
  height: 50px;
  z-index: 13;
}
.nawoo > ul {
  position: absolute;
  top: 20px;
  width: 900px;
  height: var(--menu-h);

  display: flex;
  align-items: center;

  /* 좌우 여백은 현재 화면과 비슷하게 — 필요하면 숫자만 미세조정 */
  padding-inline: 6px;

  /* 모든 항목 사이 간격을 '동일하게' */
  gap: 22px; /* ← 간격 통일 핵심. 숫자만 취향대로 조절 */
  left: 60px; /* ← 추가: 원하는 만큼 오른쪽으로 이동 */
}

/* ====== 1단 메뉴 (대메뉴) ====== */
.nawoo > ul > li {
  position: relative;
  /* float: left;  ← 삭제 */
  width: auto; /* 텍스트 길이에 맞게 */
  height: var(--menu-h);
  text-align: center;
  box-sizing: border-box;
  list-style: none;
}

.nawoo > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;

  height: var(--menu-h);
  /* width: 100%;  ← 삭제 */
  padding: 0 18px; /* ← 가로 사이즈는 패딩으로 제어 */
  border-radius: 6px;

  font:
    700 15px/1 "Pretendard",
    sans-serif !important;
  color: #1f2a44 !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* hover / active 효과 */
.nawoo > ul > li:hover > a,
.nawoo > ul > li.active > a {
  background: linear-gradient(to bottom, #4a6fe3, #2f4d9e);
  color: #fff !important;
  box-shadow: 0 0 12px rgba(59, 93, 184, 0.55);
}

/* hover-bridge */
.nawoo > ul > li::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: var(--menu-h);
  width: var(--panel-w);
  height: 14px;
  pointer-events: auto;
}

/* ====== 드롭 판넬 ====== */
.nawoo > ul > li > div {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translate(-50%, 14px);
  width: var(--panel-w);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
  will-change: transform, opacity;
  z-index: 1000;

  /* Glassmorphism */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.48),
      rgba(255, 255, 255, 0.32)
    ),
    rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* 판넬 등장 */
.nawoo > ul > li:hover > div {
  opacity: 1;
  visibility: visible;
  height: auto;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0s;
}

/* ====== 드롭 리스트 ====== */
.nawoo > ul > li > div > ul {
  position: static;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nawoo > ul > li > div > ul > li {
  width: 100%;
  margin: 0;
  background: transparent;
}

/* 드롭메뉴 글꼴 및 디자인 */
.nawoo > ul > li > div > ul > li > a {
  display: block;
  width: 100%;
  height: var(--panel-item-h);
  padding: 0 12px;
  box-sizing: border-box;

  color: #121a2c !important;
  font:
    500 14px/3 "Pretendard",
    sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background-color 0.2s,
    color 0.2s;
}

/* 드롭 항목 hover */
.nawoo > ul > li > div > ul > li > a:hover {
  background: #3a5db0;
  color: #fff !important;
}

/* 드롭 항목 hover */
:hover {
  background: #3a5db0;
  color: #fff !important;
}

.nawoomenu {
  margin: 0;
  padding: 0;
}
.nawoomenu li {
  list-style: none;
  font:
    700 14px/2 "Pretendard",
    sans-serif;
}
.nawoomenu li a {
  display: block;
  width: 100%;
  color: #333;
  text-decoration: none;
  padding-left: 20px;
  transition: all 0.3s;
}
.nawoomenu li a:hover {
  color: red;
  background: #4b5b7f;
  color: #fff;
  padding-left: 27px;
}

.ta1 tr td {
  font: 500 14px "Pretendard";
}

.pro {
  font: 600 13.5px "Pretendard";
  color: black;
  padding-left: 1px;
  padding-top: 15px;
  padding-bottom: 5px;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.664);
  letter-spacing: -0.5px;
}

.formwidth {
  width: 150px;
  margin-left: 15px;
  padding: 4px 0;
  font: 400 13px "Noto San KR";
}

.formwidth option {
  padding-bottom: 15px !important;
  font: 300 12px "Pretendard";
}
.formwidth option:hover {
  background-color: red;
  color: #fff;
}

.mainnav {
  margin-top: 10px;
  font-family: "Pretendard", sans-serif;
  padding-left: 18px;
  list-style: none;
  width: 130px;
}
.mainnav a {
  font-size: 13px;
  color: white;
  text-shadow: 0 0 2px #000;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  line-height: 18px;
  padding-left: 15px;

  padding-top: 4px;
  padding-bottom: 4px;
  width: 130px;
  display: block;
  background: url(img/01.png) no-repeat;
  background-position: 4px 1px;
  transition-property: background-color;
  transition-duration: 0.3s;
}
.mainnav a:hover,
.spec .spec1,
.fuel .fuel1,
.pay .pay1,
.spec2 .spec4,
.photo .photo1 {
  color: white;
  background: url(img/01.png) no-repeat;
  background-color: black;
  background-position: 4px 100%;
}

.tailwindmenu {
  margin-left: 33px;
  text-decoration: none !important;
}
.tailwindmenu .group > div > a:hover {
  color: #2563eb !important;
}
/* Select 버튼 및 드롭다운 하위메뉴 글꼴 */
.tailwindmenu button,
.tailwindmenu button span,
.tailwindmenu .group a {
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
}
.custom-shadow {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 0, 0, 0.2);
}
