/* Minimalism — JJUN 디자인 아틀라스 토큰 그대로 */
:root {
  --ism-color-1: #FFFFFF;
  --ism-color-2: #1A1A1A;
  --ism-color-3: #F5F5F5;
  --ism-color-4: #E0E0E0;
  --ism-color-background: #1A1A1A;
  --ism-color-foreground: #FFFFFF;
  --ism-color-accent: #F5F5F5;
  --ism-color-surface: #2C2C2C;
  --ism-color-muted: #818181;
  --ism-color-border: #4C4C4C;
  --ism-gutter: 24px;
  --ism-space-min: 32px;
  --ism-space-max: 64px;
  --ism-page-margin: 5vw;
  --ism-line-height: 1.6;
  --ism-letter-spacing: -0.02em;
  --ism-motion-duration: 300ms;
  --ism-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
  /* 밝은 면 보조 글자는 AA 대비(4.5:1) 맞춰 한 단계 진하게 */
  --text-muted-light: #5C5C5C;
  --text-muted-dark: #A8A8A8;
  --margin: max(var(--ism-page-margin), 16px);
  --transition: all var(--ism-motion-duration) var(--ism-motion-easing);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ism-color-1);
  color: var(--ism-color-2);
  font: 400 16px/var(--ism-line-height) Inter, "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: var(--ism-letter-spacing);
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--margin); }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

/* 머리: 업체명 · 메뉴 · 전화 */
header.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; border-bottom: 1px solid var(--ism-color-4); }
.mark { font-size: 20px; font-weight: 600; letter-spacing: 0.2em; }
nav.menu { display: flex; gap: 48px; }
nav.menu a, .head-tel { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; transition: var(--transition); }
nav.menu a:hover, .head-tel:hover { opacity: 0.8; }
.head-tel { justify-self: end; }

/* 첫 화면: 왼쪽 글 · 오른쪽 사진 */
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--ism-gutter); align-items: center; }
.hero-text { grid-column: 1 / span 6; padding: var(--ism-space-max) 0; }
.hero-text .label { margin: 0 0 var(--ism-space-min); }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 var(--ism-space-min); }
.lead { font-size: 18px; max-width: 30em; margin: 0 0 40px; }
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 18px 32px; background: var(--ism-color-2); color: var(--ism-color-1); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; transition: var(--transition); }
.btn:hover, .btn:focus-visible { opacity: 0.8; }
.btn .arrow { transition: var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--text-muted-light); }
.hero { overflow: hidden; }
.hero-photo { grid-column: 7 / -1; margin: 0 calc(-1 * var(--margin) - max(0px, (100vw - 1320px) / 2)) 0 0; }
.hero-photo img { width: 100%; height: min(80vh, 760px); object-fit: cover; }

/* 회색 띠 4칸 */
.points { background: var(--ism-color-3); }
.points ul { list-style: none; margin: 0 auto; padding: 40px var(--margin); max-width: 1320px; display: grid; grid-template-columns: repeat(4, 1fr); }
.points li { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 16px; }
.points li + li { border-left: 1px solid #C9C9C9; }
.points svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--ism-color-2); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* 본문 칸: 왼쪽 제목 · 오른쪽 내용 */
section.block { padding: calc(var(--ism-space-max) * 1.5) 0; }
section.block .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--ism-gutter); }
.block-head { grid-column: 1 / span 4; }
.block-head .label { color: var(--text-muted-light); margin: 0 0 16px; }
.block-body { grid-column: 5 / -1; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 600; margin: 0 0 var(--ism-space-min); }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.note { font-size: 14px; color: var(--text-muted-light); }

ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; padding: 24px 0; border-top: 1px solid var(--ism-color-4); }
ol.steps li:last-child { border-bottom: 1px solid var(--ism-color-4); }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--text-muted-light); padding-top: 2px; }
ol.steps b { display: block; font-weight: 600; margin-bottom: 4px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--ism-color-4); }
thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--text-muted-light); border-bottom-color: var(--ism-color-2); }
tbody th { font-weight: 600; white-space: nowrap; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ism-space-max) var(--ism-gutter); }
.case h3 { margin-bottom: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ism-color-3); }
.pair figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted-light); line-height: 1.5; }

.faq article { padding: 28px 0; border-top: 1px solid var(--ism-color-4); }
.faq article:last-child { border-bottom: 1px solid var(--ism-color-4); }
.faq article p { margin: 0; }

/* 어두운 면: 상담 · 바닥글 (토큰의 background/foreground 쪽) */
.dark { background: var(--ism-color-background); color: var(--ism-color-foreground); }
.cta { padding: calc(var(--ism-space-max) * 1.5) 0; }
.cta .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--ism-gutter); align-items: end; }
.cta-text { grid-column: 1 / span 7; }
.cta-text p { color: var(--text-muted-dark); margin: 0; }
.cta-act { grid-column: 9 / -1; justify-self: end; }
.dark .btn { background: var(--ism-color-accent); color: var(--ism-color-background); }
footer.site { border-top: 1px solid var(--ism-color-border); padding: var(--ism-space-min) 0 var(--ism-space-max); font-size: 13px; color: var(--text-muted-dark); }
footer.site p { margin: 0 0 6px; }
footer.site .brand { color: var(--ism-color-foreground); font-size: 15px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 16px; }
footer.site .legal { margin-top: 16px; max-width: 60em; }

.js .reveal { opacity: 0; transition: opacity var(--ism-motion-duration) var(--ism-motion-easing); }
.js .reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transition: none; } .btn, .btn .arrow { transition: none; } }

@media (max-width: 960px) {
  header.site .wrap { grid-template-columns: 1fr; height: 72px; }
  nav.menu, .head-tel { display: none; }
  .hero-text, .hero-photo { grid-column: 1 / -1; }
  .hero-text { padding: 48px 0 40px; }
  .hero-photo { margin: 0 calc(var(--margin) * -1); }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3.4; }
  .points ul { grid-template-columns: repeat(2, 1fr); padding: 24px var(--margin); }
  .points li { justify-content: flex-start; padding: 16px 8px; gap: 12px; }
  .points li + li { border-left: 0; }
  .points li:nth-child(even) { border-left: 1px solid #C9C9C9; padding-left: 16px; }
  .points li:nth-child(n+3) { border-top: 1px solid #C9C9C9; }
  .points svg { width: 28px; height: 28px; }
  section.block { padding: var(--ism-space-max) 0; }
  .block-head, .block-body { grid-column: 1 / -1; }
  h2 { font-size: 26px; }
  .cases { grid-template-columns: 1fr; gap: 48px; }
  .cta-text, .cta-act { grid-column: 1 / -1; justify-self: start; }
  .cta-act { margin-top: 32px; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tbody tr { padding: 16px 0; border-bottom: 1px solid var(--ism-color-4); }
  tbody tr:first-child { border-top: 1px solid var(--ism-color-2); }
  th, td { border: 0; padding: 2px 0; }
  tbody th { white-space: normal; margin-bottom: 4px; }
  #check td + td { color: var(--text-muted-light); font-size: 14px; }
}

/* 하위 페이지 */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--ism-space-min); }
.figs figure { margin: 0; }
.figs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ism-color-3); }
.figs figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted-light); line-height: 1.5; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 24px 0; border-top: 1px solid var(--ism-color-4); }
ul.plain li:last-child { border-bottom: 1px solid var(--ism-color-4); }
ul.plain b { display: block; font-weight: 600; margin-bottom: 4px; }
.more { list-style: none; margin: 0; padding: 0; }
.more li { border-top: 1px solid var(--ism-color-4); }
.more li:last-child { border-bottom: 1px solid var(--ism-color-4); }
.more a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; transition: var(--transition); }
.more a:hover { opacity: 0.8; }
.more b { font-size: 18px; font-weight: 600; }
.more span { font-size: 14px; color: var(--text-muted-light); }
.more .arrow { color: var(--ism-color-2); }
.crumb { font-size: 13px; color: var(--text-muted-light); margin: 0 0 var(--ism-space-min); }
.crumb a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .more a { flex-direction: column; gap: 4px; }
}
