/* ============================================
   Header (메인 전용)
   ============================================ */
header {
  position: absolute;
  top: 20px;
  width: 100%;
  z-index: 1;
}

header .inners {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  display: block;
  width: 230px;
}

header .logo .imgbox {
  display: block;
  position: relative;
}

header .logo .imgbox img {
  display: block;
  width: 100%;
  height: auto;
}

/* 지점안내 */
.branch-wrap {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.branch-info {
  position: relative;
}

.branch-btn::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform-origin: center;
  transform: rotate(133deg);
  transition: transform 0.5s ease-in-out;
}

.branch-btn.active::after {
  transform: rotate(-45deg);
}

.branch-btn em {
  display: inline;
}

.branch-info .open-button {
  display: block;
  position: relative;
  padding: 11px 15px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  border: 1px solid #fff;
  box-sizing: border-box;
  cursor: pointer;
  width: 190px;
}

.branch-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  margin: 8px 0;
  padding: 5px 0;
  background: rgba(86, 64, 43, 0.61);
  box-sizing: border-box;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out,
    visibility 0.3s;
}

.branch-list.active {
  max-height: 200px;
  opacity: 1;
  visibility: visible;
}

.branch-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 10px 0;
  width: 100%;
}

.branch-list li a,
.lang-list li a {
  color: #fff;
  font-size: 16px;
}

.lang-list li a {
  font-size: 14px;
}

.branch-list li a:hover,
.lang-list li a:hover {
  font-weight: 700;
}

/* ============================================
   Contents Section (인트로)
   ============================================ */
.pc-none {
  display: none;
}

.contents {
  position: relative;
  width: 100%;
  height: 100%;
  background: none;
  overflow: hidden;
}

.contents::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url("../assets/img/main_contents_bg.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
  animation: zoom 30s infinite;
}

.contents .inners {
  position: absolute;
  top: 250px;
  left: 0;
  right: 0;
  color: #fff;
  overflow: hidden;
}

.contents .textbox {
  text-align: center;
}

.contents .textbox div {
  overflow: hidden;
}

.contents .textbox h2,
.contents .textbox p,
.contents .site {
  transform: translate3d(0, 100%, 0);
  animation: slide-up 1.5s forwards;
}

.contents .textbox h2 {
  font-size: 64px;
  line-height: normal;
}

.contents .textbox p {
  font-size: 20px;
  line-height: normal;
  margin: 24px 0 88px;
}

.contents .site {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.contents .site a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.contents .site > .sitebox {
  width: 310px;
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.contents .site > .sitebox:hover {
  background: #fff;
}

.contents .site > .sitebox:hover .btnbox em {
  color: #7a7a7a;
}

.contents .site > .sitebox:hover .btnbox h3,
.contents .site > .sitebox:hover .btnbox span {
  color: #222;
}

.contents .site > .sitebox + .sitebox {
  margin-left: 20px;
}

.contents .site > .sitebox.-active {
  transition: 0.5s;
  background: #fff;
}

.contents .site > .sitebox.-active .btnbox em {
  color: #7a7a7a;
}

.contents .site > .sitebox.-active .btnbox h3 {
  color: #222;
}

.contents .site > .sitebox.-active .btnbox span {
  color: #222;
}

.contents a .btnbox {
  width: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: none;
  transition: none;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contents a .btnbox::after {
  content: none;
}

.contents a .btnbox em {
  font-family: 'Monik', serif;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.4s ease;
}

.contents a .btnbox h3 {
  font-size: 32px;
  line-height: 30px;
  padding: 19px 0 29px;
  color: #fff;
  transition: color 0.4s ease;
}

.contents a .btnbox span {
  color: #fff;
  transition: color 0.4s ease;
}

.contents a:hover .btnbox {
  transform: none;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slide-up {
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================
   Main Page (index) - Video Hero
   ============================================ */
.main {
  padding-top: 0;
}

.main-section-02 {
  background-position: center 50%;
  position: relative;
  min-height: 576px;
  max-height: unset;
  height: 100vh;
  overflow: hidden;
}

.video-background-1 {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-background-1 > video {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  display: block;
}

.main-cont-wrap.main-vis {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.main-vis .tits {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  color: #fff;
  z-index: 1;
}

.main-vis .tits > p {
  overflow: hidden;
  font-family: 'Gowun Dodum', sans-serif;
  font-size: 24px;
  font-weight: 200;
  letter-spacing: -0.03em;
}

.main-vis .tits > p + p {
  margin-top: 0.7rem;
}

.main-vis .tit-02 {
  padding-left: 0;
}

.main-vis .tits > p > span {
  transform: translateY(100%);
  animation: txtup 2.5s ease-out 1s forwards;
  display: inline-block;
}

/* 하단 대형 AR CLINIC 브랜드 텍스트 */
.main-vis-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0 4%;
  font-family: 'Monik', serif;
  font-weight: 100;
  font-size: clamp(64px, 13vw, 240px);
  color: rgb(255, 255, 255, 0.8);
  letter-spacing: 0.2em;
  line-height: 1;
  overflow: hidden;
  z-index: 0;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-vis-brand.scrolled,
body.hero-scrolled .main-vis-brand {
  color: rgba(113, 0, 20, 0.7) !important;
}

.main-vis-brand span {
  display: inline-block;
  transform: translateY(100%);
  animation: txtup 2.5s ease-out 1s forwards;
}

@keyframes txtup {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0%);
  }
}

.main-light .tit-01 > span {
  transform: translateY(100%);
  display: inline-block;
}
.main-light .move .tit-01 > span {
  animation: txtup 0.8s ease-out 0.8s forwards;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.main-about .tit-01 > span {
  transform: translateY(100%);
  display: inline-block;
}
.main-about .move .tit-01 > span {
  animation: txtup 0.8s ease-out 0.8s forwards;
  letter-spacing: 0.08em;
}
.main-about .tit-02 > span {
  transform: translateY(100%);
  display: inline-block;
}
.main-about .move .tit-02 > span {
  animation: txtup 0.8s ease-out 0.8s forwards;
}

/* ============================================
   main_light - Intro Section
   ============================================ */
.main-light {
  width: 100%;
  background: #fbf8f2;
  padding: 0;
  border-top: 1px solid #919191;
  color: #333;
}

.main-light strong {
  font-weight: 600;
}

.main-light .inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.main-light .txts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 50%;
  padding: 3rem 2rem;
  border-right: 1px solid #919191;
  box-sizing: border-box;
}

.main-light .tit-01 {
  font-size: 32px;
  line-height: 1.4;
  overflow: hidden;
}

.main-light .tit-02 {
  font-size: 18px;
  margin-top: 3rem;
  line-height: 1.6;
  font-weight: 400;
}

.main-light .tit-02 + .tit-02 {
  margin-top: 2rem;
}

.view-more-btn {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: 'Monik', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  padding: 0 1.8em;
  position: relative;
  transition: opacity 0.3s ease;
}

.view-more-btn:hover {
  opacity: 0.7;
}

.view-more-btn::before,
.view-more-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.1em;
  background: currentColor;
}

.view-more-btn::before {
  left: 0;
}

.view-more-btn::after {
  right: 0;
}

.main-light .imgs {
  width: 50%;
  text-align: center;
  position: relative;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-light .imgs .img-01 {
  max-width: 100%;
  height: auto;
}

.rotate-bg {
  position: absolute;
  top: -14%;
  right: 5%;
  z-index: 1;
  width: 9rem;
  height: 9rem;
}

.main-light .rotate-bg {
  top: 9%;
  width: 7rem;
  height: 7rem;
}

.rotate-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   main_special - Program Section
   ============================================ */
.main-special {
  height: 1100px;
  overflow: hidden;
  overflow-x: hidden;
  background-attachment: fixed;
  background-image: url("../assets/img/main_special_bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.main-special .inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-special .tits {
  text-align: center;
}

.main-special .tit-01 {
  color: #666664;
  font-size: 18px;
  font-weight: 500;
}

.main-special .tit-02 {
  color: #95867e;
  font-size: 48px;
  
  margin-top: 1.6rem;
}

.main-special ul {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}

.main-special ul li {
  position: relative;
}

.main-special ul li .imgs {
  position: relative;
  overflow: hidden;
}

.main-special ul li .imgs > img {
  transform: scale(1);
  transition: 0.5s;
  display: block;
  width: 100%;
  height: auto;
}

.main-special ul li .imgs:hover > img {
  transform: scale(1.05);
}

.main-special ul li .imgs .layer {
  position: absolute;
  
  font-size: 20px;
  color: #fff;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s;
}

.main-special ul li.on .imgs .layer,
.main-special ul li .imgs:hover .layer {
  opacity: 1;
}

.main-special .txt-01 {
  color: #6b5b4e;
  font-size: 24px;
  font-weight: 500;
  border-bottom: 1px solid rgba(149, 134, 126, 0.5);
  margin: 2rem 5px 0;
  padding-bottom: 0.8rem;
}

.main-special .txt-02 {
  color: #3e3e3e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 1.5rem;
  padding: 0 6px;
}

.main-special li a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ============================================
   main_about - About Section
   ============================================ */
.main-about {
  padding: 0;
  border-top: 1px solid #919191;
  border-bottom: 1px solid #919191;
  height: 670px;
}

.main-about strong {
  font-weight: 600;
}

.main-about .inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.main-about .imgs {
  position: relative;
  width: 50%;
  height: 100%;
  border-right: 1px solid #919191;
  overflow: hidden;
}

.main-about .imgs a {
  display: block;
  width: 100%;
  height: 100%;
}

.main-about .imgs .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: 0.3s;
}

.main-about .imgs:hover .bg {
  transform: scale(1.05);
}

.main-about .imgs .center-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 70%;
  pointer-events: none;
  z-index: 1;
}

.main-about .txts {
  width: 50%;
  height: 100%;
  padding: 6rem 0 6rem 5rem;
  color: #333;
}

.main-about .tit-01 {
  color: var(--color-primary);
  font-size: 32px;
  line-height: 1.4;
  overflow: hidden;
}

.main-about .tit-02 {
  font-size: 28px;
  margin-top: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
  color: #333;
}

.main-about .tit-02 + .tit-02 {
  margin-top: 0;
}

.main-about .txt-01 {
  font-size: 18px;
  font-weight: 400;
  margin-top: 2.5rem;
  line-height: 1.6;
}

.main-about .txt-01 + .txt-01 {
  margin-top: 2rem;
}

/* ============================================
   main_promise - Our Promise Section
   ============================================ */
.main-promise {
  background: #fbf8f2 url("../assets/img/main_promise_bg.jpg") 50% 50% / cover
    no-repeat;
  overflow: hidden;
}
.main-promise .tits {
  text-align: center;
}

.main-promise .tit-01-wrap {
  position: relative;
  display: inline-block;
}

.main-promise .tit-01-wrap .rotate-bg {
  position: absolute;
  top: -92%;
  left: 333px;
  width: 12rem;
  height: 12rem;
}
.main-promise .tit-01 {
  color: #666664;
  font-size: 18px;
  font-weight: 500;
  font-family: 'pretendard', sans-serif;
}
.main-promise .tit-02 {
  color: var(--color-primary);
  font-size: 35px;
  font-family: 'Monik', serif;
  margin-top: 1.6rem;
  letter-spacing: 0.08em;
}
.main-promise .tit-03 {
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  margin-top: 1.6rem;
  line-height: 1.5;
}
.main-promise .panel-wrap {
  max-width: 1670px;
  padding-left: 1rem;
  margin: 4rem auto 0;
  position: relative;
}
.main-promise .panel {
  overflow: hidden;
  transition: 0.3s;
  padding: 2rem 0 2rem 1.5rem;
  border-top: 1px solid rgba(59, 59, 59, 0.5);
  position: relative;
}
.main-promise .panel:last-of-type {
  border-bottom: 1px solid rgba(59, 59, 59, 0.5);
}
.main-promise .panel.open {
  background-color: rgba(197, 188, 176, 0.2);
}

/* panel */
.main-promise .panel-wrap .panel .panel-header {
  width: 100%;
}
.panel-wrap .panel .panel-title {
  position: relative;
  cursor: pointer;
}
.panel-title {
  display: flex;
  align-items: flex-start;
}
.main-promise .panel-title .num {
  width: 15%;
  font-size: 24px;
}
.main-promise .panel-title .tit {
  width: 55%;
  color: #B38F6F;
  font-size: 18px;
  font-weight: 500;
}
.main-promise .panel-title .tit span {
  font-size: 30px;
  font-weight: 100;
  color: #000;
  display: block;
  text-transform: uppercase;
}
.main-promise .panel-wrap .panel .icon-panel {
  position: relative;
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}
.main-promise .panel-wrap .panel .icon-panel::before,
.main-promise .panel-wrap .panel .icon-panel::after {
  content: "";
  position: absolute;
  background-color: #786454;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
}
.main-promise .panel-wrap .panel .icon-panel::before {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
}
.main-promise .panel-wrap .panel .icon-panel::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}
.main-promise .panel-wrap .panel.open .icon-panel::before {
  transform: rotate(-45deg);
  opacity: 0;
}
.main-promise .panel-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.main-promise .txtbox {
  padding-left: 15%;
  padding-top: 4rem;
  padding-bottom: 2rem;
  color: #626262;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}
.main-promise .fimg {
  position: absolute;
  top: 2rem;
  right: 1px;
  overflow: hidden;
}
.main-promise .panel .fimg img {
  transform: scale(1);
  transition: 0.4s;
}
.main-promise .panel:hover .fimg img {
  transform: scale(1.1);
}
.main-promise .rotate-bg {
  position: static;
  flex-shrink: 0;
}

.main-promise .rotate-bg img {
  animation: none;
}


/* ============================================
   main-map - Map Section
   ============================================ */
.main-map {
  background: #fbf8f2;
  padding: 4rem 0 5rem;
  font-family: var(--font-secondary);
}

.main-map .inner {
  width: 95%;
  margin: 0 auto;
}

.main-map .tits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.main-map .tit-locations-label {
  flex-basis: 100%;
  width: 100%;
}

.main-map .tit-locations-label .tit-01 {
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 100;
  line-height: 1.4;
  overflow: hidden;
}

.main-map .tit-locations-label .tit-01 > span {
  transform: translateY(100%);
  display: inline-block;
}

.main-map .move .tit-locations-label .tit-01 > span {
  animation: txtup 0.8s ease-out 0.8s forwards;
  letter-spacing: 0.08em;
}

.main-map .tit-01 {
  font-size: 18px;
  font-weight: 600;
}

.main-map .tit-02 {
  font-size: 18px;
  font-weight: 500;
  color: #464646;
}

.main-map .map-wrap {
  width: 100%;
  height: 450px;
}

.main-map .map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   Responsive
   ============================================ */

/* 1080px - Tablet/Small Desktop */
@media (max-width: 1080px) {
  /* Utility */
  .pc-none {
    display: block;
  }
  .m-none {
    display: none;
  }

  /* Header */
  header .inners {
    padding: 0 20px;
  }
  header .logo {
    width: 180px;
  }

  /* main-section-02 (Video Hero) */
  .main-section-02 {
    height: 550px;
  }
  /* main-vis */
  .main-vis .tits {
    right: 9%;
    top: 78%;
    transform: translateY(-50%);
    left: auto;
    bottom: auto;
    width: auto;
    letter-spacing: -0.03em;
  }
  .main-vis .tits > p {
    font-size: 16px;
  }
  .main-vis .tits > p + p {
    margin-top: 0.5rem;
  }
  .main-vis .tit-02 {
    padding-left: 0;
  }
  .main-vis .tit-03 {
    padding-left: 0;
    letter-spacing: -0.02em;
  }
  .main-vis-brand {
    font-size: clamp(52px, 12vw, 140px);
    padding: 0 4%;
  }

  /* movin_txt */
  .movin_txt p {
    font-size: 28px;
    margin-right: 4rem;
  }

  /* contents (인트로 - index.php) */
  .contents {
    height: 100%;
  }
  .contents::before {
    background-attachment: scroll;
  }
  .contents {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contents .inners {
    position: initial;
    padding: 20px;
    width: 100%;
    text-align: center;
  }
  .contents .textbox h2 {
    font-size: 28px;
    line-height: 2rem;
  }
  .contents .textbox p {
    font-size: 12px;
    line-height: 1.2rem;
    margin: 12px 0 0;
  }
  .contents .site {
    margin-top: 51px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .contents .site > .sitebox {
    width: 100%;
    min-width: 220px;
    height: 122px;
  }
  .contents .site > .sitebox + .sitebox {
    margin-left: 0;
    margin-top: 14px;
  }
  .contents a .btnbox em {
    font-size: 16px;
    line-height: 0.94rem;
  }
  .contents a .btnbox h3 {
    font-size: 20px;
    padding: 10px 0 19px;
    line-height: 1.3rem;
  }
  .contents a .btnbox span {
    font-size: 14px;
    line-height: 0.875rem;
  }

  /* main-special */
  .main-special {
    height: auto;
    min-height: auto;
    padding: 4rem 0;
    background-attachment: scroll;
  }
  .main-special ul {
    gap: 2.5rem 1rem;
  }
  .main-special ul li {
    width: calc(50% - 0.5rem);
  }

  /* main-about */
  .main-about {
    height: auto;
    min-height: auto;
    padding: 0;
  }
  .main-about .txts {
    width: 100%;
    padding: 3rem 1rem 3.5rem 1.25rem;
    line-height: 1.6;
  }

}


/* 1024px - Tablet Layout */
@media (max-width: 1024px) {
  /* main-light */
  .main-light .inner {
    flex-direction: column-reverse;
    align-items: center;
    padding: 0 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .main-light .txts {
    width: 100%;
    padding: 4rem 1.25rem;
    min-width: 0;
  }
  .main-light .imgs {
    width: 90%;
    max-width: 100%;
    padding: 3rem;
    min-width: 0;
  }
  .view-more-btn {
    font-size: 16px;
    margin-top: 2rem;
  }

  /* main-special */
  .main-special {
    height: auto;
    min-height: auto;
    padding: 4rem 0;
  }
  .main-special ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 1rem;
  }
  .main-special ul li {
    width: calc(50% - 0.5rem);
  }

  /* main-about */
  .main-about {
    height: auto;
    min-height: 400px;
    padding: 0;
  }
  .main-about .inner {
    flex-direction: column;
  }
  .main-about .imgs {
    width: 100%;
    height: 400px;
    border-right: none;
    border-bottom: 1px solid #919191;
  }

  .main-about .txts {
    width: 100%;
    padding: 3rem 1rem 3.5rem 1.25rem;
    line-height: 1.6;
  }

  /* main-special (tit) */
  .main-special .tit-01 {
    font-size: 18px;
  }
  .main-special .tit-02 {
    font-size: 40px;
  }

  /* main-promise */
  .main-promise .tit-02 {
    font-size: 30px;
  }
  .main-promise .panel-wrap {
    padding-left: 0;
  }
  .main-promise .txtbox {
    width: 95%;
    padding-left: 3%;
  }
  .main-promise .fimg {
    width: 25%;
  }
  .main-promise .panel-title .num {
    font-size: 24px;
    margin-top: 4px;
  }
  .main-promise .panel-title .tit {
    width: 100%;
  }
  .main-promise .panel-title .tit span {
    font-size: 32px;
  }
  .main-promise .panel-wrap .panel .icon-panel {
    position: absolute;
    top: 5px;
    right: 0;
  }
  .main-promise .panel-wrap .panel .panel-title {
    width: 70%;
  }

}

/* 640px - Mobile */
@media (max-width: 640px) {
  /* branch-info */
  .branch-info .open-button {
    padding: 8px 28px 8px 12px;
    font-size: 14px;
    width: auto;
    min-width: 120px;
  }
  .branch-info .branch-btn::after {
    top: 50%;
    right: 12px;
    margin-top: -5px;
    width: 6px;
    height: 6px;
  }
  .branch-list {
    width: 100%;
    min-width: 100%;
  }

  /* main-light */
  .main-light {
    padding: 4rem 0 3rem;
    overflow-x: hidden;
  }
  .main-light .inner {
    padding: 0 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .main-light .txts {
    padding: 3rem 1.25rem;
    border-right: none;
    min-width: 0;
  }
  .main-light .tit-01 {
    font-size: 20px;
  }
  .main-light .tit-02 {
    font-size: 14px;
    margin-top: 1.5rem;
  }
  .main-light .tit-02 + .tit-02 {
    margin-top: 1rem;
  }
  .view-more-btn {
    font-size: 14px;
    margin-top: 1.5rem;
    padding: 0 1.2em;
  }
  .view-more-btn::before,
  .view-more-btn::after {
    height: 1em;
  }
  .main-light .imgs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .main-light .imgs .img-01 {
    max-width: 100%;
    width: auto;
  }
  .main-light .rotate-bg {
    right: 0;
  }

  /* main-special */
  .main-special {
    background-attachment: scroll;
    padding: 3rem 0;
  }
  .main-special .inner {
    padding: 0 1.25rem;
  }
  .main-special ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem 1rem;
  }
  .main-special ul li {
    width: calc(50% - 0.5rem);
  }
  .main-special ul li .imgs > img {
    max-width: 100%;
    height: auto;
  }
  .main-special .tit-01 {
    font-size: 14px;
  }
  .main-special .tit-02 {
    font-size: 24px;
  }
  .main-special .txt-01 {
    font-size: 16px;
  }
  .main-special .txt-02 {
    font-size: 14px;
  }

  /* main-about */
  .main-about .tit-01 {
    font-size: 20px;
  }

  /* main-map - Locations label */
  .main-map .tit-locations-label .tit-01 {
    font-size: 20px;
  }
  .main-about .tit-02 {
    font-size: 20px;
  }
  .main-about .tit-02.m-cont-1024 {
    margin-top: 2rem;
  }
  .main-about .txt-01 {
    font-size: 14px;
  }
  .main-about .txts {
    padding: 2.5rem 1rem 3rem 1.25rem;
  }

  /* main-promise */
  .main-promise .tits {
    padding: 0 1.25rem;
  }
  .main-promise .tit-01 {
    font-size: 14px;
  }
  .main-promise .tit-02 {
    font-size: 24px;
    margin-top: 1rem;
  }
  .main-promise .tit-03 {
    font-size: 14px;
    margin-top: 2rem;
  }
  .main-promise .tit-03 + .tit-03 {
    margin-top: 1rem;
  }
  .main-promise .panel-wrap {
    width: 94%;
    margin: 2rem auto 0;
    padding: 0 1rem;
  }
  .main-promise .panel {
    padding: 1.5rem 0 1.5rem 1rem;
  }
  .main-promise .panel-wrap .panel .panel-title {
    flex-wrap: wrap;
    width: 67%;
  }
  .main-promise .panel-wrap .panel .icon-panel {
    position: absolute;
    top: 5px;
    right: 0;
  }
  .main-promise .panel-wrap .panel .icon-panel::before,
  .main-promise .panel-wrap .panel .icon-panel::after {
    background-color: #9d9d9d;
  }
  .main-promise .panel-title .num {
    width: 100%;
    font-size: 16px;
  }
  .main-promise .panel-title .tit {
    margin-top: 5px;
    font-size: 14px;
  }
  .main-promise .panel-title .tit span {
    margin-bottom: 0;
    font-size: 20px;
  }
  .main-promise .txtbox {
    padding-left: 0;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    font-size: 14px;
  }
  .main-promise .rotate-bg {
    width: 7rem;
    height: 7rem;
    opacity: 0.8;
  }
  .main-promise .tit-01-wrap .rotate-bg {
    position: absolute;
    top: -202%;
    left: 168px;
    width: 7rem;
    height: 7rem;
  }
  .main-promise .fimg {
    width: 29%;
  }


  /* main-map */
  .main-map {
    padding: 1rem 0 3rem!important;
  }
  .main-map .tits {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.8rem;
  }
  .main-map .tit-02 {
    font-size: 14px;
  }
  .main-map .map-wrap {
    height: 280px;
  }
}

/* 480px */
@media (max-width: 480px) {
  .main-sect {
    padding: 3rem 0;
  }
  .main-vis .tits > p {
    font-size: 14px;
  }
  .main-vis-brand {
    font-size: clamp(44px, 16vw, 90px);
    padding: 0 4%;
    letter-spacing: 0.06em;
  }
  .main-vis .tits > p + p {
    margin-top: 0.4rem;
  }
  .main-promise .tit-02 {
    font-size: 20px;
  }
  .main-about {
    padding: 0;
  }
  .main-map .tits {
    padding-left: 1.25rem;
  }
  .main-map .map-wrap {
    height: 220px;
  }
}

/* ============================================
   고민별 맞춤 프로그램 섹션 (.main-program)
   ============================================ */

.main-program {
  background: #fbf8f2 url("../assets/img/main_promise_bg.jpg") 50% 50% / cover no-repeat;
  overflow: hidden;
  padding: 128px 0 0;
}

.main-program .tits {
  text-align: center;
}

.main-program .tit-01 {
  color: #666664;
  font-size: 18px;
  font-weight: 500;
  font-family: 'pretendard', sans-serif;
}

.main-program .tit-02 {
  color: var(--color-primary);
  font-size: 35px;
  font-family: 'Monik', serif;
  margin-top: 1.6rem;
  letter-spacing: 0.08em;
}

.main-program .inner {
  max-width: 1670px;
  padding-left: 1rem;
  margin: 4rem auto 0;
  position: relative;
}

.main-program .custom-tabs {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.main-program .custom-tabs-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-program .custom-tabs-list::-webkit-scrollbar {
  display: none;
}

.main-program .custom-tab-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 12px 35px;
  padding-top: 0;
  font-size: 17px;
  font-weight: 500;
  color: #a3a3a3;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.main-program .custom-tab-btn:hover {
  color: var(--color-primary);
}

.main-program .custom-tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.main-program .custom-tab-panel {
  display: none;
}

.main-program .custom-tab-panel.active {
  display: block;
}

.main-program .custom-programs-swiper {
  overflow: hidden;
  width: 100%;
}

.main-program .custom-programs-swiper .swiper-wrapper {
  margin-bottom: 32px;
}

.main-program .custom-programs-swiper .swiper-slide {
  width: 260px;
  box-sizing: border-box;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.main-program .custom-card {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  min-height: 240px;
  height: auto;
  border: 1px solid #E5E5E5;
  padding: 24px 16px 16px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.main-program .custom-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.main-program .custom-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-program .custom-card-desc {
  font-size: 16px;
  font-weight: 500;
  color: #a3a3a3;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  flex-grow: 1;
}

.main-program .custom-card-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
}

.main-program .custom-card-price-value {
  font-family: 'Pretendard', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}

.main-program .custom-card-price-suffix {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
  margin-top: 2px;
}

.main-program .custom-swiper-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  opacity: 0.7;
  margin-top: 16px;
}

.main-program .custom-swiper-prev,
.main-program .custom-swiper-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #817F7D;
  background: none;
  cursor: pointer;
  color: #3F261B;
  opacity: 0.7;
  transition: background-color 0.3s ease;
}

.main-program .custom-swiper-prev:hover,
.main-program .custom-swiper-next:hover {
  background-color: rgba(113, 0, 20, 0.15);
}

@media screen and (max-width: 768px) {
  .main-program {
    padding: 64px 0 0;
  }
  .main-program .custom-tabs-list {
    justify-content: flex-start;
  }
  .main-program .tits {
    padding: 0 1.25rem;
  }

  .main-program .tit-01 {
    font-size: 14px;
  }

  .main-program .tit-02 {
    font-size: 24px;
    margin-top: 1rem;
  }

  .main-program .inner {
    width: 94%;
    margin: 2rem auto 0;
    padding: 0 1rem;
  }

  .main-program .custom-tab-btn {
    font-size: 13px;
    padding: 10px 12px;
    padding-top: 0;
  }

  .main-program .custom-programs-swiper {
    margin: 0 -1rem;
  }

  .main-program .custom-programs-swiper .swiper-slide {
    width: 85%;
    min-width: unset;
  }

  .main-program .custom-card-title {
    font-size: 15px;
  }

  .main-program .custom-card-desc {
    font-size: 14px;
  }

  .main-program .custom-card-price-value {
    font-size: 16px;
  }

  .main-program .custom-card-price-suffix {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .main-program .tit-02 {
    font-size: 20px;
  }
}
