/* 케이플란트치과 메인 페이지 스타일 — ref/PC_main.png 1920px 실측 좌표 기반 */

:root {
  --blue: #1F4BB4;        /* 블루 섹션 배경, 상담바 */
  --blue-deep: #043096;   /* 타이틀 강조, After 뱃지 */
  --yellow: #FAF601;      /* 블루 섹션 강조 텍스트 */
  --yellow-btn: #FAE100;  /* 버튼, 푸터 강조 */
  --bg-light: #F5F6FA;    /* 연회색 섹션 */
  --bg-gray: #E9E9EF;     /* 치료사례 섹션 */
  --footer: #262630;      /* 푸터 */
  --ink: #111111;
  --body: #444444;
}

body { min-width: 1920px; background: #fff; color: var(--ink); }
.wrap { position: relative; width: 1920px; height: 100%; margin: 0 auto; }
.blue { color: var(--blue-deep); }
.yellow { color: var(--yellow); }

/* ═══════════ 공통 컴포넌트 ═══════════ */
.sec-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -1.2px;
  color: #000;
}
.sec-desc {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 27px; font-weight: 400; line-height: 38px; letter-spacing: -0.5px;
  color: #333;
}
.sec-desc strong { color: #000; }

/* ═══════════ 헤더 ═══════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 110px; min-width: 1920px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.3s;
}
.header.is-scrolled { background: rgba(9, 18, 38, 0.92); }
.header__inner { position: relative; width: 1920px; height: 110px; margin: 0 auto; }
.header__logo a { position: absolute; left: 110px; top: 37px; display: flex; align-items: center; }
.header__logo-mark { width: 59px; height: 59px; }
.header__logo-text { margin-left: 14px; margin-top: 5px; }
.header__logo-text strong { display: block; font-size: 34px; letter-spacing: -0.5px; color: #fff; line-height: 1.1; }
.header__logo-text em { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 2.5px; color: rgba(255,255,255,0.85); font-weight: 500; }
.gnb { position: absolute; left: 0; top: 0; height: 110px; width: 100%; }
.gnb > ul { position: relative; height: 110px; }
.gnb > ul > li { position: absolute; top: 0; height: 110px; display: flex; align-items: center; padding-top: 9px; }
.gnb > ul > li:nth-child(1) { left: 539px; }
.gnb > ul > li:nth-child(2) { left: 746px; }
.gnb > ul > li:nth-child(3) { left: 898px; }
.gnb > ul > li:nth-child(4) { left: 1045px; }
.gnb > ul > li:nth-child(5) { left: 1213px; }
.gnb > ul > li:nth-child(6) { left: 1361px; }
.gnb > ul > li > a { font-size: 24px; font-weight: 500; color: #fff; letter-spacing: -1px; }
.header__util { position: absolute; right: 110px; top: 0; height: 110px; display: flex; align-items: center; gap: 44px; }
.btn-globe svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.6px; display: block; }
.btn-menu { display: flex; flex-direction: column; gap: 9px; width: 34px; }
.btn-menu span { height: 3px; background: #fff; border-radius: 2px; }

/* ── GNB hover 드롭다운 (마우스 온/스크롤 시 흰 배경 메가메뉴, 배경 opacity 85%) ── */
/* 데스크톱(≥1024px) 전용 — 모바일은 햄버거 드로어를 쓰므로 hover 메가메뉴/흰 배경이 새면 안 됨 */
@media (min-width: 1024px) {
.header__inner { z-index: 2; }
/* 상위 항목 하단 hover 보더 */
.gnb > ul > li::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: #1F4BB4; transform: scaleX(0); transition: transform 0.2s;
}
.gnb > ul > li:hover::after { transform: scaleX(1); }
/* 드롭다운 풀폭 배경 (헤더 아래로 확장) */
.gnb__backdrop {
  position: absolute; left: 0; top: 110px; width: 100%; min-width: 1920px; height: 186px;
  background: rgba(255, 255, 255, 0.85); z-index: 1;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
/* 서브메뉴 (각 상위 항목 중앙 정렬) */
.gnb__sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 20px; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.gnb__sub li { position: static; top: auto; height: auto; display: block; padding: 0; }
.gnb__sub a { display: block; font-size: 18px; font-weight: 400; line-height: 32px; color: #444; letter-spacing: -0.8px; white-space: nowrap; }
.gnb__sub a:hover { color: #1F4BB4; }
/* 마우스 온 시 헤더 흰 배경 + 텍스트/아이콘 어둡게 */
.header:hover, .header.is-scrolled:hover { background: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(0, 0, 0, 0.08); }
.header:hover .gnb > ul > li > a { color: #222; }
.header:hover .gnb > ul > li:hover > a { color: #1F4BB4; }
.header:hover .header__logo-text strong { color: #1b1b1b; }
.header:hover .header__logo-text em { color: #666; }
.header:hover .btn-globe svg { stroke: #333; }
.header:hover .btn-menu span { background: #333; }
.header:hover .gnb__backdrop,
.header:hover .gnb__sub { opacity: 1; visibility: visible; }
}

/* ═══════════ 히어로 (롤링 배너 카루셀) ═══════════ */
.hero { position: relative; height: 940px; overflow: hidden; background: #2B304B; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide .wrap { position: relative; width: 1920px; height: 100%; margin: 0 auto; }
.hero__text { position: absolute; }
.hero__text--s1 { left: 973px; top: 327px; }
.hero__text--s2 { left: 1065px; top: 320px; }
.hero__text--s3 { left: 975px; top: 330px; }
.hero__text--s4 { left: 413px; top: 405px; }
.hero__headline {
  font-size: 57px; font-weight: 350; line-height: 72px; letter-spacing: -2px;
  color: #fff;
}
.hero__headline strong { font-weight: 700; letter-spacing: -0.5px; }
.hero__headline--en { font-weight: 300; letter-spacing: -1px; }
.hero__headline--en strong { font-weight: 700; letter-spacing: -1px; }
.hero__sub {
  margin-top: 25px;
  font-size: 25px; font-weight: 700; letter-spacing: 0;
  color: #FFDE00;
}
/* 배너 이동 dot */
.hero__dots { position: absolute; bottom: 42px; left: 0; width: 100%; display: flex; justify-content: center; gap: 12px; z-index: 5; }
.hero__dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.25s, width 0.25s; }
.hero__dot.is-active { background: #fff; width: 30px; border-radius: 6px; }

/* ═══════════ 대표원장 소개 (공통 2회) ═══════════ */
.doctor { position: relative; height: 940px; background: #fff; }
.doctor .sec-title { top: 77px; }
.doctor__greet { position: absolute; left: 222px; top: 314px; }
.doctor__greet-lead { font-size: 23px; font-weight: 700; letter-spacing: -0.5px; color: #111; line-height: 1; }
.doctor__greet-body { margin-top: 32px; font-size: 23px; line-height: 36px; letter-spacing: -0.5px; color: #444; }
.doctor__greet-body strong { color: #111; }
.doctor__photo { position: absolute; left: 617px; top: 181px; width: 687px; height: 687px; }
.doctor--kang .doctor__photo { top: 181px; }   /* 원 1151~1778, crop 30px 여백 */
.doctor--lee .doctor__photo { top: 181px; }    /* 원 5851~6478 → rel 211-30 */
.doctor__info { position: absolute; left: 1418px; top: 303px; }
.doctor__name { font-size: 46px; font-weight: 700; letter-spacing: -1px; color: #111; }
.doctor__name span { font-size: 22px; font-weight: 400; color: #333; margin-left: 6px; }
.doctor__career { margin-top: 24px; font-size: 20px; line-height: 32px; letter-spacing: -1px; color: #555; }
.doctor__career--second { margin-top: 33px; }

/* ═══════════ 진료과목 안내 ═══════════ */
.subjects { position: relative; height: 940px; background: var(--bg-light); }
.subjects .wrap { height: 325px; }
.subjects .sec-title { top: 78px; }
.subjects .sec-desc { top: 169px; }
.subjects__cards { display: flex; }
.subject-card {
  position: relative; width: 480px; height: 500px;
  background-size: cover; background-position: center;
}
.subject-card__title {
  position: absolute; left: 0; right: 0; top: 200px; text-align: center;
  font-size: 47px; font-weight: 700; letter-spacing: -1px; color: #fff; line-height: 1;
}
.subject-card__desc {
  position: absolute; left: 0; right: 0; top: 264px; text-align: center;
  font-size: 23px; font-weight: 300; line-height: 31px; letter-spacing: -0.5px; color: rgba(255,255,255,0.92);
}
.subject-card--global .subject-card__desc { font-size: 20px; }

/* ═══════════ 임플란트/치아교정 블루 섹션 (공통 2회) ═══════════ */
.feature { position: relative; height: 940px; background: var(--blue); }
.feature__logo { position: absolute; left: 900px; top: 78px; width: 121px; height: 120px; }
.feature__title {
  position: absolute; left: 0; right: 0; top: 233px; text-align: center;
  font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; color: #fff;
}
.feature__desc {
  position: absolute; left: 0; right: 0; top: 335px; text-align: center;
  font-size: 27px; line-height: 38px; letter-spacing: -0.5px; color: #fff;
}
.feature__cards { position: absolute; left: 131px; top: 494px; display: flex; gap: 20px; }
.feature--ortho .feature__cards { top: 474px; }
.feature__cards li { position: relative; width: 400px; }
.feature__cards img { width: 400px; height: 270px; border-radius: 10px; }
.feature__caption {
  margin-top: 21px; text-align: center;
  font-size: 27px; line-height: 38px; letter-spacing: -0.5px; color: #fff; font-weight: 400;
}
.feature__caption strong { font-weight: 700; }

/* ═══════════ 비교불가! 독보적 경력 ═══════════ */
.career { position: relative; height: 940px; background: #fff; }
.career .sec-title { top: 77px; }
.career .sec-desc { top: 162px; }
.career__qlist { position: absolute; left: 267px; top: 307px; }
.qbox {
  position: relative; width: 648px; height: 168px; margin-bottom: 32px;
  background: var(--bg-light); border: 1px solid var(--blue); border-radius: 16px;
}
.qbox__q { position: absolute; left: 51px; top: 30px; font-size: 23px; font-weight: 700; letter-spacing: -0.5px; color: var(--blue); }
.qbox__a { position: absolute; left: 110px; top: 73px; font-size: 27px; line-height: 36px; letter-spacing: -0.5px; color: #333; }
.qbox__a strong { color: #111; }
.qbox__num {
  position: absolute; left: -63px; top: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 20px; font-weight: 700; text-align: center; line-height: 40px;
}
.career__plaque { position: absolute; left: 940px; top: 248px; width: 980px; height: 692px; }

/* ═══════════ 치료 사례 (공통 2회) ═══════════ */
.cases { position: relative; height: 940px; background: var(--bg-gray); }
.cases--implant .sec-title { top: 77px; }
.cases--implant .sec-desc { top: 168px; }
.cases--implant .cases__grid { top: 288px; }
.cases--implant .btn-more { top: 830px; }
.cases--ortho .sec-title { top: 67px; }
.cases--ortho .sec-desc { top: 144px; }
.cases--ortho .cases__grid { top: 268px; }
.cases--ortho .btn-more { top: 820px; }
.cases__grid { position: absolute; left: 181px; display: flex; gap: 21px; }
.cases__item { position: relative; }
.cases__item img { width: 769px; height: 481px; border-radius: 12px; }
.badge {
  position: absolute; bottom: 64px;
  width: 185px; height: 50px; border-radius: 25px;
  font-size: 20px; font-weight: 500; text-align: center; line-height: 50px; letter-spacing: -0.5px;
}
.badge--before { left: 49px; bottom: 14px; background: #fff; color: #333; }
.badge--after { right: 50px; bottom: 14px; background: var(--blue-deep); color: #fff; }
.btn-more {
  position: absolute; left: 823px;
  display: block; width: 274px; height: 50px; border-radius: 25px;
  background: #fff; text-align: center; line-height: 50px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.5px; color: #333;
}

/* ═══════════ 교정치료 꼭 필요합니다 ═══════════ */
.ortho-need { position: relative; height: 940px; background: #fff; }
.ortho-need .sec-title { top: 78px; }
.ortho-need .sec-desc { top: 159px; }
.ortho-need__photo { position: absolute; left: 131px; top: 324px; width: 880px; height: 520px; border-radius: 12px; }
.ortho-need__text { position: absolute; left: 1090px; top: 0; width: 710px; }
.ortho-need__text h3 { position: absolute; top: 320px; font-size: 29px; line-height: 1; font-weight: 700; letter-spacing: -0.5px; color: #111; }
.ortho-need__intro { position: absolute; top: 368px; font-size: 20px; line-height: 30px; letter-spacing: -1px; color: #555; }
.ortho-need__text h4 { position: absolute; top: 516px; font-size: 29px; line-height: 1; font-weight: 700; letter-spacing: -0.5px; color: var(--blue-deep); }
.ortho-need__list dt { position: absolute; font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: -1.5px; color: #111; }
.ortho-need__list dd { position: absolute; font-size: 20px; line-height: 1; letter-spacing: -1px; color: #555; }
.ortho-need__list dt:nth-of-type(1) { top: 566px; }
.ortho-need__list dd:nth-of-type(1) { top: 596px; }
.ortho-need__list dt:nth-of-type(2) { top: 636px; }
.ortho-need__list dd:nth-of-type(2) { top: 666px; }
.ortho-need__list dt:nth-of-type(3) { top: 716px; }
.ortho-need__list dd:nth-of-type(3) { top: 746px; }
.ortho-need__list dt:nth-of-type(4) { top: 786px; }
.ortho-need__list dd:nth-of-type(4) { top: 816px; }

/* ═══════════ Global Dental Care ═══════════ */
.global {
  position: relative; height: 1030px;
  background: #000 url('../assets/img/global_bg.jpg') no-repeat center top;
}
.global__title {
  position: absolute; left: 0; right: 0; top: 199px; text-align: center;
  font-size: 60px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; color: var(--yellow);
}
.global__desc {
  position: absolute; left: 0; right: 0; top: 272px; text-align: center;
  font-size: 62px; font-weight: 700; letter-spacing: -1px; line-height: 78px; color: #fff;
}
.global__flags {
  position: absolute; left: 0; right: 0; top: 570px;
  display: flex; justify-content: center; gap: 4px;
}
.global__flags img { width: 196px; height: auto; display: block; }
.global__foot {
  position: absolute; left: 0; right: 0; top: 854px; text-align: center;
  font-size: 36px; font-weight: 700; letter-spacing: -0.5px; color: var(--yellow);
}

/* ═══════════ 병원 둘러보기 + 위치 안내 ═══════════ */
.tour { position: relative; height: 1266px; background: #fff; }
.tour .sec-title { top: 79px; }
.tour .sec-desc { top: 161px; }
.tour__slider { position: absolute; left: 0; top: 324px; width: 1920px; height: 500px; }
.tour__viewport { position: absolute; left: 111px; width: 1700px; height: 500px; overflow: hidden; }
.tour__track { display: flex; gap: 20px; transition: transform 0.4s; }
.tour__track img { width: 840px; height: 500px; border-radius: 12px; object-fit: cover; }
.tour__arrow {
  position: absolute; top: 225px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1px solid #ddd; color: #777;
}
.tour__arrow svg { width: 22px; height: 22px; margin-top: 3px; }
.tour__arrow--prev { left: 30px; }
.tour__arrow--next { right: 30px; }
/* dot 네비게이션 (이미지 하단 중앙) */
.tour__dots { position: absolute; top: 100%; left: 0; width: 100%; margin-top: 26px; display: flex; justify-content: center; gap: 10px; }
.tour__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #D2D5E0; cursor: pointer; transition: background 0.25s, width 0.25s; }
.tour__dot.is-active { background: #1F4BB4; width: 26px; border-radius: 5px; }
.sec-title--location { top: 1017px !important; }
.location__addr {
  position: absolute; left: 0; right: 0; top: 1100px; text-align: center;
  font-size: 27px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; color: var(--blue-deep);
}
.location__desc {
  position: absolute; left: 0; right: 0; top: 1138px; text-align: center;
  font-size: 27px; letter-spacing: -0.5px; line-height: 1; color: #333;
}

/* ═══════════ 지도 ═══════════ */
.map { position: relative; height: 614px; }
/* z-index:1 로 자체 stacking context 생성 → 카카오 내부 레이어를 이 안에 가둔다 */
.map__canvas { position: relative; z-index: 1; width: 100%; height: 614px; background-position: center; background-size: cover; }
.map__card {
  position: absolute; left: 50%; margin-left: 190px; top: 189px;
  width: 523px; height: 230px; border-radius: 20px;
  background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 2;                    /* 지도 위에 정보 카드 오버레이 */
}
.map__tel {
  position: absolute; left: 76px; top: 34px; right: 40px; padding-bottom: 24px;
  display: flex; align-items: center; gap: 26px;
  font-size: 27px; font-weight: 700; letter-spacing: 0; color: #111;
  border-bottom: 1px solid #ececec;
}
.map__addr {
  position: absolute; left: 76px; top: 99px;
  display: flex; align-items: center; gap: 26px;
  font-size: 26px; font-weight: 500; letter-spacing: -0.5px; color: #111;
}
.ic-circle { width: 36px; height: 36px; }
.map__btns { position: absolute; left: 39px; top: 158px; display: flex; gap: 21px; }
.map__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 196px; height: 48px; border-radius: 24px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
}
.map__btn svg { width: 24px; height: 24px; }
.map__btn--naver { background: #00BA44; color: #fff; }
.map__btn--kakao { background: #F2DA00; color: #3B1E1E; }

/* ═══════════ 빠른상담신청 바 ═══════════ */
.consult { position: relative; height: 98px; background: var(--blue); }
.consult__form { position: relative; width: 1920px; height: 98px; margin: 0 auto; }
.consult__title {
  position: absolute; left: 420px; top: 0; height: 98px;
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: #fff;
}
.consult__title img { width: 65px; height: 50px; }
.consult__input {
  position: absolute; top: 27px; height: 50px; border-radius: 6px;
  background: #fff; padding: 0 18px; font-size: 17px; color: #333;
}
.consult__input::placeholder { color: #999; }
.consult__input--name { left: 645px; width: 170px; }
.consult__input--phone { left: 825px; width: 255px; }
.consult__agree {
  position: absolute; left: 1103px; top: 0; height: 98px;
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; letter-spacing: -0.5px; color: #fff; cursor: pointer;
}
.consult__agree input { position: absolute; opacity: 0; }
.consult__radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent;
}
.consult__agree input:checked + .consult__radio { background: #fff; box-shadow: inset 0 0 0 5px var(--blue); }
.consult__submit {
  position: absolute; left: 1325px; top: 24px;
  width: 165px; height: 50px; border-radius: 6px;
  background: var(--yellow-btn);
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: #222;
}

/* ═══════════ 푸터 ═══════════ */
.footer { position: relative; height: 433px; background: var(--footer); }
.footer__brand { position: absolute; left: 270px; top: 76px; width: 320px; text-align: center; }
.footer__tagline { font-size: 23px; line-height: 1; font-weight: 700; letter-spacing: -0.5px; color: var(--yellow-btn); }
.footer__brand img { margin-top: 5px; width: 320px; height: 165px; }
.footer__col h3 { font-size: 26px; line-height: 1; font-weight: 500; letter-spacing: -0.5px; color: #888; }
.footer__col ul { margin-top: 18px; }
.footer__col li {
  position: relative; padding-left: 18px;
  font-size: 20px; line-height: 37px; letter-spacing: -0.75px; font-weight: 400; color: #C9C9CE;
}
.footer__col li::before {
  content: ''; position: absolute; left: 2px; top: 16px;
  width: 5px; height: 5px; border-radius: 50%; background: #888;
}
.footer__col li strong { font-weight: 700; }
.footer__col li.yellow { color: var(--yellow-btn); }
.footer__col li.yellow strong { color: #C9C9CE; }
.footer__info { position: absolute; left: 815px; top: 76px; }
.footer__hours { position: absolute; left: 1360px; top: 76px; }
.footer__hours li { margin-left: -21px; }
.footer__links {
  position: absolute; left: 0; right: 0; top: 316px; text-align: center;
  font-size: 20px; letter-spacing: -0.5px; color: #CFCFD4;
}
.footer__copy {
  position: absolute; left: 0; right: 0; top: 352px; text-align: center;
  font-size: 20px; letter-spacing: -0.3px; color: #8B8B92;
}

/* ═══════════ 우측 퀵메뉴 ═══════════ */
.quick {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  width: 100px; height: 390px;
  background: #fff; border-radius: 40px 0 0 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.quick ul { padding-top: 15px; }
.quick li { position: relative; text-align: center; padding-bottom: 13px; }
.quick li + li { padding-top: 12px; }
.quick li + li::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0;
  height: 1px; background: #E5E5EA;
}
.quick a { display: block; font-size: 16px; letter-spacing: -0.5px; color: #333; font-weight: 500; }
.quick a img { display: block; margin: 0 auto 6px; width: 50px; height: 50px; }
.quick__top {
  position: absolute; left: 0; right: 0; bottom: 0; height: 88px;
  background: #EFF0F4; font-size: 20px; font-weight: 500; color: #333;
}
