* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f5f3ef;
  --white: #ffffff;
  --black: #111111;
  --text: #1f1f1f;
  --muted: #7a7268;
  --line: rgba(17, 17, 17, 0.08);
  --gold: #bfa68a;
  --max: 1280px;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 243, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--black);
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.nav a,
.nav-link {
  font-size: 14px;
  color: #312d29;
  position: relative;
  text-transform: uppercase;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.nav a::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after,
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  padding: 14px 0;
  background: #e8e1d8;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 999;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  color: #111;
  text-transform: none;
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-name {
  font-weight: 700;
  color: var(--black);
}

.mypage-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  margin: -14px 0;
}

.mypage-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.mypage-btn:hover,
.mypage-btn.active {
  color: var(--black);
}

.mypage-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.mypage-menu:hover .mypage-dropdown,
.mypage-menu.open .mypage-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mypage-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #111;
  white-space: nowrap;
}

.mypage-dropdown a:hover {
  background: #f5f3ef;
}

footer {
  margin-top: 80px;
  background: #141311;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr) minmax(260px, 1.15fr) minmax(160px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.footer-title {
  font-size: clamp(12px, 0.95vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-brand h3 {
  font-size: clamp(24px, 2vw, 28px);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand-desc,
.footer-cs-time,
.footer-bank-list p,
.footer-bank-notice,
.footer-business-list p,
.footer-business-list strong,
.footer-business-list span,
.footer-links a {
  color: rgba(255, 255, 255, 0.66);
}

.footer-brand-desc {
  max-width: 260px;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-cs-phone {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-bank-list,
.footer-business-list,
.footer-links {
  display: grid;
  gap: 10px;
}

.footer-business-list p {
  grid-template-columns: minmax(96px, 8.6vw) 1fr;
  display: grid;
  gap: 12px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 28px;
}

.footer-bottom-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-copyright,
.footer-policy a,
.footer-slogan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
}

.footer-policy {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-logo {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .header-actions {
    display: flex;
    gap: 10px;
    font-size: 12px;
  }

  .mypage-btn {
    font-size: 12px;
  }

  .mypage-dropdown {
    right: 0;
    min-width: 150px;
  }

  footer {
    margin-top: 64px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0 22px;
  }

  .footer-bottom-top,
  .footer-policy {
    justify-content: flex-start;
  }
}