@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardStd-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardStd-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardStd-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --topbar-h: 70px;
}


html, body { height: 100%; margin: 0; }

body{
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* ===== 상단 바 ===== */
.topbar {
  position: relative;
  height: var(--topbar-h);
  flex-shrink: 0;
  overflow: hidden;
}

.topbar__bg {
  position: absolute; inset: 0;
  background: url("/static/img/top_bar.png") center/cover no-repeat;
}

.topbar__overlay {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.0);
}

.topbar__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;              /* 심볼-워드마크 간격 */
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
}

/* 심볼: 높이 기준으로 맞추기 */
.brand__symbol{
  height: 44px;           /* 필요하면 38~48 사이로 조절 */
  width: auto;
  display: block;
}

/* 워드마크: 심볼보다 조금 낮게 */
.brand__wordmark{
  height: 36px;           /* 필요하면 24~32 사이로 조절 */
  width: auto;
  display: block;
}

/* 대메뉴 */
.gnb {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 80px;            /* 메뉴 간격 */
  white-space: nowrap;
}

.gnb__item {
  border: none;
  background: transparent;
  color: #F5F6EF;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  padding: 10px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

.gnb__item:hover,
.gnb__item.is-subopen {
  font-weight: 600;
}

.gnb__item.is-active {
  font-weight: 600;
}

/* ===== 소메뉴 박스 ===== */
/* 스샷처럼: 상단바 아래에 박스가 뜨는 영역 */
.submenu-wrap{
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: 220px;        /* 메뉴~submenu 이동 다리 */
  z-index: 2000;

  pointer-events: none; /* 기본은 마우스 이벤트 안 받게 */
}


/* ✅ 기본: 숨김(하지만 display:none은 쓰지 않음 -> 애니메이션 위해) */
.submenu{
  position: absolute;
  left: 40px;
  width: 170px;

  background: #fff;
  border: 1px solid #bbb;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);

  /* 애니메이션 핵심 */
  opacity: 0;
  transform: translateX(16px);
  max-height: 0;
  overflow: hidden;
  pointer-events: auto;

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    max-height 180ms ease;
}

/* ✅ 열림 */
.submenu.is-open{
  opacity: 1;
  transform: translateX(0);
  max-height: 400px;     /* 충분히 크게 */
  pointer-events: auto;
}

.submenu__item{
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  text-align: center;

  transition: background-color 120ms ease, color 120ms ease;
}

.submenu__item:hover{
  background-color: #f2f2f2;
  color: #000;
}

/* ===== 내용 스크롤 영역 ===== */

/* 스크롤은 여기서만 */
.content-area {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0; bottom: 0;

  display: flex;            /* ✅ 핵심 */
  flex-direction: column;

  overflow-y: auto;

  /* ✅ 스크롤바 숨기기 (스크롤은 유지) */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/구 Edge */
}
.content-area::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

/* 위쪽은 내용에 따라 늘어남 */
.content-body {
  flex: 1 0 auto;           /* ✅ 최소 높이 확보 */
}




/*--------------------------------CONTENT_MAIN_SECTION1-------------------------------- */
.content_main_section1 {
  width: 100%;
}

/* 배경 이미지 영역 */
.content_main_section1_hero-bg {
  position: relative;
  width: 100%;
  height: 1024px; /* 원하는 높이 */
  background: url("/static/img/img1.png") center / cover no-repeat;
}

/* 어두운 오버레이 (가독성용) */
.content_main_section1_hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* 텍스트 */
.content_main_section1_hero-text {
  position: absolute;
  left: 80%;
  top: 60%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 1;

  width: 720px;              /* ✅ 텍스트 영역 고정 */
}

.content_main_section1_hero-text h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.content_main_section1_hero-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  word-break: keep-all;      /* ✅ 한글이 글자 단위로 깨지는거 방지 */
}

.content_main_section1_hero-divider{
  width: 480px;               /* 선 길이 */
  height: 1px;
  background: #fff;
  border: none;

  margin: 24px 0;            /* h2 / p 간격 */
  opacity: 0.8;
}

/*--------------------------------CONTENT_MAIN_SECTION2-------------------------------- */
.content_main_section2 {
  width: 100%;
}

/* 배경 이미지 영역 */
.content_main_section2_hero-bg {
  position: relative;
  width: 100%;
  height: 1024px; /* 원하는 높이 */
  background: url("/static/img/img2.png") center / cover no-repeat;
}

/* 어두운 오버레이 (가독성용) */
.content_main_section2_hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}


/* 텍스트 */
.content_main_section2_hero-text1 {
  position: absolute;
  left: 35%;
  top: 30%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 1;

  width: 720px;              /* ✅ 텍스트 영역 고정 */
}

.content_main_section2_hero-text1 h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.content_main_section2_hero-text1 h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.content_main_section2_hero-text1 p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  word-break: keep-all;      /* ✅ 한글이 글자 단위로 깨지는거 방지 */
}

.content_main_section2_hero-text2 {
  position: absolute;
  left: 75%;
  top: 30%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 1;

  width: 720px;              /* ✅ 텍스트 영역 고정 */
}
.content_main_section2_hero-text2 h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.content_main_section2_hero-text2 h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.content_main_section2_hero-text2 p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  word-break: keep-all;      /* ✅ 한글이 글자 단위로 깨지는거 방지 */
}

.content_main_section2_hero-text3 {
  position: absolute;
  left: 35%;
  top: 70%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 1;

  width: 720px;              /* ✅ 텍스트 영역 고정 */
}
.content_main_section2_hero-text3 h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.content_main_section2_hero-text3 h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.content_main_section2_hero-text3 p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  word-break: keep-all;      /* ✅ 한글이 글자 단위로 깨지는거 방지 */
}

.content_main_section2_hero-text4 {
  position: absolute;
  left: 75%;
  top: 70%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: #fff;
  z-index: 1;

  width: 720px;              /* ✅ 텍스트 영역 고정 */
}
.content_main_section2_hero-text4 h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.content_main_section2_hero-text4 h1 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.content_main_section2_hero-text4 p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
  word-break: keep-all;      /* ✅ 한글이 글자 단위로 깨지는거 방지 */
}





.content_main_section2_hero-divider{
  width: 480px;               /* 선 길이 */
  height: 1px;
  background: #fff;
  border: none;

  margin: 24px 0;            /* h2 / p 간격 */
  opacity: 0.8;
}

/*--------------------------------CONTENT_MAIN_SECTION3-------------------------------- */

/*--------------------------------CONTENT_DOCTOR-------------------------------- */
.content_info_doctor_divider {
  border: none;
  border-top: 2px solid #ddd;
  width: 100%;
}

.content_info_doctor_section2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.content_info_doctor_list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 카드 */
.content_info_doctor_card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* 사진 */
.content_info_doctor_photo {
  width: 100%;
}

.content_info_doctor_photo img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 정보 */
.content_info_doctor_info {
  padding-top: 6px;
}

.content_info_doctor_name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.content_info_doctor_name span {
  font-size: 18px;
  font-weight: 500;
  margin-left: 6px;
  color: #555;
}

/* 경력 */
.content_info_doctor_career,
.content_info_doctor_membership {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content_info_doctor_career li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #222;
}

/* 학회/회원 */
.content_info_doctor_membership {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.content_info_doctor_membership li {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/*--------------------------------CONTENT_CONTACT-------------------------------- */
.content_contact_section2 {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 10px;
}

.content_contact_title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 10px 0 18px;
}

.content_contact_divider {
  border: none;
  border-top: 2px solid #ddd;
  width: 100%;
}

.content_contact_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.content_contact_card {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 18px;
  padding: 38px 34px 34px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.content_contact_icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.content_contact_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content_contact_cardTitle {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 14px;
  line-height: 1.25;
  color: #005746;
}

.content_contact_accent {
  font-weight: 800;
}

.content_contact_accent--naver {
  color: #03CF5D;
}

.content_contact_accent--kakao {
  color: #391B1B; /* 스샷 느낌의 브라운 톤 */
}

.content_contact_desc {
  font-size: 16px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 26px;
}

.content_contact_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 320px;
  padding: 18px 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.content_contact_btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.content_contact_arrow {
  font-size: 22px;
  line-height: 1;
}

.content_contact_btn--naver {
  background: #03CF5D;
  color: #fff;
}

.content_contact_btn--kakao {
  background: #391B1B;
  color: #fff;
}

/*--------------------------------CONTENT_PAPER-------------------------------- */
/* 상단 */
.content_paper_section1 {
  text-align: center;
  margin-bottom: 40px;
}

.content_paper_title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.content_paper_desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* 좌우 레이아웃 */
.content_paper_section2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 박스 */
.content_paper_box {
  border: 1px solid #dcdcdc;
  padding: 26px 26px 30px;
  background: #fff;
}

.content_paper_boxTitle {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.content_paper_boxDesc {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* 테이블 */
.content_paper_tableWrap {
  overflow-x: auto;
}

.content_paper_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.content_paper_table th,
.content_paper_table td {
  height: 100px;   /* 가장 큰 셀 기준으로 조정 */
  border: 1px solid #cfcfcf;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}

.content_paper_table th {
  background: #005746;
  font-weight: 600;
  color: #fff;
}
.content_paper_table td {
  background: #fff;
}


/*--------------------------------CONTENT_EVENT-------------------------------- */
.content_event_header {
  text-align: center;
  margin-bottom: 20px;
}

.content_event_title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 20px 0;
}

.content_event_divider {
  border: none;
  border-top: 2px solid #ddd;
  width: 100%;
}
.event-titles {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 28px 0 36px;
}

.event-title {
  background: none;
  border: none;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

/* 활성 탭 */
.event-title.active {
  color: #000;
  font-weight: 600;
}

/* 하단 라인 */
.event-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.event-title.active::after {
  transform: scaleX(1);
}



.content_event_slider {
  position: relative;
  width: 80%;
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  min-width: 100%;
}

.slider-item img {
  width: 100%;
  border-radius: 10px;
}





/*--------------------------------CONTENT_ANIMATION-------------------------------- */
.fade-slide{
  opacity: 1;
  transform: none;
}

/* JS가 켜진 경우에만 숨김 → 나타나기 애니메이션 */
body.js-anim .fade-slide{
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 800ms ease, transform 800ms ease;
}

body.js-anim .fade-slide.is-visible{
  opacity: 1;
  transform: translateX(0);
}












/* bottom 전체: 위/아래 2단 */
.content-bottom{
  flex-shrink: 0;           /* ✅ 눌리지 않게 */
  border-top: 1px solid #ddd;
  background: #222;   /* ✅ 추가 */
}

/* bottom의 상단(필요 없으면 빼도 됨) */

.bottom-top{
  padding: 26px;
  background: #d28f79;       /* 사진 같은 연한 베이지 */
}

/* 2컬럼 그리드 */
.bt-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;  /* 왼쪽 지도 넓게 */
  gap: 28px;
  align-items: start;
}

/* 왼쪽 지도 박스 */
.bt-map{
  background: #e9e9e9;
  border: 1px solid rgba(0,0,0,0.08);
  height: 360px;             /* 사진 비율 느낌 */
  overflow: hidden;
}

.bt-map-placeholder{
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 24px;
  letter-spacing: 2px;
  color: rgba(0,0,0,0.35);
}

/* 오른쪽 정보 영역 */
.bt-info{
  background: #2a2a2a;         /* ✅ 왼쪽과 다른 톤 */
  padding-top: 6px;
  position: relative;
}

.info-block{
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,0.18);
}

.info-block:first-child{
  border-top: none;
  padding-top: 0;
}

/* 섹션 타이틀 */
.info-title{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 400;
  color: #d28f79;           /* 사진 같은 코랄톤 */
}

/* 일반 라인 */
.info-line{
  margin: 6px 0;
  font-size: 14px;
  color: #fff;
  line-height: 1.45;
}

/* 전화번호 크게 */
.info-phone{
  margin: 0;
  font-size: 34px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
}

/* 진료시간 표 느낌 */
.info-hours{
  margin-top: 6px;
}

.hours-row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #fff;
}

.hours-label{
  font-weight: 600;
}

.hours-value{
  text-align: left;
}

.hours-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,0,0,0.55);
}

/* bottom의 하단(footer) */
.bottom-footer{
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 22px 26px;
  background: #222;         /* 스샷 느낌 */
  color: #eee;
}

/* 왼쪽 로고 */
.footer-left{
  flex: 0 0 auto;             /* 로고 영역 고정폭 */
  display: flex;
  align-items: flex-start;
}
.bottom-footer .brand{
  height: auto;
  align-items: center;
}

.bottom-footer .brand__symbol{
  height: 34px;
}

.bottom-footer .brand__wordmark{
  height: 28px;
}

/* 오른쪽 텍스트 */
.footer-right{
  flex: 1;
  min-width: 0;
}

.footer-links{
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  white-space: nowrap;
}

.footer-links a{
  color: #eee;
  text-decoration: none;
}

.footer-links a:hover{
  text-decoration: underline;
}

.footer-links .sep{
  margin: 0 10px;
  opacity: .7;
}

.footer-text{
  font-size: 12px;
  line-height: 1.6;
  opacity: .95;
}

.event-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.event-modal.is-open{ display: block; }

.event-modal__dim{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.event-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(900px, 92vw);
  max-height: 90vh;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.event-modal__link{ display: block; }

.event-modal__img{
  width: 100%;
  height: auto;
  display: block;
}

/* 하단 바 */
.event-modal__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  background: #0c0c0c;
  color: #eee;
  font-size: 13px;
}

.event-modal__checkbox{
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.event-modal__btn{
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #eee;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.event-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border-radius: 10px;
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}