@import url('/assets/css/pages.css') layer(site);

/* CONTACT — 흰 바탕에 지원·문의 양식만(대표 11-14: 잡지 표지와 위쪽 제목·설명·안내 칸을 뺌)
   공통 틀(pages.css)은 아래 층(layer site)으로 불러 이 쪽 규칙이 늘 이긴다. 머리말·메뉴·바닥글·떠 있는 버튼은 다른 쪽과 같다.
   이 쪽 이름이 공통 틀과 겹치는 것(contact·field 등)은 k- 를 붙였다.
   아무것도 보내거나 저장하지 않는다(fetch·브라우저 저장소 없음). */
:root {
  --c-paper: #ffffff; --paper-2: #f5f4f1; --warm: #dedcda; --c-ink: #141414; --ink-2: #6d6a65; --line: #e5e1da;
  --gold: #a4865a; --gold-ink: #7a5f38; --line-2: #cfc9bf;
  --serif-en: 'Bodoni Moda', 'Noto Serif KR', serif; --serif-kr: 'Noto Serif KR', serif;
  --c-sans: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;
  --cg: 56px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
/* 이 쪽 기본 글씨는 본문(.k-contact)에만. 머리말·메뉴·바닥글은 공통 틀 그대로 둔다 */
body { margin: 0; background: var(--c-paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.k-contact { color: var(--c-ink); font-family: var(--c-sans); font-size: 16px; line-height: 1.6; }
:where(.k-contact) a { color: inherit; }
:where(.k-contact) :where(button, input, textarea) { font: inherit; color: inherit; }
.k-contact :focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
/* 화면을 바꾸거나 보낸 뒤 화면 읽기 프로그램이 새 제목·결과를 읽게 스크립트가 옮겨 주는 자리(tabindex="-1")는 테두리를 그리지 않는다.
   사파리는 이 자리에도 키보드 테두리를 그려, 비즈니스 문의를 누르면 제목에 네모 칸이 생겼다(대표 11-20). Tab으로 닿는 칸·단추의 테두리는 그대로 */
.k-contact [tabindex="-1"]:focus, .k-contact [tabindex="-1"]:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.slot-box { border: 1px dashed #b9b2a6; color: var(--ink-2); font-size: 13px; padding: 12px 14px; line-height: 1.5; }

/* ── 양식 한 칸(가운데) ── */

.k-sheet { padding: 72px 40px 96px; max-width: 760px; margin: 0 auto; }
/* 지원하기와 비즈니스 문의는 따로 된 두 화면이다(대표 11-15 "1/2 이렇게 나누지 말고 별개처럼, 비즈니스 문의는 검은 배경").
   위쪽: 왼쪽 이 화면 이름, 오른쪽 다른 화면으로 가는 문(누르면 그 자리에서 원이 퍼지며 화면 색이 바뀐다) */
.k-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.k-eyebrow { margin: 0; font-weight: 500; font-family: var(--serif-kr); font-size: 30px; line-height: 1.25; letter-spacing: -0.015em; color: var(--c-ink); }
.k-eyebrow b { display: block; margin-bottom: 10px; font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: 0.32em; color: var(--ink-2); }
.k-door { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; padding: 0 20px 0 22px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--c-ink); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; overflow: hidden; isolation: isolate; }
.k-door small { font-family: 'Bodoni Moda', serif; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--ink-2); }
.k-door i { font-style: normal; font-family: 'Bodoni Moda', serif; font-size: 18px; line-height: 1; }
/* 문에 올리면 안쪽이 다음 화면 색(지원하기 → 검정, 비즈니스 → 흰색)으로 차오른다 */
.k-door::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--door-fill); transform: scaleX(0); transform-origin: 0 50%; }
.k-door:hover, .k-door:focus-visible { color: var(--door-ink); border-color: var(--door-fill); }
.k-door:hover small, .k-door:focus-visible small { color: inherit; opacity: 0.7; }
.k-door:hover::before, .k-door:focus-visible::before { transform: scaleX(1); }
html.fx .k-door::before { transition: transform 0.45s var(--ease); }
html.fx .k-door { transition: color 0.3s, border-color 0.3s; }
html.fx .k-door i { transition: transform 0.35s var(--ease); }
.k-door:hover i { transform: translateX(4px); }
.k-door[data-for="business"]:hover i { transform: translateX(-4px); }
.k-top + .form .k-fields { padding-top: 6px; }
.form[hidden], .done[hidden] { display: none; }
.k-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; counter-reset: fld; }
.k-field { counter-increment: fld; padding-top: 26px; min-width: 0; }
.k-field.full { grid-column: 1 / -1; }
.k-field label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); letter-spacing: 0.01em; }
.k-field label::before { content: counter(fld, decimal-leading-zero); font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 13px; color: #a29d94; font-variant-numeric: tabular-nums; min-width: 18px; }
.k-field label .req { color: var(--gold-ink); font-size: 11.5px; font-weight: 600; }
.k-field:focus-within label { color: var(--c-ink); }
.k-field:focus-within label::before { color: var(--gold-ink); }
.k-box { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 8px 0 10px; font-size: 18px; line-height: 1.4; border-radius: 0; outline: none; }
.k-box::placeholder { color: #a8a39a; }
.k-box:focus { border-bottom-color: var(--c-ink); box-shadow: 0 1px 0 0 var(--c-ink); }
.k-box:focus-visible { outline: none; }
textarea.k-box { resize: vertical; min-height: 96px; }
.err { display: none; margin: 7px 0 0; font-size: 12.5px; font-weight: 600; color: var(--gold-ink); }
.err::before { content: "✦ "; }
.k-field.bad .err, .agree-wrap.bad .err { display: block; }
.k-field.bad .k-box { border-bottom-color: var(--gold-ink); box-shadow: 0 1px 0 0 var(--gold-ink); }
.agree-wrap { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.k-agree { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.k-agree input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--c-ink); border-radius: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.k-agree input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); }
.k-agree input:checked { background: var(--c-ink); }
.k-agree input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.k-agree input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.more { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.terms { margin-top: 14px; }
.terms[hidden] { display: none; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.send { display: inline-flex; align-items: center; gap: 18px; height: 60px; padding: 0 30px 0 32px; border: 0; background: var(--c-ink); color: #fff; font-size: 16.5px; font-weight: 600; cursor: pointer; letter-spacing: 0.01em; }
.send span { font-family: 'Bodoni Moda', serif; font-size: 22px; line-height: 1; }
html.fx .send span { transition: transform 0.3s var(--ease); }
.send:hover span { transform: translateX(4px); }
.kakao { display: inline-flex; align-items: center; height: 60px; padding: 0 26px; border: 1px solid var(--c-ink); color: var(--c-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.kakao:hover { background: var(--paper-2); }
/* 접수 화면 */
.done { padding-top: 64px; }
.done .kick { font-size: 11px; }
.done h2 { margin: 10px 0 0; font-family: var(--serif-kr); font-weight: 500; font-size: 40px; line-height: 1.25; letter-spacing: -0.02em; word-break: keep-all; }
.done p { margin: 14px 0 0; font-size: 17px; }
.done .tiny { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.done .send { margin-top: 40px; }

/* ── 바닥글이 화면 아래에 붙게 ── */
.col { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.col main { flex: 1; }

@media (max-width: 1180px) and (min-width: 901px) {
  .k-sheet { padding: 56px 48px 80px; }
}
@media (max-width: 900px) {
  :root { --cg: 16px; }
  .k-sheet { padding: 36px var(--cg) 64px; max-width: none; }
  .k-top { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 16px; }
  .k-eyebrow { font-size: 26px; }
  .k-door { min-height: 40px; padding: 0 16px 0 18px; font-size: 13.5px; }
  .k-fields { grid-template-columns: 1fr; }
  .k-field { padding-top: 22px; }
  .k-box { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; }
  .send, .kakao { justify-content: center; height: 56px; }
  .send { justify-content: space-between; }
  .col { min-height: 0; }
  .done { padding-top: 36px; }
  .done h2 { font-size: 30px; }
}
/* 화면이 바뀌면 그 화면의 글만 보인다 */
body[data-mode="apply"] [data-for="business"], body[data-mode="business"] [data-for="apply"] { display: none !important; }
/* 문 안쪽에 차오르는 색 = 다음 화면 바탕 */
body[data-mode="apply"] { --door-fill: #0a0a0a; --door-ink: #fff; }
body[data-mode="business"] { --door-fill: #fff; --door-ink: #0a0a0a; }

/* ── 비즈니스 문의: 검은 화면 ── 칸·글·단추 색을 모두 뒤집는다(배치는 지원하기와 같다) */
body[data-mode="business"] {
  --c-paper: #0a0a0a; --paper-2: #171717; --c-ink: #f4f1eb; --ink-2: #9a958d; --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.3);
  --gold: #c9a66b; --gold-ink: #d6b57c;
  background: var(--c-paper); color-scheme: dark;
}
body[data-mode="business"] .k-box::placeholder { color: #66625c; }
body[data-mode="business"] .k-field label::before { color: #6f6a63; }
body[data-mode="business"] .send { background: #f4f1eb; color: #0a0a0a; }
body[data-mode="business"] .k-agree input::after { border-color: #0a0a0a; }
body[data-mode="business"] .slot-box { border-color: rgba(255, 255, 255, 0.28); }
/* 머리말도 검은 판(다른 쪽 머리말과 같은 흰 글자·흰 단추), 바닥글과 본문 사이에 가는 선 */
body[data-mode="business"] .site-header.solid { background: rgba(10, 10, 10, 0.94); border-bottom-color: rgba(255, 255, 255, 0.1); }
body[data-mode="business"] .site-header .wordmark-type { filter: none; }
body[data-mode="business"] .site-header .nav a { color: rgba(255, 255, 255, 0.62); }
body[data-mode="business"] .site-header .nav a[aria-current="page"] { color: #fff; box-shadow: 0 1px 0 #fff; }
body[data-mode="business"] .site-header .nav .btn, body[data-mode="business"] .site-header .quick-apply { border-color: #fff; background: #fff; color: #0a0a0a; }
body[data-mode="business"] .site-header .menu-button[aria-controls="menu-panel"] { color: #fff; }
body[data-mode="business"] .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* 문 열림이 없는 브라우저(같은 쪽 화면 넘김을 못 하는 곳)는 바탕색만 0.5초에 바뀐다 */
html.fx:not(.k-vt) body { transition: background-color 0.5s var(--ease); }
/* 문을 누르면: 머리말까지 한 장으로 찍어 그 위에 새 화면이 원으로 퍼진다(아래 스크립트가 원을 그린다) */
html.k-flip .site-header { view-transition-name: none; }
html.k-flip::view-transition-old(root), html.k-flip::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.k-flip::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 공통 틀과 함께 쓸 때: 떠 있는 버튼은 화면에 고정(다른 움직이는 시안과 같다) */
/* 이 쪽은 흰 바탕이라 머리말도 흰색(대표 11-14). 로고는 흰 글자 그림을 뒤집어 검게, 펼침 메뉴는 다른 쪽과 같은 검은 판 */
.site-header.solid { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.site-header .wordmark-type { filter: invert(1); }
.site-header .nav a { color: var(--ink-2); }
.site-header .nav a[aria-current="page"] { color: var(--c-ink); box-shadow: 0 1px 0 var(--c-ink); }
.site-header .nav .btn, .site-header .quick-apply { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.site-header .menu-button[aria-controls="menu-panel"] { color: var(--c-ink); }
/* 바닥글은 다른 쪽처럼 검은 바탕(이 쪽 바탕은 흰색이라 따로 깐다) */
.site-footer { background: var(--ink); }

/* 사업자 정보: 항목(상호·사업자등록번호·주소) 중간에서 줄이 바뀌지 않게, 항목 사이에서만 바뀐다(2026-11-24) */
.site-footer .biz-item { white-space: nowrap; }
