/* ACRO — 공통 스타일 (Figma: style / header / 상담 / footer)
   브레이크포인트: PC ≥1024 (디자인 1280) · 태블릿 768–1023 (디자인 800) · 모바일 <768 (디자인 375) */

:root {
  --c-black: #000;
  --c-white: #fff;
  --c-dark: #101010;
  --c-blue: #3182f6;
  --c-blue-hover: #106bee;
  --c-blue-press: #0051c4;
  --c-gray-bg: #f0f0f0;
  --c-card: #f8fafc;
  --c-sub: #707070;
  --c-placeholder: #979797;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --hd-h: 89px;
}
@media (max-width: 1023px) { :root { --hd-h: 81px; } }
@media (max-width: 767px)  { :root { --hd-h: 103px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.is-drawer-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
input { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-pc { display: inline; }
.only-pc { display: block; }
.only-tablet, .only-mobile { display: none; }
@media (max-width: 1023px) {
  .only-pc { display: none; }
  .only-tablet { display: block; }
}
@media (max-width: 767px) {
  .only-tablet { display: none; }
  .only-mobile { display: block; }
}

/* ───────── Header (fix) ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hd-h);
  background: var(--c-white);
}
.hd-inner {
  position: relative;
  height: 100%;
  width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hd-logo { flex: none; display: block; width: 93.2px; }
.hd-logo img { width: 81.4px; height: 21.2px; margin-left: 3.8px; object-fit: contain; }

.hd-nav { display: flex; align-items: center; gap: 10px; margin-left: 15px; }
.hd-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.hd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-white);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  transition: background-color 300ms ease-out;
}
.hd-btn:hover, .hd-item.is-open > .hd-btn { background: var(--c-gray-bg); }

.hd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 35px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 300ms ease-out;
}
.hd-cta:hover { background: var(--c-blue-hover); font-weight: 700; }

.hd-item { position: relative; }
.hd-drop {
  position: absolute;
  top: 35px;
  left: 0;
  padding-top: 15px; /* 메뉴와 패널 사이 15px — 호버가 끊기지 않도록 패딩으로 연결 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms ease-in, visibility 0s linear 100ms;
}
.hd-item.is-open > .hd-drop {
  opacity: 1;
  visibility: visible;
  transition: opacity 100ms ease-in, visibility 0s;
}
.hd-panel {
  display: flex;
  background: var(--c-white);
  border-radius: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}
.hd-sub {
  display: flex;
  align-items: center;
  height: 35px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-white);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 300ms ease-out;
}
.hd-sub:hover { background: var(--c-gray-bg); }

/* 업종별 추천 */
.hd-drop--biz { padding-top: 14px; }
.hd-drop--biz .hd-panel { flex-direction: column; width: 138px; border-radius: 10px; }
.hd-drop--biz .hd-sub { height: 40px; justify-content: center; }
.hd-drop--biz .hd-sub:nth-child(1) { width: 124px; }
.hd-drop--biz .hd-sub:nth-child(2) { width: 138px; }
.hd-drop--biz .hd-sub:nth-child(3),
.hd-drop--biz .hd-sub:nth-child(4) { width: 101px; }

/* 결제 서비스 */
.hd-drop--pay .hd-panel { width: 154px; height: 55px; padding: 0 8px; }
.hd-drop--pay .hd-col { width: 141px; height: 55px; padding: 8px; display: flex; flex-direction: column; justify-content: center; }

/* 매장설비 */
.hd-drop--store .hd-panel { width: 445px; height: 366px; padding: 0 8px; align-items: center; }
.hd-drop--store .hd-col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; }
.hd-drop--store .hd-col:nth-child(1) { width: 119px; }
.hd-drop--store .hd-col:nth-child(2) { width: 152px; height: 330px; }
.hd-drop--store .hd-col:nth-child(3) { width: 153px; height: 331px; }
.hd-drop--store .hd-col:nth-child(3) .hd-sub { width: 100%; justify-content: center; }

.hd-burger { display: none; flex: none; }
.hd-burger img { width: 100%; height: 100%; }

@media (max-width: 1023px) {
  .hd-inner { width: auto; padding: 0 9.5%; }
  .hd-nav, .hd-right > .hd-btn { display: none; }
  .hd-logo { width: 93.1px; }
  .hd-logo img { width: 81.3px; height: 21.2px; }
  .hd-right { gap: 25px; }
  .hd-burger { display: block; width: 38px; height: 25px; }
}
@media (max-width: 767px) {
  .hd-inner { padding: 0 25.5px; }
  .hd-logo { width: 84px; }
  .hd-logo img { width: 73.3px; height: 19px; margin-left: 3.4px; }
  .hd-right { gap: 22px; }
  .hd-cta { width: 58px; height: 23px; padding: 5.091px; font-size: 10px; }
  .hd-cta:hover { font-weight: 600; }
  .hd-burger { width: 27px; height: 18px; }
}

/* ───────── Drawer (tablet / mobile) ───────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-white);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 300ms ease-in, visibility 0s linear 300ms;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 300ms ease-in, visibility 0s;
}
@media (min-width: 1024px) { .drawer { display: none; } }

.dr-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 78px;
  padding: 40px 21px 15px;
  max-width: 375px;
  margin: 0 auto;
}
.dr-close { position: relative; width: 22.3px; height: 22.3px; margin-right: 8.5px; }
.dr-close::before, .dr-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.467px;
  height: 28.052px;
  border-radius: 60px;
  background: var(--c-black);
  transform: translate(-50%, -50%) rotate(45deg);
}
.dr-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.dr-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 317px;
  margin: 0 auto;
  padding: 40px 0 20px;
}
.dr-cat, .dr-link, .dr-sub, .dr-label {
  display: flex;
  align-items: center;
  height: 35px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-white);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  text-align: left;
}
.dr-label { color: var(--c-sub); }
.dr-sub { transition: background-color 300ms ease-in; }
.dr-sub:active, .dr-sub.is-pressed { background: var(--c-gray-bg); }
@media (hover: hover) { .dr-sub:hover { background: var(--c-gray-bg); } }

.dr-group.is-open > .dr-cat { color: var(--c-blue); font-weight: 700; }
.dr-subs {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 300ms ease-in, opacity 300ms ease-in;
}
.dr-group.is-open > .dr-subs { grid-template-rows: 1fr; opacity: 1; }
.dr-subs > .dr-subs-inner { overflow: hidden; min-height: 0; }
.dr-subs-col { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 15px; }
.dr-subs-grid { display: flex; gap: 28px; padding-top: 5px; }
.dr-subs-grid .dr-subs-col { padding-top: 0; }
.dr-subs-grid .dr-gap { height: 35px; }

/* ───────── 상담 (Figma 상담 디자인 확장: 검정 배경 · 흰 pill 입력 · 파란 버튼) ───────── */
.consult {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 150px 20px;
  background: var(--c-dark);
  color: var(--c-white);
  text-align: center;
}
.consult-head { display: grid; gap: 10px; justify-items: center; }
.consult-title { font-size: 30px; font-weight: 600; line-height: normal; }
.consult-tel { font-size: 16px; font-weight: 500; line-height: normal; white-space: nowrap; }
.consult-form { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 640px; max-width: 100%; }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.consult-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 25px;
  border-radius: 100px;
  background: var(--c-white);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 200ms ease;
}
.consult-field:focus-within { box-shadow: 0 0 0 2px var(--c-blue); }
.consult-field.is-invalid { box-shadow: 0 0 0 2px #ff6b6b; }
.consult-field--full { grid-column: 1 / -1; }
.consult-field--area { height: auto; padding: 18px 25px; border-radius: 24px; }
.consult-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-black);
  font-size: 16px;
  font-weight: 500;
  line-height: 17.806px;
  text-align: left;
  font-family: inherit;
}
.consult-input::placeholder { color: var(--c-placeholder); opacity: 1; }
textarea.consult-input { height: 112px; line-height: 1.5; resize: vertical; }
select.consult-input { height: 100%; appearance: none; cursor: pointer; }
select.consult-input:invalid { color: var(--c-placeholder); }
select.consult-input option { color: var(--c-black); }
.consult-field--select::after {
  content: '';
  position: absolute;
  right: 27px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #979797;
  border-bottom: 2px solid #979797;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.consult-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consult-agree { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 500; line-height: normal; color: rgba(255, 255, 255, 0.85); }
.consult-check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.consult-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consult-check-box { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c-white); box-shadow: 0 0 0 2px transparent; transition: background-color 200ms ease, box-shadow 200ms ease; position: relative; }
.consult-check input:checked + .consult-check-box { background: var(--c-blue); }
.consult-check input:checked + .consult-check-box::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.consult-check input:focus-visible + .consult-check-box { box-shadow: 0 0 0 2px var(--c-blue); }
.consult-check.is-invalid .consult-check-box { box-shadow: 0 0 0 2px #ff6b6b; }
.consult-check em { font-style: normal; color: rgba(255, 255, 255, 0.55); }
.consult-terms { font-size: 15px; font-weight: 600; color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }

.consult-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 52px;
  border-radius: 44.514px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 17.806px;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.consult-btn:active, .consult-btn.is-pressed { background: var(--c-blue-press); }
.consult-btn:disabled { cursor: default; opacity: 0.7; }
.consult-msg {
  min-height: 17.806px;
  font-size: 16px;
  font-weight: 600;
  line-height: 17.806px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 200ms ease;
}
.consult-msg.is-visible { opacity: 1; }
.consult-msg b { font-weight: 800; color: var(--c-white); }

/* 개인정보 동의 팝업 */
.privacy { width: min(520px, calc(100% - 40px)); padding: 0; border: 0; border-radius: 20px; background: var(--c-white); color: var(--c-black); }
.privacy::backdrop { background: rgba(0, 0, 0, 0.55); }
.privacy-inner { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px 28px; text-align: left; }
.privacy-title { font-size: 22px; font-weight: 700; }
.privacy-lead, .privacy-note { font-size: 15px; line-height: 1.6; color: #4b4b4b; }
.privacy-note { font-size: 14px; color: var(--c-sub); }
.privacy-list { display: grid; gap: 0; margin: 0; border-radius: 14px; background: var(--c-card); overflow: hidden; }
.privacy-list div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.privacy-list div + div { border-top: 1px solid #eceff3; }
.privacy-list dt { font-weight: 700; }
.privacy-list dd { margin: 0; color: #4b4b4b; }
.privacy-close { align-self: center; width: 160px; height: 48px; margin-top: 4px; border-radius: 44.514px; background: var(--c-blue); color: #fff; font-size: 16px; font-weight: 700; }
.privacy-close:active { background: var(--c-blue-press); }

@media (max-width: 1023px) {
  .consult-title { font-size: 25px; }
  .consult-tel { font-size: 15px; }
  .consult-form { width: 514px; }
  .consult-msg { font-size: 13px; }
}
@media (max-width: 767px) {
  .consult { padding: 100px 27px; }
  .consult-title { font-size: 20px; width: 116px; }
  .consult-form { width: 321px; }
  .consult-grid { grid-template-columns: 1fr; gap: 10px; }
  .consult-agree { font-size: 13px; gap: 8px; }
  .consult-terms { font-size: 13px; }
  .consult-btn { width: 100%; }
  .consult-msg { font-size: 12px; }
  .privacy-inner { padding: 28px 22px 22px; }
  .privacy-list div { grid-template-columns: 70px 1fr; padding: 12px 14px; }
}

/* ───────── Footer ───────── */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, 0.55); }
.ft-inner {
  display: flex;
  align-items: flex-start;
  gap: 120px;
  max-width: 1280px;
  height: 450px;
  margin: 0 auto;
  padding: 80px 65px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ft-content { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 56px; }
.ft-text { display: flex; flex-direction: column; gap: 21px; }
.ft-logo { width: 107px; height: 26px; overflow: hidden; position: relative; }
.ft-logo img { position: absolute; left: 0; top: -0.71%; width: 96.58%; height: 101.43%; max-width: none; }
.ft-info { font-size: 16px; line-height: 1.6; letter-spacing: -0.08px; }
.ft-info b { font-weight: 700; }
.ft-info .ft-blank { display: block; height: 1.6em; }
.ft-social { display: flex; align-items: center; gap: 24px; font-size: 16px; line-height: 1.45; letter-spacing: -0.08px; white-space: nowrap; }
.ft-social img { width: 24px; height: 24px; }
.ft-social .ft-strong { color: var(--c-white); }
.ft-nav { display: flex; align-items: flex-start; gap: 55px; flex: none; }
.ft-col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; letter-spacing: -0.08px; }
.ft-col:nth-child(1) { width: 130px; }
.ft-col:nth-child(2) { width: auto; min-width: 194px; white-space: nowrap; }
.ft-col-title { padding-bottom: 16px; color: var(--c-white); font-weight: 700; }
.ft-social--bottom { display: none; }

@media (max-width: 1023px) {
  .ft-inner {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 32px 120px;
    max-width: 800px;
    height: 500px;
    padding: 52px 34px;
  }
  .ft-content { gap: 0; height: 184px; }
  .ft-content .ft-social { display: none; }
  .ft-nav { flex-direction: column; gap: 55px; width: auto; }
  .ft-social--bottom { display: flex; }
}
@media (max-width: 767px) {
  .ft-inner { height: 700px; max-width: 375px; }
  .ft-content { flex-basis: 100%; }
}

/* ───────── 공통 인터랙션 ───────── */
/* 카드 호버: 이미지 10% 확대 + 노출 -12, ease-out 300ms (모바일 interaction 없음) */
.zoom-card { position: relative; overflow: hidden; isolation: isolate; }
.zoom-card > .zoom-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out, filter 300ms ease-out;
}
@media (hover: hover) and (min-width: 768px) {
  .zoom-card:hover > .zoom-bg { transform: scale(1.1); filter: brightness(0.88); }
}

/* 무한 흐르기 (마퀴) */
.marquee { overflow: hidden; }
/* --marquee-dur = 원래 한 세트가 지나가는 시간. 세트를 반복해 늘린 만큼(--marquee-dur-scale) 시간도 늘려 속도 유지 */
.marquee-track { display: flex; width: max-content; animation: marquee calc(var(--marquee-dur, 30s) * var(--marquee-dur-scale, 1)) linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: calc(var(--marquee-dur, 30s) * 4); } }
.privacy-note a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
