/* Existing s007 theme: white header, Nanum Square, blue/cyan, full-width sections. */
@font-face {
  font-family: "Nanum Square";
  src: url("/assets/fonts/NanumSquareR.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nanum Square";
  src: url("/assets/fonts/NanumSquareB.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #222;
  --green: #346cff;
  --muted: #666;
  --cream: #fff;
  --line: #ddd;
  --lime: #e9f3fa;
  --sans: "Nanum Square", "Malgun Gothic", sans-serif;
  --serif: var(--sans);
}
body {
  background: white;
  font-family: var(--sans);
}
.wrap {
  width: min(1200px, calc(100% - 60px));
}
.review {
  background: #f1f1f1;
  color: #666;
}
.header {
  background: white;
  backdrop-filter: none;
  box-shadow: 0 0 3px #0003;
}
.header-inner {
  height: 108px;
  gap: 25px;
}
.brand {
  min-width: 220px;
}
.brand img {
  width: 246px;
  height: auto;
}
.nav {
  gap: 0;
  font-size: 17px;
  font-weight: 700;
}
.nav a {
  padding: 8px 20px;
  border-right: 1px solid #bbb;
  white-space: nowrap;
}
.nav a:last-child {
  border: 0;
  padding-right: 0;
}
.nav a:hover,
.nav a[aria-current] {
  color: #f39200;
}
.nav .nav-call {
  display: none;
}
.button {
  border-radius: 0;
  background: #346cff;
  border-color: #346cff;
  padding: 14px 30px;
}
.button:hover {
  background: #174bd0;
}
.button.secondary {
  color: #234d8c;
  border-color: #234d8c;
}
.button.secondary:hover {
  background: #edf5ff;
}
.textlink {
  border-color: #7b9ec9;
  color: #254d80;
}
.eyebrow,
.kicker {
  color: #3762a0;
  letter-spacing: 1px;
}
.section h2,
.page-hero h1,
.page-body h2 {
  font-family: var(--sans);
  font-weight: 700;
}
.page-hero {
  background: #f2f5f8;
}
.page-hero h1 {
  color: #183f70;
}
.portrait {
  border-radius: 0;
}
.doctor-grid .portrait {
  background: #f6f5ef;
}
.footer {
  background: #0e0e0e;
  text-align: center;
  color: #eee;
}
.footer p,
.copyright {
  color: #ccc;
}
.footer .brand {
  background: white;
  padding: 12px;
  width: max-content;
}
.footer .brand img {
  width: 220px;
}
.footer-top {
  align-items: center;
}
.copyright {
  border-color: #333;
}
.mobile-bar a:last-child {
  background: #1d559a;
}
.notice {
  background: #f1f6fc;
  border-left-color: #4779b8;
  color: #526276;
}
.visit {
  background: #245587;
}
.empty-panel {
  background: #f0f5fa;
}
.map-panel {
  background: #eaf0f7;
  border-radius: 0;
  border-color: #cbd6e5;
}
.info-table th {
  background: #eef4fb;
}
.quick-float {
  position: fixed;
  right: 0;
  top: 38%;
  z-index: 35;
  display: grid;
  box-shadow: 0 0 10px #0001;
}
.quick-float a {
  width: 75px;
  padding: 15px 4px;
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
}
.quick-float b {
  display: block;
  color: #346cff;
  font-size: 23px;
  margin-bottom: 5px;
}
.quick-float a:first-child {
  background: #285d9b;
  color: white;
}
.quick-float a:first-child b {
  color: white;
}
.original-hero {
  background:
    linear-gradient(90deg, #14191ea1, #14191e32), /* 차콜 오버레이 */
    url("/assets/clinic_thum1.jpg") center center/cover no-repeat;
  min-height: 770px;
  display: flex;
  align-items: center;
  color: #ffffff;
}
.original-hero h1 {
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -1.6px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: #ffffff; /* 웜 화이트: 일반 글씨 */
}
.original-hero h1 strong {
  font-weight: 700;
  color: #ffffff;
}
.original-hero h1 .hero-accent {
  color: #e4cba6; /* 샴페인 골드: 강조 글씨 */
}
.original-hero p {
  color: white;
  font-size: 22px;
  line-height: 1.9;
}
.original-hero .hero-sign {
  font-size: 17px;
  margin-top: 32px;
}
.hero-sign b {
  font-size: 23px;
  margin-left: 12px;
  letter-spacing: 5px;
}
.original-doctor {
  background: #f6f5f0;
  padding: 90px 0 0;
}
.original-doctor .doctor-grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 45px;
  align-items: center;
}
.original-doctor h2 {
  font-size: 42px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -1.4px;
}
.original-doctor h2 strong {
  font-weight: 900;
}
.original-doctor .kicker {
  margin-bottom: 22px;
}
.original-doctor .doctor-name {
  padding-bottom: 20px;
  border-bottom: 1px solid #999;
}
.original-doctor .doctor-name strong {
  font-size: 43px;
}
.original-doctor .doctor-name span {
  font-size: 21px;
}
.original-doctor .credential-list {
  font-size: 16px;
  line-height: 2;
  color: #333;
}
.original-doctor .doctor-text {
  padding-bottom: 55px;
}
.original-doctor .portrait {
  aspect-ratio: 4/6.2;
  align-self: end;
}
.original-doctor .portrait img {
  top: -59.5%;
  width: 229%;
}
.original-section {
  padding: 110px 0;
}
.original-heading {
  text-align: center;
  margin: 0 auto 65px;
}
.original-heading .kicker {
  display: inline-block;
  border-top: 1px solid #252747;
  padding-top: 18px;
  min-width: 300px;
  margin-bottom: 27px;
  font-size: 15px;
}
.original-heading h2 {
  font-size: 43px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.original-heading h2 strong {
  font-weight: 900;
  color: #1d2e59;
}
.original-heading > p:last-child:not(.kicker) {
  font-size: 19px;
  line-height: 1.9;
  color: #666;
}
.wide-clinic {
  width: 100%;
  height: auto;
}
.original-principle {
  min-height: 680px;
  background:
    linear-gradient(#173d6840, #173d6840),
    url("/assets/clinic_thum2.jpg") center/cover;
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.principle-panel {
  background: #315b8eeb;
  padding: 75px 65px;
  text-align: center;
  color: white;
  max-width: 850px;
}
.principle-panel h2 {
  font-size: 37px;
  line-height: 1.6;
}
.principle-panel p {
  font-size: 21px;
  color: white;
  margin-top: 24px;
}
.principle-panel .cyan {
  color: #b8e7ff;
}
.principle-panel a {
  color: #fff;
  border-color: #b8d5ef;
  margin-top: 25px;
}
/*
.original-equipment {
  background: url("/assets/original/ms4_bg.jpg") center/cover no-repeat;
}
*/
.original-equipment .wrap {
  display: flex;
  justify-content: flex-end;
  min-height: 670px;
  align-items: center;
}
.original-equipment .wrap > div {
  width: 49%;
}
.original-equipment h2,
.original-sterilization h2 {
  font-size: 37px;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 32px;
}
.original-equipment p,
.original-sterilization p {
  font-size: 19px;
  line-height: 2;
}
.original-equipment .caption,
.original-sterilization .caption {
  font-size: 12px;
  margin-top: 20px;
}
/*
.original-sterilization {
  background: url("/assets/original/ms5_bg.jpg") center/cover no-repeat;
}
  */
.original-sterilization .wrap {
  min-height: 670px;
  display: flex;
  align-items: center;
}
.original-sterilization .wrap > div {
  width: 50%;
  text-align: center;
}
.big-check {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  background: #346cff;
  color: white;
  font-size: 49px;
  margin: 0 auto 30px;
}
.implant-intro {
  text-align: center;
}
.implant-visual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  position: relative;
  margin: 75px 0;
  min-height: 340px;
  align-items: center;
  gap: 0;
}
.implant-point {
  background: #062652;
  color: white;
  padding: 45px 12px;
  font-size: 20px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.implant-point:nth-child(2),
.implant-point:last-child {
  background: #0853a3;
  transform: translateY(55px);
}
.implant-point strong {
  font-size: 24px;
  margin-top: 7px;
}
.implant-art {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 340px;
  width: 160px;
  background: url("/assets/original/ms7_img.png") 50% 0 / auto 340px no-repeat;
  pointer-events: none;
}
.original-light {
  background: #f3f5f5;
}
.original-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.original-three article {
  padding: 35px 25px;
  background: #fff;
  border-top: 3px solid #3276c5;
}
.original-three span {
  font-size: 48px;
  color: #346cff;
  font-weight: 400;
}
.original-three h3 {
  font-size: 25px;
  font-weight: 700;
  margin: 14px 0;
}
.original-three p {
  font-size: 17px;
}
.original-blue {
  background: #164377;
  color: white;
}
.original-blue .original-heading h2,
.original-blue .original-heading h2 strong,
.original-blue .kicker {
  color: white;
}
.original-blue .kicker {
  border-color: #c5daf3;
}
.original-care-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.original-care-links a {
  border: 1px solid #ffffff55;
  text-align: center;
  padding: 35px 15px;
}
.original-care-links a:hover {
  background: #ffffff15;
}
.original-care-links strong {
  display: block;
  font-size: 26px;
  margin-bottom: 16px;
}
.original-care-links span {
  font-size: 14px;
  color: #cde5ff;
}
.original-hours {
  background: url("/assets/original/ms14_bg.jpg") center/cover no-repeat;
}
.hours-panel {
  background: #fffffff2;
  max-width: 850px;
  margin: auto;
  padding: 45px 100px;
}
.large-phone {
  font-size: 42px;
  font-weight: 700;
  display: block;
  text-align: center;
  color: #346cff;
  margin-bottom: 24px;
}
.hours-panel .hours th,
.hours-panel .hours td {
  font-size: 23px;
  padding: 15px 0;
  border-color: #ccc;
}
.hours-panel .hours tr:nth-child(2) {
  color: #346cff;
  font-weight: 700;
}
.hours-panel .note {
  font-size: 14px;
  color: #555;
  margin-top: 20px;
}
.hours-panel .actions {
  justify-content: center;
  margin-top: 30px;
}
.original-gallery .gallery-button {
  border-radius: 0;
}
.original-gallery .gallery-button > img {
  height: auto;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.gallery-thumbs button {
  padding: 0;
  border: 3px solid transparent;
  background: transparent;
  opacity: 0.6;
}
.gallery-thumbs button[aria-pressed="true"] {
  border-color: #346cff;
  opacity: 1;
}
.gallery-thumbs button:hover {
  opacity: 1;
}
.gallery-thumbs img {
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
}
.original-location {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  background: #f2f5f8;
  padding: 40px;
}
.original-location h3 {
  font-size: 27px;
  margin-bottom: 15px;
}
.original-location p {
  font-size: 18px;
  line-height: 1.9;
}
.center {
  text-align: center;
}
details {
  font-size: 18px;
}
details p {
  font-size: 16px;
}
.page-body .caption {
  font-size: 12px;
}
.page-body .doctor-grid {
  grid-template-columns: 0.9fr 1.1fr;
}
.page-body .portrait {
  aspect-ratio: 4/5.8;
}
.page-body .portrait img {
  top: -63%;
}
@media (max-width: 1250px) {
  .header-inner {
    height: 90px;
  }
  .nav a {
    font-size: 15px;
    padding: 5px 13px;
  }
  .brand {
    min-width: 190px;
  }
  .brand img {
    width: 200px;
  }
  .quick-float {
    display: none;
  }
  .original-hero {
    min-height: 650px;
  }
  .original-hero h1 {
    font-size: 39px;
  }
  .original-doctor h2 {
    font-size: 35px;
  }
  .original-doctor .credential-list {
    font-size: 14px;
  }
  .implant-point {
    font-size: 17px;
  }
  .implant-point strong {
    font-size: 20px;
  }
}
@media (max-width: 780px) {
  html {
    scroll-padding-top: 120px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    height: auto;
    display: block;
    padding: 16px 0 0;
  }
  .brand {
    display: flex;
    justify-content: center;
  }
  .brand img {
    width: 180px;
  }
  .menu-toggle {
    display: none;
  }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 16px 0 10px;
    box-shadow: none;
    justify-content: center;
    gap: 0;
    background: white;
  }
  .nav a {
    font-size: 10px;
    padding: 3px 7px;
    line-height: 1.4;
    text-align: center;
    border-color: #ddd;
    white-space: normal;
  }
  .nav a:last-child {
    padding-right: 7px;
  }
  .original-hero {
    min-height: 490px;
    background-position: 42% center;
  }
  .original-hero h1 {
    font-size: 27px;
    letter-spacing: -1.3px;
    line-height: 1.6;
  }
  .original-hero p {
    font-size: 17px;
  }
  .original-hero .hero-sign {
    font-size: 14px;
  }
  .hero-sign b {
    font-size: 20px;
  }
  .original-doctor {
    padding-top: 50px;
  }
  .original-doctor .doctor-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .original-doctor .doctor-text {
    padding-bottom: 20px;
    width: 100%;
  }
  .original-doctor h2 {
    font-size: 31px;
  }
  .original-doctor .doctor-name strong {
    font-size: 34px;
  }
  .original-doctor .doctor-name span {
    font-size: 18px;
  }
  .original-doctor .portrait {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/5.5;
    align-self: center;
  }
  .original-doctor .portrait img {
    top: -67%;
  }
  .original-section {
    padding: 60px 0;
  }
  .original-heading {
    margin-bottom: 35px;
  }
  .original-heading .kicker {
    min-width: 220px;
    font-size: 11px;
    margin-bottom: 20px;
  }
  .original-heading h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .original-heading > p:last-child:not(.kicker) {
    font-size: 15px;
  }
  .original-principle {
    min-height: 450px;
    padding: 40px 18px;
  }
  .principle-panel {
    padding: 36px 22px;
  }
  .principle-panel h2 {
    font-size: 25px;
  }
  .principle-panel p {
    font-size: 16px;
  }
  .original-equipment {
    background-size: auto 360px;
    background-position: left top;
    background-color: #f0f0f5;
    padding-top: 320px;
  }
  .original-equipment .wrap {
    min-height: 0;
    padding: 30px 0 50px;
  }
  .original-equipment .wrap > div {
    width: 100%;
  }
  .original-equipment h2,
  .original-sterilization h2 {
    font-size: 27px;
  }
  .original-equipment p,
  .original-sterilization p {
    font-size: 16px;
  }
  .original-sterilization {
    background-size: auto 320px;
    background-position: right bottom;
    background-color: #f4f4f3;
    padding-bottom: 300px;
  }
  .original-sterilization .wrap {
    min-height: 0;
    padding: 50px 0 25px;
  }
  .original-sterilization .wrap > div {
    width: 100%;
  }
  .big-check {
    width: 65px;
    height: 65px;
    font-size: 36px;
  }
  .implant-visual {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 35px 0;
    min-height: 0;
  }
  .implant-art {
    display: none;
  }
  .implant-point {
    min-height: 130px;
    padding: 20px 8px;
    font-size: 14px;
  }
  .implant-point strong {
    font-size: 17px;
  }
  .implant-point:nth-child(2),
  .implant-point:last-child {
    transform: none;
  }
  .original-three,
  .original-care-links {
    grid-template-columns: 1fr;
  }
  .original-three {
    gap: 16px;
  }
  .original-three article {
    padding: 24px;
  }
  .original-three h3 {
    font-size: 22px;
  }
  .original-three p {
    font-size: 15px;
  }
  .hours-panel {
    padding: 28px 20px;
  }
  .large-phone {
    font-size: 32px;
  }
  .hours-panel .hours th,
  .hours-panel .hours td {
    font-size: 17px;
    padding: 13px 0;
  }
  .hours-panel .note {
    font-size: 12px;
  }
  .hours-panel .actions {
    gap: 10px;
  }
  .button {
    font-size: 13px;
    padding: 12px 18px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .original-location {
    display: block;
    padding: 25px;
  }
  .original-location h3 {
    font-size: 22px;
  }
  .original-location p {
    font-size: 15px;
  }
  .original-location .actions {
    margin-top: 25px;
  }
  .footer .brand {
    margin: auto;
  }
  .footer-links {
    justify-content: center;
  }
  .page-body .doctor-grid {
    display: flex;
    flex-direction: column;
  }
  .page-body .portrait img {
    top: -63%;
  }
  details {
    font-size: 16px;
  }
  details p {
    font-size: 14px;
  }
  .caption {
    font-size: 11px;
  }
  .mobile-bar {
    grid-template-columns: 1fr 1.3fr;
  }
  .mobile-bar a {
    font-size: 12px;
  }
}

.footer .copyright {
  justify-content: center;
  text-align: center;
}
.footer .business-info {
  font-size: 14px;
  line-height: 1.9;
}
@media (max-width: 780px) {
  .footer .business-info {
    font-size: 12px;
  }
}

@media (min-width: 781px) and (max-width: 1100px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }
  .nav {
    width: 100%;
  }
  .nav a {
    flex: 1;
    text-align: center;
    padding: 5px 9px;
    font-size: 14px;
  }
}
@media (max-width: 780px) {
  .nav a {
    flex: 1;
    min-width: 0;
    padding: 3px 4px;
    overflow-wrap: anywhere;
  }
  .nav a:last-child {
    padding-right: 4px;
  }
}

/* Replaced the legacy copy blocks with the clinic's original section artwork. */
.original-feature {
  padding-top: 45px;
  padding-bottom: 45px;
}
.section-image {
  display: block;
  height: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.feature-image {
  width: 100%;
  max-width: 1004px;
}
.original-equipment {
  background: none;
  background-color: #f0f0f5;
  padding: 55px 0;
}
.original-equipment .wrap {
  display: block;
  min-height: 0;
  text-align: center;
}
.equipment-image {
  width: 100%;
  max-width: 630px;
}
.original-sterilization {
  background: none;
  background-color: #f4f4f3;
  padding: 70px 0;
}
.original-sterilization .wrap {
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 30px;
}
.sterilization-title {
  width: 100%;
  max-width: 454px;
}
.sterilization-process {
  width: 100%;
  max-width: 876px;
}
@media (max-width: 780px) {
  .original-feature {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .original-equipment,
  .original-sterilization {
    padding: 35px 0;
  }
  .original-sterilization .wrap {
    gap: 22px;
  }
}

@media (max-width: 780px) {
  .mobile-bar {
    grid-template-columns: 1fr;
  }
}

/* Original clinic sections from ms4 through ms17, kept in source order. */
.legacy-section {
  padding: 70px 0;
  overflow: hidden;
}
.legacy-section .wrap {
  display: grid;
  justify-items: center;
  gap: 30px;
}
.legacy-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
}
.legacy-title {
  max-width: 1000px;
}
.legacy-ms4,
.legacy-ms5 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/*
.legacy-ms4 {
  background-image: url("/assets/original/ms4_bg.jpg");
  background-color: #ecefed;
}
*/
/*
.legacy-ms5 {
  background-image: url("/assets/original/ms5_bg.jpg");
  background-color: #f5f5f5;
}
  */
.legacy-ms4 .legacy-split,
.legacy-ms5 .legacy-split {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.legacy-device,
.legacy-autoclave {
  max-width: 800px;
}
.legacy-heading {
  max-width: 630px;
}
.legacy-ms6 {
  background-image: url("/assets/original/ms6_bg.jpg");
  background-size: cover;       /* 구역을 꽉 채움 */
  background-position: center;  /* 사진 가운데 기준 */
  background-repeat: no-repeat; /* 반복 안 함 */
}
.legacy-ms10 {
  background-color: #000;
}
.legacy-process {
  max-width: 876px;
}
.legacy-ms7,
.legacy-ms8,
.legacy-ms9,
.legacy-ms11,
.legacy-license,
.legacy-ms12,
.legacy-ms13,
.legacy-ms14,
.legacy-ms15,
.legacy-ms16,
.legacy-ms17 {
  background: #fff;
}
.legacy-ms9 {
  background-image: url("/assets/original/ms9_bg.jpg");
  background-size: cover;       /* 구역을 꽉 채움 */
  background-position: center;  /* 사진 가운데 기준 */
  background-repeat: no-repeat; /* 반복 안 함 */
}
.legacy-flow {
  width: 100%;
  overflow-x: auto;
}
.legacy-flow table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
}
.legacy-flow th,
.legacy-flow td {
  border: 1px solid #d5dce3;
  padding: 14px 10px;
}
.legacy-flow th {
  background: #f0f5fa;
}
.legacy-flow img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.legacy-license {
  background: #f7f7f5;
}
.legacy-license-image {
  max-width: 948px;
}
.legacy-ms14 {
  background-image: url("/assets/original/ms14_bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.legacy-timetable {
  max-width: 664px;
  background-color: #fff; /* 투명 PNG 뒤를 흰색으로 */
}
.legacy-ms15 .legacy-gallery-thumbs {
  grid-template-columns: repeat(6, 1fr);
}
.legacy-ms16 .legacy-title {
  margin-bottom: 10px;
}
.legacy-map {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.legacy-map .root_daum_roughmap {
  width: 100% !important; /* 카카오 기본 고정폭 대신 구역에 맞춤 */
}
.legacy-price {
  max-width: 1200px;
}
@media (max-width: 780px) {
  .legacy-section {
    padding: 38px 0;
  }
  .legacy-section .wrap {
    gap: 20px;
  }
  .legacy-ms4 .legacy-split,
  .legacy-ms5 .legacy-split {
    grid-template-columns: 1fr;
  }
  .legacy-flow th,
  .legacy-flow td {
    padding: 9px 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .legacy-ms15 .legacy-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
}
.legacy-ms15 > .wrap > .original-heading,
.legacy-ms16 > .wrap > .original-heading,
.legacy-ms17 > .wrap > .original-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 수가표 텍스트 표 (이미지 아래, 이미지 카드 디자인에 맞춤) */
.fee-table-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 36px 40px 30px;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #222;
}
.fee-table caption {
  text-align: center;
  margin-bottom: 22px;
  font-size: 13px;
  color: #666;
}
.fee-table caption strong {
  display: block;
  font-size: 22px;
  color: #444;
  margin-bottom: 6px;
}
.fee-table caption span {
  display: inline-block;
  margin: 0 8px;
}
.fee-table thead th:first-child {
  width: 46%;
}
.fee-table thead th:nth-child(2) {
  width: 16%;
}
.fee-table thead th {
  font-size: 13px;
  font-weight: 400;
  color: #777;
  text-align: left;
  padding: 0 10px 8px;
  border-bottom: 1px solid #ccc;
}
.fee-table thead th:nth-child(2) {
  text-align: right;
}
.fee-table .fee-group th {
  background: #5f5f5f;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  padding: 7px 10px;
}
.fee-table tbody + tbody .fee-group th {
  border-top: 24px solid #f5f5f5;
}
.fee-table th[scope="row"],
.fee-table td {
  padding: 9px 10px;
  border-bottom: 1px dotted #bbb;
  vertical-align: top;
}
.fee-table th[scope="row"] {
  font-weight: 700;
  text-align: left;
}
.fee-price {
  text-align: right;
  white-space: nowrap;
  color: #555;
  font-variant-numeric: tabular-nums;
}
.fee-cond {
  font-size: 13px;
  color: #666;
  overflow-wrap: anywhere;
}
.fee-check {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fde8e8;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
}
.fee-notes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #d32f2f;
}
.fee-notes li::before {
  content: "※ ";
}
@media (max-width: 780px) {
  .fee-table-wrap {
    padding: 22px 14px 18px;
    border-radius: 14px;
  }
  .fee-table {
    font-size: 14px;
  }
  .fee-table caption strong {
    font-size: 18px;
  }
  .fee-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  /* 좁은 화면: 항목·금액 한 줄, 적용 조건은 그 아래 줄 */
  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table .fee-group th {
    display: block;
  }
  .fee-table caption {
    display: block;
  }
  .fee-table tbody tr:not(.fee-group) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px dotted #bbb;
  }
  .fee-table th[scope="row"],
  .fee-table td {
    border-bottom: 0;
    padding: 8px 4px;
  }
  .fee-table .fee-cond {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .fee-table .fee-cond.is-empty {
    display: none;
  }
  .fee-table .fee-group th {
    display: block;
    font-size: 15px;
  }
  .fee-table tbody + tbody .fee-group th {
    border-top-width: 18px;
  }
}
