/* --- CSS 초기화 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* --- 기본 스타일 --- */
body {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.6;
  color: #333;
  padding-bottom: 0;
}

/* --- 레이아웃 (PC 우선) --- */

/* 헤더 및 네비게이션 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.head-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin: 0 auto;
  padding: 30px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.7s;
}

.scroll-on {
  padding: 10px 10%;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.9);
  background: rgba(49, 49, 49, 0.7);
}

.logo {
  margin: 0;
}

.logo img {
  height: 100%;
  width: auto;
}

.head-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.head-nav li {
  margin: 0 15px;
}

.head-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.head-nav a:hover {
  color: #ff6b6b;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

/* 히어로 섹션 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 50px;
}

.hero-content h1 img {
  max-width: 40%;
  height: auto;
}

.hero-content h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
}

.hero-text {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.6;
}

/* 텍스트 표시/숨김 기본값 */
.hero-text-desktop {
  display: block;
}

.hero-text-mobile {
  display: none;
}

.story-paragraphs-desktop {
  display: block;
}

.story-paragraphs-mobile {
  display: none;
}

/* 섹션 공통 스타일 */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #fff;
}

/* 스토리 섹션 */
#story.section {
  padding: 0;
}

.story-image-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  height: auto;
}

.story-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.story-text-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  font-weight: 700;
}

.story-text-overlay h2 {
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.story-text-overlay p {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: center;
}

.story-text-overlay p:first-of-type {
  font-size: 55px;
  margin-bottom: 15px;
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.story-image-desktop {
  display: block;
}

.story-image-mobile {
  display: none;
}

/* 메뉴 섹션 */
#menu {
  background: #fff;
  padding: 50px 0;
  text-align: center;
}
#menu.section h2 {
  color: #000;
}
#menu .glide {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

#menu .glide__track {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#menu .glide__slides {
  list-style: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#menu .glide__slide {
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

#menu .glide__slide img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

#menu .menu-name {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0;
}

#menu .menu-desc {
  font-size: 14px;
  color: #555;
}

.swiper-button-prev,
.swiper-button-next {
  color: #f44336;
}

/* 새로운 캐러셀 스타일 */

.review-carousel-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 0 300px 0;
  background: none;
  perspective: 1200px;
  overflow: hidden;
}

.review-carousel-section .section-title {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 50px;
}

.review-carousel-section .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
}

.carousel {
  position: relative;
  width: 300px;
  height: 400px;
  transform-style: flat;
  margin: 0 auto;
}

.card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  width: 400px;
  height: 600px;
  background: none;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, left 0.6s ease-in-out;
  z-index: 1;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 중앙 활성 카드 */
.card.active {
  opacity: 1;
  z-index: 3;
  transform: translateX(-50%) scale(1);
}

/* 바로 다음 카드 (오른쪽) */
.card.next {
  opacity: 0.5;
  z-index: 2;
  transform: translateX(calc(-50% + 200px)) scale(0.8);
}

/* 바로 이전 카드 (왼쪽) */
.card.prev {
  opacity: 0.5;
  z-index: 2;
  transform: translateX(calc(-50% - 200px)) scale(0.8);
}

/* 두 번째 다음 카드 (오른쪽) */
.card.next-2 {
  opacity: 0.3;
  z-index: 1;
  transform: translateX(calc(-50% + 400px)) scale(0.7);
}

/* 두 번째 이전 카드 (왼쪽) */
.card.prev-2 {
  opacity: 0.3;
  z-index: 1;
  transform: translateX(calc(-50% - 400px)) scale(0.7);
}

/* 나머지 카드 (숨김) */
.card:not(.active):not(.next):not(.prev):not(.next-2):not(.prev-2) {
  opacity: 0;
  z-index: 0;
  transform: translateX(-50%) scale(0.8);
}

/* 20개 카드 원형으로 배치 (이 부분은 JavaScript에서 transform을 직접 설정하지 않고 CSS 클래스로 제어) */
/* .carousel .card:nth-child(n) { transform: rotateY(calc(var(--i) * 18deg)) translateZ(400px); } */

/* 모바일 반응형 스타일 (max-width: 767px) */
@media (max-width: 767px) {
  .carousel {
    width: 250px;
    height: 500px;
    perspective: 600px;
  }

  .card {
    width: 300px;
    height: 450px;
  }

  /* 모바일: 중앙 활성 카드 */
  .card.active {
    transform: translateX(-50%) scale(1);
  }

  /* 모바일: 바로 다음 카드 (오른쪽) */
  .card.next {
    transform: translateX(calc(-50% + 150px)) scale(0.8);
  }

  /* 모바일: 바로 이전 카드 (왼쪽) */
  .card.prev {
    transform: translateX(calc(-50% - 150px)) scale(0.8);
  }

  /* 모바일: 두 번째 다음/이전 카드 숨김 */
  .card.next-2,
  .card.prev-2 {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }

  .franchise-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px 20px 10px;
  }
  .step-item {
    padding: 18px 8px;
  }
  .franchise-steps .step-item img {
    width: 100%;
    min-height: 110px;
    max-height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .mobile_cost_table {
    font-size: 13px;
  }

  .cost-table th.mobile_cost_table {
    font-size: 13px !important;
  }

  #franchise-costs {
    padding: 30px 20px !important;
    margin: 15px !important;
  }

  #store-locator.section {
    padding: 30px 0 30px 0 !important;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  /* Tablet adjustments */
  .review-carousel-section {
    padding: 80px 0 200px 0;
    perspective: 1000px;
  }

  .review-carousel-section .section-title {
    font-size: 40px;
    margin-bottom: 60px;
  }

  .carousel {
    width: 400px;
    height: 600px;
    perspective: 900px;
  }

  .card {
    width: 350px;
    height: 525px;
  }

  /* 태블릿: 중앙 활성 카드 */
  .card.active {
    opacity: 1;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%) scale(1);
  }

  /* 태블릿: 바로 다음 카드 (오른쪽) */
  .card.next {
    opacity: 1;
    z-index: 2;
    left: 50%;
    transform: translateX(calc(-50% + 370px)) scale(0.7);
  }

  /* 태블릿: 바로 이전 카드 (왼쪽) */
  .card.prev {
    opacity: 1;
    z-index: 2;
    left: 50%;
    transform: translateX(calc(-50% - 370px)) scale(0.7);
  }

  /* 태블릿: 두 번째 다음/이전 카드 숨김 */
  .card.next-2,
  .card.prev-2 {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
}

/* 창업 절차 섹션 스타일 */
#franchise-procedure {
  background-image: url("../images/franchise-background-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  width: 100%;
  overflow: auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 10px;
  color: #fff;
}

.section-description {
  font-size: 19px;
  color: #fff;
}

.franchise-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 15px;
}

.step-item {
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333;
  position: relative;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideIn 0.8s ease-out forwards;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}
.step-item:nth-child(2) {
  animation-delay: 0.3s;
}
.step-item:nth-child(3) {
  animation-delay: 0.5s;
}
.step-item:nth-child(4) {
  animation-delay: 0.7s;
}
.step-item:nth-child(5) {
  animation-delay: 0.9s;
}
.step-item:nth-child(6) {
  animation-delay: 1.1s;
}
.step-item:nth-child(7) {
  animation-delay: 1.3s;
}
.step-item:nth-child(8) {
  animation-delay: 1.5s;
}

.step-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
}

.point-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* 마지막 로고 이미지는 POINT 라벨 없음 */
.step-item:last-child .point-label {
  display: none;
}

.step-description {
  font-size: 18px;
  line-height: 1.5;
}
td[data-label="기타"] {
  color: #de1020;
}
.stamp-blink {
  display: inline-block;
  border: 2px solid red;
  color: red;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  transform: rotate(-5deg);
  text-align: center;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* 창업 비용 섹션 */
#franchise-costs {
  padding: 60px 20px;
  color: #333;
  text-align: center;
}

/* 배경색 제거 */
#franchise-costs .section-header {
  background: none;
  margin: 45px;
}

/* h2 정렬 */
#franchise-costs .section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  background: none;
}

/* 이미지 크기 */
#franchise-costs .section-title img.section-title-icon {
  width: 350px;
  height: auto;
}

/* 글자 스타일 */
#franchise-costs .title-text {
  display: flex;
  gap: 0.2rem;
  font-size: 1.8rem;
  font-weight: bold;
  align-items: center;
}

#franchise-costs .title-main {
  color: red;
  font-weight: bold;
  font-size: 42px;
}

#franchise-costs .title-sub {
  color: black;
  font-size: 38px;
  weight: bold;
}

.cost-table {
  width: 80%;
  max-width: 800px;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 2rem auto;
  background: #fff;
}

.cost-table th,
.cost-table td {
  border: 1px solid #ddd;

  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.cost-table th {
  background-color: #c00000;
  color: #fff;
}

.cost-table del {
  color: #c00000;
}

.cost-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 문의 양식 섹션 */
#qna {
  background-color: #313131;
  color: white;
  text-align: center;
  padding: 5rem 5%;
  display: block;
  z-index: auto;
  position: relative;
  margin: 0;
}

/* QNA 섹션 클릭 시 하이라이트 스타일 */
#qna.highlight-qna::before {
  content: "▼";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b6b;
  font-size: 30px;
  z-index: 100;
  animation: bounce 0.8s infinite alternate;
}

@keyframes bounce {
  from {
    top: -20px;
  }
  to {
    top: -30px;
  }
}

#qna h2,
.qna-subtitle {
  display: none;
}

.qna-expandable-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.qna-phone {
  font-size: 1.5rem;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
  display: block;
}

/* 문의 폼 스타일 */
.contact-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-end;
  width: auto;
  padding: 0;
  flex-grow: 1;
}

.contact-form .form-group {
  margin-bottom: 0;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 100px;
  text-align: left;
  width: auto;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  margin: 0;
  display: inline-block;
}

.contact-form .radio-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: row;
  width: auto;
}

.contact-form .radio-group label {
  font-size: 1rem;
  white-space: normal;
}

.contact-form .form-group.checkbox {
  flex-basis: auto;
  flex-grow: 0;
  margin-right: 10px;
  white-space: nowrap;
  margin-top: 0;
  align-self: auto;
  display: block;
  justify-content: flex-start;
  text-align: left;
}

.contact-form .form-group.checkbox label {
  font-size: 1rem;
  white-space: normal;
  margin-bottom: 0;
  display: inline;
}

.contact-form .submit-btn {
  flex-basis: auto;
  flex-grow: 0;
  padding: 8px 25px;
  background: #de1020;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease;
  width: auto;
  margin-top: 0;
}

.contact-form .submit-btn:hover {
  background: #f0505e;
}

.contact-form .form-group.experience-group {
  text-align: left;
  width: auto;
  flex-basis: auto;
}

.contact-form .form-group.consent-group {
  flex-basis: auto;
}

.contact-form .submit-btn-group {
  flex-basis: auto;
}

/* 푸터 */
footer {
  background-color: #fff;
  color: #313131;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-content p {
  margin: 5px 0;
  text-align: center;
  width: auto;
}

footer a {
  color: #313131;
  text-decoration: none;
}

footer a:hover {
  color: #ff6b6b;
}

/* 플로팅 버튼 */
.floating-buttons {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.top-button {
  background-color: #ff6b6b;
}

.top-button:hover {
  background-color: #ff5252;
}

.call-button {
  background-color: #28a745;
}

.call-button:hover {
  background-color: #218838;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
}

.modal-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

.modal-content p,
.modal-content ul {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}

.modal-content ul {
  margin-left: 20px;
  list-style: disc;
}

.modal-content ul li {
  margin-bottom: 8px;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.view-policy-link {
  color: #ff6b6b;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 5px;
}

/* --- 미디어 쿼리 (큰 화면에서 작은 화면 순서) --- */

/* PC 스타일 (min-width: 1025px) */
@media (min-width: 1025px) {
  .hero {
    height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    position: relative;
    top: -120px;
  }

  .logo img {
    height: 100%;
    width: auto;
    max-height: 80px;
  }

  #qna {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 1%;
    background-color: #313131;
    margin: 0;
  }

  body {
    padding-bottom: 100px;
  }

  .qna-expandable-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .qna-phone {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  #qna .contact-form {
    flex-grow: 1;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-content p {
    text-align: center;
    width: 100%;
  }

  .review-carousel-section {
    padding: 90px 0 180px 0;
    perspective: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel {
    width: 100%;
    max-width: 2400px;
    height: 600px;
    transform-style: flat;
    margin: 0 auto;
    position: relative;
  }

  .card {
    position: absolute;
    top: 0;
    width: 400px;
    height: 600px;
    background: none;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, left 0.6s ease-in-out;
    z-index: 1;
    cursor: pointer;
  }

  /* 중앙 활성 카드 */
  .card.active {
    opacity: 1;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%) scale(1);
  }

  /* 바로 다음 카드 (오른쪽) */
  .card.next {
    opacity: 1;
    z-index: 4;
    left: 50%;
    transform: translateX(calc(-50% + 460px)) scale(0.7);
  }

  /* 바로 이전 카드 (왼쪽) */
  .card.prev {
    opacity: 1;
    z-index: 4;
    left: 50%;
    transform: translateX(calc(-50% - 460px)) scale(0.7);
  }

  /* 두 번째 다음 카드 (오른쪽) */
  .card.next-2 {
    opacity: 1;
    z-index: 3;
    left: 50%;
    transform: translateX(calc(-50% + 920px)) scale(0.7);
  }

  /* 두 번째 이전 카드 (왼쪽) */
  .card.prev-2 {
    opacity: 1;
    z-index: 3;
    left: 50%;
    transform: translateX(calc(-50% - 920px)) scale(0.7);
  }

  /* 나머지 카드 (숨김) */
  .card:not(.active):not(.next):not(.prev):not(.next-2):not(.prev-2) {
    opacity: 0;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
  }
}

/* 태블릿 및 모바일 공통 스타일 (max-width: 1024px) */
@media (max-width: 1024px) {
  .head-inner {
    position: relative;
    top: auto;
    left: auto;
    min-width: auto;
    margin: 0 auto;
    padding: 20px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo {
    position: static;
    margin: 0 auto;
    transform: none;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .mobile-menu-btn {
    position: absolute;
    right: 20px;
    display: none;
    top: 50%;
    transform: translateY(-50%);
  }

  .head-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #313131;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }

  .head-nav.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
  }

  .head-nav li {
    margin: 10px 0;
  }

  .head-nav a {
    color: #ffffff;
  }

  /* 스토리 섹션 조정 */
  .hero-content h1 img {
    max-width: 100%;
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .hero-text h2 {
    font-size: 20px;
    padding: 0 20px;
  }

  .hero-text-desktop {
    display: none;
  }

  .hero-text-mobile {
    display: block;
  }

  .story-paragraphs-desktop {
    display: none;
  }

  .story-paragraphs-mobile {
    display: block;
  }

  .story-text-overlay p {
    font-size: 17px;
    line-height: 1.5;
  }

  .story-text-overlay p:first-of-type {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .story-image-desktop {
    display: block;
  }

  .story-image-mobile {
    display: none;
  }

  /* 섹션 패딩 조정 */
  .section {
    padding: 0;
  }

  #qna {
    position: relative;
    padding: 3rem 1rem;
  }

  .qna-expandable-content {
    flex-direction: column;
    align-items: center;
  }

  #qna .contact-form {
    flex-direction: column;
    width: 100%;
    max-width: 600px;
  }

  .contact-form .form-group {
    width: 100%;
    text-align: center;
  }

  .contact-form .form-group.checkbox {
    margin: 15px 0;
  }

  .contact-form .submit-btn {
    width: 100%;
    margin-top: 15px;
  }

  body {
    padding-bottom: 0;
  }

  .qna-phone {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0px;
  }

  .point-label {
    font-size: 15px;
    top: -8px;
  }

  .cost-table th,
  .cost-table td {
    font-size: 0.95rem;
    font-weight: bold;
  }

  /* 태블릿에서 컨테이너 크기 조정 */
  .review-carousel-container-3d {
    width: 120px;
    height: 120px;
  }
}

/* 모바일 스타일 (max-width: 767px) */
@media (max-width: 767px) {
  #franchise-procedure {
    padding: 40px 10px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 32px;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .franchise-steps {
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
    padding: 0 10px 20px 10px;
  }

  .step-item {
    padding: 10px 8px;
  }

  .point-label {
    font-size: 14px;
    padding: 3px 10px;
    top: -8px;
  }

  .step-item img {
    margin-bottom: 8px;
  }

  .step-description {
    font-size: 14px;
  }

  .story-image-desktop {
    display: none;
  }

  .story-image-mobile {
    display: block;
  }

  .story-text-overlay {
    top: 15%;
    transform: translate(-50%, 0);
  }

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

  .story-text-overlay p:first-of-type {
    font-size: 26px;
  }
  .cost-table {
    font-size: 1rem;
    width: 98%;
  }

  .cost-table th,
  .cost-table td {
    padding: 8px;
    border: 1px solid #ccc;
    font-weight: bold;
    font-size: 10px;
  }
  .section-title {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

  .review-carousel-container-3d {
    width: 100%;
    max-width: 200px;
    height: 150px;
    perspective: 600px;
    margin: 95px auto;
  }

  .carousel-card-3d.active {
    transform: scale(1.2) translateZ(150px) rotateY(90deg);
  }

  .review-carousel-section {
    padding: 60px 0 30px 0;
    perspective: 600px;
  }

  .review-carousel-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    background-color: #fff;
  }

  .review-carousel-section .section-title::after {
    width: 40px;
    height: 2px;
  }

  .carousel-card-3d img {
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .stamp-blink {
    font-size: 10px;
  }
  #franchise-costs .title-main {
    color: red;
    font-weight: bold;
    font-size: 30px;
  }
  #franchise-costs .title-sub {
    color: black;
    font-size: 28px;
    weight: bold;
  }

  .av-container img {
    max-width: 100%;
    max-height: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
  }

  .cost-table del {
    font-size: 13px;
  }

  .mobile_cost_table {
    font-size: 13px;
  }

  #franchise-costs {
    margin: 15px !important;
  }
}

@keyframes slideDownTitle {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content h1 img {
  animation: slideDownTitle 1.2s ease-out forwards;
}

/* AniView 애니메이션 */
.av-container {
  position: relative;
  overflow: hidden;
}

.step-item {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.8s ease-out;
}

.step-item.animated {
  opacity: 1;
  transform: translateX(0);
}

/* 애니메이션 리셋 */
.step-item:not(.animated) {
  opacity: 0;
  transform: translateX(-100%);
}

/* 모바일 환경에서의 애니메이션 최적화 */
@media (max-width: 768px) {
  .step-item {
    transform: translateX(-50%);
    transition: all 0.6s ease-out;
  }

  .step-item:not(.animated) {
    transform: translateX(-50%);
  }
}

/* 애니메이션 클래스 */
.slideIn {
  animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 모바일 애니메이션 */
@media (max-width: 768px) {
  .slideIn {
    animation: slideInMobile 0.6s ease-out forwards;
  }

  @keyframes slideInMobile {
    from {
      transform: translateY(-50%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}

/* 히어로 섹션 애니메이션 */
.hero-animate-item {
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.8s ease-out;
}

.hero-animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 애니메이션 클래스 */
.slideDown {
  animation: slideDown 0.8s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 모바일 애니메이션 */
@media (max-width: 768px) {
  .slideDown {
    animation: slideDownMobile 0.6s ease-out forwards;
  }

  @keyframes slideDownMobile {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Gift & Delivery Section */
.gift-delivery-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fcece8;
}

.gift_wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift_bg1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  transform: rotate(-15deg) translate(-50%, -50%);
  transform-origin: top left;
}

.gift_bg2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  transform: rotate(-15deg) translate(50%, 50%);
  transform-origin: bottom right;
}

.gift_bg1 img,
.gift_bg2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift_wrap_inner {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 80px;
}

.gift_wrap_tit {
  list-style: none;
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 10;
}

.gift_tit {
  font-size: 30px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.gift_con_l {
  margin-right: 0;
  display: flex;
  justify-content: flex-end;
  flex-grow: 1;
  max-width: 400px;
  text-align: right;
  margin-top: 0px;
}

.gift_con_l img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.gift_con_r {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  max-width: 600px;
  text-align: center;
}

.gift_con_r_ul1 {
  list-style: none;
  font-size: 36px;
  font-weight: bold;
  color: #d82a1e;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.4;
}

.gift_con_r_ul1 span {
  color: #333;
}

.gift_con_r_ul2 {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift_con_r_ul2_li1 {
  display: flex;
  gap: 15px;
}

.gift_con_r_ul2_li1 img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gift_con_r_ul2_li2 img {
  width: 50px;
  height: auto;
  margin: 0 20px;
}

.gift_line_top,
.gift_line_bottom {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

.gift_nav_arrow {
  position: absolute;
  right: 10%;
  transform: translateY(-50%);
  top: 50%;
  cursor: pointer;
  z-index: 10;
}

.gift_nav_arrow img {
  width: 40px;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .gift_bg1,
  .gift_bg2 {
    width: 60vw;
    height: 60vh;
    transform: rotate(-15deg) translate(-30%, -30%);
  }

  .gift_bg2 {
    transform: rotate(-15deg) translate(30%, 30%);
  }

  .gift_wrap_inner {
    width: 90%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .gift_wrap_tit {
    position: static;
    transform: none;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
  }

  .gift_con_l {
    margin-right: 0;
    margin-bottom: 30px;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    margin-top: 0;
  }

  .gift_con_l img {
    width: 300px;
  }

  .gift_con_r {
    align-items: center;
    text-align: center;
  }

  .gift_con_r_ul1 {
    font-size: 28px;
    text-align: center;
    line-height: 1.4;
  }

  .gift_con_r_ul2 {
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .gift_con_r_ul2_li1 img {
    width: 70px;
    height: 70px;
  }

  .gift_con_r_ul2_li2 img {
    width: 40px;
  }
}

@media (max-width: 768px) {
  .gift-delivery-section {
    height: auto;
    padding: 50px 0;
  }

  .gift_bg1,
  .gift_bg2 {
    width: 40vw;
    height: 40vh;
    transform: rotate(-15deg) translate(-20%, -20%);
  }

  .gift_bg2 {
    transform: rotate(-15deg) translate(20%, 20%);
  }

  .gift_wrap_inner {
    flex-direction: column;
    align-items: center;
  }

  .gift_wrap_tit {
    font-size: 20px;
  }

  .gift_con_l {
    margin-bottom: 20px;
  }

  .gift_con_l img {
    width: 250px;
  }

  .gift_con_r_ul1 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .gift_con_r_ul2 {
    flex-direction: column;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .gift_con_r_ul2_li1 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .gift_con_r_ul2_li1 img {
    width: 60px;
    height: 60px;
  }

  .gift_con_r_ul2_li2 img {
    width: 30px;
    margin: 20px 0;
  }
}

.font-omni-500 {
  font-family: "Omni", sans-serif;
  font-weight: 500;
}

.font-b {
  font-weight: bold;
}

/* Delivery Section Styles */
.delivery-section {
  background-color: rgb(222, 16, 33);
  padding: 4rem 0;
  color: #ffffff;
}

.delivery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.delivery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.delivery-text {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 600px;
}

.delivery-line-top,
.delivery-line-bottom {
  height: 2px;
  background-color: #ffffff;
  width: 100%;
  margin: 1rem 0;
}

.delivery-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1rem 0;
}

.delivery-title span {
  color: #ffeb3b;
  font-weight: 800;
}

.delivery-platforms {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.platform-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: nowrap;
}

.platform-link {
  display: block;
  transition: transform 0.3s ease;
}

.platform-link:hover {
  transform: scale(1.05);
}

.platform-icon {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .delivery-section {
    padding: 3rem 0;
  }

  .delivery-title {
    font-size: 2rem;
  }

  .platform-icon {
    width: 80px;
  }

  .platform-row {
    gap: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .delivery-section {
    padding: 2rem 0;
  }

  .delivery-title {
    font-size: 1.3rem;
  }

  .platform-icon {
    width: 60px;
  }

  .platform-row {
    gap: 1.5rem;
  }
}

/* 프랜차이즈 장점 섹션 스타일 */
.franchise-advantages {
  padding: 80px 20px;
  background-color: rgb(222, 16, 33);
  position: relative;
  overflow: hidden;
}

.franchise-advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.1;
}

.franchise-advantages .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.franchise-advantages .section-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.franchise-advantages .section-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.advantage-card {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  margin-bottom: 20px;
}

.advantage-icon img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(222, 16, 33, 0.1);
  background: #fff;
  border: 4px solid #fff;
}

.advantage-card h3 {
  color: rgb(222, 16, 33);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.advantage-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(222, 16, 33, 0.2);
}

/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
  }

  .advantage-card {
    padding: 30px 15px;
  }

  .advantage-icon img {
    width: 180px;
    height: 180px;
    margin-bottom: 26px;
  }

  .advantage-card h3 {
    font-size: 1.3rem;
  }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .franchise-advantages {
    padding: 50px 15px;
  }

  .franchise-advantages .section-title {
    font-size: 2rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .advantage-card {
    padding: 30px 20px;
  }

  .advantage-icon img {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
  }

  .advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .advantage-card p {
    font-size: 0.9rem;
  }
}

/* 가까운 매장 찾기 섹션 스타일 */
#store-locator.section {
  padding: 60px 0 60px 0;
  position: relative;
  overflow: hidden; /* float 해제 */
  min-height: 520px;
  margin: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#store-locator.section h2.section-title {
  color: #000;
}
/* float 해제용 clearfix */
#store-locator::after {
  content: "";
  display: table;
  clear: both;
}

#store-locator-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}

#map {
  width: 900px;
  height: 500px;
  background: #eee;
  border-radius: 10px 0 0 10px;
  float: none;
}
#list {
  width: 300px;
  height: 500px;
  overflow-y: auto;
  padding: 20px 10px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0 10px 10px 0;
  float: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#list-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d82a1e;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}

.store-item {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(222, 16, 33, 0.07);
  padding: 16px 12px;
  margin-bottom: 0;
  border: none;
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.store-item strong {
  color: #d82a1e;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.store-item:hover {
  background: #fff3f3;
  box-shadow: 0 4px 16px rgba(222, 16, 33, 0.15);
  transform: translateY(-2px) scale(1.03);
}
.store-item:last-child {
  margin-bottom: 0;
}

/* 스크롤바 스타일 (크롬/엣지/사파리) */
#list::-webkit-scrollbar {
  width: 8px;
}
#list::-webkit-scrollbar-thumb {
  background: #ffd6d6;
  border-radius: 8px;
}
#list::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 8px;
}

/* 파이어폭스 스크롤바 */
#list {
  scrollbar-width: thin;
  scrollbar-color: #ffd6d6 #fff;
}

@media (max-width: 900px) {
  #store-locator-inner {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  #map,
  #list {
    width: 100%;
    height: 300px;
    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  #list {
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
    height: 350px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .store-item {
    padding: 10px 6px;
    font-size: 0.97rem;
    border-radius: 6px;
    gap: 2px;
  }
  .store-item strong {
    font-size: 1rem;
    margin-bottom: 0;
  }
}
/* =========================
   Popup CSS (px-*) — PC: 원본비율+균등배치 / Mobile: 90% 폭
   ========================= */

/* 안전 */
.px-modal,
.px-modal * {
  box-sizing: border-box;
}
.px-modal[hidden] {
  display: none;
}

/* 다이얼로그: 이미지(1fr) + 액션바(44px) */
.px-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto; /* 내용(이미지)에 맞춤 */
  max-width: 92vw; /* 화면 밖으로 안 나가게 */
  max-height: 92vh;
  background: #fff;
  border-radius: 12px 12px 0 0; /* 상단만 둥글게 */
  overflow: hidden; /* 내부 넘침 방지 */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2147483605;
  display: grid;
  grid-template-rows: 1fr 44px;
  align-items: stretch;
  justify-items: stretch;
  transform: translate(-50%, -50%);
}

/* 위치 클래스(데스크톱 배치용) */
.px-left {
  left: 20%;
  transform: translate(-50%, -50%);
}
.px-center {
  left: 50%;
  transform: translate(-50%, -50%);
}
.px-right {
  left: 80%;
  transform: translate(-50%, -50%);
}
.px-left2 {
  left: 12.5%;
  transform: translate(-50%, -50%);
}
.px-right2 {
  left: 87.5%;
  transform: translate(-50%, -50%);
}

/* 상단바 미사용 */
.px-topbar {
  height: 0;
  padding: 0;
  background: transparent;
}
.px-handle {
  cursor: move;
  touch-action: none;
}

/* 이미지: 원본 비율 유지 + 화면 한도 내에서만 축소 */
.px-img {
  grid-row: 1 / 2;
  display: block;
  width: auto; /* 원본 너비 */
  height: auto; /* 원본 높이 */
  max-width: 100%; /* 다이얼로그 가로를 넘지 않음 */
  max-height: calc(92vh - 44px); /* 버튼 높이 제외 세로 한도 */
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

/* 액션바: 항상 하단에 붙음 */
.px-actions {
  grid-row: 2 / 3;
  position: static !important;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #f7f7f7;
  border-top: 1px solid #ededed;
}
.px-act {
  flex: 1 1 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  height: 100%;
}
.px-act + .px-act {
  border-left: 1px solid #e6e6e6;
}
.px-act:hover {
  background: #efefef;
}
.px-act:focus-visible {
  outline: 2px solid #1e88e5;
  outline-offset: 2px;
}

/* 바디 스크롤 잠금 */
.body--pxlock {
  overflow: hidden;
}

/* ========== 데스크톱(≥821px): 팝업 수에 따라 균등 배치 & 최대폭 ========== */
/* 1개: 중앙, 넉넉한 폭 */
@media (min-width: 821px) {
  body:not(:has(.px-dialog.px-left):has(.px-dialog.px-right))
    :not(:has(.px-dialog.px-center))
    :not(:has(.px-dialog.px-left2))
    :not(:has(.px-dialog.px-right2))
    .px-dialog {
    max-width: 60vw;
  }

  /* 2개: 33% / 67%, 폭 32vw */
  body:has(.px-dialog.px-left):has(.px-dialog.px-right) .px-dialog {
    max-width: 32vw;
  }
  .px-left {
    left: 33% !important;
  }
  .px-right {
    left: 67% !important;
  }

  /* 3개: 25% / 50% / 75%, 폭 26vw */
  body:has(.px-dialog.px-center) .px-dialog {
    max-width: 26vw;
  }
  body:has(.px-dialog.px-center) .px-dialog.px-left {
    left: 25% !important;
  }
  body:has(.px-dialog.px-center) .px-dialog.px-right {
    left: 75% !important;
  }

  /* 4개: 12.5% / 37.5% / 62.5% / 87.5%, 폭 22.5vw */
  body:has(.px-dialog.px-left2):has(.px-dialog.px-right2) .px-dialog {
    max-width: 22.5vw;
  }
  body:has(.px-dialog.px-left2) .px-dialog.px-left {
    left: 37.5% !important;
  }
  body:has(.px-dialog.px-right2) .px-dialog.px-right {
    left: 62.5% !important;
  }
}

/* ========== 모바일(≤820px): 가운데 90% 폭, 세로 자동(최대 90vh) ========== */
@media (max-width: 820px) {
  .px-dialog {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    grid-template-rows: 1fr 44px;
  }
  .px-img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 44px);
    object-fit: contain;
  }
}
