/* =========================================================================
   제이프린팅 공통 스타일 (모든 페이지)
   톤: 흰 종이 + 검정 잉크. 색은 로고의 CMYK를 아주 작게만 씀.
   ========================================================================= */
:root {
  --p-bg: #ffffff; --p-surface: #f4f4f2; --p-ink: #111111; --p-muted: #6b6b6b;
  --p-accent: #111111; --p-accent-ink: #ffffff; --p-action: #111111; --p-action-ink: #ffffff;
  --p-inv-bg: #111111; --p-inv-surface: #1d1d1d; --p-inv-ink: #ffffff; --p-inv-muted: #a3a3a3;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #111111; --p-inv-action: #ffffff; --p-inv-action-ink: #111111;
  --font-display: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-text: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  --ly-scale: 0.98;
  --c: #00a0e9; --m: #e4007f; --y: #ffe100; --k: #111111;
  --line: color-mix(in srgb, var(--p-ink) 12%, transparent);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

/* 한글: 단어 중간에서 줄을 바꾸지 않음 */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--y); color: var(--k); }

/* ---------- 브랜드 요소 ---------- */
.nav__logo img { display: block; height: 30px; width: auto; }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.cmyk { display: flex; height: 4px; border-radius: 2px; overflow: hidden; max-width: 120px; }
.cmyk i { flex: 1; }
.cmyk i:nth-child(1) { background: var(--c); } .cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); } .cmyk i:nth-child(4) { background: var(--k); }
/* 영문 작은 머리말 + CMYK 점 4개 */
.eyebrow { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.eyebrow::before { content: none; }
.footer__biz { display: grid; gap: var(--s-3); }
.footer__biz a { color: inherit; }

/* ---------- 연락처 ---------- */
.contact-list a { color: inherit; }
.contact-list .rows__value { white-space: nowrap; }
@media (max-width: 639px) { .contact-list .rows__value { white-space: normal; } .contact-list a[href^="mailto"] { overflow-wrap: anywhere; } }

/* ---------- 사진 칸 공통: 흰 바탕 제품 사진은 회색 종이 위에 ---------- */
.tile__media { background: var(--surface); }
.tile__media > img { transition: transform 700ms var(--ease-out); }
a.tile:hover .tile__media > img { transform: scale(1.04); }
a.tile .tile__head h3::after { content: "→"; display: inline-block; margin-left: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease-out); }
a.tile:hover .tile__head h3::after, a.tile:focus-visible .tile__head h3::after { opacity: 1; transform: none; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
/* 하위 페이지 첫 화면의 제품 사진(작은 원본)은 자르지 않고 회색 종이 위에 */
.hero__media > img[data-source="client"] { object-fit: contain !important; background: var(--surface); padding: 8%; }

/* ---------- 메인: 첫 화면 '인쇄되는 사진' ---------- */
.hero--press .hero__lead { max-width: 34ch; }
.hero--press h1 { font-size: clamp(38px, 4.2vw, 62px); line-height: 1.12; }
@media (min-width: 1024px) { .hero--press .h1-line > span { white-space: nowrap; } }
.hero--press .h1-line { display: block; overflow: hidden; padding: .12em 0 .08em; margin: -.12em 0 -.08em; }
.hero--press .h1-line > span { display: inline-block; }
.js-motion .hero--press .h1-line > span { transform: translateY(105%); animation: lineUp 1s var(--ease-out) forwards; }
.js-motion .hero--press .h1-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); }
.hero__trust a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

.press { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 420px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.press__paper { position: relative; margin: 48px 48px 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -24px rgba(0,0,0,.25); }
.press__sheet { position: absolute; inset: 7%; opacity: 0; transition: opacity .6s ease; }
.press__sheet.is-active { opacity: 1; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity .55s ease, transform .9s var(--ease-out); }
.plate--c { filter: url(#plate-c); transform: translate(-14px, 6px); }
.plate--m { filter: url(#plate-m); transform: translate(12px, -8px); }
.plate--y { filter: url(#plate-y); transform: translate(-6px, -12px); }
.press__sheet[data-stage~="c"] .plate--c,
.press__sheet[data-stage~="m"] .plate--m,
.press__sheet[data-stage~="y"] .plate--y { opacity: 1; transform: none; }
/* 재단선과 맞춤표: K 단계에서 그려짐 */
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--k); border-style: solid; border-width: 0; opacity: 0; transition: opacity .5s ease; }
.crop--tl { top: -30px; left: -30px; border-right-width: 1px; border-bottom-width: 1px; }
.crop--tr { top: -30px; right: -30px; border-left-width: 1px; border-bottom-width: 1px; }
.crop--bl { bottom: -30px; left: -30px; border-right-width: 1px; border-top-width: 1px; }
.crop--br { bottom: -30px; right: -30px; border-left-width: 1px; border-top-width: 1px; }
.press[data-k="on"] .crop { opacity: .7; }
.press__paper { overflow: visible; }
.press__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; font-size: var(--t-small); }
.press__label { color: var(--muted); }
.press__label b { color: var(--ink); font-weight: 500; }
.press__plates { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.press__plates li { width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; font-weight: 700; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.press__plates li.is-on[data-p="c"] { background: var(--c); color: #fff; border-color: var(--c); }
.press__plates li.is-on[data-p="m"] { background: var(--m); color: #fff; border-color: var(--m); }
.press__plates li.is-on[data-p="y"] { background: var(--y); color: var(--k); border-color: var(--y); }
.press__plates li.is-on[data-p="k"] { background: var(--k); color: #fff; border-color: var(--k); }
.press__pause { width: 32px; height: 32px; min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 50%; }
.press__pause:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.press__pause svg { width: 14px; height: 14px; }
/* 오른쪽 칸 높이는 왼쪽 글(머리말~연락처 줄)과 같게 맞춤: site-motion.js가 높이를 넣음 */
.press { display: flex; flex-direction: column; }
.press__paper { flex: 1 1 auto; min-height: 0; margin: 28px 28px 0; }
.press__sheet { inset: 3%; }
.crop { width: 14px; height: 14px; }
.crop--tl { top: -18px; left: -18px; } .crop--tr { top: -18px; right: -18px; }
.crop--bl { bottom: -18px; left: -18px; } .crop--br { bottom: -18px; right: -18px; }
.press__bar { padding: 26px 24px 18px; }
@media (min-width: 1024px) {
  .hero--press .hero__media { align-self: start; height: auto !important; display: block; margin-top: 4px; }
  .hero--press .press { width: 100%; min-height: 0; }
}
@media (max-width: 1023px) {
  .hero--press .hero__media { height: auto !important; max-height: none !important; aspect-ratio: auto !important; overflow: visible !important; }
  .press { min-height: 0; height: auto; }
  .press__paper { aspect-ratio: 4 / 3; flex: none; margin: 24px 24px 0; }
}

/* 첫 화면 아래 흐르는 품목 띠 */
.ticker { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker__track span { white-space: nowrap; font-size: 15px; letter-spacing: -.01em; color: var(--muted); padding-right: 40px; }
.ticker__track span::after { content: "·"; padding-left: 40px; color: var(--line); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 1023px) { .ticker { display: none; } }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-6) 0; margin: var(--s-6) 0 var(--s-7); }
.stats div { display: grid; gap: 4px; }
.stats b { font: 500 clamp(32px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .stats { margin: var(--s-5) 0; padding: var(--s-4) 0; } #products .tile__media { --tile-ratio: 16 / 9; } #products .tile { gap: var(--s-2); } }
@media (max-width: 639px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-4); } .hero__trust { display: none; } }

/* ---------- 빠른 견적: 품목 고르기 ---------- */
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.picker a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color .25s, background .25s, transform .25s var(--ease-out); }
.picker a::after { content: none; }
.picker a:hover { border-color: var(--ink); background: var(--surface); }
@media (max-width: 639px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } .picker a { padding: 14px; font-size: 15px; } }
.callcard { display: grid; gap: var(--s-4); padding: var(--s-7); background: var(--inv-bg, #111); color: var(--inv-ink, #fff); border-radius: var(--r-lg); }
.callcard .t-label { color: var(--inv-muted, #a3a3a3); }
.callcard__phone { white-space: nowrap; font: 500 clamp(24px, 2.3vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; color: inherit; text-decoration: none; }
.callcard__rows { display: grid; gap: 8px; font-size: var(--t-small); color: var(--inv-muted, #a3a3a3); }
.callcard__rows b { color: var(--inv-ink, #fff); font-weight: 500; margin-left: 8px; }
.callcard .btn { justify-self: start; background: #fff; color: #111; }

/* ---------- 하위 페이지: 바로가기 메뉴 ---------- */
.subnav { position: sticky; top: 72px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 10px 0; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-current { background: var(--ink); color: #fff; }
@media (max-width: 1023px) { .subnav { top: 56px; } }

/* ---------- 제작 품목 ---------- */
.prod-list { display: grid; gap: var(--s-7); }
.prod { align-items: start; scroll-margin-top: 140px; }
.prod h3 { font: 600 var(--t-card)/1.3 var(--font-text); }
.prod .tile__media { --tile-ratio: 3 / 2; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.chips li { font-size: var(--t-small); padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 1023px) {
  .prod > .span-4 { grid-column: 1 / span 5; }
  .prod > .span-7 { grid-column: 6 / span 7; }
  .prod-list { gap: var(--s-6); }
}
@media (min-width: 640px) and (max-width: 1023px) { #paper { --h: 1 !important; } }
@media (max-width: 639px) {
  .prod p:not(:last-child) { font-size: var(--t-small); }
  .chips li { padding: 2px 8px; font-size: 12px; }
  #paper, #quote { min-height: 200svh; }
}

/* ---------- 후가공 견본 ---------- */
.fin .tile__media { --tile-ratio: 16 / 9; }
.fin h3 { font-size: var(--t-body); }
.fin .tile__facts { margin-top: 0; }
@media (max-width: 1023px) { .fin.span-2 { grid-column: span 3; } }
@media (max-width: 639px) { .fin.span-2 { grid-column: span 4; } .fin .tile__facts { display: none; } .fin h3 { font-size: var(--t-small); } .fin { gap: var(--s-2); } }

/* ---------- 작업 과정 ---------- */
.steps-list .step-no, .principles .step-no { display: inline-block; min-width: 2.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps-list small, .principles small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); padding-left: 2.2em; }

/* ---------- 회사 소개 ---------- */
.statement__text { font: 500 clamp(24px, 2.6vw, 36px)/1.45 var(--font-display); letter-spacing: -0.02em; max-width: 30ch; margin-top: var(--s-5); }

/* ---------- 폼 ---------- */
.form textarea { min-height: 140px; resize: vertical; }
.form select { width: 100%; }
.field--wide { grid-column: 1 / -1; }
.field--check { display: flex; gap: var(--s-3); align-items: flex-start; flex-wrap: wrap; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.field--check label { flex: 1; }
.form--panel { background: var(--surface); padding: var(--s-7); border-radius: var(--r-lg); }
@media (max-width: 639px) { .form--panel { padding: var(--s-5); } }

/* ---------- 견적 문의 3단계 ---------- */
.wizard__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 var(--s-6); padding: 0; grid-column: 1 / -1; }
.wizard__progress li { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.wizard__progress li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); transition: background .4s; }
.wizard__progress li.is-done::before, .wizard__progress li.is-now::before { background: var(--ink); }
.wizard__progress li.is-now { color: var(--ink); font-weight: 500; }
.wizard__step { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.wizard__step[hidden] { display: none; }
.js-motion .wizard__step:not([hidden]) { animation: stepIn .45s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wizard__title { grid-column: 1 / -1; font: 600 var(--t-card)/1.3 var(--font-text); }
.wizard__nav { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: var(--s-3); }
.wizard__nav .btn--back { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.choices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 0; margin: 0; padding: 0; }
.choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.choice { position: relative; display: grid; gap: 6px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__img { aspect-ratio: 4 / 3; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; transition: border-color .2s, box-shadow .2s; }
.choice__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.choice__img--text { font-size: 13px; color: var(--muted); padding: 8px; text-align: center; }
.choice span:last-child { font-size: 14px; }
.choice input:checked + .choice__img { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.choice input:focus-visible + .choice__img { outline: 2px solid var(--c); outline-offset: 2px; }
.choices--text { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--text .choice span { display: grid; place-items: center; min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; transition: border-color .2s, box-shadow .2s; }
.choices--text .choice input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.choices .field__error { grid-column: 1 / -1; }
.wizard__done { grid-column: 1 / -1; display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6) 0; }
.wizard__done[hidden] { display: none; }
.wizard__done h3 { font: 600 clamp(24px, 2.4vw, 32px)/1.3 var(--font-display); }
@media (max-width: 1023px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wizard__step { grid-template-columns: 1fr; } .choices--text { grid-template-columns: 1fr; } }

/* ---------- 위로 가기 ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out); box-shadow: 0 8px 24px -12px rgba(0,0,0,.3); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { .to-top { bottom: 88px; right: 16px; } }

/* ---------- 스크롤 등장 (스크립트가 있을 때만 숨김) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
/* 사진: 인쇄기 롤러처럼 위에서 아래로 찍혀 나옴 */
.js-motion [data-print] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js-motion [data-print].is-in { clip-path: inset(0 0 0 0); }

/* ---------- 개인정보처리방침 ---------- */
.legal { padding-top: calc(var(--s-9, 96px) + 40px); }
.legal__body { max-width: 72ch; }
.legal__body h1 { font: 500 clamp(32px, 4vw, 48px)/1.15 var(--font-display); letter-spacing: -.03em; }
.legal__body h2 { font: 600 var(--t-card)/1.3 var(--font-text); margin-top: var(--s-6); }

/* ---------- 움직임 줄이기 설정 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .js-motion .hero--press .h1-line > span, .js-motion .wizard__step:not([hidden]) { animation: none; transform: none; }
  .js-motion [data-reveal], .js-motion [data-print] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .plate { transition: none; transform: none; }
}

/* ---------- 하단 지도 ---------- */
.map { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.55) contrast(1.04); transition: filter .4s; }
.map:hover iframe { filter: none; }
@media (max-width: 1023px) { .map { margin-top: var(--s-6); aspect-ratio: 16 / 11; } }

/* ---------- 회사 소개: 원칙 목록, 회사소개서 인용 ---------- */
.principles .rows__name { font-weight: 500; }
.principles small { font-weight: 400; }
.quote-brochure { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.quote-brochure p { font-size: var(--t-body); line-height: 1.6; }
.quote-brochure cite { display: block; margin-top: 6px; font-style: normal; font-size: var(--t-small); color: var(--muted); }

/* 하단: 지도가 들어가 높아졌으므로 한 화면 고정 높이를 풀고 내용만큼 늘어나게 */
footer.closing { height: auto !important; min-height: 0 !important; }
footer.closing > .wrap { height: auto !important; grid-template-rows: auto auto !important; row-gap: var(--s-8, 80px); }
footer.closing .closing__cta { height: auto !important; min-height: 0 !important; }
@media (max-width: 1023px) { footer.closing > .wrap { row-gap: var(--s-7); } }

/* ---------- 방문 예약 ---------- */
.choices--meet .choice span { display: grid; gap: 2px; place-items: start; text-align: left; padding: 14px 16px; min-height: 64px; }
.choices--meet .choice b { font-weight: 500; }
.choices--meet .choice small { font-size: 13px; color: var(--muted); }
.form input[type="date"] { min-height: 44px; }
.field[hidden] { display: none; }
.callcard .btn-row { gap: 8px; }
.btn--ghost-inv { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost-inv:hover { border-color: #fff; }
.nav__actions .nav__link { margin-right: 6px; }
@media (max-width: 1023px) { .nav__actions .nav__link { display: none; } }
/* 상단 전화번호: 넓은 화면에서만 */
.nav__tel { display: none; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 500; }
.nav__tel svg { width: 15px; height: 15px; }
@media (min-width: 1400px) { .nav__actions .nav__tel { display: inline-flex; } }

/* ---------- 하단 사이트 지도 ---------- */
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: 15px; }
.footer__nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 639px) { .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } }

/* ---------- 자주 묻는 질문 ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
/* 답은 늘 펼쳐 둠 (assets/system.js 규칙): 화살표 없이 질문·답 목록으로 */
.faq summary { list-style: none; cursor: default; padding-block: 14px 2px; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 14px; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq__cta { margin-top: var(--s-5); }
@media (max-width: 639px) { .faq summary { font-size: 16px; } }
/* 휴대폰: 견적 문의서가 먼저 보이게 연락처 목록은 숨김 (하단 전화 바와 푸터에 같은 정보) */
@media (max-width: 767px) { .contact-list { display: none; } }

/* ---------- 첫 화면 아래 회사 숫자 줄 ---------- */
.stats--hero { margin: 0; border-bottom: 0; padding: var(--s-5) 0; }
.stats--hero b { font-size: clamp(30px, 3.2vw, 44px); }
@media (min-width: 1024px) and (min-height: 680px) {
  .hero--press .hero__stats { position: absolute; left: 0; right: 0; bottom: 51px; }
}
/* 낮은 화면(노트북 등): 첫 화면이 좁으니 숫자 줄은 품목 섹션에서 보여 줌 */
@media (min-width: 1024px) and (max-height: 679px) { .hero--press .hero__stats { display: none; } .stats--mobile { display: grid; } }
/* 태블릿·휴대폰: 첫 화면에서는 숨기고 품목 섹션의 숫자 줄로 보여 줌 */
.stats--mobile { display: none; }
@media (max-width: 1023px) { .hero--press .hero__stats { display: none; } .stats--mobile { display: grid; } }
/* 공간이 모자라면(site-motion.js가 판단) 첫 화면 숫자 줄 대신 품목 섹션의 숫자 줄 */
.hero-stats-off .hero--press .hero__stats { display: none; }
.hero-stats-off .stats--mobile { display: grid; }

/* ---------- 디자이너 도구 ---------- */
.tool-shot { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.tool-shot .tile__media { --tile-ratio: 16 / 10; border-radius: 0; }
.tool-shot:hover .tile__media > img { transform: scale(1.02); }
/* 도구 화면: 위 얇은 바 + 앱 전체 화면 */
.tool-body { --ink: var(--p-ink); --muted: var(--p-muted); --bg: var(--p-bg); --surface: var(--p-surface); --r-lg: 16px; color: var(--ink); margin: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg, #fff); font-family: var(--font-text); }
.toolbar { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); flex: none; font-size: 14px; }
.toolbar__logo img { display: block; height: 26px; width: auto; }
.toolbar__back { color: var(--muted); text-decoration: none; }
.toolbar__back:hover { color: var(--ink); }
.toolbar__name { font-weight: 600; padding-left: 16px; border-left: 1px solid var(--line); }
.toolbar__grow { flex: 1; }
.toolbar__note { color: var(--muted); font-size: 13px; }
.toolbar__quote { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.toolbar__quote:hover { background: #333; }
.tool-frame { flex: 1; width: 100%; border: 0; display: block; }
.tool-mobile { display: none; }
@media (max-width: 1100px) { .toolbar__note { display: none; } }
@media (max-width: 899px) {
  html:not(.tool-force) .tool-frame { display: none; }
  html:not(.tool-force) .tool-mobile { display: grid; gap: 16px; align-content: start; padding: 40px 24px; overflow: auto; }
  .tool-mobile h1 { font: 600 28px/1.25 var(--font-display); letter-spacing: -.03em; }
  .tool-mobile .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .tool-mobile .btn { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 600 15px var(--font-text); }
  .tool-mobile .btn--primary { background: var(--ink); color: #fff; }
  .toolbar__back, .toolbar__name { display: none; }
  .toolbar { gap: 10px; }
}
.faq__photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg, 16px); margin: 0; }
.faq__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1023px) { .faq__photo { display: none; } }
/* 넓은 화면: 질문을 두 줄로 놓아 한 화면에 */
@media (min-width: 1024px) {
  .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-content: start; }
  .faq__cta { grid-column: 1 / -1; }
}

/* ---------- 설비 사진 ---------- */
.plant-tile .tile__media { --tile-ratio: 4 / 3; }
#equipment .plant-tile .tile__media img { object-fit: cover; }
.plant-tile .tile__facts:empty { display: none; }
@media (min-width: 1024px) { #equipment .grid { row-gap: var(--s-6); } }
/* 태블릿 3칸, 휴대폰 2칸 (12칸 격자 그대로): 설비 사진이 너무 길게 늘어지지 않게 */
@media (max-width: 1023px) {
  #equipment .grid > .plant-tile, #equipment .grid > .plant-tile:nth-child(odd of .tile):nth-last-child(1 of .tile) { grid-column: auto / span 4; }
}
@media (max-width: 639px) {
  #equipment .grid { row-gap: 20px; }
  #equipment .grid > .plant-tile, #equipment .grid > .plant-tile:nth-child(odd of .tile):nth-last-child(1 of .tile) { grid-column: auto / span 6; }
  #equipment .plant-tile .tile__facts { display: none; }
  #equipment .plant-tile h3 { font-size: 15px; }
}
/* 현장 사진은 첫 화면 칸을 꽉 채움 (제품 누끼 사진만 여백을 두고 보여 줌) */
.hero__media > img[src*="/plant/"] { object-fit: cover !important; padding: 0; background: none; }

/* ---------- 제작 품목: 사진 넘겨 보기 ---------- */
.prod__media .tile__media { --tile-ratio: 16 / 10; }
.prod__media .tile__media > img { object-fit: cover; transition: opacity .3s ease, transform .5s var(--ease-out, ease); }
.prod__media .tile__media > img.is-swapping { opacity: 0; transform: scale(1.015); }
.prod__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.prod__thumb { appearance: none; border: 1px solid var(--line); background: var(--surface); padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; min-height: 44px; opacity: .55; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.prod__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod__thumb:hover { opacity: .9; transform: translateY(-2px); }
.prod__thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.prod__thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* 대표 사진이 실제 장면 사진이 되었으므로 품목 타일·문의서 사진은 꽉 채움 */
#products .tile__media > img { object-fit: cover; }
/* 헤더: 방문·미팅 예약 버튼 (견적 문의하기 앞) */
.nav__actions .nav__visit { margin-right: 8px; }

/* ---------- 정리 2026-11-21 ---------- */
/* 홈 설비: 큰 사진 + 목록 (카드 격자 반복을 끊음) */
.equip-split { align-items: center; }
.equip-split .frame { aspect-ratio: 4 / 3; margin: 0; }
.equip-split .frame img { width: 100%; height: 100%; object-fit: cover; }
.equip-split .rows__value { color: var(--muted); }
@media (max-width: 1023px) { .equip-split .frame { aspect-ratio: 3 / 2; } }
@media (max-width: 639px) {
  .equip-split .rows > li { display: block; }
  .equip-split .rows__value { display: block; text-align: left; margin-top: 4px; max-width: none; width: auto; }
}

/* ---------- 원칙 문장 옆: 재단된 사진 조각이 모여 한 장이 됨 ---------- */
.promise-grid { align-items: center; }
.shards { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.shards__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; transition: gap .7s var(--ease-out, cubic-bezier(.2,.7,.2,1)) 1.15s; }
.shards__grid i { display: block; background-image: var(--shard-lg); background-size: 400% 400%; background-position: calc(var(--x) * 100% / 3) calc(var(--y) * 100% / 3); border-radius: 2px;
  opacity: 0; transform: translate(calc((var(--x) - 1.5) * 26px), calc((var(--y) - 1.5) * 22px + 18px)) rotate(calc((var(--d) - 8) * .6deg)) scale(.92);
  transition: opacity .6s ease calc(var(--d) * 45ms), transform .9s var(--ease-out, cubic-bezier(.2,.7,.2,1)) calc(var(--d) * 45ms), border-radius .5s ease 1.2s; }
.shards.is-in .shards__grid { gap: 0; }
.shards.is-in .shards__grid i { opacity: 1; transform: none; border-radius: 0; }
.shards__grid i:first-child { border-top-left-radius: var(--r-lg, 16px); }
/* 재단선: 조각이 다 모인 뒤 네 귀퉁이에 */
.shards .crop { position: absolute; width: 18px; height: 18px; opacity: 0; transition: opacity .5s ease 1.6s; }
.shards .crop::before, .shards .crop::after { content: ""; position: absolute; background: var(--ink); }
.shards .crop::before { width: 18px; height: 1px; } .shards .crop::after { width: 1px; height: 18px; }
.shards .crop--tl { top: -14px; left: -14px; } .shards .crop--tr { top: -14px; right: -14px; transform: scaleX(-1); }
.shards .crop--bl { bottom: -14px; left: -14px; transform: scaleY(-1); } .shards .crop--br { bottom: -14px; right: -14px; transform: scale(-1); }
.shards.is-in .crop { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .shards__grid, .shards__grid i, .shards .crop { transition: none; } }
@media (max-width: 1023px) { .shards { margin-top: var(--s-6); } }
#promise > .wrap.promise-grid { align-self: center; align-content: center; height: 100%; }
/* 조각이 다 모이면 이음선 없이 한 장으로 덮음 */
.shards__grid::after { content: ""; position: absolute; inset: 0; background: var(--shard-lg) center / 100% 100% no-repeat; opacity: 0; transition: opacity .4s ease 1.85s; pointer-events: none; }
.shards.is-in .shards__grid::after { opacity: 1; }
/* 헤더 버튼: 좁은 PC 화면에서는 메뉴와 겹치지 않게 숨김 (고객 지원 메뉴에 같은 링크가 있음) */
@media (min-width: 1024px) and (max-width: 1239px) { .nav__actions .nav__jhard { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1119px) { .nav__actions .nav__visit { display: none !important; } }

/* ---------- 회원 전용 도구 ---------- */
.members-note { font-size: 14px; color: var(--ink); padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--surface, #f6f6f6); }
.members-list { list-style: none; margin: 18px 0 22px; display: grid; gap: 8px; }
.members-list li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink); }
.members-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ink); }


/* ================= 사용성 보완 2026-11-25 ================= */
/* 휴대폰 하단 전화·견적 바: 처음부터 항상 보임 */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
  .callbar__tel { border: 1px solid var(--ink); color: var(--ink); background: #fff; }
  .callbar__tel svg { width: 17px; height: 17px; }
  .callbar__quote { background: var(--ink); color: #fff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle { margin-left: auto !important; }
}
/* 견적 문의: 제목 줄바꿈, 파일 안내 */
.nobr { white-space: nowrap; }
.file-hint { font-size: 14px; color: var(--muted); line-height: 1.6; padding: 10px 12px; background: var(--surface, #f6f6f6); border-radius: 8px; }
/* 홈 품목: 휴대폰에서는 6개 + 모두 보기 */
.more-mobile { display: none; }
@media (max-width: 639px) {
  #products .grid > .tile--more { display: none; }
  .more-mobile { display: block; margin-top: 20px; }
  .more-mobile .btn { width: 100%; }
}
/* 견적 문의 1단계: 휴대폰에서 품목 3칸 */
@media (max-width: 639px) {
  .choices:not(.choices--text):not(.choices--meet) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .choices:not(.choices--text):not(.choices--meet) .choice > span:last-child { font-size: 12px; }
}
/* 조각 사진: 휴대폰은 작은 파일 */
@media (max-width: 767px) { .shards__grid { --shard-lg: var(--shard-sm); } }
/* 카카오톡 채널 링크 */
.kakao-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kakao-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 767px) {
  .callbar { grid-template-columns: 1fr 1fr 1.15fr; }
  .callbar__kakao { background: #fee500; color: #191919; border: 1px solid #fee500; }
  .callbar a { font-size: 14.5px; }
}

/* ================= 사용성 보완 2 (2026-11-25) ================= */
/* 휴대폰: 조각 사진은 작은 사진 (인라인 --shard-lg 가 이기므로 조각에 직접 지정) */
@media (max-width: 767px) {
  .shards__grid i { background-image: var(--shard-sm); }
  .shards__grid::after { background-image: var(--shard-sm); }
}
/* 메뉴 풀이: 휴대폰 메뉴에서만 보임 */
.nav__hint { display: none; }
@media (max-width: 1023px) {
  .nav.is-open .nav__hint { display: inline; margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
  .nav.is-open .nav__jhard .nav__hint { margin-left: 4px; }
  .nav.is-open .nav__jhard .nav__hint::before { content: "· "; }
}
/* 노트북(1120~1399px): 방문 예약 버튼 대신 전화번호 (방문 예약은 고객 지원 메뉴에 있음) */
@media (min-width: 1120px) and (max-width: 1399px) {
  .nav__actions .nav__tel { display: inline-flex; margin-right: 12px; }
  .nav__actions .nav__visit:not(.nav__jhard) { display: none !important; }
}
/* 메뉴를 열면 하단 바는 숨김 (메뉴 안에 같은 버튼이 있음) */
@media (max-width: 767px) { body:has(.nav.is-open) .callbar { display: none; } }
/* 하단 상담 안내 아래 자주 묻는 질문 */
.close-faq { margin-top: 14px; font-size: 15px; }
.callcard__note { margin-top: 16px; font-size: 14px; line-height: 1.6; opacity: .78; }
.callcard__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
