/* =========================================================
   다점포 점주 사례 (multistore)
   ========================================================= */
#multistore {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 100px 10px;
  background-color: #e3ddd7;
  /* 배경 이미지(하단 레이어) : 다점포.png */
  background-image: url(../img/multistore/bg.png);
  background-size: cover !important;
  background-position: center center !important;
  box-sizing: border-box;
}

/* 배경 위에 얹히는 레이어 이미지 (inner 안에서 콘텐츠보다 아래) */
#multistore .multistore-deco {
  position: absolute;
  bottom: -10%;
  max-width: 1700px;
  width: 110%;

  height: auto;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

#multistore .multistore-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 제목 영역 (공통 tit-wrap / st-tit / st-sub-tit 색·폰트만 오버라이드) ---------- */
#multistore .tit-wrap {
  gap: 0;
}

#multistore .multistore-bar {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 20px;
  background: #5f432c;
}

#multistore .st-sub-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: normal;
}

#multistore .st-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: normal;
}

/* ---------- 운영 지점 태그 ---------- */
#multistore .multistore-tab-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

#multistore .multistore-tab {
  padding: 8px 20px;
  background: #5f432c;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
  text-align: center;
}

/* ---------- 성장 스텝 타임라인 ---------- */
#multistore .multistore-step-list {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: 110px;
}

#multistore .multistore-step {
  position: relative;
  max-width: 300px;
  width: 25%;
  box-sizing: border-box;
  padding: 50px 20px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3ddd7;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 스텝 연결 막대 (실제 요소 — 순차 애니메이션용, 상하 가운데) */
#multistore .multistore-conn {
  flex: 0 0 33px;
  width: 33px;
  height: 6px;
  align-self: center;
  background: linear-gradient(90deg, rgba(95, 67, 44, 0.1) 0%, #5f432c 100%);
}

/* 번호 배지 */
#multistore .multistore-step-num {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #5f432c;
  color: #fff;
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 60px;
  text-align: center;
}

#multistore .multistore-step-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  line-height: 130%;
  color: #191919;
}

#multistore .multistore-step-tit span {
  display: block;
  font-weight: 500;
}

#multistore .multistore-step-tit strong {
  display: block;
  font-weight: 700;
  word-break: keep-all;
}

#multistore .multistore-step-desc {
  word-break: keep-all;
  margin-top: 20px;
  min-height: 90px;
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: rgba(25, 25, 25, 0.7);
}

/* ---------- 매장 사진 ---------- */
#multistore .multistore-photo-list {
  width: 90%;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-top: 80px;
}

#multistore .multistore-photo {
  position: relative;
  max-width: 400px;
  max-height: 400px;
  width: 33%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 10px rgba(95, 67, 44, 0.25);
}

/* 서로 40px 겹치기 + 호버 시 앞으로 */
#multistore .multistore-photo:not(:first-child) {
  margin-left: -40px;
}
#multistore .multistore-photo:hover {
  z-index: 4;
}

#multistore .multistore-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* 사진 위 어두운 오버레이 (호버 시 30% → 10%) */
#multistore .multistore-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.45s ease;
}

/* 호버: 어둠 10% + 이미지 120% 줌 */
#multistore .multistore-photo:hover::before {
  background: rgba(0, 0, 0, 0.1);
}
#multistore .multistore-photo:hover img {
  transform: scale(1.2);
}

#multistore .multistore-photo-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 4px 30px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: 'Paperlogy', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 130%;
  white-space: nowrap;
  text-align: center;
}

/* =========================================================
   반응형 — 768px 이하 (태블릿) : 데스크톱값에서 적당히 축소 + 2 x 2 그리드
   ========================================================= */
@media (max-width: 768px) {
  #multistore {
    padding: 90px 24px;
  }

  /* 제목 */
  #multistore .multistore-bar {
    margin-bottom: 18px;
  }
  #multistore .st-sub-tit {
    font-size: 24px;
  }
  #multistore .st-tit {
    font-size: 46px;
  }

  /* 지점 태그 */
  #multistore .multistore-tab-list {
    gap: 8px;
    margin-top: 20px;
  }
  #multistore .multistore-tab {
    font-size: 20px;
    padding: 6px 16px;
  }

  /* 스텝 : 2 x 2 그리드 (연결 막대 제거) */
  #multistore .multistore-step-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 44px 16px;
    margin-top: 80px;
    padding: 0;
  }
  #multistore .multistore-step {
    width: calc(50% - 8px);
    max-width: 240px;
    min-height: 220px;
    padding: 40px 14px 18px;
  }
  #multistore .multistore-conn {
    display: none !important;
  }
  #multistore .multistore-step-num {
    top: -25px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    line-height: 50px;
  }
  #multistore .multistore-step-tit {
    font-size: 21px;
    line-height: 28px;
  }
  #multistore .multistore-step-desc br {
    display: none;
  }
  #multistore .multistore-step-desc {
    margin-top: 16px;
    min-height: 0;
    font-size: 16px;
    line-height: 24px;
  }

  /* 매장 사진 */
  #multistore .multistore-photo-list {
    margin-top: 70px;
  }
  #multistore .multistore-photo {
    box-shadow: 0 0 0 6px rgba(95, 67, 44, 0.25);
  }
  #multistore .multistore-photo:not(:first-child) {
    margin-left: -24px;
  }
  #multistore .multistore-photo-label {
    font-size: 15px;
    line-height: 130%;
    padding: 3px 16px;
  }
}

@media (max-width: 600px) {
  #multistore .multistore-photo-label {
    font-size: 10px;
  }
}
/* =========================================================
   반응형 — 480px 이하 (모바일) : 시안 최종 사이즈
   (레이아웃(2 x 2 그리드·막대 제거)은 768px 규칙에서 상속)
   ========================================================= */
@media (max-width: 480px) {
  #multistore {
    padding: 80px 16px;
  }

  /* 제목 */
  #multistore .multistore-bar {
    margin-bottom: 16px;
  }
  #multistore .st-sub-tit {
    font-size: 18px;
    line-height: 25.2px;
  }
  #multistore .st-tit {
    font-size: 30px;
    line-height: 39px;
  }

  /* 지점 태그 */
  #multistore .multistore-tab-list {
    gap: 5px;
  }
  #multistore .multistore-tab {
    font-size: 16px;
    padding: 4px 10px;
    line-height: 20.8px;
  }

  /* 스텝 : 최종 사이즈 */
  #multistore .multistore-step-list {
    gap: 32px 10px;
    margin-top: 60px;
  }
  #multistore .multistore-step {
    width: calc(50% - 5px);
    max-width: none;
    min-height: 200px;
    padding: 32px 10px 16px;
  }
  #multistore .multistore-step-num {
    top: -20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
    line-height: 40px;
  }
  #multistore .multistore-step-tit {
    font-size: 20px;
    line-height: 26px;
  }
  #multistore .multistore-step-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 21px;
  }

  /* 매장 사진 */
  #multistore .multistore-photo-list {
    margin-top: 60px;
    width: 100%;
  }
  #multistore .multistore-photo {
    box-shadow: 0 0 0 3px rgba(95, 67, 44, 0.25);
  }
  #multistore .multistore-photo:not(:first-child) {
    margin-left: -12px;
  }
  #multistore .multistore-photo-label {
    font-size: 10px;
    line-height: 15.8px;
    padding: 2px 9px;
  }
}
