@charset "utf-8";
/* ==========================================================
   마인드온정신건강의학과 - 리뉴얼 V2 (Editorial Layout)
   색상/폰트 유지 + 구조 전면 변형
   ========================================================== */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,300');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Noto+Serif+KR&display=swap');
@import url('//cdn.jsdelivr.net/font-iropke-batang/1.2/font-iropke-batang.css');

/* ---------- VARIABLES (기존 팔레트 유지) ---------- */
:root {
  --accent: #FFD55F;
  --accent-deep: #F8C126;
  --accent-hover: #FFC85F;
  --cream: #FFFAEA;
  --ink: #1c1915;
  --dark: #16110a;
  --dark-2: #201a10;
  --line: rgba(28, 25, 21, .14);
  --text: #606167;
  --text-light: #555;
  --white: #fff;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-size: 16px; color: var(--text); line-height: 1.8em;
  background: var(--white); letter-spacing: -.04em;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: 0; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: #1c9bf6; color: #fff; }
.iropke { font-family: 'Iropke Batang', serif; }
.ns { font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--accent); transition: opacity .7s ease, visibility .7s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-num {
  font-family: 'Lato', sans-serif; font-size: 90px; font-weight: 700;
  letter-spacing: .02em; line-height: 1;
}
.preloader-word { font-family: 'Lato', sans-serif; letter-spacing: 6px; font-size: 15px; margin-top: 10px; color: rgba(255, 213, 95, .8); }
.preloader-line { width: 220px; height: 2px; background: rgba(255, 213, 95, .2); margin-top: 24px; overflow: hidden; border-radius: 2px; }
.preloader-line span { display: block; width: 0; height: 100%; background: var(--accent); }

/* ---------- SCROLL PROGRESS ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 980; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #ffb347);
}

/* ---------- CURSOR ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%); display: none;
}
#cursor-dot { width: 8px; height: 8px; background: var(--accent-deep); }
#cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(248, 193, 38, .55);
  transition: width .3s ease, height .3s ease, background .3s ease, border-color .3s ease;
}
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
body.cursor-on #cursor-dot, body.cursor-on #cursor-ring { display: block; }
#cursor-ring.grow { width: 62px; height: 62px; background: rgba(255, 213, 95, .16); border-color: transparent; }

/* ---------- HEADER ---------- */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 26px 40px;
  transition: padding .4s var(--ease), background .4s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-logo img { height: 30px; transition: height .4s var(--ease); filter: invert(1) sepia(1) saturate(0) brightness(2); }
.header-nav { display: flex; gap: 6px; padding: 8px 18px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 50px; }
.header-nav a {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255, 255, 255, .78); padding: 6px 14px; border-radius: 50px;
  position: relative; overflow: hidden; transition: color .3s ease, background .3s ease;
}
.header-nav a:hover { color: var(--ink); background: var(--accent); }
.header-logo img { filter: brightness(0) invert(1); }

/* 스크롤 후 흰색 헤더 */
#header.solid {
  padding: 12px 40px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}
#header.solid .header-logo img { height: 24px; }
#header.solid .header-logo img { filter: none; }
#header.solid .header-nav { background: var(--cream); border-color: var(--line); }
#header.solid .header-nav a { color: #3a352c; }
#header.solid .header-nav a:hover { color: var(--ink); background: var(--accent); }

/* ---------- BURGER ---------- */
.burger { display: none; width: 44px; height: 32px; flex-direction: column; justify-content: space-between; align-items: flex-end; z-index: 1000; }
.burger span { display: block; width: 28px; height: 2.5px; background: var(--white); border-radius: 3px; transition: all .35s var(--ease); }
#header.solid .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.burger.open span { background: var(--ink); }

/* ---------- MOBILE NAV ---------- */
.mnav {
  position: fixed; top: 0; right: 0; z-index: 985; height: 100%;
  width: min(480px, 100%); background: var(--dark); color: var(--white);
  transform: translateX(105%); transition: transform .55s var(--ease);
  padding: 120px 50px 50px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
}
.mnav.open { transform: translateX(0); }
.mnav-folio a {
  display: grid; grid-template-columns: 44px 1fr 140px;
  align-items: baseline; gap: 10px; padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 2px;
  color: var(--white); opacity: 0; transform: translateX(40px);
  transition: all .5s var(--ease), color .3s ease;
}
.mnav.open .mnav-folio a { opacity: 1; transform: translateX(0); }
.mnav-folio a em { font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; font-style: normal; font-size: 13px; color: var(--accent); letter-spacing: 0; }
.mnav-folio a span { font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; font-size: 14px; color: rgba(255, 255, 255, .45); letter-spacing: 0; font-weight: 400; text-align: right; }
.mnav-folio a:hover { color: var(--accent); padding-left: 6px; }
.mnav-call { text-align: center; padding: 18px; border-radius: 50px; background: var(--accent); color: var(--dark); font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 15px; opacity: 0; transition: all .5s ease .3s; }
.mnav.open .mnav-call { opacity: 1; }
.mnav-mask { position: fixed; inset: 0; z-index: 980; background: rgba(20, 15, 8, .4); opacity: 0; visibility: hidden; transition: all .4s ease; }
.mnav-mask.show { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }

/* ---------- COMMON REVEAL ---------- */
.reveal-up, .reveal-fade {
  opacity: 0; will-change: opacity, transform;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-up { transform: translateY(50px); }
.reveal-fade { transform: translateY(20px); }
.reveal-up.in, .reveal-fade.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--dark); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22, 17, 10, .35) 0%, rgba(22, 17, 10, .28) 40%, rgba(22, 17, 10, .92) 100%);
}
/* 패럴랙스 타깃 */
.hero-img { transform: translate3d(0, 0, 0) scale(1.08); }

.hero-edge {
  position: absolute; font-family: 'Lato', sans-serif; font-weight: 300; font-size: 12px;
  letter-spacing: 6px; color: rgba(255, 255, 255, .4); text-transform: uppercase;
}
.hero-edge-left { top: 50%; left: 42px; transform: translateY(-50%) rotate(-90deg) translateX(-50%); transform-origin: left center; }
.hero-edge-right { top: 50%; right: -40px; transform: translateY(-50%) rotate(90deg) translateX(-50%); transform-origin: right center; }

/* 회전 배지 */
.hero-badge {
  position: absolute; top: 24%; right: 10%;
  width: 118px; height: 118px; z-index: 5;
}
.rotate-badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rotate-badge text { font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; font-size: 15px; fill: rgba(255, 213, 95, .85); letter-spacing: 2px; }
.badge-heart {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--accent);
  animation: heartbeat 2.2s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } }

.hero-content { position: relative; z-index: 5; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 8vw; text-align: left; }
.hero-kicker {
  color: var(--accent); font-size: 14px; letter-spacing: 2px; font-weight: 500;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ''; width: 42px; height: 1px; background: var(--accent); }
.hero-title { color: var(--white); line-height: 1.3; font-size: clamp(24px, 3.6vw, 53px); }
.h-line { display: block; overflow: hidden; }
.h-line b { color: var(--accent); font-weight: 400; }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 44px; }
.hero-sub { color: rgba(255, 255, 255, .82); font-size: 20px; }

/* 히어로 텍스트 페이드인 */
.hero .hero-kicker,
.hero .h-line span,
.hero .hero-sub,
.hero .hero-foot .pill-btn {
  opacity: 0;
  transition: opacity .9s ease, transform 1.2s var(--ease);
}
.hero .h-line span { display: block; transform: translateY(115%); }
.hero .hero-kicker { transform: translateY(22px); }
.hero .hero-sub { transform: translateY(22px); }
.hero .hero-foot .pill-btn { transform: translateY(22px); }

.hero.loaded .hero-kicker { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.hero.loaded .h-line:nth-child(1) span { opacity: 1; transform: translateY(0); transition-delay: .22s; }
.hero.loaded .h-line:nth-child(2) span { opacity: 1; transform: translateY(0); transition-delay: .34s; }
.hero.loaded .h-line:nth-child(3) span { opacity: 1; transform: translateY(0); transition-delay: .46s; }
.hero.loaded .h-line:nth-child(4) span { opacity: 1; transform: translateY(0); transition-delay: .58s; }
.hero.loaded .hero-sub { opacity: 1; transform: translateY(0); transition-delay: .58s; }
.hero.loaded .hero-foot .pill-btn { opacity: 1; transform: translateY(0); transition-delay: .72s; }

/* 알약 버튼 */
.pill-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--dark);
  font-family: 'NanumSquare', 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 15px;
  padding: 16px 28px; border-radius: 50px;
  transition: background .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.pill-btn i { font-style: normal; transition: transform .3s var(--ease); }
.pill-btn:hover { background: var(--accent-deep); box-shadow: 0 16px 40px rgba(248, 193, 38, .35); transform: translateY(-3px); }
.pill-btn:hover i { transform: translateX(5px); }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .55);
}
.scroll-wheel { width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.scroll-wheel::after { content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; border-radius: 3px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; transform: translateX(-50%); }
@keyframes wheel { 0% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }
.scroll-text { font-family: 'Lato', sans-serif; font-size: 10px; letter-spacing: 3px; }

/* ---------- STATS ---------- */
.stats { background: var(--dark); color: var(--white); border-top: 1px solid rgba(255, 213, 95, .15); }
.stats-row { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 30px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.stat::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 60%; height: 2px;
  background: var(--accent); transform: translateX(-50%) scaleX(0); transition: transform .6s var(--ease);
}
.stat.in::before { transform: translateX(-50%) scaleX(1); }
.stat:first-child { border-left: 1px solid rgba(255, 255, 255, .08); }
.stat-num { font-family: 'Lato', sans-serif; font-size: 46px; font-weight: 700; line-height: 1; color: var(--accent); }
.stat-num b { font-size: 22px; font-weight: 400; }
.stat-label { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- STORY ---------- */
.story { max-width: 1400px; margin: 0 auto; padding: 120px 4vw 0; }
.story-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.story-head h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.18; color: var(--ink); }
.story-head h2 b { color: var(--accent-deep); font-weight: 400; }
.story-index, .clinic-index, .programs-index, .notice-index, .loc-index {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Lato', sans-serif; font-size: 12px; letter-spacing: 3px; color: #8a8577;
}
.story-index em, .clinic-index em, .programs-index em, .notice-index em, .loc-index em {
  font-style: normal; color: var(--accent-deep); font-weight: 700; font-size: 16px;
}

.story-slide { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.story-copy { color: var(--ink); font-size: clamp(15px, 1.7vw, 19px); line-height: 2.1; }
.story-copy span { display: inline-block; opacity: .1; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease); }
.story-copy.in span { opacity: 1; transform: translateY(0); }
.story-copy b { color: var(--accent-deep); font-weight: 700; }

.story-carousel { position: relative; }
#storyTrack {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 26px; scrollbar-width: none; padding-bottom: 4px;
}
#storyTrack::-webkit-scrollbar { display: none; }
#storyTrack article {
  flex: 0 0 60%; scroll-snap-align: center;
  border-radius: 26px; overflow: hidden; position: relative;
  aspect-ratio: 16 / 10;
}
#storyTrack article img { width: 100%; height: 100%; object-fit: cover; }
.story-carousel-ui { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.sc-count { font-family: 'Lato', sans-serif; font-size: 13px; color: #8a8577; letter-spacing: 1px; white-space: nowrap; }
.sc-count b { color: var(--accent-deep); font-size: 22px; }
.sc-progress { flex: 1; height: 3px; background: #eee; border-radius: 3px; overflow: hidden; }
.sc-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.sc-prev, .sc-next {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 18px; transition: all .3s ease;
}
.sc-prev:hover, .sc-next:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* ---------- CLINIC ---------- */
.clinic {
  max-width: 1400px; margin: 130px auto 0; padding: 64px 4vw;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 60px; position: relative;
  background: linear-gradient(180deg, #fff, var(--cream));
  border-radius: 60px 60px 0 0;
  overflow: hidden;
}
.clinic-panel { position: sticky; top: 120px; align-self: start; }
.clinic-panel h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; color: var(--ink); margin-top: 22px; }
.clinic-panel h2 b { color: var(--accent-deep); font-weight: 400; }
.clinic-panel-desc { max-width: 340px; margin-top: 28px; color: var(--text-light); font-size: 15px; }
.clinic-panel-count { margin-top: 44px; font-family: 'Lato', sans-serif; font-size: 36px; color: var(--ink); font-weight: 700; line-height: 1; }
.clinic-panel-count span { font-size: 13px; letter-spacing: 3px; color: #8a8577; font-weight: 400; }

.clinic-rows { display: flex; flex-direction: column; }
.clinic-row {
  display: grid; grid-template-columns: 70px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "num title arrow" "num desc arrow";
  align-items: center; gap: 0 24px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: padding .35s var(--ease);
}
.clinic-row::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.clinic-row:hover::after { transform: scaleX(1); }
.clinic-row:hover { padding-left: 22px; }
.row-num { grid-area: num; font-family: 'Lato', sans-serif; color: #c0b79f; font-size: 20px; }
.clinic-row.active .row-num, .clinic-row:hover .row-num { color: var(--accent-deep); }
.row-title { grid-area: title; font-size: 26px; color: var(--ink); line-height: 1.25; transition: transform .35s var(--ease); }
.clinic-row:hover .row-title, .clinic-row.active .row-title { color: var(--accent-deep); }
.row-desc { grid-area: desc; font-size: 13px; color: #9a9385; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.row-arrow { grid-area: arrow; font-size: 26px; color: var(--accent-deep); opacity: 0; transform: translateX(-16px); transition: all .35s var(--ease); }
.clinic-row:hover .row-arrow, .clinic-row.active .row-arrow { opacity: 1; transform: translateX(0); }

/* 마우스 따라다니는 프리뷰 */
.clinic-preview {
  position: fixed; width: 240px; height: 240px; z-index: 50;
  border-radius: 22px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .3s var(--ease);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.clinic-preview.show { opacity: 1; transform: scale(1); }
.clinic-preview figure { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.clinic-preview figure.show { opacity: 1; }
.clinic-preview figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(22, 17, 10, .65)); }
.clinic-preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-tag {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  color: var(--white); font-size: 12px; font-weight: 600;
}

/* ---------- PROGRAMS ---------- */
.programs { max-width: 1400px; margin: 0 auto; padding: 120px 4vw 90px; }
.programs-intro { text-align: center; }
.programs-index { justify-content: center; }
.programs-intro h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; color: var(--ink); margin-top: 20px; }
.programs-intro h2 b { color: var(--accent-deep); font-weight: 400; }
.programs-desc { margin-top: 22px; color: var(--text-light); font-size: 15px; }

.treat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.treat-card {
  position: relative; background: var(--cream); border-radius: 26px;
  padding: 34px 28px 30px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.treat-card:hover { box-shadow: 0 30px 70px rgba(248, 193, 38, .28); }
.treat-num { font-family: 'Lato', sans-serif; color: var(--accent-deep); font-size: 14px; letter-spacing: 3px; }
.treat-card h3 { font-size: 24px; color: var(--ink); margin-top: 16px; }
.treat-body { margin-top: 14px; font-size: 13px; color: var(--text-light); line-height: 1.9; }
.treat-more { display: inline-block; margin-top: 28px; font-size: 13px; font-weight: 700; color: var(--ink); transition: color .3s ease; }
.treat-card:hover .treat-more { color: var(--accent-deep); }
.treat-shine {
  position: absolute; top: 0; left: -130%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg); transition: left .8s ease;
}
.treat-card:hover .treat-shine { left: 150%; }

/* 검사 아코디언 */
.checkup { margin-top: 84px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.checkup-head { position: sticky; top: 130px; }
.checkup-head h3 { font-size: 30px; color: var(--ink); }
.checkup-head p { margin-top: 18px; font-size: 13px; color: var(--text-light); }
.checkup-list { border-top: 2px solid var(--ink); }
.checkup-item {
  width: 100%; display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center; padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left; transition: background .3s ease;
}
.checkup-item:hover { background: var(--cream); }
.cu-num { font-family: 'Lato', sans-serif; color: #b8ae94; font-size: 13px; }
.cu-t { font-size: 17px; color: var(--ink); font-weight: 500; }
.cu-arrow { font-size: 20px; color: var(--accent-deep); transition: transform .4s var(--ease); }
.checkup-list li.open .cu-arrow { transform: rotate(45deg); }
.cu-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.cu-body p { padding: 2px 54px 22px; font-size: 13px; color: var(--text-light); line-height: 1.9; border-bottom: 1px solid var(--line); }

/* ---------- NOTICE ---------- */
.notice { max-width: 900px; margin: 0 auto; padding: 90px 4vw; text-align: center; }
.notice-index { justify-content: center; margin-bottom: 30px; }
.notice-card {
  position: relative; background: var(--cream);
  border-radius: 36px; padding: 56px 40px 46px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.notice-card:hover { transform: translateY(-8px); box-shadow: 0 40px 90px rgba(248, 193, 38, .3); }
.notice-badge {
  display: inline-block; background: var(--accent); color: var(--dark);
  font-size: 12px; font-weight: 700; padding: 7px 18px; border-radius: 50px;
}
.notice-card h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; color: var(--ink); margin-top: 24px; }
.notice-card h3 b { color: var(--accent-deep); font-weight: 400; }
.notice-text { margin-top: 22px; font-size: 14px; color: var(--text-light); line-height: 1.9; }
.notice-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(28, 25, 21, .12); }
.notice-date { font-size: 13px; color: #8a8577; }
.notice-more { font-weight: 700; color: var(--ink); font-size: 13px; transition: color .3s ease, letter-spacing .3s ease; }
.notice-card:hover .notice-more { color: var(--accent-deep); letter-spacing: 1px; }
.notice-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 95, .35), transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.2); opacity: 1; } }

/* ---------- LOCATION ---------- */
.location {
  position: relative; padding: 100px 4vw 90px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  overflow: hidden;
  background: var(--dark);
  border-radius: 60px 60px 0 0;
}
.location::before {
  content: ''; position: absolute; top: -20%; right: -12%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 95, .14), transparent 65%);
  pointer-events: none;
}
.location-media { position: relative; z-index: 2; }
.location-map {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .5));
}
.loc-pin { position: absolute; top: 30%; left: 42%; width: 24px; height: 24px; }
.loc-pin::before, .loc-pin::after {
  content: ''; position: absolute; inset: 0; border-radius: 50% 50% 50% 0;
  background: var(--accent-deep); transform: rotate(-45deg);
}
.loc-pin::after { inset: auto; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); top: 50%; left: 50%; background: var(--dark); }
.pin-pulse {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(248, 193, 38, .9); transform: translate(-50%, -50%);
}
.pin-pulse::before {
  content: ''; position: absolute; inset: -20px; border-radius: 50%;
  border: 2px solid rgba(248, 193, 38, .6);
  animation: pin-wave 2s ease-out infinite;
}
@keyframes pin-wave { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.location-card { position: relative; z-index: 2; color: var(--white); padding: 0 30px; }
.location-card .loc-index { color: rgba(255, 255, 255, .5); }
.loc-index em { color: var(--accent); }
.location-card h2 { font-size: clamp(26px, 3vw, 40px); margin-top: 18px; }
.loc-tel { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.loc-tel b { font-size: 24px; color: var(--accent); display: block; margin-top: 4px; font-weight: 700; }
.loc-addr { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .85); line-height: 1.8; }
.loc-sub { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); font-weight: 500; }
.loc-btn { margin-top: 32px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark-2); color: var(--white); position: relative; overflow: hidden; padding: 0 4vw 40px; }
.footer-wordmark {
  font-size: clamp(64px, 10vw, 150px); line-height: 1; text-align: center;
  color: rgba(255, 213, 95, .08); margin-top: 20px; letter-spacing: -.02em;
  user-select: none; white-space: nowrap;
}
.footer-wordmark span { color: rgba(255, 213, 95, .25); }
.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px;
  max-width: 1400px; margin: -40px auto 0; padding: 0 0 60px;
}
.fcol h4 { font-family: 'Lato', sans-serif; font-size: 12px; letter-spacing: 3px; color: var(--accent); margin-bottom: 24px; }
.fcol p { font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.9; margin-bottom: 8px; }
.fcol p span { float: right; color: var(--white); }
.f-sns { display: flex; gap: 16px; margin-top: 18px; }
.f-sns a { font-size: 13px; color: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .2); padding: 8px 16px; border-radius: 50px; transition: all .3s ease; }
.f-sns a:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.f-note { font-size: 12px !important; color: rgba(255, 255, 255, .4) !important; margin-top: 14px !important; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 26px; display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto;
  font-size: 12px; color: rgba(255, 255, 255, .4);
}
#footer-top {
  color: rgba(255, 255, 255, .7); font-family: 'Lato', sans-serif; font-size: 12px; letter-spacing: 2px;
  padding: 10px 20px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50px;
  transition: all .3s ease;
}
#footer-top:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--dark); font-size: 20px;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  box-shadow: 0 14px 30px rgba(248, 193, 38, .4);
  transition: all .4s var(--ease);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent-deep); }

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 1100px) {
  .clinic { grid-template-columns: 1fr; gap: 50px; }
  .clinic-panel { position: static; }
  .clinic-preview { display: none; }
  .story-slide { grid-template-columns: 1fr; gap: 50px; }
  .checkup { grid-template-columns: 1fr; }
  .checkup-head { position: static; }
  .location { grid-template-columns: 1fr; gap: 0; padding-top: 80px; }
  .location::before { top: -30%; right: -20%; width: 420px; height: 420px; }
  .location-card { padding: 40px 30px 0; }
  .hero-edge, .hero-badge { display: none; }
}

@media screen and (max-width: 780px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  #header { padding: 18px 22px; }
  #header.solid { padding: 12px 22px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 18px; }
  .stat-num { font-size: 38px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .stat:first-child, .stat:nth-child(2) { border-left: 0; }

  .story { padding: 90px 4vw 0; }
  .story-head { margin-bottom: 40px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .story-slide { gap: 32px; }
  #storyTrack article { flex: 0 0 70%; aspect-ratio: 4 / 3.2; }

  .clinic { margin-top: 90px; padding: 56px 5vw; border-radius: 40px 40px 0 0; }
  .clinic-row { grid-template-columns: 40px 1fr; grid-template-areas: "num title" "num desc"; }
  .clinic-row .row-arrow { display: none; }
  .row-title { font-size: 22px; }
  .row-desc { font-size: 11px; }

  .treat-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .programs { padding: 90px 5vw 70px; }
  .checkup { margin-top: 60px; }
  .cu-t { font-size: 16px; }

  .notice { padding: 70px 5vw; }
  .notice-card { padding: 44px 26px 38px; border-radius: 26px; }

  .footer-cols { grid-template-columns: 1fr; gap: 40px; margin-top: 0; }
  .fcol p span { float: none; }
  #back-to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  .h-line span, .reveal-up, .reveal-fade, .story-copy span { transform: none; opacity: 1; }
}
