/* Hallmark · custom (brand: 세무회계 재담) · genre editorial · idea: 약속과 이름 두 줄을 첫 화면에 크게 세우고, 두 세무사의 사진과 색이 다른 판으로 이어 간다 · signature: 굵은 블루와 가는 먹색, 굵기만 달리한 두 줄 제목 */
/* Hallmark · pre-emit critique: P3 H4 E4 S4 R4 V3 · weakest: P, 구역 순서는 의뢰인이 지정한 참고 사이트(seoul.tax)를 따랐다; 대신 상자 묶음을 걷어내고 사인의 가는 선 목록을 업무·이유·수수료 구역까지 이어 썼다 */
/* waive 7b: 로고 원본 파일의 배경이 순백이라 화면 흰색도 순백으로 맞춘다. hero-review: fix · 5 findings · 5 resolved. finish-review: subagent · 10 findings · 9 resolved 1 partial(지도 글자 크기는 원본 이미지 한계, 눌러서 크게 보기로 대응) */

:root {
  --blue: #114591;        /* 로고 파일 배경색과 동일 */
  --blue-ink: #0d3572;
  --pale: #dfe7f3;
  --ink: #141d2b;
  --body: #36414f;
  --muted: #5b6675;
  --line: #d3dbe5;
  --wash: #f2f5f9;
  --paper: #ffffff;
  --scrim: rgb(13 27 48 / 0.86);
  --scrim-0: rgb(13 27 48 / 0);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --col-gap: 56px;
  --r: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; caret-color: var(--blue); scrollbar-color: var(--blue) var(--wash); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::selection { background: var(--blue); color: var(--paper); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 0.2em; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a[href^="tel:"], .nw { white-space: nowrap; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; overflow-wrap: break-word; min-width: 0; }
h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -64px; z-index: 20; padding: 12px 16px; background: var(--paper); color: var(--blue); font-weight: 600; }
.skip:focus-visible { top: 12px; }

/* ---------- 상단 ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 8px 28px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 60px; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 4px; }
.top nav a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px; white-space: nowrap; }
.top nav a[aria-current="page"] { color: var(--blue); font-weight: 700; background: var(--wash); }

/* ---------- 버튼 ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn-solid { background: var(--blue); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--muted); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--blue); }
.btn-line { border-color: var(--paper); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--blue-ink); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
  .btn-light:hover { background: var(--pale); }
  .btn-line:hover { background: var(--paper); color: var(--blue); }
  .top nav a:hover { background: var(--wash); }
}

/* ---------- 첫 화면 ---------- */
.hero { background: var(--paper); }
.hero-in { padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
/* 굵기만 달리한 두 줄: 굵은 블루의 약속, 가는 먹색의 이름 */
.hero-title { display: grid; gap: 0.12em; font-size: clamp(3rem, 1rem + 8vw, 7.5rem); line-height: 1.08; letter-spacing: -0.05em; }
.ht-slogan { font-weight: 800; color: var(--blue); }
.ht-name { font-weight: 300; color: var(--ink); }
.hero .lead { margin-top: clamp(32px, 4vw, 56px); max-width: 24em; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; color: var(--ink); }
.hero .actions { margin-top: clamp(32px, 4vw, 48px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise 640ms var(--ease-out) both; }
  .hero-in > :nth-child(2) { animation-delay: 70ms; }
  .hero-in > :nth-child(3) { animation-delay: 140ms; }
}

/* ---------- 본문 구획 ---------- */
.band { padding-block: clamp(64px, 9vw, 120px); }
.band-wash { background: var(--wash); }
.more { margin-top: 24px; font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.split, .cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px var(--col-gap); align-items: start; }
.cols-intro p { margin-top: 20px; }
.prose { max-width: 36em; font-size: 1.125rem; }
.prose p + p { margin-top: 1.1em; }

.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 56px); background: var(--wash); }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; color: var(--blue); }
.page-head .lead { margin-top: 16px; max-width: 34em; font-size: 1.1875rem; color: var(--body); }

/* 가는 선으로 나눈 목록: 사인의 선을 이어 쓴다 */
.ruled > li { border-top: 1px solid var(--line); padding-block: 24px; display: grid; gap: 4px; }
.ruled > li:last-child { border-bottom: 1px solid var(--line); }
.ruled strong { color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.ruled-links > li { padding: 0; display: block; }
.ruled-links a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 32px; align-items: baseline; padding-block: 24px; text-decoration: none; color: var(--body); transition: background-color 160ms ease; }
.ruled-links strong { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { .ruled-links a:hover { background: var(--wash); } }
.fees + .ruled { margin-top: 24px; }

/* 세무사 카드: 사진 위에 이름을 얹는다 */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--pale); color: var(--paper); text-decoration: none; transition: transform 200ms var(--ease-out); }
.pcard:active { transform: scale(0.98); }
.pcard-img { display: block; }
.pcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.pcard-text { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 96px 28px 28px; background: linear-gradient(to top, var(--scrim), var(--scrim-0)); }
.pcard strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.pcard-role { font-size: 1rem; font-weight: 500; }
.pcard-line { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-4px); } }

/* 세무사가 직접 봅니다: 크기와 색이 다른 판 세 장 */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 240px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r); }
.tile h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.03em; }
.tile p { max-width: 26em; font-size: 1.0625rem; }
.tile-blue { grid-row: span 2; background: var(--blue); color: var(--paper); }
.tile-blue h2 { color: var(--paper); font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); }
.tile-blue strong { display: block; margin-bottom: 4px; font-size: 1.25rem; letter-spacing: -0.02em; }
.tile-paper { background: var(--paper); }
.tile-ink { background: var(--ink); color: var(--pale); }
.tile-ink h3 { color: var(--paper); }

/* 수수료 */
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fee { background: var(--wash); border-radius: var(--r); padding: 32px; }
.band-wash .fee { background: var(--paper); }
.fee h3 { font-size: 1.125rem; color: var(--ink); }
.fee .fee-price { margin-top: 20px; color: var(--blue); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-pre, .fee-unit { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.fee-unit { margin-left: 4px; }
.fee .fee-vat { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--col-gap); align-items: center; }
.map { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
/* 약도: 글자 크기는 그림 좌표 기준이라 화면이 좁을수록 크게 잡는다 */
.map text { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; fill: var(--ink); }
.map .m-mid { text-anchor: middle; }
.map .m-strong { font-weight: 800; }
.map .m-sub { font-weight: 500; fill: var(--muted); }
.map .m-way { font-size: 14px; font-weight: 500; fill: var(--muted); }
.map .m-dest { font-size: 20px; font-weight: 800; fill: var(--blue); }
.m-ground { fill: var(--paper); }
.m-block { fill: var(--wash); }
.m-bldg { fill: var(--pale); }
.m-zebra { fill: var(--line); }
.m-here { fill: var(--blue); }
.m-route { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.m-start { fill: var(--blue); stroke: var(--paper); stroke-width: 3; }
.m-end { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
@media (min-width: 561px) {
  .map text { font-size: 14px; }
  .map .m-way { font-size: 12px; }
  .map .m-dest { font-size: 17px; }
}
.facts { margin-top: 28px; }
.facts > div, .rows > div { display: grid; grid-template-columns: minmax(0, 5em) minmax(0, 1fr); gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.facts > div:last-child, .rows > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt, .rows dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.facts .sub { color: var(--muted); font-weight: 400; font-size: 0.9375rem; }
.rows > div { grid-template-columns: minmax(0, 8em) minmax(0, 1fr); padding-block: 24px; }
.rows dt { color: var(--ink); font-weight: 700; }

/* 상담 문의 띠 */
.cta { background: var(--blue); color: var(--paper); border-radius: var(--r); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { color: var(--paper); }
.cta p { margin-top: 8px; }
.cta .actions { margin-top: 0; }

/* 업무 분야 페이지 */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px var(--col-gap); padding-block: 40px; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:last-child { padding-bottom: 0; }
.svc h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); color: var(--blue); }
.svc p { max-width: 34em; font-size: 1.125rem; color: var(--ink); }
.svc ul { margin-top: 20px; display: grid; gap: 8px; }
.svc li { padding-left: 16px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 2px; background: var(--blue); }

/* 세무사 개인 페이지 */
.profile-band { background: var(--wash); }
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--col-gap); align-items: center; }
.profile-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--r); background: var(--pale); }
.profile h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; color: var(--blue); }
.profile-role { margin-top: 8px; font-size: 1.125rem; color: var(--muted); }
.profile .more { font-size: 1.0625rem; font-weight: 600; }

/* ---------- 하단 ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px; font-size: 0.9375rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 56px; }
.foot-name { color: var(--ink); font-weight: 700; font-size: 1.0625rem; margin-bottom: 8px; }
.foot a { color: inherit; }
.foot .gap { display: inline-block; width: 1.25em; }
.foot-copy { margin-top: 28px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .top { position: static; }
  .top-in { flex-wrap: wrap; padding-block: 8px; gap: 0 16px; }
  .top nav { order: 3; width: 100%; margin-left: -12px; }
  .top nav a { padding: 12px; }
  .top-tel { margin-left: auto; }
  .brand img { height: 52px; }
  html { scroll-padding-top: 16px; }
  .split, .cols, .visit, .svc, .profile { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .profile-img { max-width: 420px; }
  .map { max-width: 640px; }
  .ruled-links a { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .people { gap: 12px; }
  .pcard-text { padding: 64px 16px 16px; }
  .pcard strong { font-size: 1.25rem; }
  .pcard-line { font-size: 0.8125rem; }
  .fees { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 40%; padding-inline: 16px; }
  .actions .btn-solid { flex-basis: 100%; }
  .foot .gap { display: block; width: 0; height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .pcard, .ruled-links a { transition: none; }
  .btn:active, .pcard:active, .pcard:hover { transform: none; }
}
