/* 기존 사이트(아임웹) 화면을 측정값 기준으로 재현한 스타일.
   측정 기준: 데스크톱 1280px / 모바일 390px. 세로 간격 주석의 y 값은 원본 페이지의 위치(px). */

/* ===== 폰트 =====
   Montserrat · Noto Sans KR 은 Google Fonts(<link>), SUITE 는 fonts/ 에 직접 호스팅
   (SUITE v2.0.4, SIL OFL 1.1 – fonts/SUITE-LICENSE.txt)
   Montserrat 는 500·700 만 불러옴: 원본(예전 Montserrat)처럼 영문·숫자가 굵게 보이도록,
   본문 400 요청 시 브라우저가 Montserrat 500 을 고르고 한글은 Noto Sans KR 400 그대로 씀 */
@font-face {
  font-family: "SUITE";
  src: url("../fonts/SUITE-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SUITE";
  src: url("../fonts/SUITE-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Montserrat", "Noto Sans KR", sans-serif;
  --font-menu: "Montserrat", "SUITE", sans-serif;
  /* 색: 로고의 짙은 갈색·붉은 도장, 메뉴판과 같은 따뜻한 톤 */
  --text: #3a2e25;
  --text-soft: #7a6b5d;
  --bg: #fffdf9;
  --section-bg: #f8f3ea;
  --line: #e8dfd2;
  --orange: #ec5f1f;
  --green: #4a9a2c;
  --blue: #1f72b8;
  --red: #c0392b;
  --footer-text: #7a6b5d;
  --header-h: 161px;
}

/* ===== 기본 ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul { margin: 0; }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.c-orange { color: var(--orange); }
.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.c-red { color: var(--red); }

/* ===== 헤더 (데스크톱: 로고 줄 111px + 메뉴 줄 50px, 항상 상단 고정) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
}
.header-top {
  position: relative;
  height: 111px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.header-logo img { width: 233px; height: 70px; }
.menu-toggle { display: none; }

.header-nav { height: 50px; }
.header-nav > ul {
  display: flex;
  justify-content: center;
  height: 100%;
  list-style: none;
  padding: 0;
}
.header-nav > ul > li { position: relative; }
.header-nav > ul > li > a {
  position: relative;
  display: block;
  padding: 0 60px;
  font-family: var(--font-menu);
  font-size: 20px;
  line-height: 50px;
  transition: color .2s;
}
.header-nav > ul > li > a:hover { color: var(--text-soft); }
.header-nav > ul > li.is-current > a { font-weight: 700; }
.header-nav > ul > li.is-current > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--text);
}

/* '메뉴' 하위 메뉴 (마우스 올리면 펼침) */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 160px;
  list-style: none;
  padding: 0;
  background: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  line-height: 18.57px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}
.sub-menu a:hover { color: #fff; }

/* ===== 모바일 슬라이드 메뉴 ===== */
.slide-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.slide-menu[hidden] { display: none; }
.slide-menu-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity .3s;
}
.slide-menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  overflow-y: auto;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s;
}
.slide-menu-close {
  position: absolute;
  top: 17px;
  left: 310px;
  width: 32px;
  height: 33px;
  padding: 8px;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.slide-menu-close svg { display: block; }
.slide-menu.is-open .slide-menu-backdrop { opacity: .6; }
.slide-menu.is-open .slide-menu-panel { transform: none; }
.slide-menu.is-open .slide-menu-close { opacity: 1; }

.slide-menu-panel ul { list-style: none; padding: 0; }
.slide-menu-panel > ul > li { position: relative; border-top: 1px solid var(--line); }
.slide-menu-panel > ul > li:last-child { border-bottom: 1px solid var(--line); }
.slide-menu-panel > ul > li > a {
  display: block;
  padding: 13px 50px 14px 20px;
  font-size: 20px;
  line-height: 20px;
  color: var(--text);
}
.slide-menu-panel > ul > li.is-current > a { color: var(--text); background: var(--section-bg); }
.sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.sub-toggle svg { width: 18px; height: 9px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.slide-sub { display: none; }
.slide-sub.is-open { display: block; margin-bottom: 14px; }
.slide-sub a {
  display: block;
  padding: 6px 20px 6px 30px;
  font-size: 19px;
  line-height: 23px;
  color: var(--text);
}

/* ===== 홈 본문 (배경 --section-bg, y161–1908) ===== */
.home {
  padding: 45px 0;                       /* 로고 y206, 지도 끝 +45 = 1908 */
  background: var(--section-bg);
}
.home-logo { width: 300px; height: 90px; margin: 0 auto; }

.home-lead {                             /* y326–481 */
  margin-top: 30px;
  text-align: center;
  font-size: 22px;
  line-height: 27px;
}
.home-lead p + p { margin-top: 20px; }

.title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}
.body-text {
  font-size: 22px;
  line-height: 27px;
}

/* 특징 3단 (사진 y595, 제목 y848, 설명 y899) */
.features {
  margin-top: 114px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature .title { margin-top: 30px; }
.feature-text {
  margin-top: 15px;
  font-size: 22px;
  line-height: 29px;
}

/* 가운데 짧은 구분선 (y1062, y1371) */
.divider {
  width: 50px;
  height: 0;
  margin: 85px auto 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .04);
}
.info-contact + .divider { margin-top: 56px; }

/* 영업 시간 (제목 y1093, 목록 y1149) */
.info-hours { margin-top: 30px; }
.dot-list {
  margin-top: 20px;
  padding-left: 40px;
  font-size: 13px;                       /* 목록 기호 크기 기준 */
  line-height: 26px;
}
.dot-list span { font-size: 22px; }

/* 연락처 */
.info-contact { margin-top: 59px; }

/* 전화번호 목록 (홈 연락처, 대량 주문): 번호 + 전화 아이콘 */
.phone-list { line-height: 31.2px; }
.phone-list li + li { margin-top: 14px; }
.phone-list .phone { display: inline-block; min-width: 7.3em; font-size: 26px; }   /* 번호 길이가 달라도 아이콘이 세로로 정렬되게 */


/* 배달 주문·연락처: 아이콘 자체가 링크 (배달 앱 아이콘, 전화) */
.info-delivery { margin-top: 90px; }
.info-delivery .dot-list { word-break: keep-all; }   /* 모바일에서 낱말 중간이 아니라 띄어쓰기에서 줄바꿈 */
.app-icons { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 24px; padding-left: 40px; }
.app-icon { display: block; border-radius: 22%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s; }
.app-icon--baemin,
.app-icon--phone { border-radius: 50%; }
.app-icon img { display: block; border-radius: inherit; }
/* 전화: 번호 오른쪽에 붙는 작은 동그란 아이콘 */
.app-icon--phone svg { width: 26px; height: 26px; }
.app-icon--phone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-left: 16px; vertical-align: middle; color: var(--orange); background: var(--bg); }
.app-icon:hover,
.app-icon:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px rgba(0, 0, 0, .14); }
.info-delivery + .info-contact { margin-top: 80px; }

/* 오시는 길 (제목 y1402, 설명 y1458) */
.info-location { margin-top: 30px; }
.info-location .body-text { margin-top: 20px; }

/* 지도 (y1563, 1250×300) */
.map {
  position: relative;
  height: 300px;
  margin-top: 51px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    #efe8dc;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.map-label {
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--text);
}
.map-address { font-size: 13px; color: var(--text-soft); }

/* 지도 핀 위 이름표: 둥근 흰 알약 + 그림자 + 아래 작은 꼬리 */
.map-tag {
  position: relative;
  padding: 8px 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  color: var(--text);
  background: var(--bg);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.map-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, .08);
}

/* ===== 메뉴 페이지 (흰 배경, 다운로드 버튼 y176, 타일 y241–951) ===== */
.menu-page { padding: 15px 0 20px; }

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--bg);
  border-radius: 9px;
}
.download-button svg { flex: none; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download-button img { flex: none; border-radius: 4px; }

/* 카테고리 타일: 사진 위 반투명 검정 막 + 흰 글씨, 마우스 올리면 막이 사라짐 */
.category-grid {
  margin-top: 35px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.category-grid a {
  position: relative;
  display: block;
  aspect-ratio: 305 / 230;
  overflow: hidden;
  border: 1px solid var(--line);
}
.category-grid img { width: 100%; height: 100%; object-fit: cover; }
.category-grid span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  transition: opacity .3s;
}
.category-grid a:hover span,
.category-grid a:focus-visible span { opacity: 0; }

/* ===== 카테고리 페이지 (제목 y196, 사진 목록 y281–, 4열 · 칸 사이 10px) ===== */
.gallery-page { padding: 35px 0 20px; }
.page-title { font-size: 33.42px; font-weight: 400; line-height: 40.1px; }

.gallery {
  margin-top: 45px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery a {
  display: block;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.gallery img { width: 100%; height: auto; aspect-ratio: 303 / 228; object-fit: cover; }
.gallery span { display: block; padding: 10px; font-size: 14px; line-height: 22.4px; }

/* 이름이 사진 위에 겹치는 목록(밥 · 샐러드 · 기타): 평소엔 사진만, 마우스 올리면 반투명 막 + 흰 이름 */
.gallery--overlay a { position: relative; background: none; }
.gallery--overlay span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s;
}
.gallery--overlay a:hover span,
.gallery--overlay a:focus-visible span { opacity: 1; }

/* ===== 대량 주문 페이지 (본문 폭 1200, 제목 y207, 사진 y352, 전화 문의 y740) ===== */
.bulk-page { padding: 46px 0 75px; }
.bulk-page .container { padding: 0 40px; }
.bulk-lead { margin-top: 20.8px; font-size: 22px; line-height: 26.8px; }
.bulk-page .gallery { margin-top: 35px; }
.bulk-page .divider { margin-top: 95px; }

/* 테두리 없는 사진 목록: 사진 아래 이름 (위아래 여백만) */
.gallery--plain a { border: 0; background: none; }
.gallery--plain img { aspect-ratio: 292.5 / 219; }
.gallery--plain span { padding: 10px 0; }

.bulk-call-title { font-size: 22px; font-weight: 700; line-height: 26.8px; white-space: nowrap; }
.bulk-call { margin-top: 30px; }
.bulk-call + .divider { margin-top: 30px; }

/* 사진 크게 보기: 검정 90% 배경, 위쪽 순번·버튼, 양옆 화살표, 아래 이름 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  color: #999;
  background: rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity .15s;
}
.lightbox.is-open { opacity: 1; }
.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  overflow: hidden;
  touch-action: none;
}
.lb-image {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .3s cubic-bezier(0, 0, .25, 1), opacity .15s;
}
.lb-image.is-loading { opacity: 0; }
.lightbox.is-zoomed .lb-image { cursor: grab; }
.lightbox.is-dragging .lb-image { cursor: grabbing; transition: opacity .15s; }

.lb-toolbar { position: absolute; top: 0; left: 0; right: 0; display: flex; }
.lb-counter { margin-right: auto; padding: 12px 0 0 20px; font-size: 16px; line-height: 25.6px; }
.lb-toolbar button,
.lb-prev,
.lb-next {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color .2s linear;
}
.lb-toolbar button { width: 50px; height: 47px; }
.lb-toolbar button:hover,
.lb-prev:hover,
.lb-next:hover { color: #fff; }
.lb-toolbar button:disabled { opacity: .5; color: #999; cursor: default; }
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 39px;
  margin-top: -10px;
  background: rgba(0, 0, 0, .1);
  border-radius: 2px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 25px;
  font-size: 19.2px;
  line-height: 23.04px;
  color: #fff;
  pointer-events: none;
}

/* ===== 푸터 (--bg 배경, 12px 가운데 정렬) ===== */
.site-footer {
  padding: 35px 0 40px;
  background: var(--bg);
  color: var(--footer-text);
  font-size: 12px;
  line-height: 19.2px;
  text-align: center;
}
.footer-name + p { margin-top: 10px; }
.footer-company { margin-top: 16px; }
.footer-company span { display: inline-block; margin: 0 4px; }

/* ===== 반응형 ===== */

/* 768–1024px: 원본은 화면 전체를 85% 로 축소해서 보여줌 */
@media (min-width: 768px) and (max-width: 1024px) {
  body { zoom: .85; }
}

/* ≤992px: 글자 크기 축소 */
@media (max-width: 992px) {
  .title { font-size: 20px; line-height: 24px; }
  .home-lead,
  .body-text,
  .feature-text { font-size: 16px; line-height: 21.6px; }
  .dot-list { line-height: 22px; }
  .dot-list span { font-size: 16px; }
  .phone-list { line-height: 21.6px; }
  .phone-list .phone { font-size: 18px; }
}

/* ≤991px: 모바일 레이아웃 (헤더 49px + 메뉴 줄 46px, 1단) */
@media (max-width: 991px) {
  :root { --header-h: 95px; }

  .header-top { height: 49px; padding: 0; align-items: center; }
  .header-logo img { width: 150px; height: 45px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
  }

  .header-nav { height: 46px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav > ul { justify-content: flex-start; gap: 4px; padding-left: 15px; width: max-content; }
  .header-nav > ul > li > a {
    height: 45px;
    padding: 0 13px 0 18px;
    font-family: var(--font-sans);
    line-height: 45px;
  }
  .header-nav > ul > li.is-current > a::before { bottom: 0; background: var(--text); }
  .sub-menu { display: none; }

  .home { padding: 38px 0; }             /* 로고 y133, 지도 끝 +38 = 2297 */
  .home-lead { margin-top: 15px; }       /* y238 */
  .home-lead p + p { margin-top: 21.6px; }

  .features { margin-top: 56px; grid-template-columns: 1fr; gap: 42px; }   /* 사진 y424 */
  .feature .title { margin-top: 15px; }
  .feature-text { margin-top: 10px; line-height: 26px; }
  .feature-3 img { height: 223px; aspect-ratio: auto; }   /* 원본은 세 번째 사진만 223px 높이 */

  .divider { margin-top: 42px; }         /* y1494 */
  .info-contact + .divider { margin-top: 40px; }

  .info-hours { margin-top: 15px; }      /* y1510 */
  .dot-list { margin-top: 23px; }        /* y1557 */

  .info-delivery { margin-top: 70px; }
  .info-delivery + .info-contact { margin-top: 60px; }
  .app-icons { gap: 28px; margin-top: 20px; padding-left: 40px; }
  .app-icon img { width: 56px; height: 56px; }
  .app-icon--phone { width: 46px; height: 46px; margin-left: 12px; }
  .info-contact { margin-top: 47px; }
  .info-contact .dot-list { margin-top: 3px; }

  .info-location { margin-top: 15px; }   /* y1812 */
  .info-location .body-text { margin-top: 22px; }
  .map { margin-top: 36px; }             /* y1959 */

  .menu-page { padding: 8px 0 10px; }    /* 다운로드 버튼 y103 */
  .category-grid { margin-top: 17px; grid-template-columns: repeat(2, 1fr); gap: 5px; }   /* 타일 y150 */
  .category-grid a { aspect-ratio: 177.5 / 135; }

  .gallery-page { padding: 16px 0 10px; }                  /* 제목 y111 */
  .page-title { font-size: 26px; line-height: 31.2px; }
  .gallery { margin-top: 30px; grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .gallery img { aspect-ratio: 175.5 / 133; }   /* 원본 모바일 사진 높이 133px */
  .gallery span { padding: 6.67px; }
  .gallery--overlay span { padding: 20px; }

  .bulk-page { padding: 46px 0 60px; }                     /* 제목 y141 */
  .bulk-page .container { padding: 0 15px; }
  .bulk-lead { margin-top: 22.6px; font-size: 16px; line-height: 21.8px; }
  .bulk-page .gallery { margin-top: 32.5px; }              /* 사진 y307 */
  .gallery--plain img { aspect-ratio: 177.5 / 133; }
  .gallery--plain span { padding: 6.67px 0; }
  .bulk-page .divider { margin-top: 77.5px; }              /* y727 */
  .bulk-call-title { font-size: 16px; line-height: 21.8px; }
  .bulk-call + .divider { margin-top: 30px; }
  .lb-caption { line-height: 28.8px; }
}

/* ≤767px: 카테고리 제목 24px (제목 y123, 사진 목록 y179) */
@media (max-width: 767px) {
  .gallery-page { padding-top: 28px; }
  .page-title { font-size: 24px; line-height: 28.8px; }
  .gallery { margin-top: 27px; }
}
