/* ================= FONT ================= */
@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2")
    format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'A2z';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-1Thin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'ChosunIlboMyungjo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Chosunilbo_myungjo.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}
/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
}
하면 부드럽게 */

body {
  color: #333;
  line-height: 1.6;
}

:root {
  --header-height: 64px;
}

.gnb-pc {
  display: none;
}
.logo-wrap-pc {
  display: none;
}
/* ================= HEADER ================= */
    .header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    }

    .header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
    /* 헤더 숨김 애니메이션 */
    .header {
    transition: transform 220ms ease;
    }

    /* 숨김 상태 */
    .header.is-hidden {
    transform: translateY(-100%);
    }

    .menu-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    }

    .logo-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    }

    /* 로고 이미지 사이즈 핵심 */
    .logo-img {
    width: 28px; /* ← 이 값으로 전체 인상 결정 */
    height: auto;
    display: block;
    }

    .logo-text {
    font-weight: 700;
    color: #2aa6a6;
    }

    .arrow {
    font-size: 12px;
    transition: transform 0.3s;
    }

    .arrow.active {
    transform: rotate(180deg);
    }

    .phone-btn {
    font-size: 22px;
    text-decoration: none;
    }
/* 오른쪽 묶음(인스타/블로그 + 전화) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;          /* SNS와 전화 사이 간격 */
    margin-left: auto;  /* ✅ 오른쪽 끝으로 밀기 */
  }
  
  /* SNS 아이콘 */
  .header-sns {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .header-sns img {
    width: 22px;
    height: 22px;
    display: block;
    transition: opacity 0.2s ease;
  }
  
  .header-sns a:hover img {
    opacity: 0.7;
  }
  
  /* phone-btn도 flex로 정렬(텍스트+아이콘) */
  .phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  
/* ================= MENU ================= */
.gnb {
  position: fixed;
  top: 64px;
  width: 100%;
  background: #fff;
  display: none;
  border-bottom: 1px solid #ddd;
  z-index: 999;
}

.gnb ul {
  list-style: none;
}

.gnb li a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.gnb.active {
  display: block;
}

/* ================= HERO ================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 34px;
  height: auto;
}
.logo-wrap {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 800; /* ExtraBold */
  font-size: 15px; /* 필요하면 조절 */
  letter-spacing: -0.02em;
  gap: 4px;
}
.logo-wrap-pc {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 800; /* ExtraBold */
  font-size: 20px; /* 필요하면 조절 */
  letter-spacing: -0.02em;
  gap: 4px;
}
.logo-dd {
  color: #8ebe21;
  align-self: center;
}

.logo-clinic {
  color: #1198d6;
  align-self: center;
}

.clinic-name {
  font-size: 16px;
  font-weight: 600;
  color: #6fb100;
}

.phone-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.phone-icon {
  width: 36px;
  height: 36px;
  fill: #1198d6;
}

/* 모바일에서는 전화번호 숨김 */
.phone-text {
  display: none;
}

/* =====================
     HERO SECTION
  ===================== */
  .hero {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(0, 170, 180, 0.28), rgba(0, 170, 180, 0.28)),
      url("../001.jpg") center center / cover no-repeat;
    position: relative;
    padding: 48px 20px 90px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
  }


  .hero-text {
    position: relative;
    z-index: 3;
    margin-top: 0;
    text-align: right;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    margin-left: auto;
  }
  
  .hero-sub {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.28);
  }

  .hero-title {
    font-size: 36px;
    font-weight: 900;
    color: #0b5fa8;
    margin-bottom: 18px;
    line-height: 1.08;
  }
  
  .hero-desc {
    font-size: 15px;
    font-weight: 500;
    color: #f4fbfd;
    line-height: 1.7;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.22);
  }
  
  /* PC 전용 카드: 기본 숨김 */
  .hero-points {
    display: none;
  }
  
  /* 하단 회색 박스 */
  .hero-note {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    color: #777;
    font-size: 13px;
    text-align: center;
    padding: 14px 16px;
    border-radius: 10px;
    width: calc(100% - 40px);
    max-width: 420px;
  }


  .hero-pc-layer{
    display:none;
  }
  
  /* =========================
     PC 전용
  ========================= */
  @media (min-width:1024px){
  
    /* 모바일용 원래 hero-text는 PC에서 숨김 */
    .hero > .hero-text{
      display:none;
    }
  
    .hero{
      display:block;
      position:relative;
      padding:60px 32px 120px;
      overflow:hidden;
    }
  
    .hero-pc-layer{
      display:block;
      position:absolute;
      inset:0;
      z-index:3;
      pointer-events:none;
    }
  
    .hero-pc-inner{
      width:min(1200px, calc(100% - 120px));
      min-height:calc(100% - 140px);
      margin:0 auto;
      height:100%;
  
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:44px;
      align-items:center;
    }
  
    .hero-pc-left,
    .hero-pc-right{
      min-width:0;
      pointer-events:auto;
    }
  
    /* 왼쪽 */
    .hero-pc-heading{
      font-size:28px;
      font-weight:800;
      color:#fff;
      margin-bottom:18px;
      line-height:1.2;
      text-shadow:0 6px 20px rgba(0,0,0,0.28);
    }
  
    .hero-pc-cases{
      margin-left: 100px;
      align-items: left;
      width: 450px;
      display:flex;
      flex-direction: column;
      gap:10px;
      padding: 20px;
    }

    .hero-pc-case{
      position:relative;
      display:block;
      border-radius:10px;
      overflow:hidden;
      box-shadow:0 18px 40px rgba(0,0,0,0.22);
      transition:transform .35s ease, box-shadow .35s ease;
    }
  
    .hero-pc-case:hover{
      transform:translateY(-4px);
      box-shadow:0 24px 54px rgba(0,0,0,0.28);
    }
  
    .hero-pc-case img{
      display:block;
      width:100%;
      height:200px;
      object-fit:cover;
      filter:brightness(.94) saturate(.96);
      transition:transform .4s ease, filter .4s ease;
    }
  
    .hero-pc-case:hover img{
      transform:scale(1.05);
      filter:brightness(1) saturate(1);
    }
  
    .hero-pc-label{
      position:absolute;
      left:18px;
      bottom:16px;
      color:#fff;
      font-family: 'ChosunIlboMyungjo';
      font-size:17px;
      font-weight:600;
      line-height:1.22;
      text-shadow:0 6px 20px rgba(0,0,0,0.75);
    }
  
    /* 오른쪽 */
    .hero-pc-panel{
      min-height:100vh;
      background:rgba(255,255,255,0.5);
      backdrop-filter:blur(12px);
      border-radius:0px;
      box-shadow:0 24px 64px rgba(0,0,0,0.14);
      padding: 40% 42px;
  
      display:flex;
      flex-direction:column;
      justify-content: center;
      align-items:center;
      text-align: left;
      white-space: nowrap;
      width:520px;

    }
  
    .hero-pc-panel .hero-sub{
      font-size:48px;
      line-height:1.18;
      color:#ffffff;
      text-shadow:0 4px 16px rgba(0,0,0,0.22);
      padding-bottom:18px;
      letter-spacing:0.02em;

    }
  
    .hero-pc-panel .hero-title{
      font-size:66px;
      line-height:1.06;
      margin-bottom:22px;
    }
  
    .hero-pc-panel .hero-desc{
      font-size:22px;
      line-height:1.6;
      color:#053952cb;
      text-shadow:0 4px 16px rgba(0,0,0,0.18);
      letter-spacing:0.015em;
    }
  
    /* note는 그대로 두되 PC에서 위치만 다듬기 */
    .hero-note{
      z-index:4;
      bottom:28px;
      width:auto;
      max-width:520px;
      min-width:380px;
      padding:16px 22px;
      font-size:14px;
      background:rgba(255,255,255,0.82);
      backdrop-filter:blur(8px);
      border-radius:12px;
    }
    .logo-img {
      width: 50px;
      height: auto;
    }
  }
.services {
  background: #ffffff;
  padding: 44px 16px 10px;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: #444;
}

.services-title strong {
  font-weight: 800;
}

.services-divider {
  height: 1px;
  background: #ececec;
  margin: 0 auto 22px;
  max-width: 720px;
}

/* 모바일: 그리드 아래에 케이스 박스가 '아래로' */
.services-layout {
  display: block;
}

/* 3x3 아이콘 그리드 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 12px;
  font-weight: 300;
  color: #1198d6;
  letter-spacing: -0.02em;
  text-align: center;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 하단 케이스 박스 (모바일에서는 그리드 아래) */
.case-box {
  display: block;
  margin: 18px auto 0;
  max-width: 720px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.case-box {
  position: relative;
  overflow: hidden;
}

/* 텍스트 영역 */
.case-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;

  color: #ffffff;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(92, 92, 92, 0.25));
}

/* 상단 설명 */
.case-sub {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 메인 타이틀 */
.case-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.case-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================
     스크롤 애니메이션 (가볍게, 임팩트 있게)
  ======================= */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 카드들은 살짝 "순차"로 보이게 (임팩트) */
.service-grid .service-card:nth-child(1) {
  transition-delay: 20ms;
}
.service-grid .service-card:nth-child(2) {
  transition-delay: 60ms;
}
.service-grid .service-card:nth-child(3) {
  transition-delay: 100ms;
}
.service-grid .service-card:nth-child(4) {
  transition-delay: 140ms;
}
.service-grid .service-card:nth-child(5) {
  transition-delay: 180ms;
}
.service-grid .service-card:nth-child(6) {
  transition-delay: 220ms;
}
.service-grid .service-card:nth-child(7) {
  transition-delay: 260ms;
}
.service-grid .service-card:nth-child(8) {
  transition-delay: 300ms;
}
.service-grid .service-card:nth-child(9) {
  transition-delay: 340ms;
}

/* =====================
     PC (1024px 이상)
  ===================== */
@media (min-width: 1024px) {
  .header-inner {
    padding: 10px;
    display: flex;
    justify-content: space-around;
  }
  .menu-toggle {
    display: none;
  }

  /* 모바일 gnb 완전 숨김 */
  .gnb {
    display: none !important;
  }

  /* 🔥 PC 가로 메뉴 표시 */
  .gnb-pc {
    padding-left: 50px;
    display: flex;
    gap: 32px;
  }
  .logo-wrap-pc {
    display: flex;
  }
  .gnb-pc a {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
  }

  .gnb-pc a:hover {
    color: #1198d6;
  }
  .header-inner {
    padding: 16px 32px;
  }

  .clinic-name {
    font-size: 18px;
  }

  .phone-text {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: #000;
  }

}
@media (min-width: 1024px) {
  .services {
    height: 100vh;
    padding: 70px 32px 90px;
  }

  .services-title {
    font-size: 22px;
  }

  .services-layout {
    display: grid;
    grid-template-columns: 560px 1fr; /* 왼쪽(그리드) 고정 + 오른쪽(케이스) */
    gap: 28px;
    align-items: start;
    justify-content: center;
    margin-top: 20px;
  }

  .service-grid {
    margin: 0;
    max-width: none;
    gap: 14px;
  }
  .service-title {
    font-size: 15px;
  }

  .service-card img {
    width: 100%;
  }
  .case-box {
    margin: 0;
    max-width: 520px;
    height: 100%; /* 오른편 박스 폭 (원하면 조절) */
  }
  .case-text {
    justify-content: flex-end; /* 아래로 */
    padding-bottom: 32px; /* 아래 여백(원하는 만큼 조절) */
  }
  /* PC에서 hover 살짝 임팩트 */
  .service-card:hover,
  .case-box:hover {
    transform: translateY(-2px);
  }
  .services {
    padding: 70px 32px 90px;
  }

  .services-title {
    font-size: 22px;
  }

  .services-layout {
    display: grid;
    grid-template-columns: 560px 1fr; /* 왼쪽(그리드) 고정 + 오른쪽(케이스) */
    gap: 28px;
    align-items: start;
    justify-content: center;
    margin-top: 20px;
  }

  .service-grid {
    margin: 0;
    max-width: none;
    gap: 14px;
  }

  .case-box {
    margin: 0;
    max-width: 520px; /* 오른편 박스 폭 (원하면 조절) */
  }

  /* PC에서 hover 살짝 임팩트 */
  .service-card:hover,
  .case-box:hover {
    transform: translateY(-2px);
  }
  .case-sub {
    font-size: 20px;
  }

  .case-title {
    font-size: 35px;
  }
  .hero-note {
    display: none;
  }
}

/* ===== 의료진 소개 섹션 ===== */
.doctor {
  background: #fff;
}

.doctor-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* 한 명당 한 화면 느낌 (헤더 고정 고려해서 약간 여유) */
.doctor-card {
  position: relative;
  min-height: calc(95vh - var(--header-height));
  overflow: hidden;
  padding: 60px 22px 0;
  background: #fff;
}

/* 텍스트 */
.doctor-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
  letter-spacing: -0.02em;
}

.doctor-text strong {
  font-weight: 800; /* ✅ 굵기만 신경 */
  color: #2a2a2a;
}

/* 이름/직함 블록 */
.doctor-badge {
  position: absolute;
  left: 22px;
  top: 290px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.doctor-badge--right {
  left: auto;
  right: 22px;
}

.badge-bar {
  width: 8px;
  height: 58px;
  background: #1198d6;
  border-radius: 2px;
}

.badge-role {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.badge-name {
  font-size: 28px;
  font-weight: 800;
  color: #3a3a3a;
  letter-spacing: -0.03em;
}

/* 프로필 버튼 */
.btn-profile {
  margin-top: 16px;
  border: 0;
  background: #efefef;
  color: #1198d6;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* ✅ 원장님 사진: 화면(섹션) 하단에 딱 붙이기 */
.doctor-photo {
  position: absolute;
  bottom: 0;
  width: min(560px, 86vw);
  height: auto;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

/* 김민식: 오른쪽 / 오진아: 왼쪽 */
.doctor-card--kim .doctor-photo {
  right: 18px;
}
.doctor-card--oh .doctor-photo {
  left: 18px;
}
/* 두 번째 의사 소개(오진아)만 오른쪽 정렬 */
.doctor-card--oh .doctor-copy {
    text-align: right;
  }
  
  /* 이름/직함 배지 안의 텍스트도 오른쪽 정렬 */
  .doctor-card--oh .badge-text {
    text-align: right;
  }
  
  /* 배지 내부 요소 정렬 보정 */
  .doctor-card--oh .doctor-badge {
    justify-content: flex-end;
  }
  
  /* 파란 바 + 텍스트 순서 유지하면서 오른쪽 붙이기 */
  .doctor-card--oh .badge-bar {
    order: 2;
  }
  
  .doctor-card--oh .badge-text {
    order: 1;
  }
  
/* ===== 프로필 모달 (네모박스 70% 투명) ===== */
.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
}

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

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* ✅ 네모 박스: 70% 투명 */
.profile-box {
  position: relative;
  width: min(560px, calc(100% - 40px));
  margin: 16vh auto 0;
  padding: 22px 20px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7); /* 🔥 70% 투명 */
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.profile-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.profile-list {
  list-style: disc;
  padding-left: 18px;
  color: #2a2a2a;
  font-size: 15px;
  line-height: 1.7;
}


/* PC 미세 조정 */
@media (min-width: 1024px) {

    
  .doctor-card {
    padding: 72px 40px 0;
  }

  .doctor-text {
    font-size: 26px;
  }

  .doctor-badge {
    top: 330px;
    left: 40px;
  }
  .badge-bar {
    width: 10px;
    height: 80px;
    background: #1198d6;
    border-radius: 2px;
  }
  .doctor-badge--right {
    right: 40px;
  }

  .doctor-photo {
    width: 600px;
  }
  .badge-role {
    font-size: 20px;
  }
  
  .badge-name {
    font-size: 45px;
  }
}

/* ===== Equipment ===== */
.equipment {
    background: #fff;
    padding: 40px 0 60px;
  }
  
  .equipment-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;    
  }
  
  .equipment-title {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }
  .equipment-sub {
    font-size: 14px;
    font-weight: 500;
    color: #777;
    line-height: 1.4;
    margin-bottom: 18px;
  }
  .equipment-divider {
    height: 1px;
    background: #e7e7e7;
    margin-bottom: 16px;
  }
  
  /* ✅ 모바일 레이아웃: 스샷처럼 2열, CT 크게 */
  .equipment-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  
    /* 4행 구성 */
    grid-template-rows: 160px 160px 160px 160px;
  
    /* 영역 배치 */
    grid-template-areas:
      "scan ct"
      "chair ct"
      "tmd piezo"
      "painless steril";
  }
  
  /* 영역 매핑 */
  .eq-scan   { grid-area: scan; }
  .eq-ct     { grid-area: ct; }
  .eq-chair  { grid-area: chair; }
  .eq-tmd   { grid-area: tmd; }
  .eq-piezo  { grid-area: piezo; }
  .eq-painless { grid-area: painless; }
  .eq-steril { grid-area: steril; }
  
  .eq-card {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  }
  
  /* ✅ 배경 이미지 꽉 차게 */
  .eq-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
  }
  
  /* ✅ 텍스트 오버레이 */
  .eq-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px 18px;
    pointer-events: none;
    /* 사진 위 글씨 가독성용 아주 약한 그라데이션 */
  }
  
  .eq-text {
    font-size: 14px;
    font-weight: 600; /* ✅ 강조 */
    color: #eeeeee;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9); 

  }
  
  /* ===== PC (1024+) 화면 꽉 차게 ===== */
  @media (min-width: 1024px) {
    .equipment-grid {
      display: grid;
      gap: 18px;
      grid-template-columns: repeat(12, 1fr);
  
      /* ✅ PC에서 행 높이를 명확히 줘서 찌그러짐 방지 */
      grid-template-rows: 200px 200px 220px;
  
      grid-template-areas:
        "scan scan scan scan scan scan ct ct ct ct ct ct"
        "chair chair chair chair chair chair ct ct ct ct ct ct"
        "tmd tmd tmd piezo piezo piezo painless painless painless steril steril steril";
    }
  
    /* ✅ 카드가 셀을 100% 채우게 */
    .eq-card {
      width: 100%;
      height: 100%;
    }
  
    .eq-bg {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    /* 텍스트 크기 */
    .eq-text {
      font-size: 20px;
    }
  }
  

  /* ===== Space ===== */
.space {
    background: #fff;
    padding: 34px 0 70px;
  }
  
  .space-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
  }
  
  .space-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }
  
  .space-divider {
    height: 1px;
    background: #e7e7e7;
    margin-bottom: 18px;
  }
  
  /* 슬라이더 래퍼 */
  .space-slider {
    position: relative;
  }
  
  /* 뷰포트: 모바일은 스와이프(가로 스크롤) */
  .space-viewport {
    border-radius: 26px;
    background: #f2f2f2;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  
    /* 스샷처럼 큰 사각형 */
    height: 520px;
  }
  
  /* 스크롤바 숨김(모바일 깔끔하게) */
  .space-viewport::-webkit-scrollbar {
    display: none;
  }
  .space-viewport {
    scrollbar-width: none;
  }
  
  /* 트랙 */
  .space-track {
    display: flex;
    height: 100%;
  }
  
  /* 한 장씩 꽉 차게 */
  .space-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    margin: 0;
    position: relative;
  }
  
  .space-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* PC 화살표 */
  .space-nav {
    display: none; /* 모바일에서는 숨김 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #1198d6;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
  
  .space-prev { left: -12px; }
  .space-next { right: -12px; }
  
  .space-nav:active {
    transform: translateY(-50%) scale(0.96);
  }
  
  /* 도트 */
  .space-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
  }
  
  .space-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: #000;
    opacity: 0.25;
    cursor: pointer;
  }
  
  .space-dot.is-active {
    opacity: 1;
  }
  
  /* ===== PC ===== */
  @media (min-width: 1024px) {
    .space-inner {
      max-width: 1200px;
      padding: 0 32px;
    }
  
    .space-viewport {
      height: 560px;
      overflow: hidden; /* PC는 버튼으로 넘길 거라 스크롤 숨김 */
    }
  
    .space-nav {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }
  
 /* ===== Location ===== */
.location {
    background: #fff;
    padding: 34px 0 80px;
    scroll-margin-top: var(--header-height);
  }
  
  .location-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
  }
  
  /* CTA */
  .location-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }
  
  .cta-card {

        border-radius: 18px;
        padding: 20px 14px;
        display: flex;
      
        /* ⭐ 핵심 변경 */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
      
        gap: 10px;
        text-decoration: none;
        min-height: 110px;
      
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  
  .cta-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  .cta-kakao { background: #ffd35c; }
  .cta-naver { background: #67b56a; }
  
  .cta-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
  }
  
  .cta-text {
    color: rgba(0,0,0,0.75);
  }
  
  .cta-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  
  .cta-sub {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  /* 제목 */
  .location-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 22px 0 10px;
    letter-spacing: -0.02em;
  }
  
  /* 지도: 반응형 */
  .location-map {
    border-radius: 18px;
    overflow: hidden;
    background: #f2f2f2;
    width: 100%;
    aspect-ratio: 16 / 9;   /* 모바일에 안정적 */
  }
  
  /* ✅ roughmap 내부 iframe 강제 100% */
  .root_daum_roughmap,
  .root_daum_roughmap iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
  }
  
  /* 진료시간 */
  .location-hours {
    margin-top: 10px;
  }
  
  .hours-line {
    height: 2px;
    background: #2f6fa7;
    opacity: 0.85;
  }
  
  .hours-grid {
    padding: 16px 6px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  
  .hours-left {
    display: grid;
    gap: 12px;
  }
  
  .hours-row {
    display: grid;
    grid-template-columns: 140px 1fr; /* ✅ 간격 맞추는 핵심 */
    align-items: baseline;
    column-gap: 18px;
  }
  
  .hours-day {
    font-size: 16px;
    font-weight: 600;
    color: #2f6fa7;
    letter-spacing: -0.02em;
  }
  
  .hours-time {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  
  .hours-note {
    background: #f3f3f3;
    border-radius: 10px;
    padding: 12px 14px;
    color: #666;
  }
  
  .hours-note-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  
  .hours-note-sub {
    font-size: 12px;
    font-weight: 500;
  }
  
  /* ===== PC ===== */
  @media (min-width: 1024px) {
    .location-inner {
      max-width: 1200px;
      padding: 0 32px;
    }
  
    .location-cta {
      gap: 14px;
      margin-bottom: 34px;
    }
  
    .cta-card {
      padding: 24px 22px;
      min-height: 120px;
    }
  
    .cta-icon {
      width: 54px;
      height: 54px;
    }
  
    .cta-title { font-size: 18px; }
    .cta-sub { font-size: 14px; }
  
    .location-map {
      aspect-ratio: 16 / 7;
    }
  
    .hours-grid {
      grid-template-columns: 1fr 320px;
      gap: 22px;
    }
  
    .hours-row {
      grid-template-columns: 170px 1fr;
    }
  
    .hours-day,
    .hours-time {
      font-size: 20px;
    }
  }
  /* ===== Footer ===== */
.footer {
    background: #f7f7f7;
    padding: 36px 16px;
    border-top: 1px solid #e6e6e6;
    margin-top: 60px;
  }
  
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }
  
  .footer-address {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
  }
  
  .footer-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
  }
  
  .footer-info a {
    color: #1198d6;
    text-decoration: none;
    font-weight: 500;
  }
  
  .footer-info a:hover {
    text-decoration: underline;
  }
  
  .footer-copy {
    font-size: 12px;
    color: #999;
  }
  
  .divider {
    margin: 0 6px;
    color: #ccc;
  }
  
  /* PC */
  @media (min-width: 1024px) {
    .footer {
      padding: 50px 20px;
    }
  
    .footer-address {
      font-size: 16px;
    }
  
    .footer-info {
      font-size: 14px;
    }
  }
  
  /* ===== Cases ===== */
.cases {
    background: #fff;
    padding: 38px 0 80px;
    scroll-margin-top: var(--header-height);
  }
  
  .cases-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
  }
  
  .cases-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  
  .cases-sub {
    font-size: 12px;
    font-weight: 500;
    color: #777;
    line-height: 1.4;
    margin-bottom: 5px;
  }
  
  /* 모자이크 그리드 (모바일 기본) */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
    gap: 5px;
  }
  
  /* 카드 */
  .case-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f2f2f2;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  
  .case-card.in-view {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* 이미지 */
  .case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  
  /* 감성 오버레이 */
  .case-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px 14px;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.08),
      rgba(0,0,0,0)
    );
  }
  
  .case-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.35);
  }
  
  .case-kind {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: -0.02em;
  }
  
  .case-title2 {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
  
  /* 모바일 터치 피드백 */
  @media (hover: none) {
    .case-card:active img {
      opacity: 0.92;
      transform: scale(1.06);
    }
  }
  
  /* PC hover */
  @media (hover: hover) {
    .case-card:hover img {
      opacity: 0.92;
      transform: scale(1.06);
    }
  }
  
  /* ===== 모자이크 크기 패턴 (JS가 class 부여) ===== */
  .case--big { grid-column: span 2; grid-row: span 2; }     /* 큰 대표 */
  .case--tall { grid-row: span 2; }                         /* 세로 */
  .case--wide { grid-column: span 2; }                      /* 가로 */
  .case--small { grid-column: span 1; grid-row: span 1; }   /* 기본 */
  

    @media (min-width: 1024px) {
        .cases {
            height: 100vh;
        }
        .cases-inner {
          max-width: 1200px;
          padding: 0 32px;
        }
      
        .cases-grid {
          grid-template-columns: repeat(12, 1fr); /* ✅ 12칸으로 */
          grid-auto-rows: 220px;
          gap: 14px;
      
          width: 100%;
          overflow: hidden; /* 혹시 모를 1px 튐 방지 */
        }
      
        /* ✅ 12칸 기준 span 재정의 (배치 안정적) */
        .case--big  { grid-column: span 6; grid-row: span 2; }  /* 50% */
        .case--tall { grid-column: span 3; grid-row: span 2; }  /* 25% */
        .case--wide { grid-column: span 6; grid-row: span 1; }  /* 50% */
        .case--small{ grid-column: span 3; grid-row: span 1; }  /* 25% */
      
        .case-title2 { font-size: 20px; }
      }
      
      /* ===== Case Detail ===== */

.case-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 20px 80px;
    line-height: 1.6;
  }
  
  /* 제목 */
  .case-hero h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  
  .case-sub {
    color: #fff;
    font-size: 16px;
  }
  

  /* ===== Case hover/touch color reveal ===== */

/* 기본: 파란 오버레이 50% */
.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 152, 214, 0.5); /* #1198d6 50% */
    opacity: 1;
    transition: opacity 220ms ease;
    z-index: 2;
  }
  
  /* 기존 텍스트 오버레이는 위에 있어야 하니 z-index 조정 */
  .case-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* ✅ 파란 오버레이보다 위 */
  }
  
  /* 이미지는 제일 아래 */
  .case-card img {
    position: relative;
    z-index: 1;
  }
  
  /* PC: hover 하면 파란 오버레이 사라짐(원색 노출) */
  @media (hover: hover) {
    .case-card:hover::before {
      opacity: 0;
    }
  }
  
  /* 모바일: JS가 .is-revealed 붙이면 파란 오버레이 사라짐 */
  .case-card.is-revealed::before {
    opacity: 0;
  }
  
  /* 터치 피드백(선택) */
  @media (hover: none) {
    .case-card:active img {
      transform: scale(1.03);
    }
  }
  
  .cases-hint {
    display: block;
    margin: 0 0 14px;
    font-size: 10px;
    font-weight: 500;
    color: #6c7a86
    letter-spacing: -0.02em;
  }
  
  /* PC에서는 숨김 */
  @media (min-width: 1024px) {
    .cases-hint {
      display: none;
    }
  }

  