/* 모든 시안이 함께 쓰는 스타일: 크게 보기, 문의 양식, 눈, 저장 방지. 색은 각 시안이 변수로 정해요. */
:root {
  --bg: #f4f9ff; --panel: #fff; --panel2: #eaf3fd; --line: #d3e3f5; --text: #1c3557; --sub: #4c6a8f; --mute: #7f97b5;
  --accent: #3d7fd6; --accent-d: #2a62b0; --on-accent: #fff; --field: #fbfdff; --warn: #d0485e; --ok: #1f9d68;
  --lb-bg: rgba(226,239,253,.96); --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
html[data-embed] body { background: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.loading { padding: 120px 0; text-align: center; color: var(--mute); }
#page { position: relative; }

/* works: a button around one image (GIF) or a YouTube thumbnail */
.m { position: relative; display: block; overflow: hidden; }
.m img { display: block; width: 100%; height: auto; }
.m.yt { aspect-ratio: 16 / 9; background: #000; }
.m.yt img { height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border: 11px solid transparent; border-left: 17px solid var(--accent); border-right: 0; }
[data-lb] { cursor: zoom-in; }

/* snow */
.scene { position: relative; overflow: hidden; }
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.snow i { position: absolute; top: -20px; display: block; border-radius: 50%; background: #fff; animation: fall linear infinite; box-shadow: 0 0 6px rgba(255,255,255,.8); }
.snow i.f { width: auto; height: auto; background: none; box-shadow: none; color: #fff; font-style: normal; line-height: 1; text-shadow: 0 0 6px rgba(120,170,230,.5); }
@keyframes fall { to { transform: translate3d(var(--dx, 30px), calc(var(--fall, 900px) + 40px), 0) rotate(240deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } * { animation-duration: .001s !important; animation-iteration-count: 1 !important; } }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #48c78e; box-shadow: 0 0 0 3px rgba(72,199,142,.2); }
.status.closed i { background: #a8b6c8; box-shadow: none; }
.slot { width: 34px; height: 34px; color: var(--accent); }
.slot.open { color: var(--mute); }

/* inquiry form */
form.ask fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
form.ask legend { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; font-size: 16px; }
form.ask legend b { color: var(--accent); }
form.ask em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--warn); }
.picks { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.picks .pcol { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pick-title { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--mute); }
.pick { display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--panel2); border: 1px solid transparent; cursor: pointer; font-size: 14px; }
.pick:has(input:checked) { border-color: var(--accent); }
.pick input { margin-top: 4px; accent-color: var(--accent); }
.pick span { flex: 1; }
.pick small { display: block; color: var(--mute); font-size: 12.5px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.field .hint { display: block; margin: -2px 0 6px; font-size: 12.5px; color: var(--mute); }
.field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font: inherit; font-size: 14.5px; color: var(--text); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.agree { display: flex; align-items: center; gap: 9px; margin: 6px 0 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--accent); }
.copy-btn { width: 100%; padding: 15px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--accent-d); }
.ask-msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.ask-msg.ok { color: var(--ok); } .ask-msg.warn { color: var(--warn); }
.ask-out { width: 100%; height: 220px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 13px; background: var(--field); color: var(--text); }

/* lightbox */
#lb { position: fixed; inset: 0; z-index: 9999; background: var(--lb-bg); backdrop-filter: blur(6px); }
html[data-embed] #lb { position: absolute; top: var(--vp-top, 0px); bottom: auto; height: var(--vp-h, 100vh); }
#lb[hidden] { display: none; }
.lb-back { position: absolute; inset: 0; }
.lb-fig { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px 30px; pointer-events: none; }
.lb-media { pointer-events: auto; max-width: 100%; }
.lb-media img { display: block; max-width: 100%; max-height: calc(var(--vp-h, 100vh) - 150px); width: auto; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.lb-media .ytw { width: min(960px, calc(100vw - 140px)); aspect-ratio: 16 / 9; max-height: calc(var(--vp-h, 100vh) - 150px); border-radius: 14px; overflow: hidden; background: #000; }
.lb-media .ytw iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-fig figcaption { margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--panel); color: var(--sub); font-size: 13.5px; font-weight: 600; pointer-events: auto; }
.lb-x, .lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-x { top: 14px; right: 14px; }
.lb-nav { top: 50%; margin-top: -23px; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 600px) {
  .lb-fig { padding: 64px 10px 80px; }
  .lb-media .ytw { width: calc(100vw - 20px); }
  .lb-nav { top: auto; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
}

/* save protection */
#page img, #lb img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
#page [data-lb], #lb .lb-media { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.guard-toast { position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, 10px); padding: 10px 18px; border-radius: 999px; background: #1c2a3d; color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
html[data-embed] .guard-toast { position: absolute; bottom: auto; top: calc(var(--vp-top, 0px) + var(--vp-h, 100vh) - 70px); }
.guard-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media print { #page img, #lb { visibility: hidden !important; } }

/* 한국어 | English 전환 버튼 */
.lang { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line, rgba(255,255,255,.22)); }
.lang button { border: 0; background: transparent; color: var(--sub, #b8c4dc); font: inherit; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lang button:hover { color: var(--text, #fff); }
.lang button[aria-pressed="true"] { background: var(--accent, #8fd3ff); color: var(--on-accent, #0a1430); cursor: default; }
/* 영어일 때는 로고 글자가 길어서 크기를 줄여요 */
html[lang="en"] .logo { font-size: clamp(46px, 11.5vw, 128px); letter-spacing: -.01em; }
html[lang="en"] .hero-in { max-width: 100%; }

/* 문의 양식: 개수 입력 + 예상 견적 */
.pick .qty { flex: none; display: inline-flex; align-items: center; gap: 4px; margin: -2px -4px -2px 0; }
.pick .qty button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--text); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.pick .qty button:hover { border-color: var(--accent); color: var(--accent); }
.pick .qty .qn { width: 42px; height: 28px; margin: 0; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.pick .qty .qn::-webkit-outer-spin-button, .pick .qty .qn::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pick .qty .qn:focus { outline: none; border-color: var(--accent); }
.est { position: sticky; bottom: 10px; z-index: 6; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--bg, #fff); border: 1px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.est-h { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.est-empty { margin: 0; font-size: 13.5px; color: var(--mute); }
.est-lines { max-height: 24vh; overflow-y: auto; scrollbar-width: thin; }
.est-r, .est-t { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14px; }
.est-r { padding: 4px 0; border-bottom: 1px solid var(--line); }
form.ask .est-r em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent); }
.est-r b, .est-t b { flex: none; font-variant-numeric: tabular-nums; }
.est-t { margin-top: 8px; font-size: 16px; font-weight: 700; }
.est-t b { font-size: 20px; color: var(--accent); }
.est-n { display: block; margin-top: 6px; font-size: 12px; color: var(--mute); }
html[data-embed] .est { position: static; }
