footer {
  position: relative;
  width: calc(100vw - (100vw - 100%));
  height: 100svh;

  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer {
  width:  calc(100vw - (100vw - 100%));
  height: 100vh;
  background-color: #ECEBEB;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 14px;
  color: var(--color-gray500);

  @media screen and (min-width: 1921px) {
    max-width: 1920px;
    margin: 0 auto;
  }
}

.footer .map-container{
  height: 65%;
  color: #fff;
}

.footer .map-container {
  width: 100%;
  display: flex;
}

.map-container .map-info,
.map-container .show-map {
  width: 50%;
  height: 100%;
}

.map-container .map-info {
  background-color: var(--color-overlay);
  height: 100%;
}

.map-info-detail{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.map-info-detail .info-title{
  margin-bottom: 23px;
}

.map-info-detail .info-title,
.map-info-detail .call-number {
  font-size: max(32px, 2.3vw);

  @media screen and (min-width: 1921px) {
    font-size: 44px;
  }
}

.jp .map-info-detail .call-number{
  font-size: max(24px, 1.5vw);

  @media screen and (min-width: 1921px) {
    font-size: 28px;
  }
}

.map-info-detail .call-number {
  text-align: left;
  width: 100%;
  margin-left: 3vw;

  @media screen and (max-width: 736px) {
    &.pc-only {
      display: none;
    }

    &.mo-only {
      background-color: unset;
      font-size: 25px;
      width: fit-content !important;
      color: #fff;
    }
  }
  
  @media screen and (min-width: 737px) {
    &.mo-only {
      display: none;
    }
  }
  
  @media screen and (min-width: 1921px) {
    margin-left: 57.6px;
  }
}

.map-info-detail .info-body {
  display: flex;
}

.map-info-detail .info-body > div {
  margin: 0 1.5vw;

  @media screen and (min-width: 1921px) {
    margin: 0 30px;
  }
}

.map-info-detail .info-body h1,
.ballet {
  height: max(35px, 1.8vw);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-family: 'pretendard-bold';
  transition: all ease 0.3s;

  @media screen and (min-width: 1921px) {
    width: 96px;
    height: 35px;
  }
}

.map-info-detail .info-body h1 {
  width: max(96px, 5vw);
  background-color: #fff;
  color: var(--color-black);
  margin-bottom: 5px;
}

.map-info-detail .info-body h1.ballet-tit {
  width: fit-content !important;
  background-color: unset;
  color: #fff;
  margin-bottom: 0;

  margin-top: 24px;
  line-height: 1;
  font-size: max(16px, 1.042vw);

  @media screen and (max-width: 736px) {
    margin-top: 6px;
  }

  @media screen and (min-width: 737px) and (max-width: 1023px) {
    margin-top: 5px;
  }

  @media screen and (min-width: 1921px) {
    font-size: 20px;
  }
}

.ballet {
  width: fit-content !important;
  height: fit-content;
  padding: 0.2em 1rem;
  margin-top: 4px;
  background-color: #84754D;
  color: #fff !important;
  font-size: 23px;

  @media screen and (max-width:767px) {
    font-size: 18px !important;
    padding: 1rem;
    margin-bottom: 0 !important;
    margin-top: 5px !important;
  }
}

.loca-info p.addr {
  white-space: pre-line;
  line-height: 28px !important;
  padding-top: 6px;
}

.loca-info p.addr-des {
  margin-bottom: 15px;
  line-height: 25px !important;
}

.map-info-detail .info-body p {
  line-height: 40px;
  font-size: max(16px, 1.042vw);

  @media screen and (min-width: 1921px) {
  font-size: 20px;
  }
}

.map-info-detail .info-body p.ballet-txt { 
  font-size: 18px;

  @media screen and (max-width: 767px) {
    font-size: 16px;
    margin-top: 6px;
  }
}

.map-info-detail .info-body p label {
  width: 68px;
  max-width: 68px;
  height: 32px;
  line-height: 32px;
  display: inline-block;
  font-size: 20px;
  font-family: 'pretendard-bold';
  text-align: justify;
}

.map-info-detail .info-body p span {
  margin: 0 8px;
}

.map-info-detail .info-body p label::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.map-container .show-map {
  background-color: var(--primary);
}

.map-container .show-map img {
  width: 80%;
  height: 420px;
  object-fit: cover;
}

/*========== 약도보내기버튼 ==========*/
.sms-map {
  position: fixed;
  top: 309px;
  left: 34%;
  z-index: 99;
  width: 256px;
  height: 438px;
  padding: 40px 10px 0 10px;
  border-radius: 40px;
  background-color: #fff;
  color: var(--color-black);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px;
}

#f_sms {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#f_sms>.closebtn {
  display: inline-block;
  position: absolute;
  top: -10px;
  right: -10px;
  margin-top: -10px;
  margin-right: 20px;
  font-size: 20px;
}

#f_sms h1 {
  text-align: center;
  font-size: 1vw;
  margin-bottom: 0.2vw;
  
  @media screen and (min-width: 1921px) {
    font-size: 19px;
    margin-bottom: 4px;
  }
}

#f_sms select {
  background-color: #fff;
  border: 1px solid var(--primary);
  color: #343434;
}

.sms-map textarea {
  display: none;
}

.sms-map .number {
  padding: 0 10px;
  text-align: center;
  width: 100%;
  gap: 0.2vw;
}

/* input들 */
.sms-map .form-group {
  text-align: center;
  margin-bottom: 5px;
  width: 57px;
  padding: 5px 0;
  border: 1px solid var(--primary);
  border-radius: 30px;
}

.sms-map .form-group:focus {
  outline: none !important;
  border: 2px solid #9b8267;
}

.sms-map .agree {
  text-align: center;
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
}

.sms-map input[type='radio'] {
  margin-right: 6px;
}

.sms-map .agree a {
  display: inline-block;
}

.sms-map .button input.f_submit {
  cursor: pointer;
  text-align: center;
  display: block;
  background-color: var(--primary);
  box-sizing: border-box;
  color: #fff;
  width: 200px;
  border: none;
  border-radius: 50px;
  padding: 7px 0;
  margin: 13px auto 0 auto;
}

.sms-btn {
  display: block;
  width: 100%;
}

.sms-btn li {
  display: inline-block;
  width: 30%;
  text-align: center;
  border-radius: 5px;
  padding-top: 12px;
  margin: 0px 2px 5px 2px;
}

/* 약관 팝업 */
#privacy_popup,
#tou_popup {
  overflow-y: scroll;
  padding: 0;
  border-radius: max(2.604vw, 30px);
  width: max(31.25vw, 300px);
  height: max(41.667vw, 400px);

  @media screen and (min-width: 1921px) {
    border-radius: 50px;
    width: 600px;
    height:800px;
  }
}

#privacy_popup .pop-header,
#tou_popup .pop-header {
  z-index: 1000;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  padding: 0 26px 8px 0;
  background-color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

#privacy_popup .content,
#tou_popup .content {
  white-space: pre-line;
  font-size: 12px;
  color: var(--color-black);
  margin: 0 50px 50px 50px;
  text-align: left;
}

#privacy_popup h1,
#tou_popup h1 {
  font-size: 18px;
  color: #6a6a6a;
  text-align: center;
  margin-bottom: max(2.083vw, 18px);

  @media screen and (min-width: 1921px) {
    margin-bottom:40px;
  }
}

#privacy_popup .popCloseBtn,
#tou_popup .popCloseBtn {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 25px;
  float: right;
}

/* 스크롤바 막대 설정*/
#privacy_popup::-webkit-scrollbar,
#tou_popup::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .sms-map {
    top: unset;
    bottom: 15vw;
    left: 50%;
    transform: translate3d(-50%, 0px, 0px);
    width: 66vw;
    height: fit-content;
    padding-bottom: 30px;
  }
  
  .sms-map { 
    gap: 1vw;
  }

  #f_sms > .closebtn {
    top: -3vw;
    right: -3vw;
    margin-right: 5vw;
    font-size: 18px;
  }
  
  #f_sms h1 {
    margin-bottom: 0;
    font-size: 5.5vw;
  }
  
  .sms-map .form-group { 
    margin-bottom: 0;
    width: 15vw;
  }

  #privacy_popup .pop-header,
  #tou_popup .pop-header {
    height: 49px;
    padding: 0 21px 8px 0;
  }

  #privacy_popup .content,
  #tou_popup .content {
    margin: 0 20px 20px 20px;
  }

  #privacy_popup .popCloseBtn svg,
  #tou_popup .popCloseBtn svg{
    width: 18px;
  }
}
/*========== END 약도보내기버튼 ==========*/

@media (max-width: 767px) {
  .footer {
    display: flex;
    flex-direction: column;
    align-items: normal;
    background-color: #ECEBEB;
    width: 100%;
    height: fit-content;
    position: relative;
  }

  .footer>img {
    width: 44px;
    margin-left: 30px;
  }
  
  .footer ul li {
    margin-right: 7.971vw !important;
    white-space: nowrap;
  }
  
  .footer .map-container {
    flex-direction: column;
    color: #fff;
    justify-content: flex-start;
    width: 100%;
    height: fit-content;
  }

  .footer .map-container .map-info {
    height: fit-content;
    padding: 8vw 0;
    display: flex;
    justify-content: center;
    width: 100%;
  }

    .map-info-detail .info-body p label {
      font-size: 16px;
    }
  
  .map-container .show-map {
    height: 60vw;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  #main_page_map {
    width: 100% !important;
    height: 100% !important;
  
  }
  
  .map-info-detail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    height: 100%;
    font-size: 1.4rem;
    padding: 0 20px;
    flex-grow: 1;
  }
  
  .map-info-detail .call-number {
    font-size: 6.3vw;
    margin-left: 1vw;
  }
  
  .map-info-detail .info-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    margin-bottom: 0;
  }
  
  .map-info-detail .info-body div {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

  .map-info-detail .info-body div.loca-info {
    margin-top: 10px;
  }
  
  .map-info-detail .info-body p {
    line-height: 1.5 !important;
    font-size: 16px;
  }
  
  .map-info-detail .info-body p label{
    font-size: 16px;
    width: 58px;
  }

  .map-info-detail .info-body p:nth-last-of-type(1) {
    padding-bottom: 1vw;
    margin-bottom: 1vw;
  }

  .map-container .show-map {
    background-color: var(--color-overlay);
  }
  
  .map-container .show-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .map-info-detail .info-body h1 {
    width: 4.8rem !important;
    height: 1.5rem !important;
  }

  .footer .send-btn {
    width: 5.5rem !important;
    height: 2rem !important;
  }
  
  .footer .send-btn button {
    font-size: 14px !important;
    font-family: 'pretendard-bold';
  }
  
  .map-info-detail .info-title {
    font-size: 5vw;
    height: fit-content;
    width: 100%;
    line-height: 1.8;
    margin-bottom: 0;
  }
  
  .map-info-detail .info-body h1 {
    width: 7rem;
    height: 2.7rem;
    font-size: 1.2rem;
  }
  
  .map-info-detail .info-body h1,
  .map-info-detail .loca-info a {
    font-size: 12px;
    width: 4rem;
    height: 1.5rem;
    margin-top: 5px;
  }
  
  .map-info-detail .loca-info a {
    margin-top: 13px;
  }
}

@media (min-width: 691px) and (max-width: 790px) {
  .map-info-detail {
    padding: 0 7vw;
  }

  .map-info-detail .info-title {
    font-size: 4.5vw;
    margin-bottom: 2vw;
  }

  .map-info-detail .info-body h1,
  .map-info-detail .loca-info a {
    font-size: 15px;
  }

  .map-info-detail .info-body h1 {
    width: 5rem !important;
    height: 1.8rem !important;
  }

  .map-info-detail .info-body p {
    font-size: 3vw;
  }

  .map-info-detail .info-body p:nth-of-type(2) {
    margin-bottom: 0;
  }

  .map-info-detail .info-body .addr-des {
    font-size: 2.5vw;
    line-height: 1.7 !important;
  }
}

@media (min-width:737px) and (max-width: 1023px) {
  .footer .map-container {
    flex-direction: column;
    height: 75% !important;
  }

  .map-container .map-info,
  .map-container .show-map {
    width: 100%;
    height: 50%;
  }

  .map-info-detail .info-title {
    font-size: 28px;
    margin-bottom: 17px
  }

  .map-info-detail .info-body h1,
  .loca-info .send-btn {
    font-size: 2vw;
    width: 6rem;
    height: 2rem;
  }
  
  .map-info-detail .info-body p {
    line-height: 30px;
  }

  .map-info-detail .call-number {
    font-size: 2rem;
  }

  #main_page_map {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (min-width:767px) and (max-width: 1024px) {
  .pagewrap.sub .footer {
    height: 100svh;
  }
}

@media (min-width:768px) and (max-width: 1024px) {
  .map-info-detail .info-body p,
  .map-info-detail .info-body p label {
    font-size: 2.2vw;
  }

  .map-info-detail .info-body p {
    line-height: 1.6 !important;
  }  

  .map-container .show-map img {
    height: 85%;
  }
}