/* ==========================================================================
   소담국수 파트너스 — DREXLY 템플릿 (외식 프랜차이즈 가맹)
   색·활자·UI 상태는 00-디자인보드.png, 각 면의 세부 내용은 02-페이지시안.png 를 따랐다.
   조판 원형: Editorial Commerce + Unit Economics + Location.
   장식보다 「판단에 필요한 수치」를 먼저 놓는 자료형 지면이다.
   ========================================================================== */

:root {
  /* ── 색 — 디자인보드 「색상 시스템」 6종 + 의미색 3종 ── */
  --rice: #ffffff;          /* 라이스 화이트 */
  --beige: #efe6d6;         /* 국수 베이지 */
  --chili: #c72a1e;         /* 칠리 레드 */
  --dam: #3a2a1f;           /* 담 브라운 */
  --g600: #6d6666;          /* 그레이 600 */
  --g300: #e5e5e5;          /* 그레이 300 */

  --bg: #fbf8f2;
  --bg2: #f4ede1;
  --surface: var(--rice);
  --ink: #2c2019;
  --ink2: #625a54;
  --muted: #6f6a63;   /* WCAG AA — 밝은 배경(#fbf8f2·#f4ede1) 위에서 4.6:1 이상 */
  --line: #ddd3c4;
  --line-soft: #e9e1d4;
  --chili-press: #a41f16;
  --chili-wash: #fbeeec;

  /* 의미색 — 상태는 색만으로 전하지 않는다(글자·아이콘 병기) */
  --ok: #1f6b46;
  --ok-wash: #e9f3ed;
  --warn: #9a5b12;
  --warn-wash: #fbf0e2;
  --err: #b3251a;
  --err-wash: #fceceb;

  /* ── 활자 — 디자인보드 「타이포그래피」 ── */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

  /* ── 조판 ── */
  --wrap: 1240px;
  --gutter: 40px;
  --section: 116px;
  --r: 3px;
  --r-md: 6px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(58, 42, 31, .05), 0 10px 30px rgba(58, 42, 31, .07);
  --shadow-sm: 0 1px 2px rgba(58, 42, 31, .06);
  --ease: cubic-bezier(.22, .7, .28, 1);

  --z-header: 60;
  --z-scrim: 80;
  --z-drawer: 90;
  --z-sticky: 55;
  --z-toast: 120;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.005em;
  /* 한국어는 어절 단위로 끊는다 — 「2층」·「25평」이 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.38; letter-spacing: -.025em; font-family: var(--serif); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--chili); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--chili); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 900px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.6; }
.ico-lg { width: 28px; height: 28px; stroke-width: 1.2; }

/* 숫자는 자리를 맞춘다 — 표·계산 결과가 흔들리지 않게 */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------- 활자 계층 */
.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.28; letter-spacing: -.035em;
}
.page-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.5vw, 44px); line-height: 1.3; letter-spacing: -.035em;
}
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 2.5vw, 33px); line-height: 1.42; letter-spacing: -.03em;
}
.lead { color: var(--ink2); font-size: 17px; line-height: 1.85; }
.caption { font-size: 13px; color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.hl { color: var(--chili); }

.eyebrow {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--chili);
}
.eyebrow .snum {
  font-size: 11px; letter-spacing: .06em; color: var(--chili);
  border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px;
}

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-tint { background: var(--bg2); }
.section-rule { border-top: 1px solid var(--line-soft); }

.section-head { margin-bottom: 44px; max-width: 780px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 15px; color: var(--ink2); font-size: 16.5px; }
.section-head.row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.section-head.row > div { max-width: 640px; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; letter-spacing: -.012em;
  cursor: pointer; text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease),
    border-color .25s var(--ease), transform .16s var(--ease);
}
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-primary { --btn-bg: var(--chili); --btn-fg: #fff; --btn-bd: var(--chili); }
.btn-primary:hover { --btn-bg: var(--chili-press); --btn-bd: var(--chili-press); }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-secondary:hover { --btn-bd: var(--chili); --btn-fg: var(--chili); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink2); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--chili); --btn-fg: var(--chili); }
.btn-on-red { --btn-bg: #fff; --btn-fg: var(--chili); --btn-bd: #fff; }
.btn-on-red:hover { --btn-bg: var(--beige); --btn-bd: var(--beige); }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn-outline-white:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }
/* 작은 버튼도 손가락으로 누를 수 있어야 한다 — 44px 미만으로 내리지 않는다 */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--chili); font-size: 14px; font-weight: 600;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.btn-text:hover { border-bottom-color: var(--chili); gap: 11px; }

/* --------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 248, 242, .92);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck {
  -webkit-backdrop-filter: saturate(1.15) blur(10px);
  backdrop-filter: saturate(1.15) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 18px rgba(58, 42, 31, .07);
}
/* 스크롤 진행률 — 시안 상단의 가는 붉은 막대 */
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-soft); }
.progress-bar {
  height: 100%; background: var(--chili);
  transform: scaleX(var(--scroll-p, 0)); transform-origin: left center;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; flex: none; }
.brand b {
  font-family: var(--serif); font-weight: 700; font-size: 24px;
  letter-spacing: -.04em; color: var(--ink);
}
.brand small {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--chili);
}
.navlinks { display: flex; align-items: center; gap: 34px; }
.navlinks a {
  position: relative; font-size: 15px; font-weight: 500; color: var(--ink2);
  padding: 8px 0; transition: color .25s var(--ease);
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--chili); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--chili); font-weight: 700; }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.nav-tel .ico { color: var(--chili); }
.nav-tel:hover { color: var(--chili); }
.menu-btn {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}

/* 모바일 서랍 */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  background: rgba(44, 32, 25, .48); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: var(--z-drawer);
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 22px 22px 34px; transform: translateX(100%);
  transition: transform .4s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.drawer nav { display: grid; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 8px 2px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.drawer nav a[aria-current="page"] { color: var(--chili); }
.drawer-foot { display: grid; gap: 9px; margin-top: 14px; }
.drawer-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* --------------------------------------------------------------- 히어로 (브랜드 면) */
.hero { border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, #fdfbf7 0%, var(--bg) 62%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; padding-block: 66px 72px; }
.hero-copy .display { margin: 16px 0 20px; }
.hero-copy .lead { max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); padding-top: 22px; gap: 18px;
}
.hero-stats div { display: grid; gap: 2px; }
.hero-stats b { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: var(--ink2); }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; border-radius: var(--r-lg); }
.hero-badge {
  position: absolute; left: -20px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--chili);
  border-radius: var(--r); padding: 13px 18px; box-shadow: var(--shadow);
  display: grid; gap: 2px; max-width: 232px;
}
.hero-badge b { font-size: 14px; }
.hero-badge span { font-size: 12.5px; color: var(--ink2); line-height: 1.6; }

/* --------------------------------------------------------------- 페이지 머리 (2~5면) */
.page-head { border-bottom: 1px solid var(--line-soft); background: var(--bg2); }
.page-head .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 48px;
  align-items: center; padding-block: 46px 50px;
}
.page-head .crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); margin-bottom: 14px; }
.page-head .crumb a:hover { color: var(--chili); }
.page-head .crumb span { font-weight: 600; color: var(--chili); }
.page-head .crumb .ico { color: var(--muted); }
.page-head .page-title { margin-bottom: 14px; }
.page-head p { color: var(--ink2); font-size: 16.5px; max-width: 560px; }
.page-head .task {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink2);
}
.page-head .task .ico { color: var(--chili); }
.page-head figure img { width: 100%; height: auto; border-radius: var(--r-lg); }

/* --------------------------------------------------------------- 공통 부품 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll table { min-width: 640px; }

.dtable { font-size: 14.5px; }
.dtable caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.dtable th, .dtable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.dtable thead th { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink2); background: var(--bg2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable tbody th { font-weight: 600; color: var(--ink); }
.dtable td.n, .dtable th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tfoot th, .dtable tfoot td { background: var(--chili-wash); font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line); }
.dtable tbody tr:last-child th, .dtable tbody tr:last-child td { border-bottom: 0; }
.dtable .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.pill-ok { background: var(--ok-wash); color: var(--ok); border-color: #bfdccc; }
.pill-warn { background: var(--warn-wash); color: var(--warn); border-color: #ecd4b2; }
.pill-off { background: #f1efec; color: var(--g600); border-color: var(--g300); }
.pill-red { background: var(--chili-wash); color: var(--chili); border-color: #f0c5c1; }

.notice {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px;
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--chili);
}
.notice.warn { border-left-color: var(--warn); background: var(--warn-wash); border-color: #ecd4b2; }
.notice .ico { color: var(--chili); margin-top: 3px; }
.notice.warn .ico { color: var(--warn); }
.notice h3 { font-size: 16px; margin-bottom: 6px; }
.notice p { font-size: 14px; color: var(--ink2); line-height: 1.8; }
.notice p + p { margin-top: 7px; }
.notice ul { display: grid; gap: 6px; margin-top: 8px; }
.notice li { position: relative; padding-left: 14px; font-size: 14px; color: var(--ink2); }
.notice li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--chili); }
.notice.warn li::before { background: var(--warn); }

.legal-band { background: var(--dam); color: #f0e7dc; }
.legal-band .wrap { padding-block: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; }
.legal-band h2 { font-size: 21px; color: #fff; margin-bottom: 10px; }
.legal-band p { font-size: 14.5px; line-height: 1.85; color: #d9cec1; }
.legal-band .lb-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #c2b5a6; }
.legal-band .lb-meta b { color: #fff; font-weight: 600; }

.cta-band { background: var(--chili); color: #fff; }
.cta-band .wrap { padding-block: 52px; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.cta-band p { margin-top: 10px; font-size: 15px; color: #ffe6e3; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-tel { display: grid; gap: 2px; padding-right: 26px; border-right: 1px solid rgba(255,255,255,.32); }
.cta-tel b { font-family: var(--serif); font-size: 25px; }
.cta-tel span { font-size: 12.5px; color: #ffe6e3; }

/* --------------------------------------------------------------- 등장 효과 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================================================== 브랜드 (index) */
.philo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 60px; align-items: center; }
.philo-media img { width: 100%; height: auto; border-radius: var(--r-lg); }
.philo blockquote {
  margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 19px; line-height: 1.75; letter-spacing: -.03em;
}
.philo blockquote cite { display: block; margin-top: 12px; font-family: var(--sans); font-size: 13px; font-style: normal; color: var(--muted); }
.philo-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 30px; border-radius: var(--r); overflow: hidden; }
.philo-points li { background: var(--bg); padding: 18px 20px; display: grid; gap: 5px; }
.philo-points .ico { color: var(--chili); }
.philo-points b { font-size: 14.5px; }
.philo-points span { font-size: 13px; color: var(--ink2); line-height: 1.65; }

/* 연혁 — 가로 눈금 */
.history { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--line); }
.history li { position: relative; padding: 26px 20px 4px 0; }
.history li::before {
  content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
}
.history li.mark::before { background: var(--chili); border-color: var(--chili); }
.history .yr { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--chili); display: block; }
.history b { display: block; font-size: 15px; margin: 6px 0 4px; }
.history span { font-size: 13px; color: var(--ink2); line-height: 1.65; }

/* 숫자 띠 */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.figs div { background: var(--surface); padding: 26px 24px; display: grid; gap: 5px; }
.figs .ico { color: var(--chili); margin-bottom: 4px; }
.figs b { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 31px); font-weight: 700; letter-spacing: -.03em; }
.figs .fl { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.figs .fn { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 점주 인터뷰 */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 16px; }
.voice-q { font-size: 15px; line-height: 1.85; color: var(--ink); }
.voice-q::before { content: "“"; font-family: var(--serif); color: var(--chili); font-size: 26px; line-height: 0; position: relative; top: 6px; margin-right: 3px; }
.voice-who { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line-soft); padding-top: 15px; }
.voice-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.voice-who b { display: block; font-family: var(--sans); font-size: 14px; }
.voice-who span { font-size: 12.5px; color: var(--muted); }

/* 다음 면 안내 */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.route {
  display: grid; gap: 8px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 22px 20px; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.route:hover { border-color: var(--chili); transform: translateY(-2px); }
.route .rn { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--chili); }
.route b { font-family: var(--serif); font-size: 18px; }
.route p { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.route .go { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--chili); }

/* ================================================== 매장모델 (models) */
.zone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.zone { background: var(--surface); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.zone .ico { color: var(--chili); }
.zone b { font-family: var(--serif); font-size: 17px; }
.zone p { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.zone .zmeta { margin-top: 4px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

.mx { display: grid; grid-template-columns: 322px minmax(0, 1fr); gap: 26px; align-items: start; }
.mx-list { display: grid; gap: 10px; position: sticky; top: 104px; }
.mrow {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px; text-align: left; cursor: pointer; width: 100%;
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.mrow img { width: 92px; height: 51px; object-fit: cover; border-radius: 2px; }
.mrow .mr-t { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mrow b { font-family: var(--serif); font-size: 16px; }
.mrow span { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.6; margin-top: 3px; }
.mrow:hover { border-color: var(--chili); }
.mrow[aria-current="true"] { border-color: var(--chili); background: var(--chili-wash); box-shadow: inset 3px 0 0 var(--chili); }
.mrow .mr-check { display: none; }
.mrow[aria-current="true"] .mr-check { display: inline-flex; color: var(--chili); }

.mpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.mpanel + .mpanel { margin-top: 22px; }
.mp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 22px; }
.mp-head h3 { font-size: 25px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-head p { margin-top: 8px; font-size: 14.5px; color: var(--ink2); max-width: 520px; }

.mfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mfact {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 15px 16px; display: grid; gap: 3px; align-content: start; will-change: transform;
}
.mfact .fk { font-size: 12px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 5px; }
.mfact .fv { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.mfact .fs { font-size: 12px; color: var(--muted); }
.mfact.is-lead { grid-column: span 2; background: var(--chili-wash); border-color: #f0c5c1; }
.mfact.is-lead .fv { font-size: 25px; color: var(--chili); }

.mp-split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; margin-top: 22px; align-items: start; }
.mplan { border: 1px solid var(--line); border-radius: var(--r); background: #fdfbf7; padding: 16px; }
.mplan svg { width: 100%; height: auto; display: block; }
.mplan figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.mp-side { display: grid; gap: 14px; }
.mp-side img { width: 100%; height: auto; border-radius: var(--r); }
.mp-side ul { display: grid; gap: 7px; }
.mp-side li { position: relative; padding-left: 17px; font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.mp-side li .ico { position: absolute; left: 0; top: 4px; width: 13px; height: 13px; color: var(--chili); }
.mp-side h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.mp-side .notice { padding: 15px 17px; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; }
.mp-side .notice h3 { font-size: 13.5px; margin-bottom: 4px; }
.mp-side .notice p { font-size: 13px; line-height: 1.7; }
.mp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

.swipe-hint { display: none; }

/* 지역별 모집 현황 */
.region-filter { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.rf-field { display: grid; gap: 6px; min-width: 190px; }
.rf-field label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.rf-field .control { min-height: 46px; }
.region-filter .btn { margin-bottom: 1px; }
.region-empty {
  display: flex; align-items: center; gap: 9px;
  padding: 26px 22px; font-size: 14px; color: var(--ink2);
  background: var(--bg2); border-top: 1px solid var(--line);
}
.region-empty .ico { color: var(--chili); flex: none; }

/* ================================================== 수익계산 (profit) */
.calc { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 26px; align-items: start; }
.calc-in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.calc-in h2, .calc-out h2 { font-size: 19px; margin-bottom: 4px; }
.calc-in > p, .calc-out > p.sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.calc-model { display: grid; gap: 7px; margin-bottom: 20px; }
.calc-model label { font-size: 13px; font-weight: 600; color: var(--ink2); }

.slider { display: grid; gap: 6px; padding: 15px 0; border-top: 1px solid var(--line-soft); }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-top label { font-size: 14px; font-weight: 600; }
.slider-top output { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--chili); font-variant-numeric: tabular-nums; }
.slider-hint { font-size: 12px; color: var(--muted); }
.slider .ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--chili) var(--fill, 50%), var(--g300) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--g300); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--chili); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--chili); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(58,42,31,.3);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--chili);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(58,42,31,.3);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(199,42,30,.28); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(199,42,30,.28); }

.calc-reset { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.calc-out { display: grid; gap: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button {
  min-height: 44px; padding: 0 20px; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink2);
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--chili); color: #fff; }

.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kpi div { background: var(--surface); padding: 20px; display: grid; gap: 4px; }
.kpi .kl { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.kpi .kv { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .ks { font-size: 12px; color: var(--muted); }
.kpi .lead-kpi { background: var(--chili-wash); }
.kpi .lead-kpi .kv { color: var(--chili); }

.bars { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.bars h3 { font-size: 16px; margin-bottom: 4px; }
.bars > p { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 118px; gap: 14px; align-items: center; padding: 7px 0; }
.bar-row .bl { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.bar-track { height: 14px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
/* span 은 그대로 두면 인라인이라 width·height 가 먹지 않는다 — 반드시 블록으로 */
.bar-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--g600); border-radius: 2px; transition: width .4s var(--ease); }
.bar-row.is-sales .bar-fill { background: var(--dam); }
.bar-row.is-cost .bar-fill { background: #b98d6a; }
.bar-row.is-profit .bar-fill { background: var(--chili); }
.bar-row .bv { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-row .bv small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.bar-sep { border-top: 1px dashed var(--line); margin: 9px 0; }

/* 툴팁 — 지원 시 CSS Anchor Positioning, 아니면 상대 배치 */
/* 보이는 표식은 18px 이지만 누르는 상자는 46px 이다(자리는 18px 만 차지한다) */
.tip { position: relative; display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-left: 3px; }
.tip-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; padding: 0; border: 0; background: none;
  cursor: help; display: inline-flex; align-items: center; justify-content: center;
}
.tip-face {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tip-btn:hover .tip-face, .tip-btn:focus-visible .tip-face { border-color: var(--chili); color: var(--chili); }
.tip-pop {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  z-index: 40; width: max-content; max-width: 250px;
  background: var(--dam); color: #f2eae1; font-size: 12.5px; line-height: 1.7;
  padding: 10px 13px; border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), visibility .18s;
}
.tip:hover .tip-pop, .tip:focus-within .tip-pop { opacity: 1; visibility: visible; }
@supports (anchor-name: --t) {
  .tip-pop {
    position: fixed; left: auto; bottom: auto; transform: none;
    inset-area: block-start; position-area: block-start;
    margin-bottom: 9px; position-try-fallbacks: flip-block;
  }
}

.assume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }

.calc-derived {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r);
  background: var(--bg2); font-size: 13.5px; color: var(--ink2); line-height: 1.7;
}
.calc-derived b { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.calc-derived span { font-size: 12px; color: var(--muted); }

/* 인쇄용 상담요약 — 화면에서는 숨고 인쇄에서만 나온다 */
.print-sheet { display: none; }

/* 모바일 계산 요약 바 */
.calc-bar { display: none; }

/* ================================================== 개설절차 (process) */
.tl { position: relative; display: grid; gap: 0; }
.tl::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.tl-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 0 0 26px; }
.tl-step:last-child { padding-bottom: 0; }
/* 숫자는 어느 상태에서나 흰색이다 — 배경만 회색↔붉은색으로 바뀌므로
   애니메이션 중간 상태에서도 대비가 5:1 아래로 내려가지 않는다 */
.tl-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g600);
  border: 2px solid var(--g600); color: #fff;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
}
.tl-body {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.tl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-body h3 { font-size: 18px; }
.tl-body > p { margin-top: 8px; font-size: 14.5px; color: var(--ink2); line-height: 1.8; }
.tl-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tl-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tl-sub li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2);
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 12px;
}
.tl-sub li .ico { color: var(--chili); width: 13px; height: 13px; }
.tl-cost { margin-top: 12px; font-size: 13px; color: var(--ink2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-cost b { color: var(--chili); }
/* 강조 상태 — 정보 진행 표시일 뿐, 꺼져 있어도 내용은 그대로 읽힌다 */
.tl-step.is-lit .tl-dot { border-color: var(--chili); background: var(--chili); }
.tl-step.is-lit .tl-body { border-color: var(--chili); box-shadow: 0 2px 14px rgba(199, 42, 30, .09); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .st-on .tl-dot { animation: tl-dot linear both; animation-timeline: view(); animation-range: entry 24% cover 40%; }
    .st-on .tl-body { animation: tl-body linear both; animation-timeline: view(); animation-range: entry 24% cover 40%; }
  }
}
@keyframes tl-dot {
  from { border-color: var(--g600); background: var(--g600); }
  to { border-color: var(--chili); background: var(--chili); }
}
@keyframes tl-body {
  from { border-color: var(--line); box-shadow: 0 0 0 rgba(199, 42, 30, 0); }
  to { border-color: var(--chili); box-shadow: 0 2px 14px rgba(199, 42, 30, .09); }
}

.dur-band { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.dur-band img { width: 100%; height: 320px; object-fit: cover; }
.dur-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(253, 251, 247, .96); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 40px; text-align: center; min-width: 290px;
  box-shadow: var(--shadow);
}
.dur-card .dl { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.dur-card .dv { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--chili); line-height: 1.15; margin: 4px 0 6px; }
.dur-card .dn { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.check-list { display: grid; gap: 9px; }
.check-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--ink2); line-height: 1.75; }
.check-list .ico { color: var(--ok); margin-top: 5px; width: 16px; height: 16px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; min-height: 62px; padding: 15px 4px; background: none; border: 0;
  cursor: pointer; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink);
  font-family: var(--serif);
}
.acc-trigger .ico { color: var(--chili); transition: transform .3s var(--ease); }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); }
/* 스크립트가 없으면 답변이 모두 펼쳐진 상태로 읽힌다.
   스크립트가 있을 때만 접힌 상태에서 시작한다(html.js 는 head 에서 먼저 붙는다). */
.acc-panel { display: grid; grid-template-rows: 1fr; }
.js .acc-panel { grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.js .acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner > div { padding: 0 4px 20px; font-size: 14.5px; color: var(--ink2); line-height: 1.85; }
.acc-inner p + p { margin-top: 9px; }

/* ================================================== 가맹상담 (apply) */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 30px; align-items: start; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; }
.form-panel > h2 { font-size: 22px; }
.form-panel > .req-note { font-size: 13px; color: var(--muted); margin: 8px 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.field label .req { color: var(--chili); margin-left: 2px; }
.control {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.control::placeholder { color: #7a746d; }
.control:hover { border-color: #c8bba7; }
.control:focus { outline: none; border-color: var(--chili); box-shadow: 0 0 0 3px rgba(199, 42, 30, .14); }
.control:disabled { background: #f4f1ec; color: var(--muted); cursor: not-allowed; }
textarea.control { min-height: 132px; resize: vertical; line-height: 1.75; }
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6a63' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field.filled .control { background: #fdfcf9; }
.field.invalid .control { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 37, 26, .12); }
.err { display: none; font-size: 12.5px; color: var(--err); align-items: center; gap: 5px; }
.field.invalid .err { display: flex; }
.err .ico { width: 14px; height: 14px; }
.counter { text-align: right; font-size: 12px; color: var(--muted); }

.agree { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 6px; flex-wrap: wrap; }
/* 상자는 눈에 보이는 표식일 뿐이고, 실제 입력칸은 그 자리에 그대로 있다(보조기기·키보드용) */
.agree input { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.agree .box {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 3px; background: var(--surface);
  color: transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.agree input:checked + label .box { background: var(--chili); border-color: var(--chili); color: #fff; }
.agree input:focus-visible + label .box { outline: 2px solid var(--chili); outline-offset: 2px; }
.agree label { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink2); }
.agree.invalid label { color: var(--err); }
.form-actions { margin-top: 18px; display: grid; gap: 10px; }
.form-foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.apply-done {
  display: none; text-align: center; padding: 34px 24px;
  border: 1px solid #bfdccc; background: var(--ok-wash); border-radius: var(--r-md); margin-bottom: 22px;
}
.form-panel.is-done .apply-done { display: block; }
.form-panel.is-done .apply-form { display: none; }
.apply-done .ring { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.apply-done h2 { font-size: 22px; color: var(--ok); }
.apply-done p { margin-top: 10px; font-size: 14.5px; color: var(--ink2); line-height: 1.8; }
.apply-done .dl { margin: 20px auto 0; max-width: 400px; text-align: left; background: var(--surface); border: 1px solid #bfdccc; border-radius: var(--r); padding: 16px 18px; display: grid; gap: 8px; }
.apply-done .dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.apply-done .dl b { color: var(--ink2); font-weight: 600; }
.apply-done .done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h2, .aside-card h3 { font-size: 17px; margin-bottom: 14px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.contact-list li > div { display: grid; gap: 2px; }
.contact-list .ring { width: 34px; height: 34px; border-radius: 50%; background: var(--chili-wash); color: var(--chili); display: grid; place-items: center; }
.contact-list b { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink2); font-weight: 600; }
.contact-list span, .contact-list a { font-size: 14.5px; color: var(--ink); }
.contact-list a:hover { color: var(--chili); }
.steps3 { display: grid; gap: 12px; }
.steps3 li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.steps3 .sn { width: 26px; height: 26px; border-radius: 50%; background: var(--chili); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.steps3 b { display: block; color: var(--ink); font-size: 14px; font-family: var(--sans); }

/* --------------------------------------------------------------- 푸터 */
.site-footer { background: var(--dam); color: #cfc3b6; padding-top: 60px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand small { color: #e8a49d; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; padding-bottom: 40px; }
.footer-top h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.85; }
.footer-top ul { display: grid; gap: 10px; }
.footer-top ul a { font-size: 14px; }
.footer-top ul a:hover { color: #fff; }
.footer-biz { display: grid; gap: 7px; font-size: 13px; line-height: 1.7; }
.footer-biz b { color: #efe4d8; font-weight: 600; }
.footer-cta { display: grid; gap: 10px; }
.footer-cta .ftel { font-family: var(--serif); font-size: 25px; color: #fff; font-weight: 700; }
.footer-cta .fhr { font-size: 12.5px; }
.social { display: flex; gap: 9px; margin-top: 4px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); color: #cfc3b6;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.social a:hover { border-color: #fff; color: #fff; }
.footer-demo {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0;
  font-size: 12.5px; line-height: 1.8; color: #b3a496;
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px;
}
.footer-demo .ico { color: #e8a49d; margin-top: 3px; }
.footer-demo p b { color: #f2e7da; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: #a89a8c;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav a:hover { color: #fff; }

/* --------------------------------------------------------------- 떠 있는 것들 */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink2); cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(8px); box-shadow: var(--shadow-sm);
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), color .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--chili); border-color: var(--chili); }

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: var(--z-toast);
  transform: translate(-50%, 18px);
  min-width: 280px; max-width: calc(100vw - 40px);
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; background: var(--dam); color: #fff;
  border-radius: var(--r); font-size: 14px; line-height: 1.6;
  box-shadow: 0 12px 34px rgba(44, 32, 25, .3);
  opacity: 0; visibility: hidden;
  /* 알림일 뿐이므로 아래의 제출 버튼을 가로막지 않는다 */
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: #f0a79f; flex: none; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 골격(로딩) 상태 — 계산 중 잠깐 나타난다 */
.is-busy .kpi .kv, .is-busy .bar-row .bv {
  color: transparent; background: linear-gradient(90deg, var(--bg2) 25%, #e8e0d2 37%, var(--bg2) 63%);
  background-size: 400% 100%; border-radius: 3px; animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* =============================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 100px; }
  .navlinks { gap: 24px; }
  .mx { grid-template-columns: 268px minmax(0, 1fr); }
  .mrow { grid-template-columns: 76px minmax(0, 1fr); }
  .mrow img { width: 76px; height: 42px; }
  .calc { grid-template-columns: 366px minmax(0, 1fr); }
  .mp-split { grid-template-columns: minmax(0, 1fr) 272px; }
  .apply-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 88px; }
  .nav { height: 72px; }
  .navlinks, .nav-tel { display: none; }
  .menu-btn { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-block: 44px 52px; }
  .hero-media { order: -1; }
  .hero-badge { left: auto; right: 14px; bottom: 14px; }
  .page-head .wrap { grid-template-columns: 1fr; gap: 26px; padding-block: 34px 38px; }
  .page-head figure { max-width: 420px; }
  .philo { grid-template-columns: 1fr; gap: 32px; }
  .philo-media { order: -1; }
  .history { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .figs, .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices, .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx { grid-template-columns: 1fr; gap: 18px; }
  .mx-list { position: static; }
  .mp-split { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assume, .check-grid { grid-template-columns: 1fr; }
  .apply-layout { grid-template-columns: 1fr; }
  .legal-band .wrap { grid-template-columns: 1fr; gap: 20px; }
  .dur-band img { height: 260px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section: 68px; }
  body { font-size: 15.5px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats div { display: flex; align-items: baseline; gap: 10px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .philo-points { grid-template-columns: 1fr; }
  .history { grid-template-columns: 1fr; border-top: 0; }
  .history li { padding: 0 0 20px 22px; border-left: 2px solid var(--line); }
  .history li::before { left: -6px; top: 6px; }
  .figs, .zone-grid { grid-template-columns: 1fr; }
  .voices, .routes { grid-template-columns: 1fr; }
  .section-head.row { align-items: flex-start; }

  /* 모바일 매장 모델 — 좌우 스와이프 */
  .mx-list {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .mrow { flex: 0 0 min(260px, 76vw); scroll-snap-align: start; grid-template-columns: 1fr; }
  .mrow img { width: 100%; height: 116px; }
  .swipe-hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
  .mpanel { padding: 20px; }
  .mfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfact.is-lead { grid-column: 1 / -1; }
  .mp-head h3 { font-size: 21px; }

  .calc-in, .form-panel, .aside-card, .bars { padding: 20px; }
  .kpi { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 104px minmax(0, 1fr) 96px; gap: 9px; }
  .bar-row .bl { font-size: 12.5px; }
  .form-grid { grid-template-columns: 1fr; }

  /* 모바일 계산 요약 — 화면 아래 고정 */
  .calc-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(58, 42, 31, .1);
  }
  .calc-bar .cb-l { display: grid; gap: 1px; min-width: 0; }
  .calc-bar .cb-l span { font-size: 11.5px; color: var(--ink2); }
  .calc-bar .cb-l b { font-family: var(--serif); font-size: 20px; color: var(--chili); font-variant-numeric: tabular-nums; }
  .calc-bar .btn { flex: none; }
  body.has-calcbar { padding-bottom: 82px; }

  .tl::before { left: 21px; }
  .tl-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
  .tl-dot { width: 44px; height: 44px; font-size: 15px; }
  .tl-body { padding: 16px 17px; }
  .dur-band img { height: 300px; }
  .dur-card { padding: 20px 24px; min-width: 0; width: calc(100% - 36px); }
  .dur-card .dv { font-size: 38px; }
  .cta-band .wrap { padding-block: 38px; }
  .cta-tel { border-right: 0; padding-right: 0; }
  .cta-band .cta-actions { width: 100%; display: grid; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .to-top { right: 14px; bottom: 14px; }
  .toast { bottom: 96px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .brand b { font-size: 20px; }
  .brand small { font-size: 10px; letter-spacing: .1em; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 0 13px; font-size: 13.5px; }
  .nav-actions .btn span[aria-hidden] { display: none; }
  .bar-row { grid-template-columns: 88px minmax(0, 1fr) 84px; }
  .kpi div { padding: 16px; }
  .mfact .fv { font-size: 17px; }
  .mfact.is-lead .fv { font-size: 21px; }
}

/* 아주 좁은 화면에서만 지표 타일을 한 줄로 내린다 */
@media (max-width: 360px) {
  .mfacts { grid-template-columns: 1fr; }
  .mfact.is-lead { grid-column: 1; }
}

/* 가로 방향(낮은 높이) — 서랍이 스크롤되게 두고 히어로 여백을 줄인다 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero .wrap { padding-block: 28px 32px; }
  .drawer { padding-block: 14px 22px; }
  .drawer nav a { min-height: 46px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* 진행 애니메이션은 없애고 최종 상태를 즉시 보인다 */
  .js .reveal { opacity: 1; transform: none; }
  .bar-fill { transition: none; }
}

/* =============================================================== 인쇄 */
@media print {
  :root { --gutter: 8pt; }
  @page { margin: 14mm; }
  .site-header, .drawer, .scrim, .to-top, .toast, .calc-bar, .page-head,
  .cta-band, .site-footer, .skip, .calc-reset, .sprite { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0 !important; }
  .section { padding-block: 12pt; }
  .panel, .calc-in, .calc-out, .bars, .mpanel, .form-panel, .aside-card { box-shadow: none; }
  a { text-decoration: none; color: #000; }

  /* 상담요약 — 인쇄에서만 나오는 정돈된 한 장 */
  .print-hide { display: none !important; }
  .print-sheet { display: block !important; }
  .ps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16pt; border-bottom: 2pt solid #000; padding-bottom: 8pt; }
  .print-sheet .ps-head h2 { font-size: 19pt; margin: 0; border: 0; padding: 0; }
  .ps-head .ps-brand { font-size: 10pt; text-align: right; line-height: 1.6; }
  .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt 18pt; margin-top: 12pt; }
  .print-sheet h2 { font-size: 12pt; margin: 14pt 0 6pt; border-bottom: .8pt solid #999; padding-bottom: 4pt; }
  .print-sheet table { width: 100%; font-size: 10pt; }
  .print-sheet th, .print-sheet td { border-bottom: .5pt solid #ccc; padding: 4pt 6pt; text-align: left; }
  .print-sheet td.n { text-align: right; font-variant-numeric: tabular-nums; }
  .print-sheet .ps-note { margin-top: 10pt; font-size: 9pt; line-height: 1.6; border: .8pt solid #000; padding: 8pt; }
  .print-sheet .ps-sign { margin-top: 14pt; font-size: 10pt; display: flex; justify-content: space-between; gap: 20pt; }
  .print-sheet .ps-sign span { border-bottom: .6pt solid #000; flex: 1; padding-bottom: 2pt; }
}
