/* ==========================================================================
   SHARPEN — subpages.css
   1) 전 페이지 공통: 하위메뉴(드롭다운) 내비게이션, 모바일 하위메뉴
   2) 신규 서비스 페이지 공통 컴포넌트
      (온라인 문제해결 · 콘텐츠 제작 · 온라인 마케팅 · AI 콘텐츠 자동화)
   style.css 토큰을 그대로 사용합니다. 시안(샤픈 홈페이지 시안)의
   '고민 → 해결 3단계 → 근거/가격' 패널, 단계 탭, 칩 필터 구조를 따릅니다.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- 1. Desktop dropdown ---------- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret {
  transform: translateY(0) rotate(-135deg);
}
.nav__sub {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 248px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(10, 10, 10, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 120;
}
.nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__sub a small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-sub);
}
.nav__sub a:hover,
.nav__sub a.is-active {
  background: var(--bg-light);
  color: var(--accent);
}
.nav__sub a.is-active small { color: var(--accent); opacity: 0.75; }
.nav__sub-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--border);
}

/* ---------- 1-b. Mega menu (서비스: 업종 3열) ---------- */
.nav__sub--mega {
  left: -240px;
  width: min(760px, 86vw);
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 6px 10px;
  padding: 16px;
}
.nav__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav__col-h {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 4px 14px 6px;
}
.nav__sub--mega a { white-space: normal; }
.nav__mega-cta {
  grid-column: 1 / -1;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px !important;
  padding-top: 14px !important;
  color: var(--accent) !important;
}

/* ---------- 1-c. Page tabs (병원마케팅 · AI · 리스크 관리) ---------- */
.sp-pagetabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.sp-pagetabs .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; }
.sp-pagetabs a { flex: none; padding: 10px 18px; border-radius: 100px; font-size: 0.95rem; font-weight: 600; color: var(--text-sub); border: 1px solid transparent; }
.sp-pagetabs a:hover { color: var(--text-main); border-color: var(--border); }
.sp-pagetabs a.is-current { background: var(--primary-dark); color: var(--white); }
.sp-pagetabs .sp-pagetabs__label { align-self: center; font-size: 0.8rem; color: var(--text-faint); margin-right: 6px; flex: none; }

/* ---------- 1-d. Anchor chips (페이지 안 섹션 바로가기) ---------- */
.sp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sp-jump a { font-size: 0.88rem; padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.sp-jump a:hover { border-color: var(--white); color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 72px); }

/* ---------- 1-e. Quote (고객 후기) ---------- */
.sp-quote { background: var(--bg-light); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.sp-quote p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--text-main); }
.sp-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.9rem; color: var(--text-sub); }
.sp-quote cite b { color: var(--text-main); }

/* ---------- 1-f. Vertical history timeline ---------- */
.sp-history { border-left: 2px solid var(--border-dark); margin-left: 6px; }
.sp-history li { position: relative; padding: 0 0 28px 28px; }
.sp-history li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.sp-history b { display: block; font-family: var(--font-en); font-size: 0.95rem; color: var(--accent); margin-bottom: 4px; }
.sp-history h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.sp-history p { color: rgba(255,255,255,.65); font-size: 0.97rem; line-height: 1.65; }

/* ---------- 1-g. Benefit list ---------- */
.sp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sp-benefit { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--white); }
.sp-benefit b { display: block; font-family: var(--font-en); color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; }
.sp-benefit h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.sp-benefit p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; }
.section--dark .sp-benefit { background: rgba(255,255,255,.03); border-color: var(--border-dark); }
.section--dark .sp-benefit h3 { color: var(--white); }
.section--dark .sp-benefit p { color: rgba(255,255,255,.65); }

/* ---------- 1-h. Price tables ---------- */
.sp-price-group { margin-bottom: clamp(40px, 5vw, 64px); }
.sp-price-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); margin-bottom: 6px; }
.sp-price-group > p { color: var(--text-sub); margin-bottom: 18px; }
.sp-table td.price { font-weight: 700; color: var(--text-main); white-space: nowrap; }
.sp-table td a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- 2. Mobile sub menu ---------- */
.mobile-menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0 0 14px 4px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .mobile-menu__sub {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}
.mobile-menu__sub a {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  transition: color 0.3s var(--ease);
}
.mobile-menu__sub a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.mobile-menu__sub a:hover,
.mobile-menu__sub a.is-active { color: var(--white); }
body.menu-open .mobile-menu__link:nth-child(6) { transition-delay: 0.38s; }
body.menu-open .mobile-menu__link:nth-child(7) { transition-delay: 0.44s; }

/* ---------- 3. Sub-page hero ---------- */
.sp-hero .h-hero {
  font-size: clamp(2.3rem, 5.6vw, 4.75rem);
  line-height: 1.1;
  max-width: 17ch;
  margin: 22px 0 28px;
}
.sp-hero .lead { max-width: 58ch; }
.sp-crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 26px;
}
.sp-crumb a:hover { color: var(--white); }
.hero--light .sp-crumb { color: var(--text-sub); }
.hero--light .sp-crumb a:hover { color: var(--accent); }
.sp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.sp-hero__tags span {
  font-size: 0.85rem;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.78);
}
.hero--light .sp-hero__tags span { border-color: var(--border); color: var(--text-sub); }

/* ---------- 4. Stat cards (출처 표기형) ---------- */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sp-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section--dark .sp-stat {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
}
.sp-stat__num {
  font-family: var(--font-en);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.sp-stat__num small { font-size: 0.45em; font-weight: 600; margin-left: 2px; }
.sp-stat__label { font-size: 1rem; font-weight: 600; color: var(--text-main); line-height: 1.5; }
.section--dark .sp-stat__label { color: var(--white); }
.sp-stat__src {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
}
.section--dark .sp-stat__src { border-color: var(--border-dark); color: rgba(255, 255, 255, 0.5); }
.sp-stat__src a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 5. Problem panel tabs (시안 '업종별 고민' 패턴) ---------- */
.sp-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.sp-tabs .filter-btn[aria-selected="true"] {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.section--dark .sp-tabs .filter-btn { border-color: var(--border-dark); color: rgba(255,255,255,.7); }
.section--dark .sp-tabs .filter-btn[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.sp-panel .hv-panel__pain { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.sp-panel__why {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.75;
}
.sp-visual {
  aspect-ratio: auto !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-lighter);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* mock search result (검색 결과 재현) */
.serp { font-size: 0.9rem; display: flex; flex-direction: column; gap: 10px; }
.serp__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #03c75a;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  font-weight: 600;
  color: var(--text-main);
}
.serp__bar i {
  width: 14px; height: 14px; border: 2px solid #03c75a; border-radius: 50%; position: relative; flex: none;
}
.serp__bar i::after { content: ""; position: absolute; width: 6px; height: 2px; background: #03c75a; right: -6px; bottom: -3px; transform: rotate(45deg); }
.serp__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.serp__item b { color: #1a0dab; font-weight: 600; }
.serp__item span { color: var(--text-sub); font-size: 0.8rem; }
.serp__item em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}
.serp__item--bad { border-color: rgba(182, 38, 27, 0.4); background: #fff7f6; }
.serp__item--bad em { color: var(--accent); }
.serp__item--good { border-color: #03c75a; box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.12); }
.serp__item--good em { color: #03a34b; }
.serp__toggle { display: flex; gap: 8px; margin-top: 4px; }
.serp__toggle button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-sub);
  background: var(--white);
  cursor: pointer;
}
.serp__toggle button[aria-pressed="true"] { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.serp__state:not([hidden]) { animation: hvPop 0.4s var(--ease); }

/* ---------- 6. Case cards (실제 사례) ---------- */
.sp-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sp-case {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sp-case:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.section--dark .sp-case { background: rgba(255,255,255,.03); border-color: var(--border-dark); }
.sp-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.sp-case__meta .chip-cat { color: var(--accent); }
.sp-case__meta .chip-year {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-sub);
}
.section--dark .sp-case__meta .chip-year { border-color: var(--border-dark); color: rgba(255,255,255,.6); }
.sp-case__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; color: var(--text-main); }
.section--dark .sp-case__title { color: var(--white); }
.sp-case dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.section--dark .sp-case dl { border-color: var(--border-dark); }
.sp-case dt { font-size: 0.82rem; font-weight: 700; color: var(--accent); padding-top: 2px; white-space: nowrap; }
.sp-case dd { font-size: 0.97rem; color: var(--text-body); line-height: 1.65; }
.section--dark .sp-case dd { color: rgba(255,255,255,.7); }
.sp-case__lesson {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}
.section--dark .sp-case__lesson { background: rgba(255,255,255,.05); color: var(--white); }
.sp-case__src { font-size: 0.78rem; color: var(--text-sub); line-height: 1.6; word-break: break-all; }
.sp-case__src a { text-decoration: underline; text-underline-offset: 2px; }
.sp-case__src a:hover { color: var(--accent); }
.sp-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.section--dark .sp-note { color: rgba(255,255,255,.5); }

/* ---------- 7. Service offer cards (가격 포함) ---------- */
.sp-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sp-offer {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-main);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sp-offer:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
  box-shadow: 0 22px 48px -30px rgba(10, 10, 10, 0.45);
}
.sp-offer__tag { font-family: var(--font-en); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.sp-offer h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.sp-offer p { font-size: 0.97rem; color: var(--text-sub); line-height: 1.65; }
.sp-offer ul { display: grid; gap: 6px; margin-top: 4px; }
.sp-offer li { font-size: 0.93rem; color: var(--text-body); padding-left: 14px; position: relative; line-height: 1.55; }
.sp-offer li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.sp-offer .sp-offer__price {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.sp-offer__price span { font-size: 0.85rem; color: var(--text-sub); font-weight: 500; }

/* ---------- 8. Step tabs w/ progress (시안 '과금 원칙' 패턴) ---------- */
.sp-flow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.sp-flow .hv-steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.sp-flow .hv-step { font-size: 0.92rem; }
.sp-flow .hv-bar i { width: calc(100% / var(--n, 3)); }
.sp-flow .hv-step-body ul { display: grid; gap: 8px; margin-top: 6px; }
.sp-flow .hv-step-body li { color: rgba(255,255,255,.72); padding-left: 16px; position: relative; }
.sp-flow .hv-step-body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.sp-flow .hv-step-body .sp-human {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--white);
}

/* ---------- 9. Ad product table ---------- */
.sp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.sp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.sp-table th, .sp-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.95rem; line-height: 1.6; }
.sp-table thead th { background: var(--bg-light); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text-sub); font-weight: 700; }
.sp-table tbody th { font-weight: 700; color: var(--text-main); white-space: nowrap; }
.sp-table td { color: var(--text-body); }
.sp-table tr:last-child th, .sp-table tr:last-child td { border-bottom: 0; }
.sp-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }

/* ---------- 10. Warning / rule box ---------- */
.sp-rule {
  border: 1px solid var(--accent-line);
  background: #fff8f7;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
}
.sp-rule h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); letter-spacing: -0.02em; color: var(--text-main); margin-top: 14px; }
.sp-rule p { color: var(--text-body); margin-top: 14px; line-height: 1.7; }
.sp-rule ul { display: grid; gap: 0; border-top: 1px solid var(--accent-line); }
.sp-rule li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--accent-line); position: relative; color: var(--text-main); font-size: 0.98rem; }
.sp-rule li::before { content: "✕"; position: absolute; left: 4px; top: 13px; color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.sp-rule .sp-rule__src { font-size: 0.8rem; color: var(--text-sub); margin-top: 16px; }
.sp-rule__src a { text-decoration: underline; }

/* ---------- 11. Format grid (콘텐츠 형식) ---------- */
.sp-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-format {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sp-format:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -28px rgba(17, 17, 20, 0.35); }
.sp-format .media-guide { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.sp-format .media-guide--vert { aspect-ratio: 16 / 9; }
.sp-format__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sp-format__body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.02em; }
.sp-format__body p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; }
.sp-format__body .sp-format__use { margin-top: auto; padding-top: 12px; font-size: 0.85rem; color: var(--text-body); border-top: 1px dashed var(--border); }
.sp-format__use b { color: var(--accent); font-weight: 700; margin-right: 6px; }

/* ---------- 12. Curriculum (교육 커리큘럼) ---------- */
.sp-curri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-curri__col { border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 26px; background: rgba(255,255,255,.03); }
.sp-curri__col h3 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sp-curri__col h3 span { font-family: var(--font-en); font-size: 0.8rem; color: var(--accent); }
.sp-curri__col li { padding: 8px 0; font-size: 0.95rem; color: rgba(255,255,255,.72); border-bottom: 1px solid var(--border-dark); }
.sp-curri__col li:last-child { border-bottom: 0; }

/* ---------- 13. Chips row (교육 실적 등) ---------- */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips span { font-size: 0.92rem; padding: 9px 16px; border: 1px solid var(--border); border-radius: 100px; background: var(--white); color: var(--text-body); }
.section--dark .sp-chips span { background: transparent; border-color: var(--border-dark); color: rgba(255,255,255,.75); }

/* ---------- 14. Related services ---------- */
.sp-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sp-related a {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sp-related a:hover { border-color: var(--accent); transform: translateY(-3px); }
.sp-related a.is-current { border-color: var(--primary-dark); background: var(--bg-light); pointer-events: none; }
.sp-related--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-related--3 a { padding: 28px; min-height: 168px; }
.sp-related--3 b { font-size: 1.25rem; }
.sp-related--3 span { font-size: 0.95rem; }
.sp-related small { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.sp-related b { font-size: 1.05rem; color: var(--text-main); }
.sp-related span { font-size: 0.88rem; color: var(--text-sub); line-height: 1.5; }

/* ---------- 15. Portfolio feature cards (projects.html 대표 사례) ---------- */
.pf-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pf-case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pf-case:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.pf-case__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pf-case__head h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.pf-case__head span { font-family: var(--font-en); font-size: 0.8rem; color: var(--text-faint); white-space: nowrap; }
.pf-case .pf-case__field { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.pf-case p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.65; }
.pf-case__scope { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; }
.pf-case__scope span { font-size: 0.78rem; padding: 4px 10px; border-radius: 100px; background: var(--bg-light); color: var(--text-body); }
.pf-case .pf-case__domain { font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-en); }
.pf-case .text-link { font-size: 0.92rem; }

.pf-recent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border-dark); }
.pf-recent div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--border-dark); }
.pf-recent b { display: block; color: var(--white); font-size: 1.02rem; margin-bottom: 6px; }
.pf-recent span { font-size: 0.88rem; color: rgba(255,255,255,.58); line-height: 1.5; }

/* ---------- 16. Real images inside placeholder slots ---------- */
.media-guide.has-img {
  padding: 0;
  background: #ebebe7;
}
.media-guide.has-img::after { display: none; }
.media-guide.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
/* 홈페이지 모니터 목업(700x564)은 잘리지 않게 */
.media-guide.is-shot { background: #f3f3f1; }
.media-guide.is-shot img { object-fit: contain; padding: 5% 7%; }
.hv-panel .media-guide.has-img { aspect-ratio: 1 / 1; }
/* 글자가 들어간 유튜브 썸네일·영상 장면은 16:9 그대로 */
.hv-panel .media-guide.is-thumb, .media-guide.is-thumb { aspect-ratio: 16 / 9; }
.pf-case__img {
  margin: -26px -26px 6px;
  aspect-ratio: 700 / 564;
  background: #f3f3f1;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.pf-case__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.sp-photo-row figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.sp-photo-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-photo-row figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 0.85rem; font-weight: 600; color: #fff; background: rgba(10,10,10,.6); padding: 6px 12px; border-radius: 100px; }
.sp-case__img { margin: calc(-1 * clamp(24px, 2.6vw, 34px)) calc(-1 * clamp(24px, 2.6vw, 34px)) 6px; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sp-case__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 17. Portfolio gallery (projects.html) ---------- */
.pf-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-portfolio { background: var(--white); border-top: 1px solid var(--border); }
.pf-gallery figure { margin: 0; background: #f3f3f1; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pf-gallery figure:hover { box-shadow: 0 18px 44px -28px rgba(17, 17, 20, 0.35); }
.pf-gallery figure:hover { transform: translateY(-4px); }
.pf-gallery img { width: 100%; aspect-ratio: 700 / 564; object-fit: cover; display: block; }
.pf-gallery figcaption { padding: 14px 16px 16px; background: var(--white); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pf-gallery figcaption b { color: var(--text-main); font-size: 0.98rem; }
.pf-gallery figcaption span { color: var(--text-sub); font-size: 0.84rem; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .sp-pagetabs { top: var(--header-h); }
  .pf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-related--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-cases, .sp-offers, .sp-formats, .sp-curri, .pf-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-flow, .sp-rule { grid-template-columns: 1fr; }
  .pf-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sp-stats, .sp-cases, .sp-offers, .sp-formats, .sp-curri, .sp-related, .sp-related--3, .pf-cases, .pf-recent { grid-template-columns: 1fr; }
  .sp-case dl { grid-template-columns: 1fr; gap: 4px; }
  .sp-photo-row { grid-template-columns: 1fr; }
  .pf-gallery { grid-template-columns: 1fr; }
  .sp-case dd { margin-bottom: 8px; }
  .sp-flow .hv-step { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__sub, .mobile-menu__sub, .serp__state { transition: none !important; animation: none !important; }
}

/* ---------- 메뉴 개편(서비스 → 병원마케팅/소상공인/법인·제조·기업) 대응 ---------- */
/* 메뉴가 길어져도 위쪽이 헤더 밑으로 잘리지 않도록: 공간이 남으면 가운데, 넘치면 위에서부터 스크롤 */
.mobile-menu { justify-content: flex-start; }
.mobile-menu > nav { margin-top: auto; }
.mobile-menu__foot { margin-bottom: auto; }
body.menu-open .mobile-menu__link:nth-child(8) { transition-delay: 0.50s; }
body.menu-open .mobile-menu__link:nth-child(9) { transition-delay: 0.56s; }

/* ---------- 서브페이지 히어로 배경 사진 (법인·제조·기업 등) ---------- */
.sp-hero--photo .hero__bg {
  opacity: 1;
  background-position: center 55%;
  filter: brightness(0.6) saturate(0.85);
}
.sp-hero--photo .hero__bg-tint {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.8) 45%,
    rgba(10, 10, 10, 0.45) 100%
  );
}
.sp-hero--photo > .container { position: relative; z-index: 3; }
@media (max-width: 900px) {
  .sp-hero--photo .hero__bg-tint { background: rgba(10, 10, 10, 0.8); }
}

/* ---------- 이미지 슬라이드 (병원마케팅 > 마케팅(통합) 사례 등) ---------- */
.sp-slides img {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.sp-slides img.is-active { opacity: 1; }
.sp-slides img.is-shot-img { object-fit: contain; padding: 8% 6%; background: #f3f3f1; }
.sp-slides__dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.sp-slides__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.sp-slides__dots button.is-active { width: 22px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .sp-slides img { transition: none; }
}

/* ---------- 로고 슬라이드 (병원마케팅 > 마케팅(통합) 고객 병원) ---------- */
.media-guide.sp-slides--logos { background: #fff; }
.sp-slides .sp-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* 로고가 겹쳐 보이지 않도록: 이전 로고가 사라진 뒤 다음 로고가 나타남 */
.sp-slides .sp-slide.is-active { opacity: 1; transition: opacity 0.6s ease 0.4s; }
.sp-slides .sp-slide img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46%;
  object-fit: contain;
  opacity: 1;
  transition: none;
}
.sp-slides .sp-slide img.is-mark { max-height: 62%; }
.media-guide .sp-wordmark {
  max-width: none;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d3a6b;
}
.media-guide .sp-wordmark small {
  font-family: var(--font-en);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #7a8597;
}
.sp-slides--logos .sp-slides__dots button { background: #d5d5d0; box-shadow: none; }
.sp-slides--logos .sp-slides__dots button.is-active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .sp-slides .sp-slide { transition: none; }
}

/* ---------- 개인정보처리방침 등 문서 페이지 ---------- */
.legal-doc h2 { font-size: 1.2rem; font-weight: 700; margin: 40px 0 12px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text-sub, #555); line-height: 1.8; }
.legal-doc ul { padding-left: 1.2em; list-style: disc; }
.legal-doc a { color: var(--accent); }

/* ---------- 상담신청 전송 중 / 오류 ---------- */
.form-send-error { margin-top: 16px; color: var(--accent); font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 갤럽 Q12 (병원 리스크 관리 > 내부 만족도 조사) ---------- */
.q12 {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border-dark, rgba(255,255,255,.12));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.q12__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.3; margin: 14px 0 18px; }
.q12__lead { color: rgba(255, 255, 255, 0.72); line-height: 1.8; max-width: 70ch; margin-bottom: 10px; }
.q12__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.q12__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}
.q12, .q12 li, .q12 p { word-break: keep-all; }
.q12__num { min-width: 1.6em; font-family: var(--font-en); font-weight: 600; font-size: 0.85rem; color: var(--accent); flex-shrink: 0; }
.q12__foot p { color: rgba(255, 255, 255, 0.72); line-height: 1.8; max-width: 80ch; }
.q12__foot p + p { margin-top: 10px; }
.q12__foot b { color: #fff; }
@media (max-width: 767px) {
  .q12__list { grid-template-columns: 1fr; }
}
