@charset "utf-8";

/* ==========================================================================
   Font
   ========================================================================== */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-display: swap;
  src: url('../font/Pretendard-Regular.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-display: swap;
  src: url('../font/Pretendard-Medium.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-display: swap;
  src: url('../font/Pretendard-Bold.subset.woff2') format('woff2');
}

/* ==========================================================================
   Token
   ========================================================================== */
:root {
  --c-black: #000;
  --c-white: #fff;
  --c-base1: #2d2d2d;
  --c-base2: #444;
  --c-base4: #8c8c8c;
  --c-base6: #b2b2b2;
  --c-base7: #c4c4c4;
  --c-base8: #e0e0e0;
  --c-base9: #f8f7f3;
  --c-primary: #3a2e24;
  --c-red: #f1294f;

  --ff-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --ff-serif: 'Chiron Sung HK', 'Noto Serif KR', serif;

  --inner: 1280px;
  --gutter: 20px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-black);
  background: var(--c-white);
  word-break: keep-all;
  overflow-x: hidden;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
.blind {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.br-pc { display: inline; }
.br-mo { display: none; }

/* ==========================================================================
   Layout
   ========================================================================== */
.inner { width: 100%; max-width: calc(var(--inner) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================================
   Header (gnb)
   ========================================================================== */
.header {
  position: relative;
  z-index: 50;
  width: 100%;
  padding: 16px 0 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  background: var(--c-white);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.header__logo { flex-shrink: 0; }
.logo {
  position: relative;
  display: block;
  width: 174px;
  height: 40px;
  overflow: hidden;
}
.logo__symbol { position: absolute; top: 2.85%; right: 67.62%; bottom: 3.56%; left: .25%; }
.logo__text { position: absolute; top: 28%; right: .91%; bottom: 24.06%; left: 36.25%; }
.logo__symbol img, .logo__text img { width: 100%; height: 100%; }

.gnb__list {
  display: flex;
  align-items: center;
  gap: 100px;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}
.gnb__list a { display: block; transition: opacity .2s; }
.gnb__list a:hover { opacity: .6; }
.gnb__list a.is-active { font-weight: 700; }

.header__util { display: flex; align-items: flex-end; gap: 20px; }
.header__util a, .header__util button { position: relative; display: block; width: 24px; height: 24px; }
.header__util img { width: 100%; height: 100%; }
.ic-person { position: relative; display: block; width: 24px; height: 24px; }
.ic-person__layer { position: absolute; inset: 8.33% 10.42%; }
.ic-person__layer img { position: absolute; top: 0; bottom: 0; left: -.66%; right: -.66%; width: auto; height: 100%; max-width: none; }

.header__menu-btn { display: none !important; }
.header__menu-btn span {
  position: absolute; left: 3px; width: 18px; height: 1.5px; border-radius: 1px;
  background: currentColor; transition: transform .25s, opacity .25s;
}
.header__menu-btn span:nth-child(1) { top: 6px; }
.header__menu-btn span:nth-child(2) { top: 11.25px; }
.header__menu-btn span:nth-child(3) { top: 16.5px; }
.header.is-open .header__menu-btn span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.header.is-open .header__menu-btn span:nth-child(2) { opacity: 0; }
.header.is-open .header__menu-btn span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* dark: 메인 비주얼 위에 겹치는 헤더 */
.header--dark {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .15);
  color: var(--c-white);
}
/* glass: 사진 비주얼 위 헤더 (기업 · 단체) */
.header--glass { background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }

/* 언어 선택 (마크업은 js/common.js에서 .header__util 맨 앞에 생성) */
.lang { position: relative; align-self: center; }
.header__util .lang__btn { display: flex; align-items: center; gap: 8px; width: auto; height: 24px; font-size: 14px; line-height: 20px; color: var(--c-base2); white-space: nowrap; }
.lang__btn::after { content: ''; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; transition: transform .2s; }
.lang.is-open .lang__btn::after { transform: rotate(180deg); }
.lang__short { display: none; }
.lang__list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 100px; padding: 6px 0; border: 1px solid var(--c-base8); border-radius: 4px; background: var(--c-white); box-shadow: 0 4px 12px rgba(0, 0, 0, .06); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.lang.is-open .lang__list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.header__util .lang__list a { display: block; width: auto; height: auto; padding: 6px 14px; font-size: 14px; line-height: 20px; color: var(--c-base2); white-space: nowrap; }
.header__util .lang__list a:hover { background: var(--c-base9); }
.header__util .lang__list a[aria-current] { font-weight: 700; color: var(--c-black); }
.header--dark .lang__btn { color: var(--c-white); }

/* 주문조회 (언어 선택 왼쪽, js/common.js에서 생성 · 767 이하에서는 모바일 메뉴로) */
.header__util .header__order { align-self: center; width: auto; height: 24px; font-size: 14px; line-height: 24px; color: var(--c-base2); white-space: nowrap; transition: opacity .2s; }
.header__util .header__order:hover { opacity: .6; }
.header__util .header__order::after { content: ''; position: absolute; right: -10px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--c-base8); }
.header--dark .header__util .header__order { color: var(--c-white); }
.header--dark .header__util .header__order::after { background: rgba(255, 255, 255, .3); }
.gnb__mo-only { display: none; }

/* 토스트 메시지 (js/common.js의 window.showToast) — 화면 위쪽 헤더 아래에 노출 */
.toast { position: fixed; left: 50%; top: 100px; z-index: 300; width: max-content; max-width: calc(100% - 40px); padding: 14px 24px; border-radius: 12px; background: var(--c-black); font-size: 15px; line-height: 22px; color: var(--c-white); text-align: center; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -12px); transition: opacity .3s, transform .3s; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__link { margin-left: 16px; font-weight: 500; color: var(--c-white); text-decoration: underline; text-underline-position: from-font; }
.toast__link:hover { opacity: .7; }
@media (max-width: 767px) {
  .toast { top: 72px; padding: 12px 20px; font-size: 14px; line-height: 20px; }
}

/* 메뉴 글자: 웹폰트가 준비된 뒤 서서히 노출 (기본 글꼴 → Pretendard 교체로 글자 크기가 튀는 것 방지, js/common.js에서 .is-ready) */
.motion .header .gnb__list, .motion .header .header__order, .motion .header .lang { opacity: 0; transition: opacity .6s ease; }
.motion .header.is-ready .gnb__list, .motion .header.is-ready .header__order, .motion .header.is-ready .lang { opacity: 1; }

/* ==========================================================================
   Button
   ========================================================================== */
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 240px;
  height: 60px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  transition: opacity .2s, background-color .3s, color .3s;
}
.btn-more img { flex-shrink: 0; width: 24px; height: 24px; transition: translate .4s cubic-bezier(.22, .61, .36, 1); }
.btn-more:hover { opacity: .85; }
.btn-more:hover img { translate: 6px 0; }
.btn-more--line-white:hover { opacity: 1; background-color: rgba(255, 255, 255, .14); }
.btn-more--white { background: var(--c-white); color: var(--c-black); }
.btn-more--line-white { border-color: var(--c-white); color: var(--c-white); }
.btn-more--primary { background: var(--c-primary); color: var(--c-white); }
.btn-more--line { border-color: var(--c-base8); color: var(--c-black); }
.btn-more--black { background: var(--c-black); color: var(--c-white); }

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--c-base1);
  border-radius: 28px;
  background: var(--c-white);
  transition: border-color .2s;
}
.btn-arrow img { flex-shrink: 0; width: 20px; height: 20px; }
.btn-arrow--prev img { transform: scaleX(-1); }
.btn-arrow:disabled { border-color: var(--c-base8); cursor: default; }
.slide-nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  background: #261e19;
  color: var(--c-white);
}
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; width: 236px; flex-shrink: 0; }
.footer__logo { width: 156px; height: 36px; }
.footer__slogan { font-size: 14px; line-height: 20px; color: var(--c-base6); }
.footer__sns { display: flex; gap: 20px; }
.footer__sns a { position: relative; display: block; width: 36px; height: 36px; }
.footer__sns img { width: 100%; height: 100%; }
.footer__sns .sns-insta { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; }

.footer__info { display: flex; flex-direction: column; gap: 20px; max-width: 602px; }
.footer__cs { display: flex; flex-direction: column; gap: 4px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__contact li { display: flex; align-items: center; gap: 8px; width: 193px; }
.footer__contact img, .footer__hours-ic { flex-shrink: 0; width: 24px; height: 24px; }
.footer__tel { font-size: 18px; line-height: 24px; font-weight: 700; }
.footer__mail { font-size: 15px; line-height: 22px; }
.footer__hours { display: flex; align-items: center; gap: 8px; }
.footer__hours-ic { position: relative; }
.footer__hours-ic img { position: absolute; inset: 14.87% 8.33%; width: auto; height: auto; }
.footer__hours p { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 15px; line-height: 22px; }

.footer__biz { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 20px; }
.footer__biz .bar { width: 1px; height: 12px; background: rgba(224, 224, 224, .3); }
@media (min-width: 1280px) { .footer__biz .biz-no { width: 230px; } } /* 시안 줄바꿈: 통신판매업 신고번호부터 2줄 */

.footer__guide { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; white-space: nowrap; }
.footer__guide a:hover, .footer__policy a:hover { text-decoration: underline; }

.footer__bottom { display: flex; align-items: center; gap: 173.5px; margin-top: 32px; color: var(--c-base4); white-space: nowrap; }
.footer__copy { font-size: 13px; line-height: 18px; font-weight: 500; }
.footer__policy { display: flex; gap: 24px; font-size: 14px; line-height: 20px; }

/* ==========================================================================
   Top button
   ========================================================================== */
.btn-top {
  position: fixed;
  right: max(20px, calc(50% - 816px));
  bottom: 40px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 40px;
  background: var(--c-base9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.btn-top img { width: 24px; height: 24px; }
.btn-top.is-show { opacity: 1; visibility: visible; }

/* ==========================================================================
   Search (헤더 돋보기 → 헤더 아래로 내려오는 검색 패널, 마크업은 js/common.js에서 생성)
   ========================================================================== */
.search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background: var(--c-white);
  color: var(--c-black);
  visibility: hidden;
  transition: max-height .4s cubic-bezier(.22, .61, .36, 1), border-color .4s, visibility 0s .4s;
}
.header.is-search .search { max-height: 640px; border-top: 1px solid var(--c-base8); border-bottom-color: var(--c-base8); visibility: visible; transition-delay: 0s; }
.header--dark.is-search { background: var(--c-black); }
.search-dim {
  position: fixed;
  inset: 0;
  z-index: 49; /* 헤더(50) 바로 아래 */
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
html.is-search-open { overflow: hidden; }
html.is-search-open .search-dim { opacity: 1; visibility: visible; transition-delay: 0s; }

.search__inner { position: relative; padding-top: 40px; padding-bottom: 56px; }
.search__close { position: absolute; top: 56px; right: var(--gutter); width: 32px; height: 32px; } /* 입력창 줄 가운데 */
.search__close img { width: 100%; height: 100%; }
.search__wrap { max-width: 860px; margin: 0 auto; }

.search__form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--c-black); }
.search__form input {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 22px;
  line-height: 32px;
  color: var(--c-black);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search__form input::placeholder { color: var(--c-base8); }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__submit { flex-shrink: 0; width: 32px; height: 32px; }
.search__submit img { width: 100%; height: 100%; }

.search__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; margin-top: 40px; }
.search__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.search__tit { font-size: 16px; line-height: 24px; font-weight: 700; }
.search__clear { font-size: 13px; line-height: 18px; color: var(--c-base4); text-decoration: underline; text-underline-position: from-font; }
.search__clear[hidden] { display: none; }

.search__recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search__recent li { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; border: 1px solid var(--c-base8); border-radius: 999px; transition: border-color .2s; }
.search__recent li:hover { border-color: var(--c-base4); }
.search__kw { max-width: 200px; padding: 7px 0; overflow: hidden; font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.search__del { flex-shrink: 0; width: 16px; height: 16px; }
.search__del img { width: 100%; height: 100%; }
.search__empty { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--c-base4); }
.search__empty[hidden] { display: none; }

.search__popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 12px 24px; margin-top: 16px; }
.search__popular button { display: flex; gap: 12px; max-width: 100%; font-size: 15px; line-height: 22px; text-align: left; }
.search__popular button:hover span { text-decoration: underline; text-underline-position: from-font; }
.search__popular b { flex-shrink: 0; width: 16px; font-weight: 700; color: var(--c-base4); }
.search__popular li:nth-child(-n + 3) b { color: var(--c-primary); }
.search__popular span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 입력창이 화면 끝까지 넓어지는 폭부터는 닫기 버튼을 입력창 위로 */
@media (max-width: 1023px) {
  .search__inner { padding-top: 64px; }
  .search__close { top: 20px; }
}
@media (max-width: 767px) {
  .search__inner { padding-top: 56px; padding-bottom: 40px; }
  .search__close { top: 16px; width: 28px; height: 28px; }
  .search__form input { height: 52px; font-size: 18px; line-height: 26px; }
  .search__submit { width: 28px; height: 28px; }
  .search__body { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
  .search__popular button { font-size: 14px; line-height: 20px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --gutter: 40px; }
  .gnb__list { gap: 80px; }
  .footer__top { flex-wrap: wrap; }
  .footer__info { order: 3; max-width: none; width: 100%; }
  .footer__bottom { gap: 40px; }
}

@media (max-width: 1023px) {
  .header__menu-btn { display: block !important; }
  .gnb {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--c-white);
    color: var(--c-black);
    transition: max-height .3s;
  }
  .gnb__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
  .gnb__list li + li { border-top: 1px solid var(--c-base8); }
  .gnb__list a { padding: 16px 0; font-size: 17px; }
  .header.is-open .gnb { max-height: 400px; border-bottom: 1px solid var(--c-base8); }
  .header--dark.is-open { background: var(--c-black); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .br-pc { display: none; }
  .br-mo { display: inline; }
  .header { padding: 8px 0; }
  .logo { width: 130px; height: 30px; }
  .header__util { gap: 14px; }
  .header__util .lang__btn { gap: 6px; font-size: 13px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .header__util .header__order { display: none; }
  .gnb__mo-only { display: list-item; }

  .btn-more { width: 100%; max-width: 240px; height: 52px; padding: 0 20px; font-size: 15px; }

  .footer { padding: 40px 0; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__guide { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; order: 2; }
  .footer__contact li { width: auto; min-width: 180px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; white-space: normal; }
  .footer__policy { flex-wrap: wrap; gap: 4px 16px; }
  .btn-top { width: 48px; height: 48px; bottom: 20px; }
}

/* ==========================================================================
   Motion (js/common.js의 NadamMotion이 .rv / .is-in 부여, html.motion일 때만 동작)
   ========================================================================== */
:root { --ease-soft: cubic-bezier(.22, .61, .36, 1); }

/* 스크립트가 준비되기 전 첫 화면 깜빡임 방지 */
.motion:not(.motion-ready) main { opacity: 0; }

/* 콘텐츠: 흐림 없이 선명하게 떠오르며 나타남 */
.motion .rv {
  opacity: 0;
  translate: 0 36px;
  scale: .98;
  transition:
    opacity 1.1s var(--ease-soft) var(--rv-d, 0s),
    translate 1.3s var(--ease-soft) var(--rv-d, 0s),
    scale 1.3s var(--ease-soft) var(--rv-d, 0s);
}
.motion .rv.is-in { opacity: 1; translate: 0 0; scale: 1; }
.motion .rv-instant, .motion .rv-instant::before, .motion .rv-instant::after { transition: none !important; }

/* 라인 타이틀: 양옆 선이 그어짐 */
.motion .rv-line::before, .motion .rv-line::after { transform: scaleX(0); transition: transform 1.6s var(--ease-soft) var(--rv-d, 0s); }
.motion .rv-line::before { transform-origin: right center; }
.motion .rv-line::after { transform-origin: left center; }
.motion .rv-line.is-in::before, .motion .rv-line.is-in::after { transform: scaleX(1); }

/* 타이틀: 줄마다 마스크 안에서 밀려 올라옴 */
.tit-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.tit-line__in { display: block; }
.motion .rv-mask { translate: 0 105%; transition: translate 1.2s var(--ease-soft) var(--rv-d, 0s); }
.motion .rv-mask.is-in { translate: 0 0; }
