@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap");
/* 
 font-family: "roboto", sans-serif;
 font-family: "Noto Serif KR", serif;
 font-family: 'Pretendard';
*/

/* 컬러, 폰트 시스템 설정 */
:root {
  --main: #8e96d3;
  --pale-main: #ebecf2;
  --light-main: #d0d3ea;
  --dark-main: #525a95;
  --point: #415a9f;
  --point-2: #223055;
}
h2 {
  /* 제목 serif 42px */
  font-family: "Noto Serif KR", serif;
  font-weight: 200;
  font-size: 4.2rem;
  line-height: 6.5rem;
  letter-spacing: -0.02em;
}
h3 {
  /* 키워드 26px */
  font-family: "Pretendard";
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 3.7rem;
  letter-spacing: -0.01em;
}
h4 {
  /* 주제 24px */
  font-family: "Pretendard";
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 3.6rem;
  letter-spacing: -0.01em;
}
h5 {
  /* 소제목 20px */
  font-family: "Pretendard";
  font-weight: 500;
  font-size: 2rem;
  line-height: 3.2rem;
  letter-spacing: 0.004em;
}
p {
  /* 본문 18px */
  font-family: "Pretendard";
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 2.9rem;
  letter-spacing: 0.004em;
  color: #555555;
}
small {
  /* 주석 14px */
  font-family: "Pretendard";
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.004em;
}

/* 레이아웃 기초 설계 */
html {
  font-size: 10px;
}
body {
  font-family: "Pretendard";
  font-style: normal;
  color: #333;
  background: #fff;
  word-break: keep-all;
}
section {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 15rem 0;
}
.wrap {
  width: 80%;
  margin: 0 auto;
  position: relative;
  max-width: 1180px;
}
.line_break {
  display: none;
}

/* 척근보탕 접속 불가 팝업 */
.modal {
  position: fixed;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 400px;
  height: 240px;
  max-width: 80%;
  background: #eee;
  border-radius: 2rem;
  z-index: 999;
  box-shadow: 2px 2px 24px 4px #00000029;
  text-align: center;
  animation: moveUp 0.5s ease-in-out;
  display: none;
}
@keyframes moveUp {
  0% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
.modal img {
  width: 65px;
  object-fit: contain;
  margin-top: 45px;
  margin-bottom: 5px;
}
.modal p {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 auto;
}
.modal button {
  width: 100%;
  height: 57px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-top: 1px solid #ddddddb4;
  font-weight: 500;
}

/* 공통 title 스타일 */
.title {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  margin-bottom: 7rem;
}
.title.l {
  text-align: left;
}
.title h5 {
  margin-bottom: 1rem;
  color: #a9a9a9;
}
.title h2 {
  color: #333;
}
.title p {
  margin-top: 4rem;
  color: #555;
}

/* 공통 header */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 75px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(35px);
  z-index: 100;
}
header .wrap {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  width: 15.59%;
  min-width: 136px;
  height: 100%;
  position: relative;
}
header h1 a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
header h1 a img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: 0.5s;
}
header h1 a img:hover {
  opacity: 0.75;
}
header nav {
  max-width: 800px;
  width: 72.5%;
  height: 100%;
}
header nav .close {
  display: none;
}
header nav > ul {
  width: 100%;
  height: 100%;
  display: flex;
}
header nav > ul > li {
  flex: 0;
  box-sizing: content-box;
  height: 100%;
  position: relative;
  margin-left: 7rem;
}

header nav > ul.main_menu {
  display: flex;
  justify-content: flex-end;
}

header nav > ul > li:first-child {
  margin-left: 0;
}
header nav > ul > li > a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 2.6rem;
  text-align: center;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s;
  text-wrap: nowrap;
}
header nav > ul > li > a .toggle-arrow {
  width: 14px;
  object-fit: contain;
  display: none;
}
header nav > ul > li.focused a {
  opacity: 0.6;
}
header nav > ul > li > ul.sub_menu {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 156px;
  padding: 20px 17px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: transform 0.7s, opacity 0.6s;
  pointer-events: none;
}
header nav > ul > li:hover > ul.sub_menu,
header nav > ul > li > ul.sub_menu:hover {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
header nav > ul > li:last-child > ul.sub_menu {
  width: 124px;
  padding: 20px 0;
}
header nav > ul > li > ul.sub_menu li {
  width: 100%;
}
header nav > ul > li > ul.sub_menu li a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.6rem;
  color: #767676;
  text-align: center;
  transition: 0.4s;
  margin-bottom: 10px;
}
header nav > ul > li > ul.sub_menu li:last-child a {
  margin-bottom: 0;
}
header nav > ul > li > ul.sub_menu li a:hover {
  color: #191919;
}
header .all_menu {
  display: none;
}
header .all_menu img {
  width: 26px;
  object-fit: contain;
}

/* 공통 footer */
footer {
  width: 100%;
  background: #333;
  color: #a9a9a9;
}
footer .f_top {
  width: 100%;
  padding-top: 6rem;
}
footer .f_top img {
  width: 20rem;
  object-fit: contain;
}
footer .f_list {
  margin: 3rem 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 22.4px;
}
footer .f_list .line {
  width: 0.5px;
  height: 10px;
  background: #a9a9a9;
  display: inline-block;
  margin: 0 2rem;
}
footer .copy {
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid #555;
  font-weight: 300;
  font-size: 14px;
  line-height: 22.4px;
}
/* 반응형 줄바꿈 변경 */
footer .line-break1,
footer .line-break2 {
  display: none;
}

/* 공통 반응형 코드 */
@media (max-width: 1024px) {
  html {
    font-size: 9px;
  }
  header nav > ul {
    justify-content: flex-end;
    gap: 4.5rem;
  }
  header nav > ul > li {
    width: auto;
    margin-left: 0;
  }
  header nav > ul > li > ul.sub_menu {
    width: 144px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 8px;
  }
  h2 {
    font-size: 4rem;
    line-height: 6.2rem;
  }
  h5 {
    font-size: 2.2rem;
    line-height: 3.5rem;
  }
  h4 {
    font-size: 2.6rem;
    line-height: 3.8rem;
  }
  h3 {
    font-size: 2.7rem;
    line-height: 3.8rem;
  }
  p {
    /* 본문 18px */
    font-size: 15.5px;
    line-height: 24.6px;
  }
  .wrap {
    width: 85%;
  }
  .modal {
    height: 230px;
  }
  .title.downsize h2 {
    font-size: 3.39rem;
    line-height: 5.4rem;
  }

  /* 모바일 네비 시작*/
  header {
    height: 65px;
  }
  header nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    max-width: none;
    background: #333;
    transition: 0.7s ease-in-out;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  header nav.on {
    left: 0;
  }
  header nav .close {
    display: block;
    position: absolute;
    top: 25px;
    left: 25px;
    padding: 10px;
  }
  header nav .close img {
    width: 26px;
    object-fit: contain;
  }
  header nav > ul {
    width: 80%;
    height: auto;
    flex-direction: column;
    gap: 0;
    top: 18%;
    position: relative;
  }
  header nav > ul > li {
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }
  header nav > ul > li:last-child {
    width: 100%;
  }
  header nav > ul > li > a {
    padding: 0 2px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    height: 50px;
    justify-content: space-between;
    text-align: left;
    border-bottom: 0.5px solid #555555;
  }
  header nav > ul > li > a .toggle-arrow {
    display: block;
  }
  header nav > ul > li > ul.sub_menu {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 20px 10px 40px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transition: transform 0.7s, opacity 0.6s;
    pointer-events: all;
    display: none;
    border-bottom: 0.5px solid #555555;
  }
  header nav .main_menu li:last-child > .sub_menu {
    border-bottom: 0;
  }
  header nav > ul > li:hover > ul.sub_menu {
    transform: none;
  }
  header nav > ul > li > ul.sub_menu li a {
    justify-content: flex-start;
    color: #ddd;
    text-align: left;
    font-size: 16px;
    line-height: 30px;
  }
  header nav > ul > li > ul.sub_menu li a:hover {
    color: #ccc;
  }
  header .all_menu {
    display: block;
  }
  /* 모바일 네비 끝*/

  footer .f_list .line1 {
    display: none;
  }
  footer .line-break1 {
    display: block;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 7px;
  }
  h2 {
    font-size: 3.7rem;
    line-height: 5.7rem;
  }
  h5 {
    /* 소제목 20px */
    font-size: 15.5px;
    line-height: 24.8px;
  }
  h4 {
    /* 주제 24px */
    font-size: 18px;
    line-height: 26px;
  }
  h3 {
    /* 키워드 26px */
    font-size: 19px;
    line-height: 27px;
  }
  p {
    /* 본문 18px */
    font-size: 15px;
    line-height: 24px;
  }
  .modal {
    height: 220px;
  }
  .line_break {
    display: block;
  }
  .title {
    margin-bottom: 6rem;
  }
  .title p {
    margin-top: 3rem;
  }
  footer br {
    display: none;
  }
  footer .f_list .line {
    display: none;
  }
  footer .line-break2 {
    display: block;
  }
  footer .f_list {
    font-size: 13.3px;
    line-height: 21.1px;
  }
  footer .copy {
    font-size: 13.3px;
    line-height: 21.1px;
  }
}
