:root {
  --navy: #0d2a58;
  --blue: #3f72c5;
  --blue-soft: #eef6ff;
  --line: #dde5ef;
  --ink: #1a2b42;
  --muted: #66758b;
  --paper: #ffffff;
  --warm: #f8f3eb;
  --shadow: 0 20px 70px rgba(22, 49, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 114, 197, 0.12), transparent 24rem),
    linear-gradient(180deg, #fbfcfe, #ffffff 34%, #faf7f1);
}

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

.page-shell {
  width: min(1180px, calc(100% - 1.4rem));
  margin: 1rem auto;
  overflow: hidden;
  border: 1px solid #cdd7e5;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 0 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.logo {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
}

.menu-button {
  display: inline-grid;
  gap: 0.25rem;
  width: 2.3rem;
  height: 2.3rem;
  place-content: center;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 37rem;
  padding: 3.4rem 1.35rem 2rem;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.sample-note {
  margin: 0 0 1.5rem;
  color: rgba(13, 42, 88, 0.58);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1,
h2 {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.7rem;
  font-size: clamp(2.05rem, 8vw, 3.2rem);
  line-height: 1.42;
}

.desktop-line {
  display: none;
}

.mobile-line {
  display: inline;
}

h2 {
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 1.35;
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.96rem;
  line-height: 1.35;
}

p {
  color: var(--muted);
}

.hero-actions {
  display: grid;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
}

.visual {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #eef4f8;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.visual::before,
.visual::after {
  position: absolute;
  content: "";
  z-index: -1;
}

.clinic-visual {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0 44%, rgba(255, 255, 255, 0.58) 64%, rgba(255, 255, 255, 0.04)),
    url("./assets/hero-clinic.jpg");
  background-position: center;
}

.clinic-visual::before {
  display: none;
}

.clinic-visual::after {
  display: none;
}

.image-pair {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
}

.image-pair .visual {
  min-height: 13rem;
}

.smile-visual {
  background-image: url("./assets/smile-closeup.jpg");
}

.shade-visual {
  background-image: url("./assets/shade-guide.jpg");
}

.shade-visual::before {
  display: none;
}

.section {
  padding: 1.8rem 1.25rem;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title h2 {
  margin: 0;
  white-space: nowrap;
}

.section-title span {
  height: 1px;
  background: var(--line);
}

.treatment-grid {
  display: grid;
  gap: 0.85rem;
}

.treatment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 49, 91, 0.06);
}

.treatment-card .visual {
  min-height: 8.6rem;
  border-radius: 0;
}

.treatment-card h3,
.treatment-card p {
  padding-right: 1rem;
  padding-left: 1rem;
  text-align: center;
}

.treatment-card h3 {
  margin-top: 0.85rem;
}

.treatment-card p {
  min-height: 3.4rem;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
}

.veneer-visual,
.ceramic-visual,
.implant-visual {
  background-color: #f7fbfd;
}

.veneer-visual::before,
.ceramic-visual::before {
  display: none;
}

.veneer-visual {
  background-image: url("./assets/laminate-veneers.jpg");
}

.whitening-visual {
  background-image: url("./assets/whitening-led.jpg");
}

.whitening-visual::before {
  display: none;
}

.ceramic-visual {
  background-image: url("./assets/ceramic-crowns.jpg");
}

.gum-visual {
  background-image: url("./assets/gumline-smile.jpg");
}

.implant-visual::before {
  display: none;
}

.implant-visual {
  background-image: url("./assets/aligner-implant.jpg");
}

.section-photo {
  min-height: 13rem;
  margin-bottom: 1.15rem;
}

.consult-visual {
  background-image: url("./assets/consult-room.jpg");
}

.previsit-visual {
  background-image: url("./assets/previsit-flatlay.jpg");
}

.about,
.contact {
  margin: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.9));
}

.about-grid {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.about-grid article,
.support-grid article {
  padding: 0.75rem;
}

.circle-icon,
.line-icon,
.small-icon,
.info-icon,
.contact-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  color: var(--navy);
}

.circle-icon {
  width: 4.8rem;
  height: 4.8rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #edf3fb;
}

.circle-icon::before,
.line-icon::before,
.small-icon::before,
.info-icon::before,
.contact-icon::before {
  content: "";
  display: block;
}

.heart::before {
  width: 1.7rem;
  height: 1.3rem;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 0 0 1.1rem 1.1rem;
  transform: rotate(-18deg);
}

.chat::before {
  width: 1.8rem;
  height: 1.35rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0.5rem 0.5rem 0 -0.34rem currentColor;
}

.plan::before,
.calendar-large::before {
  width: 1.9rem;
  height: 2rem;
  border: 3px solid currentColor;
  border-radius: 5px;
  background: repeating-linear-gradient(0deg, transparent 0 0.42rem, rgba(13, 42, 88, 0.18) 0.42rem 0.55rem);
}

.support-band {
  margin: 1.2rem;
  padding: 2rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef8ff, #f6fbff);
}

.support-grid {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.line-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.7rem;
  color: var(--blue);
}

.plane::before {
  width: 3rem;
  height: 3rem;
  clip-path: polygon(50% 0, 62% 44%, 100% 54%, 64% 66%, 54% 100%, 43% 66%, 8% 54%, 45% 44%);
  background: currentColor;
  transform: rotate(45deg);
}

.document::before {
  width: 2.35rem;
  height: 2.8rem;
  border: 4px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 0.75rem 0 rgba(63, 114, 197, 0.12);
}

.precheck {
  margin: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.check-grid {
  display: grid;
  gap: 0.75rem;
}

.check-grid article {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.1rem 0.7rem;
  min-height: 5.4rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.check-grid h3,
.check-grid p {
  margin: 0;
}

.check-grid p {
  grid-column: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
}

.small-icon {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
}

.small-icon::before {
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.grid::before,
.card::before,
.image::before {
  border-radius: 4px;
}

.medical-note {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.86rem;
  background: var(--warm);
}

.faq-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 0.9rem 2.5rem 0.9rem 1rem;
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.faq-list summary::before {
  content: "Q.";
  margin-right: 0.45rem;
}

.faq-list summary::after {
  position: absolute;
  right: 1rem;
  content: "+";
}

.faq-list p {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
}

.access-card {
  display: grid;
  gap: 1rem;
}

.street-visual {
  min-height: 14rem;
  background-image: url("./assets/apgujeong-street.jpg");
}

.street-visual::before {
  display: none;
}

.street-visual::after {
  display: none;
}

.access-info {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.address {
  color: var(--ink);
  font-weight: 700;
}

.info-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.info-row p {
  margin: 0;
  font-size: 0.88rem;
}

.info-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
}

.contact {
  text-align: center;
}

.contact > p {
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.contact-grid {
  display: grid;
  gap: 0.75rem;
}

.contact-grid a {
  display: grid;
  gap: 0.25rem;
  min-height: 7rem;
  place-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.contact-grid strong {
  color: var(--navy);
}

.contact-grid small {
  color: var(--muted);
}

.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
}

.phone::before {
  width: 1.5rem;
  height: 1.5rem;
  border: solid currentColor;
  border-width: 0 0 0.45rem 0.45rem;
  border-radius: 0 0 0 1rem;
  transform: rotate(-45deg);
}

.web::before,
.globe::before {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0.42rem 0 0 -0.32rem currentColor, inset -0.42rem 0 0 -0.32rem currentColor;
}

.calendar::before {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.kakao-badge {
  display: inline-grid;
  width: 2.9rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #1b1b1b;
  font-size: 0.64rem;
  font-weight: 900;
  background: #ffe100;
}

.instagram-dot {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e34d8b;
  border-radius: 9px;
  background: radial-gradient(circle at 68% 30%, #f6a23a 0 0.18rem, transparent 0.2rem);
}

.sample-footer {
  margin: 1rem 0 0;
  font-size: 0.78rem;
}

@media (max-width: 719px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 44rem;
    padding-top: 4.4rem;
  }

  .hero-actions {
    margin-top: 2rem;
  }

  .image-pair {
    grid-template-columns: 1fr 1fr;
  }

  .image-pair .visual {
    min-height: 10.2rem;
  }

  .shade-visual {
    display: none;
  }

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

  .treatment-card.wide {
    grid-column: 1 / -1;
  }

  .about-grid,
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .about-grid article,
  .support-grid article {
    padding: 0.45rem 0.15rem;
  }

  .about-grid p,
  .support-grid p {
    font-size: 0.68rem;
  }

  .about-grid h3,
  .support-grid h3 {
    font-size: 0.77rem;
  }

  .circle-icon {
    width: 3.7rem;
    height: 3.7rem;
  }

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

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

@media (min-width: 720px) {
  .page-shell {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .menu-button {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .hero {
    min-height: 30rem;
    padding: 3rem 3.8rem;
    align-items: center;
  }

  .hero-content {
    max-width: 43rem;
  }

  h1 {
    margin-bottom: 1.45rem;
    font-size: clamp(2rem, 3.3vw, 2.75rem);
    line-height: 1.5;
  }

  .desktop-line {
    display: inline;
  }

  .mobile-line {
    display: none;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 32rem;
  }

  .image-pair {
    grid-template-columns: 1fr 1fr;
    padding: 1.6rem 2.4rem 1rem;
  }

  .section {
    padding: 1.9rem 2.4rem;
  }

  .treatment-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .treatment-card.wide {
    grid-column: auto;
  }

  .about,
  .contact,
  .precheck,
  .support-band {
    margin-right: 2.4rem;
    margin-left: 2.4rem;
  }

  .about-grid,
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .check-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .access-card {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
