/* ============================================================================
   v4/css/franchise.css — 쇼핑몰 분양 단일 페이지 (2026-11-22)
   ----------------------------------------------------------------------------
   · franchise.php 전용. 다른 페이지에는 영향이 없도록 .fr-* 로만 잡습니다.
   · 공용 토큰(--v4-ink, --v4-line …)은 new-main.css 값을 그대로 씁니다.
   · 상단 고정 탭: 헤더(.v4-head, z-index 900) 아래에 붙도록 z-index 800,
     top 값은 --fr-head-h (페이지 스크립트가 실제 헤더 높이로 갱신).
   ============================================================================ */

/* 이 CSS 는 franchise.php 에서만 불러오므로 html 단위 규칙도 이 페이지에만 걸립니다 */
html { scroll-behavior: smooth; }

:root {
  --fr-ink: #111111;
  --fr-mid: #333333;
  --fr-body: #555555;
  --fr-muted: #727780;
  --fr-line: #e5e5e5;
  --fr-line-2: #eff0f2;
  --fr-bg: #ffffff;
  --fr-bg-2: #f6f7f9;
  --fr-navy: #1e3358;
  --fr-navy-soft: #eef2f9;
  --fr-radius: 14px;
  --fr-head-h: 100px;   /* 헤더 높이 — 스크립트가 실측값으로 덮어씀 */
  --fr-tab-h: 64px;     /* 탭바 높이 — 스크립트가 실측값으로 덮어씀 */
}

/* ---------------------------------------------------------------- 공통 잡기 */
.fr-page { padding: 0 0 72px; }
.fr-page *,
.fr-page *::before,
.fr-page *::after { box-sizing: border-box; }
.fr-page img { max-width: 100%; height: auto; }
.fr-page h1, .fr-page h2, .fr-page h3 { margin: 0; }
.fr-page p { margin: 0; }

.fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.fr-btn--dark { background: var(--fr-ink); color: #fff; }
/* body.sf-page a{color:inherit} 가 이기지 않도록 페이지 단위로 한 번 더 잡아 준다 */
.sf-franchise .fr-btn--dark,
.sf-franchise .fr-btn--dark:hover { color: #fff; }
.sf-franchise .fr-btn--ghost,
.sf-franchise .fr-btn--ghost:hover { color: var(--fr-ink); }
.fr-btn--dark:hover { background: #2a2a2a; }
.fr-btn--ghost { background: #fff; color: var(--fr-ink); border-color: #d9dbdf; }
.fr-btn--ghost:hover { border-color: var(--fr-ink); }

/* ================================================================ 1. 히어로 */
.fr-hero {
  padding: 26px 0 34px;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--fr-line-2);
}
.fr-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 48px;
}
.fr-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--fr-muted);
}
.fr-crumb a { color: var(--fr-muted); text-decoration: none; }
.fr-crumb a:hover { color: var(--fr-ink); }
.fr-crumb strong { color: var(--fr-mid); font-weight: 600; }

.fr-eyebrow {
  display: inline-block;
  margin-bottom: 10px !important;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fr-navy-soft);
  color: var(--fr-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.fr-hero__title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--fr-ink);
  line-height: 1.16;
}
.fr-hero__lead {
  margin-top: 10px !important;
  font-size: 19px;
  font-weight: 600;
  color: var(--fr-mid);
  letter-spacing: -0.02em;
}
.fr-hero__intro {
  margin-top: 14px !important;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fr-body);
  word-break: keep-all;
}
.fr-hero__act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fr-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fr-shot { min-width: 0; }
.fr-shot__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #e9ebef;
  text-decoration: none;
}
.fr-shot__link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.fr-shot__link:hover img { transform: scale(1.03); }
.fr-shot__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fr-shot__cap em {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--fr-ink);
  font-size: 11px;
  font-style: normal;
}

/* ================================================================ 2. 고정 탭 */
.fr-tabs {
  position: sticky;
  top: var(--fr-head-h);
  z-index: 800;
  background: #ffffff;
  border-bottom: 1px solid var(--fr-line);
  box-shadow: 0 6px 18px rgba(17, 17, 17, .06);
}
.fr-tabs__in { padding-top: 0; padding-bottom: 0; }
.fr-tabs__list {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.fr-tabs__list::-webkit-scrollbar { display: none; }
.fr-tabs__item { flex: 0 0 auto; min-width: 0; }
.fr-tabs__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--fr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fr-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.fr-tabs__name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.fr-tabs__price { font-size: 12px; font-weight: 600; color: var(--fr-muted); }
.fr-tabs__link:hover { border-color: #b9bec7; color: var(--fr-ink); }
/* body.sf-page a{color:inherit} 를 이기는 페이지 단위 색 지정 */
.sf-franchise .fr-tabs__link { color: var(--fr-mid); }
.sf-franchise .fr-tabs__link:hover { color: var(--fr-ink); }
.sf-franchise .fr-tabs__link.is-active,
.sf-franchise .fr-tabs__link.is-active:hover { color: #fff; }
.fr-tabs__link.is-active {
  background: var(--fr-ink);
  border-color: var(--fr-ink);
  color: #fff;
}
.fr-tabs__link.is-active .fr-tabs__price { color: rgba(255, 255, 255, .78); }

/* ================================================================ 3. 등급 섹션 */
.fr-tier {
  padding: 74px 0;
  scroll-margin-top: calc(var(--fr-head-h) + var(--fr-tab-h) + 10px);
  border-bottom: 1px solid var(--fr-line-2);
}
.fr-tier--alt { background: #fbfbfc; }
.fr-tier__in {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.fr-tier--rev .fr-tier__media { order: 2; }
.fr-tier--rev .fr-tier__body { order: 1; }

.fr-tier__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--fr-radius);
  background: #e9ebef;
  box-shadow: 0 18px 40px rgba(17, 25, 44, .12);
}
.fr-tier__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.fr-tier__media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.fr-tier__eyebrow {
  margin-bottom: 10px !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--fr-muted);
  letter-spacing: 0.04em;
}
.fr-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--fr-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 2px;
}
.fr-tier__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fr-ink);
}
.fr-tier__lead {
  margin-top: 8px !important;
  font-size: 17px;
  font-weight: 600;
  color: var(--fr-navy);
  letter-spacing: -0.02em;
}
.fr-tier__desc {
  margin-top: 12px !important;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fr-body);
  word-break: keep-all;
}

.fr-price {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid var(--fr-line);
  border-radius: 12px;
  background: #fff;
}
.fr-price__cell { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fr-price__cell em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--fr-muted);
}
.fr-price__cell strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fr-ink);
  white-space: nowrap;
}
.fr-price__sep { width: 1px; align-self: stretch; background: var(--fr-line); }
.fr-price__free {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fr-ink);
}
.fr-price__note { font-size: 13px; color: var(--fr-muted); }

.fr-tier__sub {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fr-mid);
  letter-spacing: -0.01em;
}
.fr-check {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fr-check li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fr-mid);
  word-break: keep-all;
}
.fr-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fr-navy-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23122648' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.fr-tier__act { margin-top: 26px; }

/* ================================================================ 4. 하단 CTA */
.fr-cta { padding: 64px 0 8px; }
.fr-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  border-radius: 18px;
  background: #111318;
  color: #fff;
}
.fr-cta__eyebrow {
  margin-bottom: 10px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, .62);
}
.fr-cta__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.34;
}
.fr-cta__desc {
  margin-top: 10px !important;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .74);
  word-break: keep-all;
}
.fr-cta__call {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 250px;
  padding: 18px 26px;
  border-radius: 14px;
  background: #fff;
  color: var(--fr-ink);
  text-decoration: none;
  transition: transform .18s ease;
}
.fr-cta__call:hover { transform: translateY(-2px); }
.sf-franchise .fr-cta__call,
.sf-franchise .fr-cta__call:hover { color: var(--fr-ink); }
.fr-cta__label { font-size: 13px; font-weight: 700; color: var(--fr-body); }
.fr-cta__num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }

/* ================================================================ 반응형 */
@media (max-width: 1080px) {
  :root { --fr-head-h: 60px; }
  .fr-hero__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fr-hero__title { font-size: 38px; }
  .fr-tier__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fr-tier--rev .fr-tier__media { order: 0; }
  .fr-tier--rev .fr-tier__body { order: 1; }
  .fr-tier { padding: 52px 0; }
}

@media (max-width: 768px) {
  .fr-hero { padding: 18px 0 26px; }
  .fr-crumb { margin-bottom: 12px; font-size: 12px; }
  .fr-hero__title { font-size: 31px; }
  .fr-hero__lead { font-size: 16px; }
  .fr-hero__intro { font-size: 14px; line-height: 1.7; }
  .fr-hero__act { margin-top: 20px; }
  .fr-hero__act .fr-btn { flex: 1 1 auto; padding: 0 16px; font-size: 14px; }
  .fr-hero__mosaic { gap: 8px; }
  .fr-shot__cap { left: 8px; bottom: 8px; padding: 5px 9px; font-size: 11px; }

  .fr-tabs__list { padding: 8px 0; gap: 5px; }
  .fr-tabs__link { min-height: 40px; padding: 0 14px; gap: 6px; }
  .fr-tabs__name { font-size: 14px; }
  .fr-tabs__price { font-size: 11px; }

  .fr-tier { padding: 40px 0; }
  .fr-tier__title { font-size: 27px; }
  .fr-tier__lead { font-size: 15px; }
  .fr-tier__desc { font-size: 14px; line-height: 1.72; }
  .fr-price { gap: 12px; padding: 14px 16px; margin-top: 18px; }
  .fr-price__cell { gap: 6px; }
  .fr-price__cell strong { font-size: 20px; }
  .fr-price__free { font-size: 22px; }
  .fr-tier__act .fr-btn { width: 100%; }

  .fr-cta { padding: 40px 0 4px; }
  .fr-cta__box { flex-direction: column; align-items: stretch; gap: 20px; padding: 26px 20px; border-radius: 14px; }
  .fr-cta__title { font-size: 20px; }
  .fr-cta__call { min-width: 0; align-items: center; padding: 16px 20px; }
  .fr-cta__num { font-size: 26px; }
}

@media (max-width: 400px) {
  .fr-hero__title { font-size: 28px; }
  .fr-tabs__link { padding: 0 12px; }
  .fr-tabs__name { font-size: 13px; }
  .fr-tabs__price { display: none; }
}

/* 키보드 초점이 잘 보이도록 */
.sf-franchise a:focus-visible,
.sf-franchise button:focus-visible {
  outline: 2px solid var(--fr-navy);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fr-shot__link img,
  .fr-cta__call { transition: none; }
}
