:root {
  --ink: #1a1a1a;
  --muted: #6f6f6f;
  --line: rgba(26, 26, 26, 0.1);
  --bg: #faf9f7;
  --paper: #ffffff;
  --soft: #f3f1ec;
  --accent: #2f5f7a;
  --subhero: #d5dde4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, textarea, input, select { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 70px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: var(--gw-demo-bar-h, 56px);
  z-index: 40;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: #333;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active {
  box-shadow: inset 0 -1px 0 var(--ink);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.section { padding: 88px 0; }
.section-soft { background: var(--paper); }
.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0 0 16px;
  max-width: none;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.35;
  white-space: nowrap;
}
.section-head p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}
.section-head p + p {
  margin-top: 10px;
}

/* Inner page hero */
.page-hero {
  position: relative;
  min-height: min(52vh, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--subhero);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  object-position: center;
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 249, 247, 0.72) 0%, rgba(250, 249, 247, 0.28) 48%, transparent 72%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}
.page-hero-content h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.35;
  white-space: nowrap;
}
.page-hero-content .lead {
  margin: 16px 0 0;
  max-width: none;
  color: #333;
  font-size: 16px;
  white-space: nowrap;
}
.page-hero-content .back-link {
  display: inline-flex;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

/* Procedures */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.jump-nav a:hover { border-color: rgba(26, 26, 26, 0.28); }

.procedure {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.procedure:first-of-type { border-top: 0; padding-top: 0; }
.procedure-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}
.procedure-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.procedure-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
}
.procedure-copy h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.procedure-copy ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.procedure-copy .note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-band {
  padding: 48px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.82);
}
.notice-band h2 {
  margin: 0 0 14px;
  max-width: none;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.notice-band p {
  margin: 0;
  max-width: none;
  white-space: nowrap;
}
.notice-band p + p {
  margin-top: 12px;
}

.cta-band {
  padding: 72px 0;
  background: var(--paper);
}
.cta-band h2 {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.35;
  white-space: nowrap;
}
.cta-band p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  white-space: nowrap;
}

/* Clinic / doctors on subpage */
.doctor-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.doctor-block:first-of-type { border-top: 0; }
.doctor-block .photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--soft);
}
.doctor-block h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.doctor-block .role {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.doctor-block p { margin: 0 0 16px; color: var(--muted); }
.doctor-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.doctor-block li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}
.doctor-block li strong {
  color: var(--ink);
  font-weight: 600;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.space-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.space-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--soft);
}
.space-card .body {
  padding: 16px 18px 18px;
}
.space-card .label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.space-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Consultation */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-card {
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--line);
}
.process-card + .process-card {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.process-card .step {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.process-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.prompt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.prompt-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
}

.consult-form {
  max-width: 640px;
  display: grid;
  gap: 16px;
}
.consult-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.consult-form textarea,
.consult-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.consult-form .hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.consult-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.visit-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.visit-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.visit-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.visit-card a { border-bottom: 1px solid currentColor; }

.map-panel {
  margin-top: 28px;
  min-height: 280px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 95, 122, 0.08), transparent 50%),
    var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* Footer */
.site-footer {
  padding: 56px 0 40px;
  background: #111;
  color: rgba(255, 255, 255, 0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.site-footer .brand strong { color: #fff; }
.site-footer .brand span { color: rgba(255, 255, 255, 0.55); }
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.footer-note {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .procedure,
  .doctor-block,
  .process-grid,
  .space-grid,
  .visit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .process-card + .process-card {
    padding-left: 0;
    border-left: 0;
  }
  .page-hero { min-height: 42vh; }
  .page-hero-shade {
    background: linear-gradient(180deg, rgba(250, 249, 247, 0.2) 0%, rgba(250, 249, 247, 0.78) 100%);
  }
  .page-hero-content h1,
  .page-hero-content .lead,
  .section-head h2,
  .section-head p,
  .cta-band h2,
  .cta-band p,
  .notice-band h2,
  .notice-band p {
    white-space: normal;
  }
  .doctor-block li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .space-grid { grid-template-columns: 1fr; }
}
