/* ==========================================================================
   동인 홈페이지 시안 A
   방향: 흰 종이 + 색종이 네 장(메뉴별 색) + 엑셀 통합문서 모양 표
   글꼴: 제목 Gowun Batang / 본문과 표 Pretendard
   ========================================================================== */

:root {
  --ink: #2B2238;
  --ink-2: #5B5269;
  --ink-3: #8A8298;
  --paper: #FFFFFF;
  --wash: #FFF2F6;
  --line: #E4DFEB;
  --line-strong: #CFC8DA;
  --gutter: #F7F5FA;

  --pink: #D6336C;
  --yellow: #FFC53D;
  --blue: #2F5BD0;
  --green: #1A7F54;

  --font-display: "Gowun Batang", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --font-body: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --wrap: 1180px;
  --pad: 24px;
  --header-h: 81px;
  /* 모서리는 세 가지만: 표와 틀은 각지게, 사진과 상자는 12px, 큰 판은 16px. 버튼은 알약 모양 */
  --r-xl: 16px;
  --r-lg: 12px;
  --r-md: 0px;

  --c: var(--ink);
  --c-on: #fff;
  --c-deep: var(--ink);
  --c-tint: var(--gutter);
  --c-line: var(--line);
  --c-soft: var(--gutter);
  --c-soft-on: var(--ink);
}

/* 메뉴별 색: 어디서든 data-cat 하나로 색이 따라온다
   --c-soft: 원래 색을 30% 연하게(흰색 30% 섞음, 11-26 손글씨 "색상 30% 연하게"). 메뉴와 첫 화면 비교표 머리칸에 쓴다.
   --c-soft-on: 그 위 글자색. 흰 글자는 대비가 3:1 안팎이라 같은 계열의 짙은 색을 쓴다(대비 5:1 이상) */
[data-cat="exp"]     { --c: #D6336C; --c-on: #fff;    --c-deep: #B81F58; --c-tint: #FFE9F0; --c-line: #F6C4D6; --c-soft: #E27098; --c-soft-on: #3A0B1F; }
[data-cat="show"]    { --c: #FFC53D; --c-on: #3A2900; --c-deep: #8A5A00; --c-tint: #FFF6D9; --c-line: #F1DA98; --c-soft: #FFD677; --c-soft-on: #3A2900; }
[data-cat="pottery"] { --c: #2F5BD0; --c-on: #fff;    --c-deep: #2448AE; --c-tint: #E9EEFF; --c-line: #C2CEF5; --c-soft: #6D8CDE; --c-soft-on: #0D1C4D; }
[data-cat="theme"]   { --c: #1A7F54; --c-on: #fff;    --c-deep: #136443; --c-tint: #E3F5EB; --c-line: #B6E0C8; --c-soft: #5FA587; --c-soft-on: #082E1D; }

/* ───────── 기본 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }

/* 시안 비교용 표시줄 */
.mock-switch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;
  padding: 6px 12px; background: #20242C; color: #C9CED8; font-size: 14px; line-height: 1.4;
}
.mock-switch > span { margin-right: 6px; }
.mock-switch a { padding: 3px 12px; border-radius: 999px; color: #fff; text-decoration: none; border: 1px solid #4A5160; white-space: nowrap; }
.mock-switch a[aria-current="page"] { background: #fff; color: #20242C; border-color: #fff; font-weight: 700; }
.mock-switch a:focus-visible { outline-color: #fff; }
/* 좁은 화면에서는 이름만 남겨 한 줄에 담는다 */
@media (max-width: 760px) { .mock-switch .mock-desc { display: none; } }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #45385A; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }

.btn-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; border-radius: 12px;
  border: 1.5px solid var(--c-line); background: var(--c-tint); color: var(--c-deep);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-cell:hover { background: var(--c); border-color: var(--c); color: var(--c-on); }

/* ───────── 상단 메뉴 ───────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 55; background: #fff; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 80px; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: auto; height: 60px; flex: none; }   /* 11-26 블로그의 D 로고(그림). "동인 글자처럼 좀 키워봐": 44px → 60px */
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 37.7px; letter-spacing: -.02em; line-height: 1; }   /* 30% 크게(11-26 요청: 29px → 37.7px) */

/* 메뉴마다 윤곽선(11-25 손글씨) + 분류 색 바탕(11-26 손글씨 "각 메뉴바에 4가지 주제별 BOX 색을 입혀줘").
   바탕은 비교표 머리칸과 같은 30% 연한 색, 선은 원래 색. 보고 있는 분류는 원래 색으로 채운다.
   글자는 10% 크게(11-26 손글씨 "전체 글자 10% 크게": 17px → 18.7px, 14px → 15.4px) */
.gnb { display: flex; align-items: stretch; gap: 8px; }
.gnb a {
  position: relative; display: grid; align-content: center; gap: 1px;
  padding: 9px 14px 11px; border: 1.5px solid var(--c); border-radius: 12px; text-decoration: none;
  background: var(--c-soft); color: var(--c-soft-on); transition: background-color .15s, color .15s;
}
.gnb a:hover { background: color-mix(in srgb, var(--c) 85%, #fff); }
.gnb a[aria-current="page"] { background: var(--c); color: var(--c-on); box-shadow: inset 0 0 0 1.5px var(--c-deep); border-color: var(--c-deep); }
.gnb-name { font-weight: 700; font-size: 18.7px; letter-spacing: -.015em; white-space: nowrap; line-height: 1.35; }
.gnb-host { font-size: 15.4px; font-weight: 500; opacity: .82; white-space: nowrap; line-height: 1.35; }

.call {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
}
.call:hover { background: #45385A; }
.call svg { width: 20px; height: 20px; }
.call-text { display: grid; line-height: 1.2; }
.call-k { font-size: 14px; opacity: .85; }
.call-n { font-weight: 700; font-size: 17px; letter-spacing: .01em; }

.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 15px;
}
.menu-ico { display: grid; gap: 4px; width: 16px; }
.menu-ico i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .18s, opacity .18s; }
.nav-open .menu-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-ico i:nth-child(2) { opacity: 0; }
.nav-open .menu-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-open .menu-btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-open .menu-ico i { background: #fff; }

/* ───────── 첫 화면: 바탕사진 ───────── */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 0 44px;
  background-color: var(--wash);
}

.hero-stage { position: relative; }

.slider {
  position: relative; aspect-ratio: 1180 / 500;
  border-radius: var(--r-xl); overflow: hidden; background: #E9E4EF;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-on { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--origin, 50% 50%);
}
/* 글자가 잘리면 안 되는 사진(HIP한 조선 포스터): 좁은 화면에서만 통째로 보이고 뒤에 같은 사진을 흐리게 깐다 */
.slide-bg { display: none; }
@media (max-width: 980px) {
  .slide-fit .slide-bg {
    display: block; position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
    object-fit: cover; transform: none; filter: blur(14px) brightness(.8) saturate(1.15);
  }
  .slide-fit img:not(.slide-bg) { position: relative; z-index: 1; object-fit: contain; object-position: 50% 0%; }
}
.slide.is-missing { background: var(--c-tint); display: grid; place-items: center; }
.slide.is-missing::after {
  content: attr(data-missing); padding: 10px 18px; border: 1.5px dashed var(--c-deep); border-radius: 10px;
  color: var(--c-deep); font-weight: 600; font-size: 15px; background: rgba(255, 255, 255, .7);
}

.slider-ui {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;   /* 왼쪽 아래: 사진의 주인공이 주로 오른쪽에 있다 */
  display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px -12px rgba(43, 34, 56, .5);
}
.slide-cap {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px;
  text-decoration: none; font-size: 15px; line-height: 1.3; color: var(--ink);
}
.slide-cap:hover { background: var(--c-tint); }
.cap-cat { padding: 4px 10px; border-radius: 999px; background: var(--c); color: var(--c-on); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cap-name { font-weight: 600; white-space: nowrap; }
.slider-ctrl { display: flex; align-items: center; gap: 2px; padding-right: 2px; }
.dot { position: relative; width: 38px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before, .dot i { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.dot::before { background: var(--line-strong); }
.dot i { background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.dot.is-on i { transform: scaleX(1); }
.slider.is-running .dot.is-on i { animation: dot-fill 3s linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pause {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gutter); cursor: pointer;
}
.pause:hover { background: var(--line); }
.pause svg { width: 14px; height: 14px; fill: var(--ink); }
.pause .ico-play { display: none; }
.pause[aria-pressed="true"] .ico-play { display: block; }
.pause[aria-pressed="true"] .ico-pause { display: none; }

/* 제목은 사진 위 한 줄로 둔다: 사진을 가리는 것이 없다 */
.hero-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.hero-lead { font-size: 17px; color: var(--ink-2); }
.hero-head h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.3; letter-spacing: -.03em; text-wrap: balance;
}
/* 넓은 화면에서는 헤더의 전화 버튼과 겹쳐 보이므로 버튼을 두지 않는다 */
.hero-head .btn { display: none; min-height: 48px; padding: 10px 22px; }

/* ───────── 구역 공통 ───────── */
.sec { position: relative; padding: 72px 0; scroll-margin-top: 88px; }
.sec-wash { background: var(--gutter); }
.sec-head { margin-bottom: 24px; max-width: 46em; }
.sec-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3vw, 36px); line-height: 1.3; letter-spacing: -.025em; }
.sec-head p { margin-top: 8px; color: var(--ink-2); }

/* ───────── 네 가지 분류 비교표 ───────── */
.cmp {
  display: grid; grid-template-columns: 124px repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, auto);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; background: #fff;   /* 큰 상자 모서리 둥글게(11-26 요청) */
}
.cmp-labels, .cmp-col { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; }
.cmp-col { border-left: 1px solid var(--line); }
.cmp-labels > span, .cmp-col > p, .cmp-col > h3 { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; }
.cmp-labels > span:first-child, .cmp-col > h3 { border-top: 0; }
.cmp-labels > span { background: var(--gutter); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.cmp-col > p { font-size: 17px; line-height: 1.5; }
.cmp-col > p strong { font-weight: 700; font-size: 20px; }
.cmp-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-head { background: var(--c-soft); color: var(--c-soft-on); padding: 0 !important; }   /* 30% 연하게(11-26 손글씨) */
.cmp-head a {
  display: flex; align-items: center; width: 100%; min-height: 76px; padding: 16px 18px;
  font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; text-decoration: none; color: inherit;
}
.cmp-head a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.cmp-head a:focus-visible { outline-color: var(--ink); outline-offset: -5px; }
.cmp-col > .cmp-act { padding-block: 16px; background: color-mix(in srgb, var(--c-tint) 40%, #fff); }
.cmp-act .btn-cell { width: 100%; background: #fff; }
.cmp-act .btn-cell:hover { background: var(--c); }

/* ───────── 통합문서(시트 탭 + 표) ───────── */
.book-tabs {
  display: flex; align-items: flex-end; gap: 4px; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.book-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; margin: 0;
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: #fff; color: var(--ink-2); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.tab::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.tab:hover { background: var(--c-tint); color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--c); border-color: var(--c); color: var(--c-on); }
.tab[aria-selected="true"]::before, .tab[aria-current="page"]::before { background: currentColor; }
.tab:focus-visible { outline-offset: -4px; }
.tab-n {
  flex: none; white-space: nowrap; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: rgba(43, 34, 56, .08);
  font-size: 14px; font-weight: 600; text-align: center;
}
/* 고른 탭의 개수는 흰 바탕에 진한 글자로: 색 바탕 위 흰 글자는 대비가 모자랐다 */
.tab[aria-selected="true"] .tab-n, .tab[aria-current="page"] .tab-n { background: #fff; color: var(--c-deep); }

.book-frame { border: 1px solid var(--line-strong); background: #fff; }
.book-tabs + .book-frame { border-top: 3px solid var(--c); }
.book-frame:focus-visible { outline-offset: 4px; }

.sheet-shared { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--gutter); font-size: 15px; color: var(--ink-2); }

.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; line-height: 1.5; }
.sheet th, .sheet td {
  padding: 13px 16px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.sheet tr > :last-child { border-right: 0; }
.sheet tbody tr:last-child > * { border-bottom: 0; }
/* 표 머리는 스크롤해도 따라온다 */
.sheet thead th {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 2;
  background: var(--c-tint); border-bottom-color: var(--c-line); font-weight: 600; font-size: 15px; white-space: nowrap;
}
/* 프로그램 이름은 밑줄로 누를 수 있음을 알린다 */
.sheet .name a {
  font-weight: 600; font-size: 17px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.sheet .name-text { font-weight: 600; font-size: 17px; color: var(--ink); }
.sheet .name a:hover, .sheet tbody tr[data-href]:hover .name a { text-decoration-color: var(--c-deep); }
.sheet .time, .sheet .price { white-space: nowrap; }
.sheet .time { width: 112px; }
/* 비교하려는 값은 1인 체험비라 가장 굵게, 예상 금액은 보통 굵기로 둔다 */
.sheet .price { width: 160px; font-weight: 700; }
.sheet .note { width: 30%; font-size: 15px; color: var(--ink-2); }
.sheet-compact .name { width: 36%; }
.sheet-compact .note { width: auto; }
.price-row { display: block; }
.price-row small { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.note-line { display: block; }
.sheet tbody tr[data-href] { cursor: pointer; }
.sheet tbody tr[data-href]:hover > td { background: color-mix(in srgb, var(--c-tint) 45%, #fff); }
.sheet tbody tr.is-current > td { background: var(--c-tint); }
.sheet tbody tr.is-current .note { color: var(--ink); }
.sheet tbody tr.is-current .name a { text-decoration: none; }
.sheet tbody tr.is-current .name a::after {
  content: "보는 중"; display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px;
  background: var(--c); color: var(--c-on); font-size: 14px; font-weight: 600; vertical-align: 2px;
}

/* 상세 표(분류 화면) */
.sheet-detail .photo { width: 128px; padding: 10px; }
.sheet-detail .name { padding-block: 14px; }
.desc { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 34em; }
.sheet-detail .note { width: 18%; }
.sheet-theme .note { width: 28%; }
.sheet-theme .go { width: 190px; text-align: center; }

/* 카탈로그 쪽(기타 교내체험): 종이처럼 한 쪽씩 세로로 */
.book-pages { padding: 0 0 32px; background: var(--gutter); }
.pages-lead { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--ink-2); }
.cat-pages { display: grid; justify-items: center; gap: 28px; padding: 28px 16px 0; }
.cat-page { width: 100%; max-width: 860px; margin: 0; }
.cat-page img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -18px rgba(43, 34, 56, .45); }
.cat-page figcaption { margin-top: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cat-page figcaption span { font-weight: 400; }

.ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-tint); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 잘리면 안 되는 사진(핸드페인팅 접시): 줄여 넣고 남는 곳은 사진 바탕색으로 */
.ph.is-contain { background: var(--fit-bg, var(--c-tint)); }
.ph.is-contain img { object-fit: contain; }
/* 사진이 없으면 그림 대신 글자로 알린다 */
.ph.is-empty { display: grid; place-items: center; background: var(--gutter); }
.ph-none { font-size: 14px; line-height: 1.35; color: var(--ink-2); text-align: center; }

.book-note { margin-top: 14px; padding-left: 2px; font-size: 15px; color: var(--ink-2); }
.book-note a { color: var(--c-deep); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }

/* ───────── 신청 순서 ───────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px dashed var(--line-strong); }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1;
  background: var(--c-tint); color: var(--c-deep);
}
.steps li:nth-child(1) .step-n { background: #FFE9F0; color: #B81F58; }
.steps li:nth-child(2) .step-n { background: #FFF1C4; color: #8A5A00; }
.steps li:nth-child(3) .step-n { background: #E9EEFF; color: #2448AE; }
.steps li:nth-child(4) .step-n { background: #E3F5EB; color: #136443; }
.steps h3 { margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; }
.steps p { margin-top: 8px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }
/* 11-27 처음 보일 때 1→4 차례로 나타나기(모양은 그대로). site.js 가 will-reveal 을 붙였을 때만 숨긴다 */
.steps.will-reveal li { opacity: 0; transform: translateY(14px); }
.steps.will-reveal .step-n { transform: scale(.7); }
.steps.is-in li { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1); }
.steps.is-in .step-n { transform: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1) .1s; }
.steps.is-in li:nth-child(2) { transition-delay: .12s; }
.steps.is-in li:nth-child(3) { transition-delay: .24s; }
.steps.is-in li:nth-child(4) { transition-delay: .36s; }
.steps.is-in li:nth-child(2) .step-n { transition-delay: .22s; }
.steps.is-in li:nth-child(3) .step-n { transition-delay: .34s; }
.steps.is-in li:nth-child(4) .step-n { transition-delay: .46s; }

/* ───────── 이용 안내 (카탈로그 1쪽): 항목 이름 칸 + 내용 칸, 두 줄씩 ───────── */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: #fff; }
.guide > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.guide > div:nth-child(odd) { border-right: 1px solid var(--line); }
.guide > div:nth-last-child(-n+2) { border-bottom: 0; }
.guide dt { padding: 14px 16px; background: var(--gutter); border-right: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.guide dd { padding: 13px 18px; font-size: 17px; line-height: 1.55; }
.guide dd small { display: block; margin-top: 3px; font-size: 15px; color: var(--ink-2); }
.guide dd.is-em { color: #B81F58; font-weight: 600; }

/* ───────── 상담 안내 ───────── */
.cta { padding: 0 0 96px; scroll-margin-top: 100px; }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding: 56px 60px; border-radius: var(--r-xl); background: var(--yellow); color: var(--ink);
}
.cta-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(27px, 3.1vw, 38px); line-height: 1.32; letter-spacing: -.025em; }
.cta-copy p { margin-top: 14px; max-width: 30em; }
/* 상담전화 두 번호를 한 상자에(손글씨 "표 합치기") */
.cta-tel {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 20px;
  padding: 8px 26px; border-radius: 16px; background: #fff;
}
.cta-tel-k { grid-row: 1 / span 2; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.cta-tel a {
  grid-column: 2; padding: 12px 0; text-align: right; white-space: nowrap; color: var(--ink); text-decoration: none;
  font-size: clamp(24px, 2.6vw, 31px); font-weight: 700; letter-spacing: .01em; line-height: 1.2;
}
.cta-tel a + a { border-top: 1px solid var(--line); }
.cta-tel a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.cta-tel a:focus-visible { outline-color: var(--ink); }

/* ───────── 하단 정보 ───────── */
.site-footer { padding: 44px 0 56px; background: var(--gutter); border-top: 1px solid var(--line); }
.foot-top { display: flex; align-items: center; gap: 16px; }
.foot-top .logo { margin-right: 0; }
.foot-copy-btn { min-width: 128px; margin-left: auto; cursor: pointer; font-family: inherit; }
.foot-tag { padding-left: 16px; border-left: 1px solid var(--line-strong); color: var(--ink-2); font-size: 15px; }
.foot-grid {
  display: grid; grid-template-columns: .7fr 1fr 2fr 1.6fr; margin-top: 24px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: #fff;
}
.foot-grid > div + div { border-left: 1px solid var(--line); }
.foot-grid dt { padding: 9px 16px; background: #EFECF4; font-size: 15px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.foot-grid dd { padding: 12px 16px; font-size: 17px; font-weight: 400; line-height: 1.5; }
/* 상담전화 두 번호: 누르는 범위(위아래 11px)를 음수 여백으로 숨기면 줄이 바뀔 때 두 번호가 22px 겹쳐
   윗번호 아래쪽을 누르면 아랫번호로 걸렸다(11-27 Z플립 점검). 칸 위아래 여백을 줄이고 줄바꿈은 flex 로 */
.foot-grid dd.foot-tel { display: flex; flex-wrap: wrap; column-gap: 16px; padding-top: 1px; padding-bottom: 1px; }
.foot-grid dd a { text-decoration: none; display: inline-block; padding: 11px 0; white-space: nowrap; }
.foot-grid dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-copy { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

.callbar { display: none; }

/* ───────── 분류 화면 ───────── */
.crumb { font-size: 15px; color: var(--ink-2); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumb li { display: inline-flex; align-items: center; }
.crumb li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 9px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.crumb a { display: inline-block; padding: 10px 4px; margin: -10px -4px; text-underline-offset: 4px; }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }

.cat-hero { position: relative; padding: 30px 0 48px; background-color: var(--c-tint); }
.cat-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; align-items: end; margin-top: 30px; }
.cat-hero-copy h1 {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.25; letter-spacing: -.03em;
}
.cat-hero-copy h1::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: .14em; background: var(--c); }
.cat-hero-copy p { margin-top: 14px; font-size: 18px; color: var(--ink); max-width: 30em; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: #fff;
}
.facts > div { border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { padding: 7px 16px; background: var(--gutter); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.facts dd { padding: 10px 16px 11px; font-size: 17px; font-weight: 600; line-height: 1.4; white-space: nowrap; }

.sec-list { padding-top: 40px; }

/* ───────── 프로그램 상세 화면 ───────── */
.prog { position: relative; padding: 30px 0 56px; background-color: var(--c-tint); }
.prog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 52px; align-items: start; margin-top: 30px; }
/* 사진이 없는 프로그램은 사진 칸 없이 한 단으로 */
.prog-grid.no-photo { grid-template-columns: minmax(0, 760px); }
.ph-lg { background: #fff; box-shadow: 0 0 0 1px var(--c-line); }
/* 원본이 작은 사진: 늘리지 않고 있는 크기대로 둔다. 자리는 다른 사진처럼 왼쪽(11-26 손글씨 "사진 위치 바꾸기") */
.prog-grid:has(.is-small) { grid-template-columns: auto minmax(0, 1fr); gap: 44px; }
.ph-lg.is-small { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
.ph-lg.is-small img { position: static; max-width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--c-line); }
/* 세로로 긴 사진(머그컵·접시): 자르지 않고 통째로, 테두리 선 없이, 높이는 오른쪽 글 칸 정도로
   (11-26 손글씨 "불필요한 선 지우기", "세로 높이를 여기 정도로 줄이기") */
.ph-lg.is-tall { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
.ph-lg.is-tall img { position: static; width: auto; max-width: 100%; height: auto; max-height: var(--tall-h, 500px); border-radius: var(--r-lg); }
/* 사진 두 장을 가로로 나란히(핸드페인팅 접시): 높이는 같고, 오른쪽 기본 정보 표 높이에 맞춘다 */
.photo-row { display: flex; gap: 12px; align-items: flex-start; }
.row-ph { min-width: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--c-tint); }
.row-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 같은 크기 칸에 나란히(포슬린·물전사, 11-27): 자르지 않고 칸에 맞춰 조금 늘이거나 줄인다(한도 15%, site.js ROW_STRETCH) */
.photo-row.is-equal .row-ph { background: #fff; box-shadow: 0 0 0 1px var(--c-line); }
.photo-row.is-equal .row-ph img { object-fit: fill; }
/* 표 높이에 맞춰 늘리는 사진(흙빚기 생활자기): 좁은 화면에서는 원래 비율, 넓은 화면에서는 표와 같은 높이로 늘림 */
.fit-ph { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--c-line); }
.fit-ph img { display: block; width: 100%; height: auto; }
.photo-fit.is-aligned .fit-ph img { height: 100%; object-fit: fill; }
/* 큰 사진은 늘리지 않고 잘라서 채운다(식기세트: 위쪽 조명을 잘라 그릇이 꽉 차게) */
.photo-fit.is-aligned.is-cover .fit-ph img { object-fit: cover; object-position: var(--focus, 50% 50%); }
/* 칸 가운데에 두는 사진(흙빚기 생활자기) */
.photo-fit.is-center .fit-ph { margin-inline: auto; }

.kind {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px;
  background: var(--c); color: var(--c-on); font-weight: 600; font-size: 15px; text-decoration: none;
}
.kind:hover { text-decoration: underline; text-underline-offset: 4px; }
.prog-body h1 {
  margin-top: 16px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(29px, 3.5vw, 42px); line-height: 1.3; letter-spacing: -.03em;
}
.prog-desc { margin-top: 12px; font-size: 18px; line-height: 1.7; }

.spec {
  width: 100%; margin-top: 18px; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: #fff; font-size: 17px;
}
.spec th, .spec td { padding: 10px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); line-height: 1.55; }
.spec tr:last-child > * { border-bottom: 0; }
.spec th { width: 124px; background: var(--gutter); font-weight: 600; font-size: 15px; color: var(--ink-2); border-right: 1px solid var(--line); white-space: nowrap; }
.spec td strong { font-weight: 700; font-size: 20px; }
.prog-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* 공연 구성표 (카탈로그 2·3쪽) */
.sec-parts { padding: 60px 0 0; }
.parts { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; line-height: 1.55; }
.parts th, .parts td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.parts tr > :last-child { border-right: 0; }
.parts tbody tr:last-child > * { border-bottom: 0; }
.parts thead th { background: var(--c-tint); border-bottom-color: var(--c-line); font-weight: 600; font-size: 15px; white-space: nowrap; }
.parts tbody th { width: 1%; font-weight: 600; white-space: nowrap; }
.parts .p-time { width: 1%; white-space: nowrap; }

.sec-flow { padding: 60px 0 0; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.flow li { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; }
.flow .step-n { flex: none; background: var(--c-tint); color: var(--c-deep); }
.flow p { font-size: 17px; line-height: 1.55; font-weight: 400; }

.sec-others { padding-top: 60px; }
.sec-others.is-bare { padding-top: 36px; }
.sec-others.is-bare .pager { margin-top: 0; }
/* 관련 사진(11-26): 넓은 화면은 한 줄 4장, 좁으면 2장씩. 한 장뿐이면 자르지 않고 크게 */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery li { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-tint); box-shadow: 0 0 0 1px var(--c-line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-single { grid-template-columns: minmax(0, 1fr); }   /* 한 장뿐인 사진은 칸 너비 가득(11-26 저녁 손글씨 "이만큼 크게 늘리기") */
.gallery.is-single li { aspect-ratio: auto; }
.gallery.is-single img { height: auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager a {
  display: grid; gap: 2px; padding: 16px 22px; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  text-decoration: none; background: #fff; transition: border-color .15s, background-color .15s;
}
.pager a:hover { border-color: var(--c); background: var(--c-tint); }
.pager span { font-size: 14px; color: var(--ink-2); }
.pager strong { font-size: 17px; font-weight: 600; line-height: 1.45; }
.pager-next { text-align: right; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .gnb {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px max(var(--pad), env(safe-area-inset-right, 0px)) 14px max(var(--pad), env(safe-area-inset-left, 0px));
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(43, 34, 56, .5);
  }
  .nav-open .gnb { display: grid; }
  .gnb a { padding: 13px 16px; }
  .gnb-name, .gnb-host { white-space: normal; }
}

@media (max-width: 980px) {
  .cmp { grid-template-columns: 96px repeat(4, minmax(0, 1fr)); }
  .cmp-labels > span, .cmp-col > p { padding: 12px 12px; }
  .cmp-col > p { font-size: 15px; }
  .cmp-head a { padding: 14px 12px; font-size: 17px; }
  .slider { aspect-ratio: 16 / 10; }
  .cat-hero-row { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .prog-grid, .prog-grid:has(.is-small), .prog-grid.no-photo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prog-photo { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:nth-child(3) { border-left: 0; }
  .foot-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sheet .note { width: auto; }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }
  body { font-size: 17px; }
  .site-footer { padding-bottom: 104px; }
  .header-row { min-height: 66px; gap: 10px; }
  .logo-name { font-size: 33.8px; }   /* 30% 크게(26px → 33.8px) */
  .logo-mark { height: 52px; }   /* 휴대폰: 머리말 높이 66px 안에 들게 */
  .call { display: none; }
  .gnb { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }

  .hero { padding: 18px 0 36px; }
  .slider { aspect-ratio: 4 / 3; }
  .slider-ui { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; padding: 4px; }
  .slide-cap { min-width: 0; padding: 6px 8px 6px 6px; gap: 8px; }
  .cap-cat { display: none; }
  .cap-name { overflow: hidden; text-overflow: ellipsis; font-size: 15px; padding-left: 8px; }
  .dot { width: 32px; }
  .hero-head { gap: 12px; margin-bottom: 14px; }
  .hero-lead { display: none; }
  .hero-head .btn { display: inline-flex; width: 100%; }

  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 22px; }

  /* 이용 안내: 한 줄에 한 항목 */
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide > div { grid-template-columns: 92px minmax(0, 1fr); }
  .guide > div:nth-child(odd) { border-right: 0; }
  .guide > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .guide dt { padding: 12px; }
  .guide dd { padding: 11px 14px; font-size: 16px; }

  /* 공연 구성표: 칸을 좁혀 가로로 넘치지 않게 */
  .sec-parts { padding-top: 40px; }
  .parts th, .parts td { padding: 10px 12px; font-size: 16px; }
  .parts tbody th { white-space: normal; width: 30%; }

  /* 비교표: 분류마다 이름 줄과 요약 네 줄로 줄인다 */
  .cmp { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 10px; border: 0; background: none; overflow: visible; }
  .cmp-labels { display: none; }
  .cmp-col {
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; grid-row: auto; column-gap: 12px;
    padding-bottom: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-xl); overflow: hidden; background: #fff;
  }
  .cmp-col > h3 { grid-column: 1 / -1; margin-bottom: 10px; }
  .cmp-head a { position: relative; min-height: 52px; padding: 12px 42px 12px 14px; font-size: 18px; }
  .cmp-head a::after {   /* 누르면 목록으로 간다는 표시 */
    content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
  }
  .cmp-col > p { display: block; padding: 0 14px; border: 0; font-size: 17px; line-height: 1.55; }
  .cmp-col > p:nth-of-type(2) { grid-row: 2; grid-column: 1; padding-right: 0; }                             /* 프로그램 수 */
  .cmp-col > p:nth-of-type(4) { grid-row: 2; grid-column: 2; padding-left: 0; }                              /* 진행 시간 */
  .cmp-col > p:nth-of-type(5) { grid-row: 3; grid-column: 1 / -1; font-weight: 600; }                        /* 체험비 */
  .cmp-col > p:nth-of-type(3) { grid-row: 4; grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }    /* 대표 프로그램 */
  .cmp-col > p:nth-of-type(1) { grid-row: 5; grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }    /* 주체 */
  .cmp-col > p:nth-of-type(1) .cmp-k { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin-right: 6px; }
  .cmp-col > p strong { font-size: inherit; }
  .cmp-col > .cmp-act { display: none; }

  /* 시트 탭: 두 줄 두 칸으로 넷이 다 보이게 */
  .book-tabs { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 6px; padding: 0; margin: 0 0 8px; overflow: visible; }
  .tab {
    justify-content: flex-start; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    font-size: 15px; line-height: 1.3; white-space: normal; text-align: left;
  }
  .tab .tab-n { margin-left: auto; }
  .book-tabs + .book-frame { border-top: 1px solid var(--line-strong); }

  /* 표: 이름 한 줄, 그 아래 시간과 금액, 비고 순으로 접는다 */
  .sheet, .sheet tbody { display: block; }
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet thead th { position: static; }
  .sheet tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .sheet tbody tr:last-child { border-bottom: 0; }
  .sheet th, .sheet td { display: block; border: 0; padding: 0; width: auto !important; }
  .sheet tbody tr[data-href]:hover > td, .sheet tbody tr.is-current > td { background: none; }
  .sheet tbody tr.is-current { background: var(--c-tint); }
  .sheet .name { grid-column: 1 / -1; }
  .sheet .time { grid-column: 1; margin-top: 3px; }
  .sheet .price { grid-column: 2; margin-top: 3px; }
  /* ＊ 자리는 늘 비워 두어, 표시가 있든 없든 금액의 오른쪽 끝이 맞는다 */
  .sheet .note { grid-column: 1 / -1; margin-top: 3px; }
  .sheet .note:empty { display: none; }
  .note-line { display: inline; }
  .note-line + .note-line::before { content: ", "; }

  .sheet-detail tr { grid-template-columns: 76px auto minmax(0, 1fr); column-gap: 12px; }
  .sheet-detail .photo { grid-column: 1; grid-row: 1 / span 5; padding: 3px 0 0; width: 76px !important; }
  .sheet-detail .name { grid-column: 2 / -1; padding: 0; }
  .sheet-detail .time { grid-column: 2; }
  .sheet-detail .price { grid-column: 3; }
  .sheet-detail .note { grid-column: 2 / -1; }
  .sheet-detail .desc { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

  .sheet-theme tr { grid-template-columns: minmax(0, 1fr); }
  .sheet-theme .name, .sheet-theme .note, .sheet-theme .go { grid-column: 1; }
  .sheet-theme .desc { font-size: 15px; }
  .sheet-theme .go { margin-top: 10px; text-align: left; }
  .cat-pages { gap: 20px; padding: 16px 10px 0; }
  .book-pages { padding-bottom: 20px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 18px 0; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .steps .step-n { grid-row: 1 / span 2; }
  .steps h3 { margin-top: 0; font-size: 18px; }
  .steps p { grid-column: 2; margin-top: 4px; }

  .cta { padding-bottom: 64px; }
  .cta-box { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 22px; }
  .foot-copy-btn { margin-left: 0; }
  .cta-tel { padding: 4px 20px; column-gap: 14px; }

  .foot-top { flex-wrap: wrap; row-gap: 6px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div { display: grid; grid-template-columns: 104px 1fr; border-left: 0 !important; }
  .foot-grid > div + div { border-top: 1px solid var(--line); }
  .foot-grid dt { border-bottom: 0; border-right: 1px solid var(--line); display: flex; align-items: center; }
  .foot-grid dd { font-size: 15px; }

  .cat-hero { padding: 20px 0 36px; }
  .cat-hero-row { margin-top: 20px; }
  .cat-hero-copy p { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { display: grid; grid-template-columns: 112px 1fr; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .facts dt { display: flex; align-items: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .facts dd { white-space: normal; font-size: 17px; }
  .facts > div:last-child { border-bottom: 0 !important; }
  .sec-list { padding-top: 28px; }

  .prog { padding: 20px 0 40px; }
  .prog-grid { margin-top: 20px; }
  .prog-desc { font-size: 17px; }
  .spec th { width: 96px; padding: 12px 14px; }
  .spec td { padding: 12px 14px; }
  .prog-act { display: grid; }
  /* 아래 고정 전화 바와 같은 번호라 전화 버튼은 숨긴다 */
  .prog-act > .btn-ink, .prog-act:not(:has(.btn-line)) { display: none; }
  .btn { white-space: normal; text-align: center; }
  .sec-flow, .sec-others { padding-top: 44px; }
  .sec-flow { padding-bottom: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .pager-empty { display: none; }

  .callbar {
    --cb-ease: cubic-bezier(.2, .7, .2, 1);
    position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; justify-content: center;
    height: 54px; box-sizing: border-box; overflow: hidden; white-space: nowrap;
    border-radius: 999px; background: var(--ink); color: #fff;
    font-weight: 700; font-size: 17px; text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(43, 34, 56, .7);
    transition: left .38s var(--cb-ease), height .38s var(--cb-ease), font-size .38s var(--cb-ease);
  }
  .callbar svg { flex: none; width: 20px; height: 20px; }
  .callbar-t1, .callbar-t2 {
    display: inline-block; overflow: hidden; max-width: 160px; opacity: 1;
    /* 펴질 때: 폭이 먼저 늘고 번호가 뒤따라 나타난다 */
    transition: max-width .38s var(--cb-ease), margin-left .38s var(--cb-ease), opacity .2s ease-out .14s;
  }
  .callbar-t1 { margin-left: 10px; }
  .callbar-t2 { margin-left: 6px; }
  /* 아래로 내리는 중: 번호를 접고 오른쪽에 붙은 작은 알약(156×46)으로. 오른쪽 끝은 그대로 두고 왼쪽 끝만 움직인다 */
  .callbar.is-sm { left: calc(100% - max(12px, env(safe-area-inset-right, 0px)) - 156px); height: 46px; font-size: 16px; }
  .callbar.is-sm .callbar-t2 {
    max-width: 0; margin-left: 0; opacity: 0;
    transition: max-width .38s var(--cb-ease), margin-left .38s var(--cb-ease), opacity .12s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slider.is-running .dot.is-on i { animation: none; }
  .btn, .btn-cell, .menu-ico i { transition: none; }
  .callbar, .callbar-t1, .callbar-t2 { transition: none !important; }
  .steps li, .steps .step-n { opacity: 1 !important; transform: none !important; transition: none !important; }
}
