:root {
  --bg: #efe7d8;
  --bg-soft: #f8f3ea;
  --paper: #fffaf0;
  --green: #163d32;
  --green-2: #28594a;
  --gold: #b99a63;
  --ink: #20251f;
  --muted: #6f7268;
  --line: rgba(22, 61, 50, 0.14);
  --shadow: 0 24px 70px rgba(38, 31, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(248, 243, 234, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

/* --- 앵커 스크롤 이동 시 상단 고정 헤더 높이만큼의 여백 확보 --- */
#care,
#methods,
#doctors,
#gallery,
#location,
#contact {
  scroll-margin-top: -75px;
}

#home {
  scroll-margin-top: 0;
}

.admin-trigger {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  user-select: text;
  padding: 0;
  margin-left: 8px;
}

.admin-trigger::selection {
  background: var(--paper);
  color: var(--green);
}

.brand-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 20px;
  min-width: 310px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  line-height: 1.25;
  color: var(--green);
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1px;
}

.social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.86;
}

.social-links img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100svh - 79px);
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 64px) clamp(52px, 6vw, 84px);
  background:
    linear-gradient(180deg, rgba(239, 231, 216, 0.5), rgba(239, 231, 216, 0.76)),
    url("assets/hero-treatment-room.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(0deg, var(--bg), rgba(239, 231, 216, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Noto Serif KR", serif;
  color: var(--green);
  line-height: 1.22;
}

h1 {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-family: "Noto Serif KR", serif;
  font-size: 25px;
}

.hero-text {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 34px;
  color: #4d524a;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-text span {
  display: block;
}

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

.hero-actions {
  display: grid;
  grid-template-columns: repeat(4, 142px);
  justify-content: center;
  gap: 12px;
}

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

.hero-actions .button:nth-child(1),
.hero-actions .button:nth-child(2) {
  grid-column: span 2;
}

.pc-only {
  display: inline;
}

.mobile-only {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--paper);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.68);
  color: var(--green);
}

.button.light {
  background: var(--paper);
  color: var(--green);
}

.hero-panels {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-panel {
  padding: 24px;
  background: rgba(22, 61, 50, 0.92);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel p,
.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel p {
  margin-bottom: 8px;
  color: #d9c69a;
  font-size: 19px;
  font-weight: 700;
}

.hero-panel p small {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 500;
  margin-left: 6px;
  color: rgba(217, 198, 154, 0.88);
}

.hero-panel strong {
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  text-align: center;
}

.hero-panel span {
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 16px;
  text-align: center;
}

.patient-record {
  width: min(720px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: clamp(20px, 2.4vw, 27px);
  background: #d8c8a9;
  border: 1px solid rgba(22, 61, 50, 0.16);
  text-align: center;
  position: relative;
  z-index: 1;
}

.patient-record .eyebrow {
  margin-bottom: 12px;
  text-align: left;
}

.patient-record .record-copy {
  display: grid;
  gap: 7px;
  margin: 0;
  width: 100%;
  padding: 0;
  color: rgba(22, 61, 50, 0.78);
  font-family: "Noto Serif KR", serif;
  font-size: clamp(20px, 1.85vw, 29px);
  line-height: 1.45;
}

.patient-record .record-line,
.patient-record .record-date,
.patient-record .record-count,
.patient-record .record-note {
  display: block;
}

.patient-record .record-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.patient-record .record-line-count {
  gap: 0.25em;
}

.patient-record strong {
  color: var(--green);
  font-weight: 800;
}

.patient-record strong .unit {
  font-size: 0.72em;
}

.patient-record small,
.record-note {
  color: rgba(22, 61, 50, 0.66);
  font-size: 0.68em;
  font-weight: 600;
}

.patient-record .record-date {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.record-date strong,
.record-count strong {
  display: inline-block;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.patient-record .record-count {
  margin-top: 0;
}

.record-count strong {
  font-size: 1.18em;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
}

.section,
.section-grid,
.philosophy,
.contact {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(500px, 1fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0 28px;
}

.intro {
  margin-bottom: 70px;
}

.section-grid p:last-child {
  align-self: center;
  margin-bottom: 0;
  color: #555a51;
  font-size: 17px;
}

.intro-text {
  line-height: 1.82;
  padding-left: clamp(12px, 2.4vw, 36px);
  transform: translateY(24px);
}

.intro-text span {
  display: block;
  white-space: nowrap;
}

.intro-text .intro-gap {
  height: 14px;
}

.intro-title {
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.52;
}

.intro-title span {
  display: block;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading a {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.care-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.care-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(60, 50, 34, 0.06);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.care-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: rgba(22, 61, 50, 0.32);
  box-shadow: 0 16px 40px rgba(22, 61, 50, 0.08);
}

.care-card span {
  margin-bottom: 10px;
  text-align: center;
  color: var(--gold);
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
}

.care-icon-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: -24px;
  margin-bottom: -16px;
  margin-left: auto;
  margin-right: auto;
}

.care-card h3 {
  margin-bottom: 16px;
  text-align: center;
  font-size: 25px;
  color: var(--green);
  font-weight: 800;
}

.care-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
  color: #5d635f;
  font-size: 15px;
  line-height: 1.6;
}

.care-card li::marker {
  color: var(--gold);
}

.care-card strong {
  color: #0a251e;
  font-weight: 800;
}

.care-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.doctors {
}

.doctor-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.doctor-card {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(60, 50, 34, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.doctor-board:hover .doctor-card {
  transform: scale(0.96);
  opacity: 0.78;
}

.doctor-board .doctor-card:hover,
.doctor-board .doctor-card:focus-visible {
  z-index: 2;
  transform: scale(1.08);
  opacity: 1;
  border-color: rgba(22, 61, 50, 0.44);
  box-shadow: 0 28px 80px rgba(38, 31, 20, 0.2);
}

.doctor-photo {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #d8d5ce;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 220ms ease;
}

.doctor-card:hover .doctor-photo img,
.doctor-card:focus-visible .doctor-photo img {
  transform: scale(1.03);
}

.doctor-info {
  padding: 24px 18px 26px;
  background: rgba(255, 250, 240, 0.96);
}

.doctor-info p {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.doctor-info h3 {
  margin-bottom: 0;
  font-size: 21px;
  text-align: center;
}

.doctor-info h3 span,
.doctor-title-small {
  color: inherit;
  font-size: 0.72em;
  font-weight: 700;
}

.clinic-gallery {
  scroll-margin-top: 92px;
}

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid rgba(22, 61, 50, 0.16);
  background: rgba(255, 250, 240, 0.7);
}

.gallery-tabs button {
  min-height: 58px;
  border: 0;
  border-right: 1px solid rgba(22, 61, 50, 0.16);
  background: transparent;
  color: #6f675d;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.gallery-tabs button:last-child {
  border-right: 0;
}

.gallery-tabs button.is-active {
  background: #9f9186;
  color: #fffaf0;
  font-weight: 700;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 58px rgba(60, 50, 34, 0.1);
  touch-action: pan-y;
}

.gallery-stage figure {
  position: relative;
  margin: 0;
}

.gallery-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #d8d5ce;
}

.gallery-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 24px;
  background: rgba(22, 21, 18, 0.56);
  color: #fffaf0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 88px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 250, 240, 0.82);
  color: var(--green);
  font-size: 34px;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--paper);
  transform: translateY(-50%) scale(1.03);
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 142px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}

.gallery-thumb.is-active {
  border-color: #d99a68;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  filter: saturate(0.95);
}

.doctor-modal[hidden],
.admin-modal[hidden],
.schedule-modal[hidden],
.care-modal[hidden],
.yakchim-modal[hidden] {
  display: none;
}

.doctor-modal,
.admin-modal,
.schedule-modal,
.care-modal,
.yakchim-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.doctor-modal {
  z-index: 110;
}

.yakchim-modal {
  z-index: 120;
}

.yakchim-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(22, 61, 50, 0.18);
  padding: 48px;
}

.yakchim-modal-head {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.yakchim-modal-head h2 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--green);
  margin-top: 4px;
}

.yakchim-modal .yakchim-modal-panel {
  width: min(960px, 100%);
}

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

.yakchim-item {
  background: rgba(22, 61, 50, 0.03);
  border: 1px solid rgba(22, 61, 50, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.yakchim-item h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 19px;
  color: var(--green);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.yakchim-item h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.yakchim-item ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  text-align: left;
}

.yakchim-item li::marker {
  color: #cda83e;
}

.yakchim-tags {
  display: grid;
  gap: 8px 24px;
  margin-top: 16px;
  padding-left: 20px;
  justify-content: start;
}

.yakchim-tags.grid-2 {
  grid-template-columns: repeat(2, auto);
}

.yakchim-tags.grid-3 {
  grid-template-columns: repeat(3, auto);
}

.yakchim-tags.grid-4 {
  grid-template-columns: repeat(4, auto);
}

.yakchim-tags.tags-precision {
  grid-template-columns: auto minmax(80px, auto) auto auto;
}

.yakchim-tags.tags-jahager,
.yakchim-tags.tags-pdrn {
  column-gap: 40px;
}

.yakchim-tags span {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.yakchim-tags span.span-3 {
  grid-column: span 3;
}

.yakchim-tags span.span-all {
  grid-column: 1 / -1;
}

.hanyak-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hanyak-modal[hidden] {
  display: none;
}

.hanyak-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(22, 61, 50, 0.18);
  padding: 48px;
}

.hanyak-modal-head {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.hanyak-modal-head h2 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--green);
  margin-top: 4px;
}

.hanyak-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.hanyak-item {
  background: rgba(22, 61, 50, 0.03);
  border: 1px solid rgba(22, 61, 50, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hanyak-item h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 20px;
  color: var(--green);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.hanyak-item h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hanyak-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  word-break: keep-all;
}

.hanyak-item ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.hanyak-item li::marker {
  color: #cda83e;
}

.hanyak-item strong {
  color: #0a251e;
  font-weight: 700;
}

.hanyak-item.span-all {
  grid-column: 1 / -1;
}

.hanyak-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 8px;
}

.process-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.process-icon {
  font-size: 24px;
  line-height: 1;
}

.process-item strong {
  display: block;
  font-size: 15px;
  color: var(--green);
  margin-bottom: 4px;
  font-weight: 700;
}

.process-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}

/* Linda Modal (린다이어트) */
.linda-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.linda-modal[hidden] {
  display: none;
}

.linda-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(22, 61, 50, 0.18);
  padding: 48px;
}

.linda-modal-head {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.linda-modal-head h2 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(24px, 2.5vw, 32px);
  color: var(--green);
  margin-top: 4px;
}

.linda-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(22, 61, 50, 0.12);
}

.linda-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.linda-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 100%;
  text-align: center;
  word-break: keep-all;
  background: rgba(22, 61, 50, 0.03);
  border: 1px solid rgba(22, 61, 50, 0.08);
  padding: 24px 28px;
  border-radius: 12px;
}

.linda-intro strong {
  color: var(--green);
  font-weight: 700;
}

.linda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.linda-item {
  background: rgba(22, 61, 50, 0.03);
  border: 1px solid rgba(22, 61, 50, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 12px;
}

.linda-item h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 20px;
  color: var(--green);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.linda-item h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.linda-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  word-break: keep-all;
}

.linda-item ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.linda-item li::marker {
  color: #cda83e;
}

.linda-item strong {
  color: #0a251e;
  font-weight: 700;
}

.linda-item li strong {
  display: block;
  font-size: 15px;
  color: #0a251e;
  font-weight: 700;
  margin-bottom: 4px;
}

.linda-item li span {
  display: block;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}

.linda-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 8px;
}

.linda-process-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.linda-process-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.linda-process-item strong {
  display: block;
  font-size: 15px;
  color: var(--green);
  margin-bottom: 4px;
  font-weight: 700;
}

.linda-process-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}

/* --- 공진단 경옥고 비급여 처방 받기 버튼 색상 변경 --- */
.btn-gongjin-prescription {
  background-color: #71000B !important;
  border-color: #71000B !important;
  color: #ffffff !important;
  transition: all 0.2s ease-in-out;
}

.btn-gongjin-prescription:hover {
  background-color: #510008 !important;
  border-color: #510008 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113, 0, 11, 0.25) !important;
}


.modal-content-small {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(22, 61, 50, 0.18);
  padding: 42px 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.care-arrow,
.doctor-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(22, 61, 50, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition:
    background 180ms ease,
    border-color 180ms ease;
  user-select: none;
}

.care-arrow:hover,
.doctor-arrow:hover {
  background: var(--paper);
  border-color: rgba(22, 61, 50, 0.3);
}

.care-prev,
.doctor-prev {
  left: 8px;
}

.care-next,
.doctor-next {
  right: 8px;
}

.modal-care-number {
  display: block;
  color: var(--gold);
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.modal-care-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
  text-align: center;
}

.modal-care-body {
  width: 100%;
  padding: 0 12px 60px;
  box-sizing: border-box;
}

#modal-care-detail-btn-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: auto;
}

.modal-detail-custom-btn {
  min-height: 40px !important;
  height: 40px;
  width: auto !important;
  padding: 0 32px !important;
  font-size: 14px !important;
  border-radius: 999px;
  border: none;
  background: var(--green);
  color: var(--paper);
  transition: background 180ms ease, transform 180ms ease;
  box-shadow: 0 4px 12px rgba(22, 61, 50, 0.12);
}

.modal-detail-custom-btn:hover {
  background: #113027;
  transform: translateY(-1px);
}

.modal-care-body ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal-care-body li::marker {
  color: #cda83e;
}

.modal-care-body strong {
  color: var(--green);
  font-weight: 800;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 27, 23, 0.64);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100svh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(640px, auto) auto;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.7);
  box-shadow: 0 34px 100px rgba(20, 27, 23, 0.34);
}

.admin-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  padding: clamp(34px, 5vw, 54px);
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.7);
  box-shadow: 0 34px 100px rgba(20, 27, 23, 0.34);
}

.admin-panel h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 4vw, 48px);
}

.admin-panel label {
  display: block;
  margin: 18px 0 8px;
  color: var(--green);
  font-weight: 800;
}

.admin-panel input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(22, 61, 50, 0.2);
  background: #fffef9;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
  outline: none;
}

.admin-panel input:focus {
  border-color: rgba(22, 61, 50, 0.58);
  box-shadow: 0 0 0 3px rgba(22, 61, 50, 0.08);
}

.admin-login .button,
.admin-card .button {
  margin-top: 22px;
}

.admin-error,
.admin-success {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.admin-error {
  color: #b14535;
}

.admin-success {
  color: var(--green);
}

.admin-success.is-error {
  color: #b14535;
}

.admin-menu {
  display: grid;
  gap: 16px;
}

.admin-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.7);
}

.admin-card h3 {
  margin-bottom: 18px;
}

.admin-card.is-disabled {
  opacity: 0.62;
}

.admin-card.is-disabled p {
  margin-bottom: 0;
  color: var(--muted);
}

.schedule-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 46px);
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.7);
  box-shadow: 0 34px 100px rgba(20, 27, 23, 0.34);
}

.schedule-modal-head {
  margin-bottom: 24px;
  padding-right: 0;
  text-align: center;
}

.schedule-modal-head .eyebrow {
  text-align: left;
}

.schedule-modal-head h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 50px);
}

.schedule-modal-head span {
  color: var(--muted);
  font-weight: 800;
}

.schedule-overview {
  display: grid;
  gap: 6px;
}

.schedule-overview > span {
  color: var(--muted);
  font-weight: 800;
}

.schedule-row {
  display: grid;
  grid-template-columns: 68px minmax(136px, 168px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 8px 10px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
}

.schedule-doctor-photo {
  min-height: 82px;
  overflow: hidden;
  background: #d8d5ce;
}

.schedule-doctor-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.schedule-doctor-meta {
  display: grid;
  align-content: center;
  gap: 4px;
}

.schedule-doctor-meta span {
  color: var(--gold);
  font-weight: 800;
}

.schedule-doctor-meta strong {
  color: var(--green);
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
  text-align: center;
}

.schedule-doctor-meta strong .doctor-title-small {
  color: inherit;
}

.schedule-row .weekly-schedule {
  gap: 4px;
  align-self: center;
}

.schedule-date-row {
  padding-top: 10px;
  padding-bottom: 10px;
  background: transparent;
  border-color: rgba(22, 61, 50, 0.12);
}

.schedule-date-spacer {
  min-height: 1px;
}

.schedule-date-grid {
  align-self: stretch;
}

.schedule-date-cell {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--green);
  text-align: center;
  border: 1px solid rgba(22, 61, 50, 0.14);
  background: rgba(255, 250, 240, 0.56);
}

.schedule-date-cell strong,
.schedule-date-cell span {
  display: block;
}

.schedule-date-cell strong {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
}

.schedule-date-cell span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.schedule-row .schedule-pill {
  min-height: 70px;
  gap: 1px;
  padding: 8px 4px;
}

.schedule-row .schedule-pill strong {
  font-size: 15px;
}

.schedule-row .schedule-pill em {
  font-size: 13px;
}

.schedule-row .schedule-pill span {
  min-height: 18px;
  font-size: 16px;
}

.schedule-row .schedule-pill.is-off em {
  font-size: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 61, 50, 0.2);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-photo {
  grid-column: 1;
  grid-row: 1;
  min-height: 100%;
  background: #d8d5ce;
}

.modal-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.modal-detail {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(36px, 4.4vw, 58px);
  overflow: visible;
}

.modal-detail .eyebrow {
  margin-bottom: 12px;
  font-size: 19px;
}

.modal-detail h2 {
  margin-bottom: 38px;
  font-size: clamp(42px, 5vw, 64px);
}

.modal-section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.modal-section + .modal-section {
  margin-top: 34px;
}

.modal-section h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.modal-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-section li {
  color: #4d524a;
  font-size: 18px;
  line-height: 1.42;
}

.modal-section li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 3px;
}

.modal-section .bio-spacer {
  height: 6px;
}

.modal-section .bio-spacer::before {
  display: none;
}

.modal-schedule {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding: 28px clamp(28px, 4vw, 48px) 34px;
  background: var(--bg-soft);
}

.modal-schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-schedule h3 {
  margin: 0;
  font-size: 30px;
}

.modal-schedule-head span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.weekly-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.weekly-schedule > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.modal-date-cell {
  min-height: 48px;
  margin-bottom: -6px;
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.modal-date-cell strong {
  font-size: 16px;
}

.modal-date-cell span {
  color: inherit;
  font-size: 18px;
  font-weight: 900;
}

.modal-date-cell.is-off {
  background: #eee8dc;
  border-color: rgba(111, 114, 104, 0.28);
  color: #77766c;
}

.modal-date-cell.is-night span {
  color: #ffd43b;
}

.schedule-pill {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 14px 8px;
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--paper);
  text-align: center;
}

.schedule-pill strong {
  font-size: 18px;
}

.schedule-pill em {
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
}

.schedule-pill span {
  font-size: 21px;
  font-weight: 800;
  min-height: 28px;
}

.schedule-pill.is-off {
  background: #eee8dc;
  border-color: rgba(111, 114, 104, 0.28);
  color: #77766c;
}

.schedule-pill.is-off em {
  font-size: 22px;
}

.schedule-pill.is-night em {
  color: #ffd43b;
}

body.modal-open {
  overflow: hidden;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 56px;
}

.method-card {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 32px 24px;
  background: rgba(22, 61, 50, 0.06);
  border: 1px solid rgba(22, 61, 50, 0.1);
  box-shadow: 0 8px 24px rgba(60, 50, 34, 0.04);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  text-align: center;
}

.method-card.has-detail {
  cursor: pointer;
  padding-bottom: 42px;
  border: 3px solid var(--green);
}

.method-card.has-detail:hover {
  border-color: var(--green);
}

.method-detail-btn {
  display: none;
}

.method-card.has-detail .method-detail-btn {
  display: inline-block;
  position: absolute;
  bottom: 14px;
  right: 20px;
  font-family: inherit;
  font-size: 13px;
  color: var(--gold);
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 180ms ease;
  padding: 0;
}

.method-card.has-detail .method-detail-btn:hover {
  opacity: 1;
}

.method-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: rgba(22, 61, 50, 0.32);
  box-shadow: 0 16px 40px rgba(22, 61, 50, 0.08);
}

.method-num {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.method-icon-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: -24px;
  margin-bottom: -16px;
}

.method-card h3 {
  margin: 0 0 14px;
  font-size: 25px;
  color: var(--green);
  font-weight: 800;
}

.method-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #5d635f;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  width: 100%;
}

.method-card li::marker {
  color: #cda83e;
}

.method-card strong {
  color: #0a251e;
  font-weight: 800;
}

.method-section {
  padding-top: 0;
}



#methods {
  padding-bottom: 0;
}

#methods + .philosophy {
  margin-top: 0;
}

.philosophy {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  margin-top: clamp(-72px, -6vw, -36px);
  margin-bottom: 0;
  padding: clamp(60px, 8vw, 92px);
  background: var(--green);
  color: rgba(255, 250, 240, 0.82);
  text-align: center;
}

.philosophy h2 {
  color: var(--paper);
  font-size: clamp(24px, 2.8vw, 36px);
}

.philosophy h2 span {
  display: inline;
}

.philosophy .eyebrow {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  left: clamp(28px, 5vw, 64px);
}

.philosophy-copy {
  max-width: 920px;
  margin: 0 auto;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 58px);
  text-align: left;
}

.philosophy-columns p {
  margin: 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

.philosophy-columns span {
  display: block;
}

.philosophy-columns strong {
  color: #ecc865;
  font-weight: 700;
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 70px;
  padding: clamp(60px, 8vw, 92px) clamp(30px, 4vw, 48px);
  background: #d8c8a9;
  border: 1px solid rgba(22, 61, 50, 0.16);
}

.contact-container {
  max-width: 1040px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact .eyebrow {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  left: clamp(28px, 5vw, 64px);
  margin: 0;
}

.contact-top-link {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 5vw, 64px);
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  width: 100%;
  align-items: center;
  margin-top: 0;
}

.contact-text-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title {
  width: 100%;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.42;
  margin: 0 auto 12px;
  text-align: center;
  word-break: keep-all;
}

.contact-title .mobile-br {
  display: none;
}

/* 예약 가능 시간 및 진료 시간 상세 다단화 스타일 */
.reservation-details-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  width: 100%;
  margin-top: 28px;
  margin-left: 24px;
}

.clinic-time-info,
.reservation-time-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.time-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-icon {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
}

.time-header h3 {
  font-size: 19px;
  color: var(--green);
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
}

.time-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 32px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.time-list li::marker {
  color: var(--gold);
}

.time-list li small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
}

.time-list li .sub-text {
  font-size: 13.5px;
  color: var(--muted);
  display: inline-block;
  margin-top: 2px;
}

/* 예약 가능 시간 표 스타일 */
.reservation-table {
  width: 100%;
  max-width: 380px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  border-style: hidden;
  box-shadow: 0 0 0 1px rgba(22, 61, 50, 0.12);
  table-layout: fixed;
}

.reservation-table th,
.reservation-table td {
  border: 1px solid rgba(22, 61, 50, 0.12);
  padding: 8px 12px;
  vertical-align: middle;
}

.reservation-table th {
  background: rgba(22, 61, 50, 0.06);
  color: var(--green);
  font-weight: 700;
  font-family: "Noto Serif KR", serif;
  text-align: center;
}

.reservation-table th:first-child,
.reservation-table td:first-child {
  width: 105px !important;
  max-width: 105px !important;
  min-width: 105px !important;
  white-space: nowrap !important;
}

.reservation-table td {
  text-align: left;
  padding-left: 14px;
  font-weight: 500;
}

/* 진료 시간 카드 스타일 */
.clinic-time-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.clinic-time-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(22, 61, 50, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  text-align: center;
  line-height: 1.25;
}

.clinic-time-card .highlight-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--green);
}

.clinic-time-card .highlight-time {
  font-size: 19.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.clinic-time-card .sub-text {
  font-size: 13.5px;
  color: var(--muted);
}

.contact .contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
}

.contact .contact-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact .contact-actions .button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact .contact-actions .button.phone {
  background: var(--green);
  color: #ffffff !important;
  border: none;
}

.contact .contact-actions .button.phone:hover {
  background: #113027;
}

.contact .contact-actions .button.naver {
  background: #03c75a;
  color: #ffffff !important;
  border: none;
}

.contact .contact-actions .button.naver:hover {
  background: #02b34e;
}

.contact .contact-actions .button.kakao {
  background: #f6d54a;
  color: #392d00;
  border: none;
}

.contact .contact-actions .button.kakao:hover {
  background: #e5c43b;
}


/* Location Section Styling */
#location .section-heading {
  position: relative;
  justify-content: center;
  align-items: flex-end;
}

#location .section-heading .eyebrow {
  position: absolute;
  left: 0;
  bottom: 24px;
  margin: 0;
}

#location .section-heading h2 {
  margin: 0;
  text-align: center;
}

#location .section-heading a {
  position: absolute;
  right: 0;
  bottom: 24px;
}
.location-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 24px;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-icon {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
}

.group-header h3 {
  font-size: 18px;
  color: var(--green);
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
}

.location-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.location-list li::marker {
  color: var(--gold);
}

.location-list li .sub-text {
  color: var(--muted);
  font-size: 14.5px;
  display: block;
  margin-top: 2px;
}

.transit-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 4px;
}

.transit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.transit-table th,
.transit-table td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.transit-table th {
  background: rgba(22, 61, 50, 0.08);
  color: var(--green);
  font-weight: 700;
  font-family: "Noto Serif KR", serif;
}

.transit-table td {
  background: transparent;
}

.transit-table td.bus-numbers {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
  white-space: normal; /* allow wrap if very long */
}

.transit-table td.stop-name {
  font-weight: 700;
  color: var(--ink);
}

.map-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}

.map-actions .button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* 위쪽 "지도 보기" 버튼만 아이콘을 아래쪽 "길찾기"와 수직 정렬 */
.map-actions .button:nth-child(-n+2) .btn-content {
  transform: translateX(-0.5em);
}

.map-actions .button .btn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-actions .button .button-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.map-actions .button.naver {
  background: #03c75a;
  color: #ffffff;
  border: 1px solid #03c75a;
}

.map-actions .button.naver:hover {
  background: #02b34f;
  border-color: #02b34f;
}

.map-actions .button.kakao {
  background: #f6d54a;
  color: #392d00;
  border: 1px solid #f6d54a;
}

.map-actions .button.kakao:hover {
  background: #e2c13a;
  border-color: #e2c13a;
}

.map-embed {
  display: block;
  height: 500px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(22, 61, 50, 0.16);
  transition: box-shadow 180ms ease;
}

.map-embed:hover {
  box-shadow: 0 18px 42px rgba(38, 31, 20, 0.14);
}

.map-embed .root_daum_roughmap {
  width: 100% !important;
  height: 100% !important;
}

.map-embed .root_daum_roughmap .wrap_map {
  height: 100% !important;
}

footer {
  display: grid;
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 64px);
  background: var(--green);
  color: rgba(255, 250, 240, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

footer strong {
  color: var(--paper);
  font-family: "Noto Serif KR", serif;
}

footer p {
  margin: 0;
}

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

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-info {
  display: grid;
  gap: 2px;
}

.footer-info-mobile {
  display: none;
}

.footer-info span {
  margin: 0 10px;
  color: rgba(255, 250, 240, 0.42);
}

.footer-copy {
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  padding-top: 18px;
}



.floating-actions {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(152px, calc(100vw - 36px));
}

.floating-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  color: white;
  box-shadow: 0 14px 34px rgba(32, 37, 31, 0.18);
  font-size: 16px;
  font-weight: 800;
}

.floating-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.floating-button.naver {
  background: #03c75a;
}

.floating-button.phone {
  background: var(--green);
}

.floating-button.kakao {
  background: #f6d54a;
  color: #392d00;
}

.mobile-only,
.mobile-only-block,
.mobile-break {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline;
  }

  .mobile-only-block {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-break {
    display: block;
    width: 100%;
    height: 0;
  }

  nav {
    display: none;
  }

  .site-header {
    justify-content: center;
  }

  .brand-group {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 42px;
    background:
      linear-gradient(180deg, rgba(248, 243, 234, 0.36), rgba(239, 231, 216, 0.9)),
      url("assets/mobile-hero-bg.png") center top / cover no-repeat;
  }

  .hero-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(520px, 100%);
    gap: 8px;
    margin-top: 30px;
  }

  .hero-panel {
    padding: 16px 12px;
  }

  .hero-panel p {
    font-size: 16px;
    text-align: center;
  }

  .hero-panel p small {
    display: block;
    margin-left: 0;
    margin-top: 1px;
  }

  .hero-panel strong {
    font-size: 22px;
  }

  .hero-panel span {
    font-size: 14px;
    margin-top: 2px;
  }

  .patient-record {
    width: min(520px, 100%);
    margin-top: 22px;
    padding: 22px 12px;
  }

  .patient-record .eyebrow {
    margin-bottom: 12px;
    text-align: center;
  }

  .patient-record .record-copy {
    gap: 6px;
    font-size: clamp(17.5px, 4.9vw, 22px);
    letter-spacing: -0.03em;
  }

  .patient-record .record-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 4px;
  }

  .patient-record .record-line-count {
    column-gap: 6px;
    row-gap: 2px;
  }

  .record-date strong {
    font-size: 0.95em;
  }

  .record-count strong {
    font-size: 1.1em;
  }

  .section-grid,
  .philosophy,
  .contact,
  .location-content {
    grid-template-columns: 1fr;
  }

  .section-grid {
    gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .intro-text {
    padding-left: 0;
    transform: none;
  }

  .intro-text span {
    white-space: normal;
  }

  .care-list,
  .doctor-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doctor-card {
    min-height: 430px;
  }

  .doctor-board:hover .doctor-card,
  .doctor-board .doctor-card:hover,
  .doctor-board .doctor-card:focus-visible {
    transform: none;
    opacity: 1;
  }

  .doctor-photo {
    min-height: 320px;
  }

  .modal-content {
    height: auto;
    max-height: calc(100svh - 56px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
  }

  .modal-photo {
    grid-column: 1;
    grid-row: 1;
    min-height: 420px;
    max-height: 52svh;
  }

  .modal-detail {
    grid-column: 1;
    grid-row: 2;
    overflow: visible;
  }

  .modal-schedule {
    grid-column: 1;
    grid-row: 3;
  }

  .weekly-schedule {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-row {
    grid-template-columns: 64px minmax(124px, 1fr);
  }

  .schedule-row .weekly-schedule {
    grid-column: 1 / -1;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .schedule-date-row {
    grid-template-columns: 1fr;
  }

  .schedule-date-spacer {
    display: none;
  }

  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
    margin-bottom: 42px;
  }

  .method-card {
    min-height: 0;
    height: 100%;
    padding: 6px 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
  }

  .method-card.has-detail {
    padding: 12px 8px 18px;
  }

  .method-detail-btn {
    display: none !important;
  }

  .method-card::after {
    content: "☛ Click";
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 9px;
    color: var(--gold);
    opacity: 0.75;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .method-num {
    margin: 0;
    width: 100%;
    flex: 0 0 18px;
    line-height: 18px;
    text-align: center;
    font-size: 15px;
  }

  .method-icon-img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: -25px;
    flex: 0 0 150px;
  }

  .method-card h3 {
    margin: 0;
    width: 100%;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: keep-all;
  }

  .method-card ul {
    display: none;
  }

  .yakchim-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    zoom: 0.85;
  }

  .yakchim-grid .yakchim-item {
    width: 100%;
    max-width: 388px;
  }

  .yakchim-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
  }

  .yakchim-tags span {
    width: auto;
    flex: none;
  }

  .yakchim-grid .yakchim-item:nth-child(1) {
    order: 1;
  }

  .yakchim-grid .yakchim-item:nth-child(2) {
    order: 4;
  }

  .yakchim-grid .yakchim-item:nth-child(3) {
    order: 2;
  }

  .yakchim-grid .yakchim-item:nth-child(4) {
    order: 3;
  }

  .yakchim-modal-panel {
    padding: 36px 20px;
    width: min(500px, 100%);
    overflow-x: auto;
  }

  .hanyak-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    zoom: 0.85;
  }

  .hanyak-process {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    zoom: 0.85;
  }



  .hanyak-modal-panel {
    padding: 36px 20px;
    width: min(500px, 100%);
    overflow-x: auto;
  }

  .hanyak-grid > .hanyak-item {
    width: 100%;
    max-width: 388px;
  }

  .hanyak-grid > .hanyak-item:not(.span-all) li {
    white-space: nowrap;
  }

  .process-item {
    width: 100%;
    max-width: 388px;
  }

  .process-item p {
    white-space: nowrap;
  }

  /* Linda Modal (린다이어트) 모바일 */
  .linda-intro {
    max-width: 388px;
    padding: 20px;
    zoom: 0.85;
    margin-bottom: 20px;
  }

  .linda-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    zoom: 0.85;
  }

  .linda-grid .linda-item {
    width: 100%;
    max-width: 388px;
  }

  .linda-process {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    zoom: 0.85;
  }

  .linda-process-item {
    width: 100%;
    max-width: 388px;
    flex-direction: row;
    gap: 16px;
  }

  .linda-modal-panel {
    padding: 36px 20px;
    width: min(500px, 100%);
    overflow-x: auto;
  }

  .pc-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .intro {
    margin-bottom: 30px;
  }

  /* Contact / Reservation 모바일 스타일 리셋 */
  .contact {
    padding: clamp(48px, 6vw, 68px) clamp(24px, 5vw, 64px);
  }

  #contact {
    scroll-margin-top: 80px;
  }

  .contact-container {
    align-items: center;
  }

  .contact .eyebrow {
    position: static;
    margin-bottom: 16px;
  }

  .contact-top-link {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }

  .contact-text-area {
    left: 0;
    align-items: center;
    text-align: center;
  }

  .reservation-details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-left: 0;
    width: 100%;
    margin-top: 24px;
  }

  .clinic-time-info,
  .reservation-time-info {
    text-align: left;
    align-self: center;
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .time-header h3 {
    font-size: 16px;
  }

  .time-list {
    font-size: 14px;
  }

  .time-list li small {
    font-size: 12.5px;
  }

  .time-list li .sub-text {
    font-size: 12px;
  }

    .clinic-time-cards {
      display: flex;
      flex-direction: row;
      gap: 10px;
      width: 100%;
    }

    .clinic-time-card {
      flex: 1;
      padding: 10px 8px;
      border-radius: 10px;
      gap: 1px;
      line-height: 1.25;
      max-width: none;
    }

    .clinic-time-card .highlight-title {
      font-size: 15px;
    }

    .clinic-time-card .highlight-time {
      font-size: 16.5px;
    }

    .clinic-time-card .sub-text {
      font-size: 12.5px;
    }

    .reservation-table {
      font-size: 14.5px;
      margin-bottom: 8px;
      table-layout: fixed;
      max-width: none;
    }

    .reservation-table td {
      font-size: 13.5px;
    }

    .reservation-table th,
    .reservation-table td {
      padding: 6px 10px;
    }

    .reservation-table th:first-child,
    .reservation-table td:first-child {
      width: 90px !important;
      max-width: 90px !important;
      min-width: 90px !important;
      white-space: nowrap !important;
    }

  .contact-title {
    text-align: center;
    margin-bottom: 12px;
  }

  .contact-title .mobile-br {
    display: inline;
  }

  .contact .contact-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    margin-left: 0;
    gap: 8px;
  }

  .contact .contact-actions .button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 6px 4px;
    font-size: 14px;
    letter-spacing: -0.03em;
    gap: 4px;
  }

  .contact .contact-actions .button-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: block;
  }

  .brand-group {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    align-items: center;
  }

  .social-links {
    align-self: center;
    gap: 9px;
    padding-bottom: 0;
  }

  .social-links a {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .hero {
    padding-inline: 18px;
    background:
      linear-gradient(180deg, rgba(248, 243, 234, 0.3), rgba(239, 231, 216, 0.88)),
      url("assets/mobile-hero-bg.png") center top / cover no-repeat;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
  
  .hero-actions .button:nth-child(1),
  .hero-actions .button:nth-child(2) {
    grid-column: span 1;
  }
  
  .hero-actions .button {
    min-height: 40px;
    font-size: 14px;
    padding: 0 16px;
    min-width: auto;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text,
  .section-grid p:last-child,
  .philosophy-columns p {
    font-size: 16px;
  }

  .intro-title {
    font-size: 24px;
  }

  .intro-title span {
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .section,
  .section-grid,
  .philosophy,
  .contact {
    width: calc(100% - 36px);
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-heading a {
    display: none;
  }

  #location .section-heading {
    position: static;
  }

  #location .section-heading .eyebrow {
    position: static;
    margin-bottom: 4px;
  }

  .care-list,
  .doctor-board {
    grid-template-columns: 1fr;
  }

  .doctor-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
  }

  .care-card {
    min-height: 0;
    height: 100%;
    padding: 6px 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
  }

  .care-card::after {
    content: "☛ Click";
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 9px;
    color: var(--gold);
    opacity: 0.75;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .care-card span {
    margin-bottom: 3px;
    text-align: center;
    font-size: 15px;
  }

  .care-icon-img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: -25px;
    flex: 0 0 150px;
  }

  .care-card h3 {
    margin: 0;
    width: 100%;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: keep-all;
  }

  .care-card ul {
    display: none;
  }

  .doctor-card {
    min-height: 320px;
  }

  .doctor-photo {
    min-height: 230px;
  }

  .gallery-tabs button {
    min-height: 50px;
    font-size: 16px;
  }

  .gallery-stage img {
    aspect-ratio: 3 / 2;
  }

  .gallery-stage figcaption {
    padding: 13px 18px;
    font-size: 16px;
  }

  .gallery-arrow {
    width: 38px;
    height: 70px;
    font-size: 28px;
  }

  .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .gallery-thumb {
    min-width: 136px;
    scroll-snap-align: start;
  }



  .philosophy {
    margin-top: -24px;
    padding: 38px 14px;
  }

  #methods + .philosophy {
    margin-top: 0;
  }

  .philosophy h2 {
    font-size: clamp(21px, 6.1vw, 26px);
    line-height: 1.42;
  }

  .philosophy h2 span {
    display: block;
    white-space: nowrap;
  }

  .philosophy .eyebrow {
    position: static;
    margin-bottom: 16px;
  }

  .philosophy-columns {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .philosophy-columns p {
    font-size: clamp(12px, 3.45vw, 14px);
    line-height: 1.8;
  }

  .philosophy-columns span {
    white-space: nowrap;
  }

  .contact-actions {
    width: 100%;
  }

  .contact .contact-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
  }

  .contact .contact-actions .button {
    width: 100%;
    flex: 1;
    padding: 6px 2px;
    font-size: 13px;
    letter-spacing: -0.04em;
    gap: 2px;
    min-height: 42px;
  }

  .contact .contact-actions .button-icon {
    width: 14px;
    height: 14px;
  }

  .contact h2 .mobile-break em,
  .contact-address span {
    display: block;
  }

  .map-embed {
    min-height: 0;
    height: 280px;
  }

  .map-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .map-actions .button {
    padding: 6px 8px;
    min-height: 36px;
    font-size: 13px;
  }
  .map-actions .button .button-icon {
    width: 18px;
    height: 18px;
  }

  .doctor-modal {
    padding: 14px;
  }

  .modal-content {
    height: auto;
    max-height: calc(100svh - 28px);
  }

  .schedule-modal {
    padding: 14px;
  }

  .schedule-modal-panel {
    max-height: calc(100svh - 28px);
    padding: 28px 14px 18px;
  }

  .schedule-modal-head {
    padding-right: 0;
  }

  .schedule-modal-head h2 {
    font-size: 32px;
  }

  .schedule-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px;
  }

  .schedule-doctor-photo {
    min-height: 70px;
  }

  .schedule-doctor-meta span {
    font-size: 11px;
  }

  .schedule-doctor-meta strong {
    font-size: 16px;
    text-align: left;
  }

  .schedule-row .weekly-schedule {
    gap: 3px;
  }

  .schedule-date-cell {
    min-height: 44px;
  }

  .schedule-date-cell strong {
    font-size: 12px;
  }

  .schedule-date-cell span {
    font-size: 10px;
  }

  .schedule-row .schedule-pill {
    min-height: 50px;
    padding: 7px 2px;
  }

  .schedule-row .schedule-pill strong {
    font-size: 12px;
  }

  .schedule-row .schedule-pill em {
    font-size: 9px;
  }

  .schedule-row .schedule-pill span {
    min-height: 16px;
    font-size: 11px;
  }

  .schedule-row .schedule-pill.is-off em {
    font-size: 11px;
  }

  .modal-photo {
    min-height: 360px;
  }

  .modal-detail {
    padding: 28px 22px 24px;
  }

  .modal-detail .eyebrow {
    margin-bottom: 6px;
    font-size: 14px;
    text-align: center;
  }

  .modal-detail h2 {
    margin-bottom: 18px;
    font-size: 30px;
    text-align: center;
  }

  .modal-detail h2 .doctor-title-small {
    font-size: 0.62em;
  }

  .modal-section {
    padding-top: 16px;
  }

  .modal-section ul {
    gap: 6px;
  }

  .modal-section li {
    font-size: 15px;
    line-height: 1.36;
  }

  .modal-section li::before {
    width: 4px;
    height: 4px;
    margin-right: 7px;
    vertical-align: 2px;
  }

  body {
    padding-bottom: 66px;
  }

  .floating-actions {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: rgba(248, 243, 234, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .floating-button {
    min-height: 58px;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    gap: 7px;
    padding: 0 8px;
  }

  .floating-icon {
    width: 22px;
    height: 22px;
  }

  .modal-schedule {
    padding: 24px 18px;
  }

  .modal-schedule h3 {
    font-size: 24px;
  }

  .modal-schedule-head {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .modal-schedule-head span {
    margin-top: 0;
  }

  .weekly-schedule {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .modal-date-cell {
    min-height: 42px;
    margin-bottom: -3px;
  }

  .modal-date-cell strong {
    font-size: 10px;
  }

  .modal-date-cell span {
    font-size: 13px;
  }

  .schedule-pill {
    min-height: 48px;
    gap: 1px;
    padding: 8px 2px;
  }

  .schedule-pill em {
    font-size: 10px;
  }

  .schedule-pill span {
    min-height: 18px;
    font-size: 12px;
  }

  .schedule-pill.is-off em {
    font-size: 12px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  footer {
    display: grid;
  }

  .footer-info-desktop {
    display: none;
  }

  .footer-info-mobile {
    display: grid;
  }

  .footer-info-mobile span {
    margin: 0 4px;
  }

  .footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0;
  }

  /* 주요진료분야 모바일 팝업 크기 일치 (상하폭 축소) */
  #care-modal .modal-content-small {
    height: 300px;
    padding: 30px 24px 24px;
    justify-content: flex-start;
  }

  /* 치료방법 모바일 팝업 크기 (상하폭 축소) */
  #care-modal.is-method-modal .modal-content-small {
    height: 400px;
  }

}

/* --- 스크롤 시 스르르 나타나는 애니메이션 효과 --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 비보험 수가 팝업 스타일 보완 --- */
.nonpay-modal .yakchim-modal-panel {
  max-width: 720px; /* 기존 panel보다 적당한 너비로 제한 */
}

/* 모달 본문 스크롤 영역 꾸미기 */
.nonpay-modal-body::-webkit-scrollbar {
  width: 6px;
}
.nonpay-modal-body::-webkit-scrollbar-track {
  background: rgba(22, 61, 50, 0.05);
  border-radius: 3px;
}
.nonpay-modal-body::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

/* 테이블 호버 및 세부 디테일 */
.nonpay-table tbody tr:hover {
  background-color: rgba(22, 61, 50, 0.03);
}

.nonpay-table th {
  font-family: "Noto Serif KR", serif;
}

.nonpay-table th:first-child,
.nonpay-table td[rowspan] {
  width: 90px;
  min-width: 90px;
}

.nonpay-mobile-br {
  display: none;
}

.nonpay-indent {
  display: inline-block;
  vertical-align: top;
  text-align: left;
}

/* 모바일 전용 반응형 덮어쓰기 */
@media (max-width: 768px) {
  .nonpay-modal .yakchim-modal-panel {
    padding: 36px 12px 24px; /* 패딩을 조금 더 축소하여 테이블의 가로폭 확보 */
  }
  
  .nonpay-table {
    font-size: 13px !important;
    letter-spacing: -0.5px; /* 전체 글자 자간 축소로 가로 공간 확보 */
  }
  
  .nonpay-table th {
    width: auto !important;
  }
  
  .nonpay-table th,
  .nonpay-table td {
    padding: 8px 2px !important; /* 패딩 좌우를 2px로 추가 축소 */
  }
  
  /* 모바일에서 줄바꿈이 깔끔하게 처리되도록 조율 */
  .nonpay-table td {
    word-break: keep-all;
  }
  
  /* 첫번째 열(분류)의 텍스트가 줄바꿈되어 깨지지 않도록 최소 너비 및 사이즈 조율 */
  .nonpay-table td[rowspan] {
    font-size: 11px; /* 분류 폰트 크기 11px로 미세 조정 */
    letter-spacing: -0.8px; /* 분류 자간 더욱 축소 */
    white-space: nowrap; /* 5글자 단어인 '린다이어트' 등이 절대 깨지지 않고 한 줄에 나오도록 설정 */
    min-width: 50px; /* '린다이어트' 너비에 맞추어 최소 너비를 50px로 컴팩트하게 고정 */
    padding: 8px 2px !important;
    width: auto !important;
  }

  .nonpay-mobile-br {
    display: block;
    content: "";
    margin-top: 2px;
  }

  .nonpay-indent {
    display: inline;
  }
}

/* --- 증명서 발급 안내 팝업 스타일 보완 --- */
.cert-modal .yakchim-modal-panel {
  max-width: 720px;
}

.cert-modal-body::-webkit-scrollbar {
  width: 6px;
}
.cert-modal-body::-webkit-scrollbar-track {
  background: rgba(22, 61, 50, 0.05);
  border-radius: 3px;
}
.cert-modal-body::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

.cert-table tbody tr:hover {
  background-color: rgba(22, 61, 50, 0.03);
}

.cert-table th {
  font-family: "Noto Serif KR", serif;
}

@media (max-width: 768px) {
  .cert-modal .yakchim-modal-panel {
    padding: 36px 16px 24px;
  }
  
  .cert-steps {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    letter-spacing: -0.5px !important;
  }
  
  .cert-steps div {
    padding: 8px 2px !important;
  }
  
  .cert-table {
    font-size: 12px !important;
  }
  
  .cert-table th,
  .cert-table td {
    padding: 6px 4px !important;
  }
  
  .cert-table td {
    word-break: keep-all;
  }
}

/* --- 증명서 다운로드 버튼 스타일 --- */
.cert-download-section {
  margin-top: 32px;
  border-top: 1px dashed var(--line);
  padding-top: 24px;
}

.cert-download-title {
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 8px;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}

.cert-download-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.btn-cert-download {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--paper);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-cert-download:hover {
  background-color: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 61, 50, 0.15);
  transform: translateY(-1px);
}

.btn-cert-download svg {
  transition: transform 0.2s ease-in-out;
}

.btn-cert-download:hover svg {
  transform: translateY(2px);
}

@media (max-width: 576px) {
  .btn-cert-download {
    padding: 10px 8px;
    font-size: 12.5px;
    gap: 4px;
  }
}

/* --- 예약 섹션 하단 팝업 버튼 세트 --- */
.contact-info-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px; /* PC 버전은 520px 상태로 롤백 */
  width: min(520px, calc(100% - 40px));
  margin: 28px auto 70px; /* reservation 갈색 박스 아래에 단독 정렬 여백 제공 */
}

.contact-info-buttons .button.info-btn {
  background: transparent;
  border: 1px solid var(--green); /* 보더 두께 1px로 슬림하게, 주 색상은 그린으로 */
  color: var(--green); /* 글자색을 짙은 녹색으로 변경 */
  box-shadow: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border-radius: 999px;
  min-height: 40px; /* 46px에서 40px로 콤팩트하게 더 축소 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; /* 13px에서 14px로 가독성 강화 미세조정 */
  font-weight: 800;
}

.contact-info-buttons .button.info-btn:hover {
  background: var(--green); /* 호버 시 그린 배경 반전 */
  color: var(--paper);
}

@media (max-width: 768px) {
  .contact-info-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 20px auto 48px;
    width: calc(100% - 60px); /* 여백을 더욱 넓혀서 모바일에서도 버튼 좌우폭을 더 감소 */
  }
  .contact-info-buttons .button.info-btn {
    font-size: 12px;
    min-height: 36px;
    padding: 0 4px;
    letter-spacing: -0.8px;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
  }
}

/* --- 입퇴원 안내 팝업 스타일 보완 --- */
.admission-modal .yakchim-modal-panel {
  max-width: 720px;
}

.admission-modal-body::-webkit-scrollbar {
  width: 6px;
}
.admission-modal-body::-webkit-scrollbar-track {
  background: rgba(22, 61, 50, 0.05);
  border-radius: 3px;
}
.admission-modal-body::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

.admission-table tbody tr:hover {
  background-color: rgba(22, 61, 50, 0.03);
}

.admission-table td {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .admission-modal .yakchim-modal-panel {
    padding: 36px 16px 24px;
  }
  
  .admission-steps {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    font-size: 11px !important;
    letter-spacing: -0.5px !important;
  }
  
  .admission-steps div {
    padding: 8px 4px !important;
  }
  
  .admission-table {
    font-size: 12px !important;
  }
  
  .admission-table td {
    padding: 8px 4px !important;
    word-break: keep-all;
  }
}
