/* ═══ CSS VARIABLES ═══ */
:root {
  --main: #FF465C;
  --main-hover: #F0334A;
  --main-text: #2F353D;
  --gray-1: #121212;
  --gray-2: #262626;
  --gray-3: #565656;
  --gray-4: #B2B2B2;
  --gray-5: #B8C0C9;
  --gray-6: #F6F6F6;
  --white: #FEFEFE;
  --bg-1: #FFF4F4;
  --bg-soft: #F9FBFC;
  --bg-pink: #FFF9F9;
  --card-bg: #EDEDED;
  --tile-bg: #F8F9F9;
  --green: #2CE266;
  --border: #E7E7E7;
  --muted: #B8C0C9;
  --gnb-h: 60px;
  /* Animation */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 0.2s;
  --duration: 0.35s;
}

/* ═══ RESET ═══ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ═══ BASE ═══ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gnb-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--main-text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 한글은 단어 단위로 줄바꿈 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  /* 제목 마지막 줄에 한두 글자만 남는 것을 방지 */
  text-wrap: balance;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.accent {
  color: var(--main);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: #0C0C0C;
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ═══ GNB ═══ */
.gnb {
  --gnb-fg: var(--gray-2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--gnb-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E3E3E3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

/* 메인 히어로 위에 떠 있는 상태 (스크롤 전) */
.gnb--overlay:not(.is-scrolled):not(.is-menu-open) {
  --gnb-fg: var(--white);
  background: rgba(30, 30, 30, 0.28);
  border-bottom-color: transparent;
}

.gnb-inner {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gnb-home {
  display: flex;
  align-items: center;
  height: 36px;
}

.gnb-logo {
  height: 21px;
  width: auto;
  display: block;
}

.gnb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gnb-menu-item {
  position: relative;
}

.gnb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  height: 36px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--gnb-fg);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, color var(--duration) var(--ease);
}

.gnb-link:hover {
  opacity: 0.7;
}

.gnb-link.active {
  color: var(--main);
  position: relative;
}

.gnb--overlay:not(.is-scrolled):not(.is-menu-open) .gnb-link.active {
  color: var(--white);
}

.gnb-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.gnb-link.gnb-cta {
  margin-left: 4px;
  padding: 8px 14px;
  background: #0C0C0C;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.gnb-link.gnb-cta:hover {
  opacity: 1;
  background: #2B2B2B;
}

.gnb-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-fast) var(--ease),
              visibility var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}

/* 링크와 드롭다운 사이 hover 끊김 방지 */
.gnb-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.gnb-menu-item:hover .gnb-dropdown,
.gnb-menu-item:focus-within .gnb-dropdown,
.gnb-menu-item.is-open .gnb-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gnb-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.gnb-dropdown a:hover,
.gnb-dropdown a[aria-current="page"] {
  background: var(--bg-1);
  color: var(--main);
}

/* 모바일 메뉴 버튼 */
.gnb-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gnb-fg);
  align-items: center;
  justify-content: center;
}

.gnb-toggle-bars,
.gnb-toggle-bars::before,
.gnb-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease), background var(--duration-fast);
}

.gnb-toggle-bars {
  position: relative;
}

.gnb-toggle-bars::before,
.gnb-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.gnb-toggle-bars::before { top: -6px; }
.gnb-toggle-bars::after { top: 6px; }

.gnb.is-menu-open .gnb-toggle-bars { background: transparent; }
.gnb.is-menu-open .gnb-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.gnb.is-menu-open .gnb-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .gnb-toggle {
    display: flex;
  }

  .gnb.is-menu-open {
    background: #fff;
  }

  .gnb-nav {
    position: fixed;
    top: var(--gnb-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--gnb-h));
    max-height: calc(100dvh - var(--gnb-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .gnb.is-menu-open .gnb-nav {
    display: flex;
  }

  .gnb-menu-item {
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
  }

  .gnb-menu-item > .gnb-link {
    justify-content: flex-start;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-3);
    cursor: default;
    pointer-events: none;
  }

  .gnb-menu-item > .gnb-link.active::after {
    display: none;
  }

  .gnb-dropdown {
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
  }

  .gnb-dropdown a {
    padding: 12px 0;
    font-size: 17px;
  }

  .gnb-dropdown a:hover,
  .gnb-dropdown a[aria-current="page"] {
    background: none;
  }

  .gnb-nav > .gnb-link:not(.gnb-cta) {
    justify-content: flex-start;
    height: auto;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid #F0F0F0;
  }

  .gnb-link.gnb-cta {
    margin: 20px 0 0;
    height: 52px;
    font-size: 17px;
  }
}

/* ═══ PAGE HERO (서브 페이지 공통) ═══ */
.hero {
  position: relative;
  min-height: 634px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--gnb-h);
  background: #2B2B2B;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #F1F1F1;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-top: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-eyebrow {
  font-size: 28px;
  font-weight: 700;
  color: #F9F9F9;
  line-height: 1.5;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: heroFadeIn 0.8s var(--ease) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }

/* ═══ SECTION HEADER ═══ */
.section-header {
  text-align: center;
  padding: 100px 20px 48px;
}

.section-header-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header-title {
  font-size: 40px;
  font-weight: 800;
  color: #3C3C3C;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ═══ FEATURE CARD (텍스트 + 비주얼) ═══ */
.feature-card {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  overflow: hidden;
}

.feature-card--pink {
  background: var(--bg-pink);
}

.feature-card-text {
  min-width: 0;
}

.feature-card-badge {
  display: inline-block;
  padding: 8px 14px;
  background: #FFECF1;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.feature-card-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.02em;
  line-height: 1.43;
  margin-bottom: 20px;
}

.feature-card-desc {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-3);
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.feature-card-visual {
  min-width: 0;
}

.feature-card-visual img {
  width: 100%;
  display: block;
}

.feature-card-visual--shot img {
  border-radius: 12px;
  border: 1px solid #E4E7EE;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* ═══ PHOTO BAND (사진 + 문구) ═══ */
.photo-band {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: #333;
}

.photo-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-band--flip > img {
  transform: scaleX(-1);
}

.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.photo-band-content {
  position: relative;
  z-index: 1;
}

.photo-band-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.photo-band-sub {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

/* ═══ STORE STRUCTURE (매장 운영 구조) ═══ */
.structure {
  padding: 100px 0;
}

.structure-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.structure-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-1);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: 760px;
}

.structure-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.structure-box {
  padding: 32px;
  border: 1px solid #E3E3E3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.structure-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.structure-box-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.structure-box ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.structure-box li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-3);
  line-height: 1.6;
}

.structure-box li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-3);
}

.structure-box li strong {
  font-weight: 700;
  color: var(--gray-2);
}

.structure-visual img {
  width: 100%;
  display: block;
}

/* ═══ CTA ═══ */
.cta-wrap {
  padding: 80px 20px 100px;
}

.cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #F4F6FA;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #212121;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 16px;
  font-weight: 500;
  color: #6B6B6B;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  min-width: 132px;
  height: 54px;
  background: var(--main);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration-fast) var(--ease);
}

.cta-btn:hover {
  background: var(--main-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 70, 92, 0.3);
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--main);
  padding: 56px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.footer-company,
.footer-address,
.footer-email {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.footer-company {
  font-weight: 700;
}

.footer-email {
  text-decoration: none;
  align-self: flex-start;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 27px;
  width: auto;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.footer-link {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease);
}

.footer-link:hover {
  opacity: 0.8;
}

.footer :focus-visible {
  outline-color: #fff;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: 42px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }

  .structure-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-center {
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-eyebrow {
    font-size: 20px;
  }

  .section-header {
    padding: 64px 20px 32px;
  }

  .section-header-label {
    font-size: 17px;
  }

  .section-header-title {
    font-size: 26px;
  }

  .feature-card {
    padding: 28px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .feature-card-badge {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .feature-card-title {
    font-size: 23px;
    margin-bottom: 12px;
  }

  .feature-card-desc {
    font-size: 16px;
  }

  /* 데스크톱용 수동 줄바꿈은 모바일에서 해제 */
  .feature-card-desc br,
  .section-header-title br,
  .structure-title br {
    display: none;
  }

  .photo-band {
    min-height: 280px;
    border-radius: 16px;
  }

  .photo-band-title {
    font-size: 25px;
  }

  .photo-band-sub {
    font-size: 17px;
  }

  .structure {
    padding: 64px 0;
  }

  .structure-label {
    font-size: 17px;
  }

  .structure-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .structure-box {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .structure-box-title {
    font-size: 19px;
  }

  .structure-box li {
    font-size: 16px;
  }

  .cta-wrap {
    padding: 56px 20px 72px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 24px;
  }

  .cta-text h2 {
    font-size: 20px;
  }

  .cta-text p {
    font-size: 15px;
  }

  .cta-btn {
    width: 100%;
  }

  .footer {
    padding: 44px 0;
  }
}

/* ═══ SCROLL REVEAL (JS가 켜졌을 때만 숨김) ═══ */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease),
              transform 0.6s var(--ease);
}

.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .fade-in {
    opacity: 1;
    transform: none;
  }
}
