:root {
  --ink: #10202b;
  --muted: #586672;
  --line: #d8e1e5;
  --paper: #ffffff;
  --soft: #f4f8f9;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --blue: #2563a8;
  --coral: #d95c48;
  --shadow: 0 20px 60px rgba(19, 43, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 225, 229, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  color: #2e3c46;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
}

.nav-button {
  padding: 8px 12px;
  border: 1px solid #b9d4d1;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f4fbfa;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: calc(100vh - 77px);
  background: linear-gradient(180deg, #f7fbfc, #fff);
}

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #d9e7e8;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 360ms ease, transform 600ms ease;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 22, 28, 0.12), rgba(9, 22, 28, 0));
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.dot {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dot.is-active {
  background: #fff;
}

.hero-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.lead {
  max-width: 580px;
  margin-bottom: 28px;
  color: #334651;
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
}

.button.secondary {
  color: var(--teal-dark);
  border-color: #b9d4d1;
  background: #fff;
}

.button.call {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 30px rgba(217, 92, 72, 0.2);
}

.button.checkup-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(37, 99, 168, 0.2);
  cursor: pointer;
}

.button.endoscopy-button {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(11, 79, 74, 0.2);
  cursor: pointer;
}

.button.bowel-button {
  color: #fff;
  background: #315aa8;
  box-shadow: 0 12px 30px rgba(49, 90, 168, 0.2);
  cursor: pointer;
}

.button.carotid-button {
  color: #fff;
  background: #7a4f9f;
  box-shadow: 0 12px 30px rgba(122, 79, 159, 0.2);
  cursor: pointer;
}

.button.thyroid-button {
  color: #fff;
  background: #2f7d5b;
  box-shadow: 0 12px 30px rgba(47, 125, 91, 0.2);
  cursor: pointer;
}

.button-icon {
  font-size: 18px;
  line-height: 1;
}

.cancer-icon {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  width: 22px;
  height: 22px;
  gap: 4px;
}

.cancer-icon i,
.checkup-strip-icon span {
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.cancer-icon i:nth-child(3) {
  grid-column: 1 / 3;
  justify-self: center;
}

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: 90px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.care-section,
.gallery-section {
  background: #fff;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.care-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 32, 43, 0.06);
}

.care-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.care-grid article:nth-child(2) .care-icon {
  background: var(--teal);
}

.care-grid article:nth-child(3) .care-icon {
  background: var(--coral);
}

.checkup-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 26px;
  border: 1px solid #c5dce7;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2f8fb, #ffffff);
  box-shadow: 0 10px 30px rgba(16, 32, 43, 0.06);
}

.checkup-strip h3 {
  margin-bottom: 6px;
}

.checkup-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.checkup-strip-icon {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  grid-template-rows: repeat(2, 22px);
  gap: 8px;
  width: 72px;
  height: 72px;
  align-content: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.checkup-strip-icon span:nth-child(3) {
  grid-column: 1 / 3;
  justify-self: center;
}

.endoscopy-strip {
  background: linear-gradient(135deg, #eef8f5, #ffffff);
}

.endoscopy-strip-icon {
  background: var(--teal-dark);
}

.bowel-strip {
  background: linear-gradient(135deg, #eef3fb, #ffffff);
}

.bowel-strip-icon {
  background: #315aa8;
}

.carotid-strip {
  background: linear-gradient(135deg, #f5f0fa, #ffffff);
}

.carotid-strip-icon {
  background: #7a4f9f;
}

.thyroid-strip {
  background: linear-gradient(135deg, #eef8f2, #ffffff);
}

.thyroid-strip-icon {
  background: #2f7d5b;
}

.care-grid p,
.notice-panel p,
.map-copy p,
.site-footer p {
  color: var(--muted);
}

.gallery-section {
  padding-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.gallery-grid figure {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ea;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 320ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid .gallery-contain {
  background: #eef4f5;
}

.gallery-grid .gallery-contain img {
  object-fit: contain;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 34px 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 32, 43, 0), rgba(16, 32, 43, 0.82));
  font-weight: 800;
}

.gallery-grid figcaption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-feature,
.gallery-feature img {
  min-height: 394px;
}

.visit-section {
  background: var(--soft);
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.notice-panel {
  padding: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.notice-panel p {
  color: #d8e5e9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #8ee1d8;
  font-weight: 800;
}

.visit-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visit-list strong {
  color: var(--teal-dark);
}

.location-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
  padding: 90px clamp(20px, 5vw, 72px);
  background: #ffffff;
}

.map-copy {
  align-self: center;
  max-width: 440px;
}

.map-preview {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 99, 168, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 168, 0.08) 1px, transparent 1px),
    #edf5f6;
  background-size: 56px 56px;
  box-shadow: var(--shadow);
}

.road {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(16, 32, 43, 0.06);
}

.road-one {
  left: -8%;
  top: 45%;
  width: 116%;
  height: 54px;
  transform: rotate(-8deg);
}

.road-two {
  left: 56%;
  top: -12%;
  width: 52px;
  height: 130%;
  transform: rotate(22deg);
}

.road-three {
  left: 8%;
  top: 14%;
  width: 42px;
  height: 86%;
  transform: rotate(-30deg);
  background: rgba(255, 255, 255, 0.74);
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 48%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 8px solid var(--coral);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 14px 30px rgba(217, 92, 72, 0.32);
}

.map-label {
  position: absolute;
  left: 52%;
  top: 51%;
  z-index: 2;
  transform: translate(-50%, 0);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #f8fafb;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.checkup-modal[hidden],
.endoscopy-modal[hidden],
.bowel-modal[hidden],
.carotid-modal[hidden],
.thyroid-modal[hidden] {
  display: none;
}

.checkup-modal,
.endoscopy-modal,
.bowel-modal,
.carotid-modal,
.thyroid-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.checkup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 43, 0.62);
}

.checkup-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkup-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.checkup-modal-header h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.checkup-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.checkup-jump a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #c8d8df;
  border-radius: 8px;
  background: #fff;
  color: #31444f;
  font-size: 14px;
  font-weight: 800;
}

.checkup-docs {
  overflow: auto;
  padding: 20px 24px 28px;
  scroll-behavior: smooth;
}

.checkup-docs figure {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.checkup-docs figcaption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f8fa;
  color: var(--teal-dark);
  font-weight: 800;
}

.checkup-docs img {
  width: 100%;
  height: auto;
}

.info-modal-panel {
  max-width: 980px;
}

.info-docs {
  overflow: auto;
  padding: 26px 28px 32px;
}

.info-docs section {
  margin-bottom: 26px;
}

.info-docs h3 {
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.info-docs p {
  color: #334651;
  font-size: 17px;
}

.info-visual {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07101a;
}

.info-visual img {
  width: 100%;
  height: auto;
}

.info-visual figcaption {
  padding: 10px 14px;
  color: #dbe8ee;
  background: #10202b;
  font-weight: 800;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-list strong {
  color: #7a4f9f;
}

.info-list span {
  color: #334651;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-cards article,
.info-note {
  padding: 20px;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid var(--line);
}

.info-cards h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.info-cards p,
.info-note p {
  margin-bottom: 0;
}

.tirads-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tirads-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 15px;
}

.tirads-table th,
.tirads-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.tirads-table th {
  color: #fff;
  background: #2f7d5b;
  font-weight: 800;
}

.tirads-table td:first-child {
  color: #2f7d5b;
  font-weight: 800;
  white-space: nowrap;
}

.tirads-table tr:last-child td {
  border-bottom: 0;
}

.tirads-table th:last-child,
.tirads-table td:last-child {
  border-right: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 52vh;
  }

  .hero-copy {
    padding: 36px 22px 48px;
  }

  .care-grid,
  .gallery-grid,
  .visit-layout,
  .location-section {
    grid-template-columns: 1fr;
  }

  .checkup-strip {
    grid-template-columns: 1fr;
  }

  .checkup-strip-icon {
    width: 58px;
    height: 58px;
  }

  .section,
  .location-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .nav a {
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-media {
    min-height: 360px;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a,
  .nav-button {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .checkup-modal-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .checkup-modal-header,
  .checkup-docs,
  .info-docs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .checkup-jump {
    padding-left: 14px;
    padding-right: 14px;
  }

  .info-list li,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .quick-facts div,
  .visit-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .care-grid article {
    min-height: auto;
  }

  .gallery-feature,
  .gallery-feature img {
    min-height: 300px;
  }

  .map-preview {
    min-height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}
