@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;600;700&display=swap");

/* 사무소 데모 템플릿. 직업마다 강조색·바탕 톤만 바꾸고 구조는 같다.
   첫 화면은 사무실 사진 위에 명조 제목, 오른쪽에 실제로 돌아가는 실무 도구 카드 */
:root {
  --accent: #1f4d3f; --accent-deep: #14332a; --accent-soft: #e4ece7;
  --paper: #f5f2ea; --sheet: #ffffff; --ink: #1a1c1e; --t2: #4f5257; --t3: #6c6f74;
  --line: rgba(26, 28, 30, .1);
  --sans: "Pretendard Variable", Pretendard, system-ui, sans-serif; --serif: "Noto Serif KR", serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
body.labor { --accent: #1f3554; --accent-deep: #142338; --accent-soft: #e3e8f0; --paper: #f2f3f5; }
body.legal { --accent: #6b2230; --accent-deep: #461520; --accent-soft: #f1e4e5; --paper: #f6f1ea; }
body.admin { --accent: #4c5a33; --accent-deep: #333d22; --accent-soft: #e8ebdf; --paper: #f3f2ec; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; font-size: 16px; word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.num, .result-main strong, .ledger li { font-variant-numeric: tabular-nums; }

.demo-bar { background: #0f1011; color: rgba(255, 255, 255, .78); font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #fff; }

/* 머리: 사진 위에 투명하게 떠 있다가 스크롤하면 종이색 */
header { position: sticky; top: 0; z-index: 20; background: rgba(15, 16, 17, .0); transition: background-color .25s var(--ease); }
header .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.logo b { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.logo small { font-size: 12px; opacity: .7; margin-top: 2px; }
nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
nav a { text-decoration: none; opacity: .85; transition: opacity .15s var(--ease); }
nav a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
header .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.over header { color: #fff; }
.over header.solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

/* 첫 화면 */
.hero { position: relative; isolation: isolate; color: #fff; background: #1a1c1e; margin-top: -72px; padding: 152px 0 72px; min-height: 760px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 13, 14, .86) 0%, rgba(12, 13, 14, .62) 46%, rgba(12, 13, 14, .25) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 56px; line-height: 1.24; letter-spacing: -.025em; }
.hero .lead { font-size: 18px; color: rgba(255, 255, 255, .82); margin: 22px 0 32px; max-width: 32em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quick { display: flex; gap: 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); }
.quick dt { font-size: 13px; color: rgba(255, 255, 255, .66); }
.quick dd { font-size: 15px; font-weight: 600; margin-top: 2px; }
.photo-note { position: absolute; right: 28px; bottom: 16px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* 실무 도구 카드 */
.tool { background: var(--sheet); color: var(--ink); border-radius: 14px; padding: 26px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.tool-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.tool-head h2 { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.stamp { font-size: 12px; color: var(--accent); font-weight: 600; background: var(--accent-soft); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--t2); font-weight: 500; }
.field input, .field select { height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; font-size: 17px; background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; caret-color: var(--accent); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result { margin-top: 4px; }
.result-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--accent-soft); border-radius: 10px; padding: 16px 18px; }
.result-main span { color: var(--accent-deep); font-size: 14px; font-weight: 600; }
.result-main strong { font-size: 30px; font-weight: 700; color: var(--accent-deep); letter-spacing: -.01em; }
.ledger { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; }
.ledger li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.ledger li span:first-child { color: var(--t2); }
.note { font-size: 13px; color: var(--t3); margin: 12px 0 0; }
.checklist { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow: auto; }
.checklist li { border-bottom: 1px dashed var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; cursor: pointer; font-size: 15px; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.checklist small { display: block; color: var(--t3); font-size: 13px; }
.checklist input:checked + span { color: var(--t3); text-decoration: line-through; }
.progress { height: 6px; background: var(--accent-soft); border-radius: 3px; margin: 16px 0 0; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s var(--ease); }
[data-tool=checklist] .result-main { margin-top: 12px; padding: 10px 14px; }

/* 본문 공통 */
.block { padding: 112px 0; }
.block.soft { background: #fff; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.sticky { position: sticky; top: 96px; }
h2.title { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
p.sub { color: var(--t2); font-size: 17px; margin-top: 14px; max-width: 26em; }

/* 업무 분야: 줄마다 상담 바로가기 */
.svc { list-style: none; border-top: 2px solid var(--ink); }
.svc li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.svc h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.svc p { color: var(--t2); font-size: 15px; margin-top: 4px; }
.svc a { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.svc li:hover a { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 대표 인사 */
.note-sec, .block.note { background: var(--accent-deep); color: #fff; }
blockquote p { font-family: var(--serif); font-size: 30px; line-height: 1.55; font-weight: 600; letter-spacing: -.015em; }
blockquote p::before { content: "“"; display: block; font-size: 72px; line-height: .6; margin-bottom: 18px; opacity: .45; }
blockquote cite { display: block; margin-top: 24px; font-style: normal; font-size: 15px; opacity: .75; }
.facts { list-style: none; font-size: 15px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--t3); }
.block.note .facts li { border-color: rgba(255, 255, 255, .16); }
.block.note .facts li span:first-child { color: rgba(255, 255, 255, .62); }

/* 진행 순서 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: 12px; padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.steps b { font-family: var(--serif); font-size: 20px; display: block; margin-bottom: 6px; }
.steps p { color: var(--t2); font-size: 15px; }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--t2); margin-top: 10px; max-width: 40em; }

/* 상담 예약 */
.contact-band { background: var(--accent); color: #fff; }
.contact-band p.sub { color: rgba(255, 255, 255, .78); }
.contact-band .actions { margin-top: 28px; }
.facts.light li { border-color: rgba(255, 255, 255, .2); }
.facts.light li span:first-child { color: rgba(255, 255, 255, .66); }

footer { background: #0f1011; color: rgba(255, 255, 255, .62); font-size: 13px; padding: 36px 0 48px; }
footer b { color: #fff; font-family: var(--serif); }
footer p + p { margin-top: 6px; }

/* 데모 목록 */
.gallery { padding: 72px 28px 96px; }
.gallery h1 { font-family: var(--serif); font-size: 40px; }
.gallery .lead { color: var(--t2); margin: 12px 0 40px; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pick { position: relative; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 16 / 10; }
.pick img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick:hover img { transform: scale(1.03); }
.pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-family: var(--serif); font-size: 24px; font-weight: 700; }
.pick span b { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; opacity: .8; }

@media (max-width: 920px) {
  nav { display: none; }
  header .btn { margin-left: auto; }
  .hero { padding: 120px 0 48px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 13, 14, .78), rgba(12, 13, 14, .7)); }
  .hero .wrap, .split, .row2 { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .quick { flex-wrap: wrap; gap: 16px 28px; }
  .sticky { position: static; }
  .block { padding: 72px 0; }
  h2.title { font-size: 30px; }
  blockquote p { font-size: 23px; }
  .steps, .picks { grid-template-columns: 1fr; }
  .photo-note { position: static; padding: 0 28px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.result-main { flex-wrap: wrap; }
/* 좁은 화면·큰 글꼴: 입력칸의 기본 너비가 칸을 화면 밖으로 밀지 않게 한다 */
.field { grid-template-columns: minmax(0, 1fr); }
.field input, .field select { width: 100%; min-width: 0; }
.hero .wrap > *, .split > *, .row2 > * { min-width: 0; }
.tool-head, .ledger li { flex-wrap: wrap; column-gap: 12px; }
.ledger li span:last-child { margin-left: auto; }
@media (max-width: 920px) { .hero .wrap, .split, .row2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .wrap { padding: 0 18px; } .tool { padding: 20px 18px; } .photo-note { padding: 0 18px; } header .wrap { gap: 12px; } .logo { min-width: 0; } header .btn { flex: none; padding: 0 12px; } .result-main strong { font-size: clamp(22px, 7.6vw, 30px); } }
