/* Shared typography and button styles for legacy pages. */

/* Typography. Keep the decorative Latin face non-blocking; an @import here
   used to delay every legacy page's first paint behind Google Fonts CSS. */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/marcellus/v14/wEO_EBrOk8hQLDvIAF81VvoK_kgXiQ.woff2')
    format('woff2');
}

html,
body {
  background: #f8f8f5 !important;
  font-family: 'Pretendard';
  --Brown_primary: #400805;
}

/* Shared legacy scrollbar and selection styles. */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #400805;
  border-radius: 10px;
}

body::-webkit-scrollbar-track {
  background-color: #fafafa;
}

::selection {
  color: #fff;
  background-color: #400805;
}

.by {
  font-family: 'CoolGuy-Medium';
}

.mj3 {
  font-family: 'CoolGuy-Medium' !important;
}

@font-face {
  font-family: 'CoolGuy-Medium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2403@1.0/CoolGuy-Medium.woff2')
    format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.mj2 {
  font-family: 'GowunBatang-Regular';
}

/* /location/만 필요한 글자를 담은 경량 서체. 공통 원격 폰트 요청을 먼저 시작하지 않게 한다. */
@font-face {
  font-family: 'GowunBatang-Regular';
  src:
    url('/legacy/css/location-GowunBatang.woff2') format('woff2'),
    url('/legacy/css/location-GowunBatang.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html.jyoon-location-page .mj2,
html.jyoon-location-page .jyoon-section-heading h2.title,
html.jyoon-location-page .location-visits-section .jyoon-step-card__step {
  font-family: 'GowunBatang-Regular' !important;
}

@font-face {
  font-family: 'SortsMillGoudy';
  font-style: italic;
  src: url('/font/SortsMillGoudy-Italic.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'SortsMillGoudy';
  font-style: normal;
  src: url('/font/SortsMillGoudy-Regular.woff') format('woff');
  font-display: swap;
}

.eng_b1,
.eng_b2,
.hams,
.Sorts {
  font-family: 'Marcellus', sans-serif;
}

@font-face {
  font-family: 'KBIZHanmaumMyungjo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/KBIZHanmaumMyungjo.woff')
    format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.mj {
  font-family: 'KBIZHanmaumMyungjo';
}

.engf {
  font-family: 'Century Gothic', sans-serif;
}

.pret {
  font-family: 'Pretendard';
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src:
    url('/font/Pretendard-Thin.woff2') format('woff2'),
    url('/font/Pretendard-Thin.woff') format('woff'),
    url('/font/Pretendard-Thin.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url('/font/Pretendard-Light.woff2') format('woff2'),
    url('/font/Pretendard-Light.woff') format('woff'),
    url('/font/Pretendard-Light.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('/font/Pretendard-Regular.woff2') format('woff2'),
    url('/font/Pretendard-Regular.woff') format('woff'),
    url('/font/Pretendard-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url('/font/Pretendard-Medium.woff2') format('woff2'),
    url('/font/Pretendard-Medium.woff') format('woff'),
    url('/font/Pretendard-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url('/font/Pretendard-SemiBold.woff2') format('woff2'),
    url('/font/Pretendard-SemiBold.woff') format('woff'),
    url('/font/Pretendard-SemiBold.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url('/font/Pretendard-Bold.woff2') format('woff2'),
    url('/font/Pretendard-Bold.woff') format('woff'),
    url('/font/Pretendard-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src:
    url('/font/Pretendard-ExtraBold.woff2') format('woff2'),
    url('/font/Pretendard-ExtraBold.woff') format('woff'),
    url('/font/Pretendard-ExtraBold.otf') format('opentype');
}

.btn_mains,
.btn_mains2 {
  padding: 10px 40px;
  height: 40px;
  min-width: 180px;
  border-radius: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition:
    color 0.4s ease,
    border-color 0.4s ease;
  z-index: 1;
  perspective: 1000px;
}

.btn_mains {
  border: 1px solid #fff;
  color: #fff;
}

.btn_mains2 {
  border: 1px solid #400805;
  color: #400805;
}

.btn_mains::before,
.btn_mains2::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -1;
  transition: top 0.4s ease;
}

.btn_mains:hover::before,
.btn_mains2:hover::before {
  top: 0;
}

.btn_mains:hover,
.btn_mains2:hover {
  color: #400805;
  border-color: transparent;
}

/* View 텍스트 스타일 */
.view1,
.view2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(0);
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
  backface-visibility: hidden;
}

.view1 {
  opacity: 1;
  transform-origin: center;
}

.view2 {
  opacity: 0;
  transform: translate(-50%, -50%) rotateX(90deg);
}

.btn_mains:hover .view1,
.btn_mains2:hover .view1 {
  opacity: 0;
  transform: translate(-50%, -50%) rotateX(-90deg);
}

.btn_mains:hover .view2,
.btn_mains2:hover .view2 {
  opacity: 1;
  transform: translate(-50%, -50%) rotateX(0deg);
}

/* Arrow 스타일 */
.aroww_don {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  margin-left: 10px;
  transition: transform 0.4s ease;
}

.btn_mains:hover .aroww_don,
.btn_mains2:hover .aroww_don {
  transform: translateY(-50%) translateX(5px);
}

/* 상담/의료진 소개 버튼 */
.btn_mains22 {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 45px;
  line-height: 45px;
  border-radius: 20px;
  margin: 10px;
  transition: all 0.3s ease;
}

.btn_mains22:hover .aroww_don {
  transform: translateX(5px);
}

.btn_mains22 .aroww_don {
  display: inline-block;
  transition: transform 0.3s ease;
}

@media (max-width: 900px) {
  .btn_mains22 {
    width: 80%;
  }
}

/* Shared legacy utility classes. */
.youtb {
  display: none !important;
}
/********폰트속성정리********/
.h5 {
  height: 5px !important;
}
.index_f50m {
  font-size: 50px !important;
  word-break: keep-all;
}
.index_f30m {
  font-size: 30px !important;
  word-break: keep-all;
}
.index_f25m {
  font-size: 25px !important;
  word-break: keep-all;
}
.index_f18m {
  font-size: 18px !important;
  word-break: keep-all;
}
.index_f10m {
  font-size: 10px !important;
  word-break: keep-all;
}
.index_f150 {
  font-size: 150px !important;
  word-break: keep-all;
}
.index_f130 {
  font-size: 130px !important;
  word-break: keep-all;
}
.index_f100 {
  font-size: 100px !important;
  word-break: keep-all;
}
.index_f90 {
  font-size: 90px !important;
  word-break: keep-all;
}
.index_f80 {
  font-size: 80px !important;
  word-break: keep-all;
}
.index_f70 {
  font-size: 70px !important;
  word-break: keep-all;
}
.index_f60 {
  font-size: 60px !important;
  word-break: keep-all;
}
.index_f50 {
  font-size: 50px !important;
  word-break: keep-all;
}
.index_f40 {
  font-size: 40px !important;
  word-break: keep-all;
}
.index_f35 {
  font-size: 35px !important;
  word-break: keep-all;
}
.index_f30 {
  font-size: 30px !important;
  word-break: keep-all;
}
.index_f25 {
  font-size: 25px !important;
  word-break: keep-all;
}
.index_f20 {
  font-size: 20px !important;
  word-break: keep-all;
  line-height: 30px;
}
.index_f18 {
  font-size: 18px !important;
  word-break: keep-all;
  line-height: 140%; /* 25.2px */
  letter-spacing: -0.36px;
}
.index_f16 {
  font-size: 16px !important;
  word-break: keep-all;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
}
.index_f14 {
  font-size: 14px !important;
  word-break: keep-all;
}
.index_f10 {
  font-size: 10px !important;
  word-break: keep-all;
}
.index_line {
  width: 100px;
  height: 2px;
  background: #fff;
  opacity: 0.2;
}
.index_color_sub {
  color: #fff !important;
  text-shadow: 1px 2px 1px rgba(000, 000, 000, 0);
}
.index_line2 {
  width: 100px;
  height: 2px;
  background: #333;
  opacity: 0.2;
}
.index_color_sub2 {
  color: #333 !important;
  text-shadow: 1px 2px 1px rgba(000, 000, 000, 0);
}
.index_b {
  font-weight: bold;
}
.index_1600 {
  max-width: 1600px;
}
.index_1500 {
  max-width: 1500px;
}
.index_1400 {
  max-width: 1400px;
}
.index_1300 {
  max-width: 1300px;
}
.index_1200 {
  max-width: 1200px;
}
.index_1100 {
  max-width: 1100px;
}
.index_1000 {
  max-width: 1000px;
}
.index_center {
  display: block;
  margin: 0 auto;
}
.index_text_center {
  text-align: center;
}
@media only screen and (max-width: 900px) {
  .index_f150 {
    font-size: 100px !important;
    word-break: keep-all;
  }
  .index_f130 {
    font-size: 100px !important;
    word-break: keep-all;
  }
  .index_f100 {
    font-size: 50px !important;
    word-break: keep-all;
  }
  .index_f90 {
    font-size: 40px !important;
    word-break: keep-all;
  }
  .index_f80 {
    font-size: 50px !important;
    word-break: keep-all;
  }
  .index_f70 {
    font-size: 45px !important;
    word-break: keep-all;
  }
  .index_f60 {
    font-size: 40px !important;
    word-break: keep-all;
  }
  .index_f50 {
    font-size: 35px !important;
    word-break: keep-all;
  }
  .index_f40 {
    font-size: 25px !important;
    word-break: keep-all;
  }
  .index_f35 {
    font-size: 23px !important;
    word-break: keep-all;
  }
  .index_f30 {
    font-size: 21px !important;
    word-break: keep-all;
  }
  .index_f25 {
    font-size: 20px !important;
    word-break: keep-all;
  }
  .index_f20 {
    font-size: 18px !important;
    word-break: keep-all;
    line-height: 25px;
  }
  .index_f18 {
    font-size: 16px !important;
    word-break: keep-all;
    line-height: 25px;
  }
  .index_f16 {
    font-size: 15px !important;
    word-break: keep-all;
    line-height: 25px;
  }
  .index_f14 {
    font-size: 15px !important;
    word-break: keep-all;
  }
  .index_f10 {
    font-size: 9px !important;
    word-break: keep-all;
  }
}

.index_f25sm {
  font-size: 25px !important;
  word-break: keep-all;
}
.index_f16sm {
  font-size: 16px !important;
  word-break: keep-all;
}
.text_up {
  text-transform: uppercase;
}
.word_keep {
  word-break: keep-all;
}
.index_color {
  color: #400805 !important;
}
.index_color2 {
  color: #400805 !important;
}
.index_color3 {
  color: #623832 !important;
}

.index_bg {
  background: #400805 !important;
}
.index_bg2 {
  background: #400805 !important;
}
.index_bg3 {
  background: #623832 !important;
}
.index_ib {
  display: inline-block !important;
}
.index_ls10 {
  letter-spacing: 10px !important;
}
.index_ls20 {
  letter-spacing: 20px !important;
}
.text_center {
  text-align: center;
}
.index_line1 {
  line-height: 20px;
}
.index_line2 {
  line-height: 25px;
}
@media only screen and (max-width: 900px) {
  .index_ls10 {
    letter-spacing: 5px !important;
  }
  .index_ls20 {
    letter-spacing: 10px !important;
  }
  .text_center {
    text-align: center;
  }
  .index_line1 {
    line-height: 20px;
  }
  .index_line2 {
    line-height: 25px;
  }
}
/********폰트속성정리********/

/********가로사이즈 정리********/
.index_w1200 {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
}
.index_w50 {
  width: 100%;
  max-width: 50%;
  margin: 0 auto;
}
.index_w60 {
  width: 100%;
  max-width: 60%;
  margin: 0 auto;
}
.index_w70 {
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}
.index_w80 {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
}
.index_w90 {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}
.index_w95 {
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
}
/********가로사이즈 정리********/

/********폰트색상 정리********/
.c_g {
  color: #999 !important;
}
.c_g2 {
  color: #41413f !important;
}
.c_by {
  color: #3e3838 !important;
}
/********폰트색상 정리********/

/********라인표기 정리********/
.index_g_line {
  width: 50px;
  height: 2px;
  background: #999;
  display: block;
  margin: 0 auto;
}
.index_b_line {
  width: 50px;
  height: 2px;
  background: #000;
  display: block;
  margin: 0 auto;
}
.index_w_line {
  width: 50px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 0 auto;
}
/********라인표기  정리********/

/********상하 마진   정리********/
.index_mar10 {
  margin: 10px 0 10px 0;
}
.index_mar20 {
  margin: 20px 0 20px 0;
}
.index_mar30 {
  margin: 30px 0 30px 0;
}
.index_mar40 {
  margin: 40px 0 40px 0;
}
.index_mar40 {
  margin: 50px 0 50px 0;
}
/********상하 마진  정리********/

/********상하 패딩   정리********/
.index_pa10 {
  padding: 10px 0 10px 0;
}
.index_pa20 {
  padding: 20px 0 20px 0;
}
.index_pa30 {
  padding: 30px 0 30px 0;
}
.index_pa40 {
  padding: 40px 0 40px 0;
}
.index_pa40 {
  padding: 50px 0 50px 0;
}
/********상하 패딩  정리********/
.index_sw {
  box-shadow: 4px 2px 10px rgba(333, 333, 333, 0.3);
}
.index_sw2 {
  box-shadow: 4px 2px 10px rgba(333, 333, 333, 0.9);
}
.index_text_sw {
  text-shadow: 1px 2px 1px rgba(000, 000, 000, 0.1);
}
@media only screen and (max-width: 900px) {
  .index_f25sm {
    font-size: 40px !important;
    word-break: keep-all;
  }
  .index_f16sm {
    font-size: 30px !important;
    word-break: keep-all;
  }
  .index_f50m {
    font-size: 70px !important;
    word-break: keep-all;
  }
  .index_f18m {
    font-size: 40px !important;
    word-break: keep-all;
  }
  .index_f10m {
    font-size: 25px !important;
    word-break: keep-all;
  }
}

/* Shared legacy button and form utility styles. */
.btn_warps {
  padding: 10px;
  border-radius: 0px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.index_btn_wrap {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.btn_warps2 {
  padding: 0px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.index_btn_wrap2 {
  width: 100%;
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.index_btn {
  cursor: pointer;
  background: #400805;
  font-size: 16px;
  border-radius: 0px;
  padding: 10px;
  border: 0;
  text-align: center;
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.index_btn:hover {
  background: #333;
}

.index_btn2 {
  cursor: pointer;
  background: #999;
  font-size: 16px;
  border-radius: 0px;
  padding: 10px;
  border: 0;
  text-align: center;
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.index_btn_wrap li {
  list-style: none;
}

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

.selec_chk {
  margin-right: 5px;
}

.sound_only {
  position: absolute;
  left: -9999px;
}

main {
  section {
    width: 100%;
  }
}

.contents-wrapper {
  width: min(1600px, calc(100% - 160px));
  max-width: min(1600px, calc(100% - 160px));
  margin: 0 auto;
}

.jyoon-section-heading-step-card-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Reusable Figma section: heading + fixed-size step cards. */
.jyoon-step-card-grid {
  display: grid;
  grid-template-columns: repeat(var(--jyoon-step-card-columns, 4), minmax(0, 240px));
  gap: 32px;
  justify-content: end;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jyoon-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 240px;
  height: 240px;
  box-sizing: border-box;
  padding: 50px 10px 10px;
  background: #f8f8f5;
  text-align: center;
  word-break: break-word;
}

.jyoon-step-card__step {
  flex: 0 0 auto;
  width: 100%;
  color: #400805;
  font-family: 'Marcellus', sans-serif !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.4px;
}

.jyoon-step-card__description {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  color: #000;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
  white-space: pre-line;
}

.pc-only {
  display: block;
}

.pc-break,
.pc-tablet-break,
.pc-mobile-break {
  display: block !important;
}

.tablet-break,
.tablet-mobile-break,
.mobile-break {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .pc-only {
    display: none;
  }

  .pc-break,
  .pc-mobile-break,
  .mobile-break {
    display: none !important;
  }

  .tablet-break,
  .tablet-mobile-break,
  .pc-tablet-break {
    display: block !important;
  }

  .contents-wrapper {
    width: min(728px, calc(100% - 40px));
    max-width: min(728px, calc(100% - 40px));
    margin: 0 auto;
  }

  .jyoon-step-card-grid {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }

  .pc-tablet-break,
  .pc-break,
  .tablet-break {
    display: none !important;
  }
  .mobile-break,
  .pc-mobile-break,
  .tablet-mobile-break {
    display: block !important;
  }

  .jyoon-section-heading-step-card-grid {
    gap: 0;
  }

  .contents-wrapper {
    width: min(355px, calc(100% - 20px));
    max-width: min(355px, calc(100% - 20px));
    margin: 0 auto;
  }

  .jyoon-step-card-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
    padding: 0 20px;
  }

  .jyoon-step-card {
    width: auto;
    min-height: 120px;
    height: auto;
    padding: 24px 10px;
  }

  .jyoon-step-card__step {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.32px;
  }

  .jyoon-step-card__description {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.28px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .jyoon-step-card-grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
  }
}

/* JS 동작용 컨트롤은 링크처럼 보이되, 크롤링 대상 앵커로 오인되지 않게 한다. */
.jyoon-action-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}
