:root {
  --ink: #463d37;
  --green: #238D55;
  --deep: #238D55;
  --sage: #f6eee7;
  --cream: #fdf8f4;
  --paper: #fffefd;
  --line: rgba(17, 17, 17, 0.18);
}

/* 보유장비 */
.equipment-list {
  max-width: 1060px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.equipment-item {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  
}

.equipment-photo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px;
  aspect-ratio: 1 / 1;
  padding: 18px;
  color: #6a5e51;
  background: linear-gradient(145deg, #f3eee7, #dfcfb9);
}

.equipment-photo span,
.equipment-photo small {
  font-size: 11px;
}

.equipment-copy h2 {
  margin: 0 0 12px;
  font: 400 30px Georgia, "Batang", serif;
}

.equipment-copy p {
  max-width: 680px;
  margin: 0;
  color: #655b50;
  font-size: 14px;
  line-height: 2;
}

.equipment-copy p + p {
  margin-top: 9px;
}

@media (max-width: 640px) {
  .equipment-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .equipment-copy {
    order: 1;
  }

  .equipment-photo {
    order: 2;
    width: 100%;
    max-width: 300px;
  }
  .brand-wordmark {
    width: 125px;
  }

  .about-directory-item {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 14px;
    padding: 24px 0;
  }

}

/* 기본 설정 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  word-break: keep-all;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 헤더 */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 0 4vw;
  background: rgba(255, 254, 253, 0.94);
  
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand > span:last-child,
.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand b {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand small {
  color: #111111;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 10px;
  line-height: 1.4;
}

.logo {
  display: block;
  flex: 0 0 70px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: url("images/soo-logo-sbu.png") center / contain no-repeat;
  font-size: 0;
}

.logo::before,
.logo::after,
.logo i {
  display: none;
}

/* PC 메뉴 */

.header nav {
  position: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  transform: translateX(30px);
  gap: 0 32px;
  min-width: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
 
}

.header nav > a,
.nav-group > a {
  display: block;
  padding: 13px 0;
  border-bottom: 0;
}

.header nav a:hover,
.header nav a.active,
.nav-group > a.active {
  color: var(--green);
}

.nav-group {
  position: relative;
}

.subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  width: 178px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(70, 56, 43, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.2s;
}

.nav-group:hover .subnav,
.nav-group:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.subnav a,
.nav-group .subnav a {
  display: block;
  padding: 11px 18px;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.time-link {
  justify-self: end;
  font-size: 13px;
}

/* 햄버거 버튼 */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: 0.2s;
}

/* 메인 화면 */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  min-height: 0;
  padding: 5vh 7vw;
  overflow: hidden;
  background: linear-gradient(110deg, #fffefd 0 50%, #eaf8ef 50% 100%);
}

.hero-copy {
  justify-self: center;
  width: min(100%, 580px);
  
}

.eyebrow,
.title > p {
  margin: 0 0 22px;
  color: var(--deep);
  font: 12px Georgia, serif;
  letter-spacing: 0.17em;
  transform: translateX(16px);
}

.hero h1 {
  margin: 0;
  font: 400 clamp(56px, 7vw, 112px) / 1.05 Georgia, "Batang", serif;
  letter-spacing: -0.07em;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}


.lead {
  margin: 36px 0 28px;
  color: #5d544a;
  font-size: 20px;
  line-height: 2;
  transform: translateX(16px);
}

.more {
  display: inline-block;
  padding-bottom: 9px;
  border-bottom: 1px solid;
  font-size: 14px;
  font-weight: 700;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(54vw, 720px);
}

.hero-logo-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

/* 메인 로고 크기 */
.hero-logo-group img {
  display: block;
  width: min(40vw, 660px);
  height: auto;
  flex-shrink: 0;
}

/* DERMATOLOGY · CARE */
.hero-logo-group small {
  display: block;
  margin: 0;
  color: var(--deep);
  font: 10px Georgia, serif;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;

  /* 글씨만 위쪽으로 이동 */
  transform: translateY(clamp(-60px, -4vw, -30px));
}
/* 공통 섹션 */

.section {
   padding: 10px 7vw 130px;
}

.title h2 {
  margin: 0;
  font: 400 clamp(30px, 3vw, 45px) / 1.28 Georgia, "Batang", serif;
  letter-spacing: -0.05em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.section-head > p {
  max-width: 410px;
  color: #60675e;
  font-size: 16px;
  line-height: 1.8;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8vw;
  background: var(--cream);
}

.section-intro > p {
  max-width: 560px;
  margin: 0;
  color: #626a5f;
  font-size: 19px;
  line-height: 1.8;
}


/* 병원 소개 */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5vw;
  min-height: 380px;
  padding: 30px 8vw 42px;
  background:#fafbfc;
  
}

.number {
  color: var(--green);
  font: 15px Georgia, serif;
}

.copy {
  padding-top: 0;
}

.copy > p,
.doctor > div:last-child > p:not(.profile-label):not(.doctor-credential) {
  margin: 0 0 20px;
  color: #596057;
  font-size: 16px;
  line-height: 2;
}

#greetingText {
  white-space: pre-line;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.03em;
}

#greetingText strong {
  color: var(--ink);
  font-weight: 700;
}


/* 의료진 */

.doctor {
  display: block;
  max-width: none;
  margin: 0;
  padding-top: 90px;
  padding-bottom: 90px;
  background: var(--paper);
}

.photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 4 / 5;
  color: var(--deep);
  background: linear-gradient(145deg, #eee8df, #ded1c0);
  background-position: center;
  background-size: cover;
}

.doctor .photo {
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.photo.has-image > * {
  display: none;
}

.logo.big {
  width: 105px;
  height: 105px;
  font-size: 68px;
  opacity: 0.55;
}

.profile-label {
  display: block;
  margin: 42px 0 18px;
  color: var(--green);
  font: 10px Georgia, serif;
  letter-spacing: 0.14em;
}

.doctor h3 {
  margin: 0 0 22px;
  font: 400 clamp(30px, 3vw, 46px) / 1.4 Georgia, "Batang", serif;
}


.doctor dl {
  width: 85%;
  margin: 0 auto;
}

.doctor dl div {
  color: #222121;
  font-size: 23px;
  font-weight: 700;
  line-height: 2.5;
  letter-spacing: 0.2em;
  text-align: center;
}

.doctor-memberships {
  margin-top: 18px;
}


.doctor dt {
  font-weight: 700;
}

.doctor dd {
  margin: 0;
  color: #2b2c2b;
}

/* 진료 분야 */

.clinics {
  color: #493d35;
  background: #f4e8de;
}

.clinics .title > p {
  color: #a9795e;
}

.clinics .section-head > p {
  color: #725f54;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(126, 91, 70, 0.2);
  border-left: 1px solid rgba(126, 91, 70, 0.2);
}

.clinic-grid article {
  min-height: 300px;
  padding: 32px;
  border-right: 1px solid rgba(126, 91, 70, 0.2);
  border-bottom: 1px solid rgba(126, 91, 70, 0.2);
  transition: color 0.2s ease, background 0.2s ease;
}

.clinic-grid article:hover {
  color: var(--ink);
  background: var(--sage);
}

.clinic-grid article > span {
  color: #a9795e;
  font: 12px Georgia, serif;
}

.clinic-grid h3 {
  margin: 52px 0 18px;
  font: 400 30px Georgia, "Batang", serif;
}

.clinic-grid p {
  min-height: 65px;
  margin: 0;
  color: #746258;
  font-size: 15px;
  line-height: 1.75;
}

.clinic-grid article:hover p {
  color: #655a4d;
}

.clinic-grid small {
  display: inline-block;
  margin-top: 20px;
  color: #846d5f;
  font-size: 14px;
}

.clinic-grid article:hover small,
.clinic-grid article:hover .card-link {
  color: var(--deep);
}

.card-link {
  display: block;
  margin-top: 22px;
  color: #9d7259;
  font-size: 14px;
  font-weight: 700;
}

/* 메인 링크 영역 */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  width: 100%;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.quick-grid > a {
  min-height: 190px;
  padding: 26px 30px;
  background: var(--paper);
}

.quick-grid h2 {
  margin: 20px 0 16px;
  font: 400 28px Georgia, "Batang", serif;
}

.quick-grid p {
  color: #626a5f;
  font-size: 15px;
  line-height: 1.8;
}

/*메인 진료안내 -> 병원소개 -> 글씨 크기*/
.quick-grid b {
  display: inline-block;
  margin-top: 12px;
  font-size: 18px;
}

/* 시설 안내 */

.gallery {
  width: 100%;
}

.space-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--sage);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.space-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

.space-slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 560px;
  padding: 38px;
  color: var(--deep);
  background: linear-gradient(145deg, #efe7dc, #d9c6ae);
  background-position: center;
  background-size: cover;
}

.space-slide.has-image {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.space-slide.has-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.55)
  );
}

.space-slide span,
.space-slide b {
  position: relative;
  z-index: 1;
}

.space-slide span {
  font: 13px Georgia, serif;
}

.space-slide b {
  font: 400 clamp(32px, 3vw, 40px) Georgia, "Batang", serif;
}
.space-slider-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #ffffff;
  background: rgba(67, 68, 68, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
}

.space-slider-prev {
  left: 24px;
}

.space-slider-next {
  right: 24px;
}

.space-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.space-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
}

.space-slider-dot.active {
  width: 28px;
  background: #ffffff;
  border-radius: 10px;
}

/* 진료 운영시간 */

.hours {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3vw;
  max-width: 1800px;
  margin: 0 auto;
  padding: 70px 7vw;
  background:  #f6f8fa;
}

.hours h2 {
  margin: 0 0 22px;
  font: 400 clamp(34px, 3.7vw, 52px) Georgia, "Batang", serif;
}
#lunchTime {
  margin: 0 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
}

.hours-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 90px;
  min-height: 59px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.hours-table strong {
  font: 400 18px Georgia, serif;
}

.hours-table em {
  color: #f06060;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.reservation-box {
  margin-top: 38px;
  padding: 24px;
  background: rgba(252, 251, 249, 0.55);
  border: 1px solid var(--line);
}

/* 달력 */

.calendar-panel {
  grid-column: 1 / -1;
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.calendar-head h3 {
  margin: 0;
  font: 400 32px Georgia, "Batang", serif;
}

.calendar-head > p {
  margin: 0;
  font-size: 14px;
}

.calendar-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.month-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.month-card h4 {
  margin: 0 0 8px;
  font: 400 32px Georgia, "Batang", serif;
  white-space: nowrap;
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
  margin: 0 0 8px;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-10px);
}

.month-legend span {
  white-space: nowrap;
}

.month-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays > span {
  padding: 10px 0;
  text-align: center;
  font-size: 15px;
}

.calendar-weekdays > span:first-child {
  color: #b14843;
}

.calendar-day {
  position: relative;
  min-height: 108px;
  padding: 13px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.calendar-day > span {
  display: block;
  font-size: 18px;
}

.calendar-day > small {
  position: absolute;
  right: 10px;
  bottom: 11px;
  left: 10px;
  min-height: 1.2em;
  overflow: hidden;
  color: #6a5e51;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-day.sunday,
.calendar-day.holiday {
  background: #fff7f5;
}

.calendar-day.sunday > span,
.calendar-day.sunday > small,
.calendar-day.holiday > span,
.calendar-day.holiday > small {
  color: #b14843;
}

.calendar-day.morning > small {
  color: var(--deep);
}

.calendar-legend {
  display: none;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 20px;
  color: #eb0505;
  font-size: 16px;
  font-weight: 800;
  
}

.calendar-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
}

.holiday-dot,
.closed-dot {
  background: #b14843;
}

.morning-dot {
  background: var(--deep);
}

/* 위치 안내 */

.location-heading {
  width: 100%;
  padding: 85px 7vw 0px;
  background: var(--paper);
}
.parking-heading {
  padding-top: 8px;
}
.location-heading-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 10px;
  border-bottom: 0;
}

.location-heading-title > p {
  margin: 0 0 16px;
  color: var(--green);
  font: 11px Georgia, serif;
  letter-spacing: 0.18em;
}

.location-heading-title > h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(28px, 2.5vw, 42px) / 1.2 Georgia, "Batang", serif;
  letter-spacing: -0.04em;
}

.location-address {
  padding-top: 0;
  border-top: 0;
}

.location-address small {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font: 10px Georgia, serif;
  letter-spacing: 0.17em;
}

.location-address strong {
  display: block;
  color: var(--ink);
  font: 400 clamp(28px, 3vw, 43px) / 1.35 Georgia, "Batang", serif;
  letter-spacing: -0.04em;
}

.location-address p {
  margin: 20px 0 0;
  color: #626a5f;
  font-size: 13px;
  line-height: 1.8;
}

.location-map-section {
  width: 100%;
  padding: 0 7vw 40px;
  background: var(--paper);
  border-bottom: 0;
}
.map-image-link {
  position: relative;
  display: block;
  width: min(100%, 900px);
   height: clamp(260px, 46vw, 465px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--sage);
  border-bottom: 1px solid var(--line);
}

.location-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.map-image-link:hover .location-map-image {
  transform: scale(1.015);
}

.map-open-label {
  position: absolute;
  right: 25px;
  bottom: 0px;
  padding: 13px 18px;
  color: #ffffff;
  background: rgba(80, 59, 40, 0.88);
  font-size: 11px;
  font-weight: 700;
}

.map-image-link:hover .map-open-label {
  background: var(--green);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  min-height: clamp(150px, 17vw, 230px);
  padding: 26px;
  color: var(--deep);
  background: linear-gradient(145deg, #f3ede4, #ddcbb5);
}

.map-placeholder span {
  font: 12px Georgia, serif;
  letter-spacing: 0.18em;
}

.map-placeholder b {
  font: 400 clamp(28px, 4vw, 54px) Georgia, "Batang", serif;
}

.map-placeholder small {
  color: #596057;
}

/* 교통 · 주차 */

.transport {
  background:
    linear-gradient(var(--line), var(--line)) center top / calc(100% - 14vw) 1px no-repeat,
    var(--paper);
  border-top: 0;
}
.transport .section-head {
  margin-bottom: 0;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 0;
}

.transport-grid article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: auto;
  padding: 1px 0px 0;
  background: transparent;
  border: 0;
}

.transport-grid article > span {
  color: var(--green);
  font: 12px Georgia, serif;
}

.transport-copy small {
  display: block;
  color: var(--green);
  font: 10px Georgia, serif;
  letter-spacing: 0.16em;
}

.transport-copy h3 {
  margin: 8px 0 24px;
  font: 400 34px Georgia, "Batang", serif;
}

.transport-copy strong {
  display: block;
  font-size: 15px;
}

.transport-copy p {
  margin: 0;
  color: #626a5f;
  font-size: 21px;
  line-height: 1.8;
}
.parking-map-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 7px;
  color: var(--deep);
  border-bottom: 1px solid var(--deep);
  font-size: 12px;
  font-weight: 700;
}

.parking-map-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* 푸터 */

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 120px;
  padding: 30px 7vw 20px;
  column-gap: clamp(40px, 10vw, 160px);
  color: #313030;
  background: #f6f8fa;
}

footer .brand {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  justify-self: start;
}

.footer-info {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.footer-info p {
  margin: 0 0 5px;
  color: #313030;
  font-size: 16px;
  font-weight: 400;
}

.footer-info b {
  display: inline-block;
  width: 90px;
  color: #222;
  font-weight: 700;
}

footer > small {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin: 4px 0 0;
  color: #000000;
  font: 12px Georgia, serif;
}


/* 태블릿 */

@media (max-width: 900px) and (min-width: 641px) {
  .header {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    padding: 0 3vw;
  }

 .header nav {
  gap: 0 20px;
  font-size: 13px;
}

.header nav > a,
.nav-group > a {
  padding: 6px 0;
}

  .hero {
    grid-template-columns: 1fr;
  }

  .clinic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-heading {
    padding: 65px 5vw 55px;
  }

  .location-heading-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
  }

  .location-map-section {
    padding: 0 5vw 90px;
  }

  .transport-grid {
    grid-template-columns: 1fr;
  }
}

/* 휴대폰 */

@media (max-width: 640px) {
  .header {
    grid-template-columns: 1fr auto;
    min-height: 74px;
    padding: 0 18px;
  }

  .menu-toggle {
    position: relative;
    z-index: 50;
    display: block;
    justify-self: end;
  }

  .header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: none;
    width: min(360px, 100vw);
    max-height: calc(100vh - 74px);
    padding: 8px 22px 22px;
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .header.menu-open nav {
    display: block;
  }

  @media (min-width: 641px) {
    .header nav > a,
    .nav-group > a {
      padding: 8px 0 !important;
      border-bottom: 0 !important;
    }
  }


  .nav-group,
  .header.menu-open .nav-group {
    position: static;
    display: block;
  }

  .subnav,
  .header.menu-open .nav-group .subnav {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 4px 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-group .subnav a {
    padding: 11px 4px;
    color: #687065;
    border-bottom: 0;
  }

  .time-link {
    display: none;
  }

  .logo {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    font-size: 0;
  }

  .brand b {
    font-size: 17px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 700px;
    padding: 80px 22px;
  }

  .hero h1 {
    font-size: 51px;
  }

  .hero-art {
    height: 330px;
  }

  .section {
    padding: 86px 22px;
  }

  .title h2 {
    font-size: 35px;
  }

  .section-head {
    display: block;
    margin-bottom: 42px;
  }

  .section-head > p {
    margin-top: 24px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about {
    display: block;
    padding: 70px 22px;
  }

  .copy {
    padding-top: 30px;
  }

  .doctor {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 32px;
}

.doctor .photo {
  width: 100%;
  max-width: none;
  margin: 0;
}

.doctor dl {
  width: 100%;
  margin: 0;
}

.doctor dl div {
  color: #222;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
}
.clinic-grid {
  grid-template-columns: 1fr;
}

.quick-grid {
  grid-template-columns: 1fr;
}

.space-slide {
  min-height: 420px;
  padding: 26px;
}

.space-slider-button {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.space-slider-prev {
  left: 12px;
}

.space-slider-next {
  right: 12px;
}

.hours {
  grid-template-columns: 1fr;
  gap: 46px;
  padding: 86px 22px;
}

.hours-table > div {
  grid-template-columns: 1fr 1.15fr 70px;
  font-size: 14px;
}

.hours-table strong {
  font-size: 16px;
}

.hours-table em {
  font-size: 11px;
}

.calendar-panel {
  padding: 26px 18px;
}

.calendar-head {
  display: block;
}

.calendar-head > p {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
}

.calendar-pair {
  grid-template-columns: 1fr;
}

.calendar-day {
  min-height: 68px;
  padding: 8px;
}

.calendar-day > small {
  right: 5px;
  bottom: 7px;
  left: 5px;
  font-size: 9px;
}

.location-heading {
  padding: 45px 22px 40px;
}

.location-heading-inner {
  grid-template-columns: 1fr;
  gap: 42px;
  padding-bottom: 40px;
}

.location-heading-title > h2 {
  font-size: 38px;
}

.location-address {
  padding-top: 22px;
}

.location-address strong {
  font-size: 29px;
}

.location-map-section {
  padding: 0 22px 75px;
}

.location-map-image {
  height: 260px;
}

.map-open-label {
  right: auto;
  bottom: 0;
  left: 0;
  padding: 12px 16px;
  font-size: 11px;
}

.transport-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
}

.transport-grid article {
  min-height: auto;
  padding: 28px 24px;
}

footer {
grid-template-columns: 1fr;
grid-template-rows: auto auto auto;
justify-content: start;
align-items: center;
min-height: 0;
padding: 20px 22px 14px;
row-gap: 8px;
column-gap: 0;
}

footer .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.footer-info {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

footer > small {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  margin: 2px 0 0 96px;
}
}

.location-address h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 28px Georgia, "Batang", serif;
}

/*주소와 주차 불릿 모양을 정리*/
/* 주소 불릿 */
.location-address ul {
  margin: 0;
  padding-left: 20px;
  color: #626a5f;
  font-size: 23px;
  line-height: 1.7;
}

/* 주차안내 불릿 */
.transport-copy ul {
  margin: 26px 0 0;
  padding-left: 26px;
  color: #626a5f;
  font-size: 23px;
  line-height: 2.5;
}

.transport-copy ul b {
  color: var(--ink);
}

.transport.section {
  padding-top: 35px;
  padding-bottom: 35px;
}

.equipment-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.equipment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-wordmark {
  display: block;
  width: 142px;
  height: auto;
}

/* 레이어팝업*/
/* 공지 팝업 */

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(93, 72, 60, 0.30);
}

.notice-popup[hidden] {
  display: none;
}

.notice-popup__dialog {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  background: #fffdfa;
  box-shadow: 0 20px 55px rgba(48, 38, 31, 0.28);
}

.notice-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #433a32;
  background: rgba(255, 253, 250, 0.9);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.notice-popup__image {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: fill;
  object-position: center;
}

.notice-popup__content {
  padding: 30px 32px 26px;
  text-align: center;
}

.notice-popup__title {
  margin: 0 0 12px;
  color: #3f342b;
  font-family: Georgia, "Batang", serif;
  font-size: 25px;
  font-weight: 800;
}

.notice-popup__date {
  margin: 0 0 14px;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
}

.notice-popup__message {
  margin: 0;
  color: #f52626;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}

.notice-popup__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid #e8ddd1;
}

.notice-popup__hide-label {
  color: #000000;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.notice-popup__hide-label input {
  margin-right: 6px;
  accent-color: #58f82f;
}

.notice-popup__confirm {
  padding: 8px 14px;
  color: #fff;
  background: #0a0a0aa1;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 640px) {
  .notice-popup {
    padding: 18px;
  }

  .notice-popup__content {
    padding: 26px 22px 22px;
  }

  .notice-popup__title {
    font-size: 22px;
  }
}

/* 메인 장비 슬라이드 */

.equipment-showcase {
  overflow: hidden;
  padding: 92px 4vw 62px;
  background: #ffffff;
}

.equipment-showcase__heading {
  margin-bottom: 62px;
  text-align: center;
}

.equipment-showcase__heading p {
  margin: 0 0 12px;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
}

.equipment-showcase__heading h2 {
  margin: 0;
  color: #111111;
  font: 400 clamp(34px, 3.7vw, 52px) Georgia, "Batang", serif;
}

.equipment-slider {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.equipment-slider__button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #111111;
  background: #fffdfa;
  border: 1px solid #111111;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: 0.2s ease;
}

.equipment-slider__button:hover {
  color: #fff;
  background: #111111;
}

.equipment-slider__viewport {
  min-width: 0;
  overflow: hidden;
}

.equipment-slider__track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 0 2px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.equipment-slider__track.is-dragging {
  cursor: grabbing;
}
.equipment-slider__track::-webkit-scrollbar {
  display: none;
}

.equipment-card {
  flex: 0 0 calc((100% - 78px) / 4);
  min-width: 0;
  color: #111111;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
}

.equipment-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #111111;
  border-radius: 12px;
}

.equipment-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.equipment-card:hover .equipment-card__image img {
  transform: scale(1.04);
}

.equipment-card p {
  margin: 18px 0 14px;
  color: #111111;
  font: 14px Georgia, serif;
  letter-spacing: 0.08em;
}

.equipment-card h3 {
  position: relative;
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  color: #111111;
  font-size: 21px;
  font-weight: 600;
}

.equipment-card h3::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  content: "";
  background: #111111;
  border-radius: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .equipment-card {
    flex-basis: calc((100% - 26px) / 2);
  }

  .equipment-card__image {
    height: 310px;
  }
}

@media (max-width: 640px) {
  .equipment-showcase {
    padding: 72px 18px 46px;
  }

  .equipment-showcase__heading {
    margin-bottom: 48px;
  }

  .equipment-showcase__heading h2 {
    font-size: 36px;
  }

  .equipment-slider {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
  }

  .equipment-slider__button {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .equipment-slider__track {
    gap: 16px;
  }

  .equipment-card {
    flex-basis: 100%;
  }

  .equipment-card__image {
    height: 280px;

  }

  .equipment-card h3 {
    font-size: 19px;
  }
}

section:has(> #clinicGallery) {
  display: none;
}

@media (max-width: 640px) {
  .space .section-head > p {
    max-width: 520px;
    margin: 0 90px 0 auto;
    text-align: right;
    white-space: normal;
  }
}
.space .title .space-summary {
  margin: 20px 0 0;
  color: #222;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: -0.04em;
}

.doctor-profile-only {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.doctor .title h2 {
  margin: 0;
  color: #222;
  font-size: 45px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.doctor-name-bar {
  margin-right: 12px;
  color: var(--deep);
}
.doctor .doctor-credential {
  margin: 15px 0 15px;
  color: #222;
  font-size: 25px;
  font-weight: 700;
  line-height: 2.5;
  letter-spacing: 0.1em;
  
}

/* =========================
   주차 지도 전용 설정
========================= */

/* 주차 지도 전체 section */
.parking-map-link-box {
  width: min(100%, 760px);
  height: auto;
}

/* 주차 지도 박스 */
.parking-map-link-box .location-map-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 주차 지도 이미지 */
.parking-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* 주차 지도 네이버 버튼 */
.parking-map-label {
  position: absolute;
  right: 25px;
  bottom: 0;
}