/* 아이바론 홈페이지 스타일
   색: 로고의 흑연(회색)과 펜촉(갈색)이 바탕, 브랜드 초록은 "확인·신청"에만 씁니다. */
:root {
  --paper: #ffffff;
  --mist: #f3f5f4;
  --line: #dde2df;
  --graphite: #24272b;
  --graphite-2: #5b6168;
  --ink: #6b3a1e;
  --ink-soft: #b07a52;
  --go: #00d255;
  --go-dark: #087a3b;
  --wrap: 1120px;
  --radius: 6px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere;
  font-feature-settings: "tnum";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--go-dark); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--graphite); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-go { background: var(--go); color: #0b2a17; }
.btn-go:hover { background: #00bd4c; }
.btn-line { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-line:hover { background: var(--mist); }
.btn-line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line-light:hover { border-color: #fff; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: block; width: auto; height: 30px; }
.brand-name { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; color: #4b4f55; display: flex; align-items: baseline; gap: 8px; }
.brand-ko { font-size: 13px; font-weight: 500; color: var(--graphite-2); letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 14px; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: var(--radius); }
.site-nav > ul > li > a:hover { background: var(--mist); }
.site-nav > ul > li.is-active > a { color: var(--ink); }
.site-nav > ul > li.is-active > a::after { content: ""; display: block; height: 2px; background: var(--ink); margin-top: 4px; border-radius: 2px; }
.sub { list-style: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 8px 24px rgba(36,39,43,.08); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; font-size: 15px; text-decoration: none; border-radius: 4px; }
.sub a:hover, .sub a[aria-current] { background: var(--mist); }
.sub a[aria-current] { color: var(--ink); font-weight: 650; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; }

/* 서브페이지 머리 */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 750; }
.page-hero .lead { margin-top: 14px; font-size: 19px; color: var(--graphite-2); max-width: 40em; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.subtabs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--graphite-2); }
.subtabs a:hover { border-color: var(--graphite-2); }
.subtabs a[aria-current] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.toc { padding-top: 28px; }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.toc a { color: var(--graphite-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.toc a:hover { color: var(--ink); border-color: var(--ink); }

/* 본문 섹션: 왼쪽 제목, 오른쪽 내용 */
.sec { padding: 64px 0; }
.page-body .sec + .sec { border-top: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.sec-head h2, .sec-head-wide h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 720; }
.sec-head h2::before, .sec-head-wide h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--ink); border-radius: 2px; margin-bottom: 18px; }
.sec-head { align-self: start; position: sticky; top: 104px; }
.sec-intro { margin-top: 12px; color: var(--graphite-2); font-size: 16px; }
.sec-head-wide { max-width: 44em; margin-bottom: 36px; }
.sec-head-wide p { margin-top: 12px; color: var(--graphite-2); }
.sec-blocks { display: flex; flex-direction: column; gap: 36px; min-width: 0; }

/* 블록: ✔ 포인트 */
.blk h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.blk-points h3.check { display: flex; gap: 10px; align-items: flex-start; }
.blk-points h3.check::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 4px; background-color: var(--go);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.blk-points ul, .blk-note ul { list-style: none; display: grid; gap: 8px; }
.blk-points li { position: relative; padding-left: 32px; color: #3a3e44; }
.blk-points li.subh { padding-left: 32px; margin-top: 10px; color: var(--graphite); }
.blk-points li.subh:first-child { margin-top: 0; }
.blk-points li.subh::before { display: none; }
.blk-points li::before { content: ""; position: absolute; left: 11px; top: .85em; width: 8px; height: 1.5px; background: var(--graphite-2); }

/* 블록: 아이바론 안내(📌) */
.blk-note { border-left: 3px solid var(--ink); background: #faf7f4; padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.blk-note h3 { color: var(--ink); }
.blk-note li { position: relative; padding-left: 16px; }
.blk-note li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); }

/* 블록: 수행 실적 */
.blk-record { border-top: 2px solid var(--graphite); }
.blk-record h3 { margin: 16px 0 0; }
.blk-record .fine { margin-top: 2px; }
.blk-record ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 12px; }
.blk-record li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 550; }

/* 블록: 이미지, 표, 절차 */
.blk-image, .blk-gallery, .blk-table { margin: 0; }
.blk-image img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.blk-image.is-small img { max-width: 520px; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--graphite-2); }
.blk-table figcaption { margin: 0 0 10px; font-weight: 650; color: var(--graphite); font-size: 16px; }
.gallery-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.gallery-row img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); font-weight: 650; }
.prose p + p { margin-top: 14px; }
.prose strong { font-weight: 700; }
.fine { font-size: 14px; color: var(--graphite-2); }
.blk-steps ol { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.blk-steps li { counter-increment: st; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.blk-steps li::before { content: counter(st); display: block; font-weight: 750; color: var(--ink); font-size: 14px; }
.blk-steps li span { display: block; font-size: 14px; color: var(--graphite-2); }
.blk-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* 홈: 첫 화면 */
.home-hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero-kicker { font-weight: 650; color: var(--ink); font-size: 18px; margin-bottom: 14px; }
.home-hero h1 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.22; }
.home-hero .lead { margin-top: 22px; color: var(--graphite-2); font-size: 18px; max-width: 34em; }
.home-hero .lead p + p { margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 홈: 체크 시트 (이 사이트의 상징 요소) */
.sheet {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 28px 22px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line) 51px 52px);
  background-position: 0 70px; background-size: 100% calc(100% - 140px); background-repeat: no-repeat;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(36,39,43,.28);
}
.sheet::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); border-radius: 4px 0 0 4px; }
.sheet-head { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--graphite); }
.sheet-list { list-style: none; }
.sheet-list li { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 600; font-size: 17px; }
.sheet-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 4px; background-color: var(--go);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.sheet-foot { margin-top: 14px; font-size: 14px; color: var(--graphite-2); }
.sheet-foot a { font-weight: 650; color: var(--graphite); text-decoration: none; }

/* 홈: 서비스 */
.svc-list { list-style: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.svc-list li.is-main { grid-row: span 3; }
.svc-points { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.svc-points li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: #e6e8ea; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.svc-points li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 4px; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a17' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.svc-list a { display: flex; flex-direction: column; height: 100%; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s; }
.svc-list a:hover { border-color: var(--graphite); }
.svc-list h3 { font-size: 20px; }
.svc-list p { margin-top: 8px; color: var(--graphite-2); font-size: 16px; }
.svc-more { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 650; color: var(--ink); }
.svc-list li.is-main a { background: var(--graphite); border-color: var(--graphite); color: #fff; padding: 32px; }
.svc-list li.is-main h3 { font-size: 26px; }
.svc-list li.is-main p { color: #c9cdd1; font-size: 17px; }
.svc-list li.is-main .svc-more { color: var(--go); }

.home-about { background: var(--mist); }
.about-body { font-size: 18px; max-width: 38em; }

/* 홈: 절차 (실제 순서가 있는 내용이라 번호를 씁니다) */
.process { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.process::before { content: ""; position: absolute; left: 22px; right: calc(100% / 6 - 22px); top: 21px; height: 2px; background: var(--line); }
.process li { position: relative; padding-right: 12px; font-weight: 650; font-size: 16px; }
.process-no { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-weight: 750; margin-bottom: 14px; }
.process li:last-child .process-no { background: var(--ink); color: #fff; }

.home-strengths { border-top: 1px solid var(--line); }
.strengths { margin: 0; display: grid; gap: 0; }
.strengths > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 15em 1fr; gap: 24px; }
.strengths > div:first-child { border-top: 2px solid var(--graphite); }
.strengths dt { font-weight: 700; font-size: 18px; }
.strengths dd { margin: 0; color: #3a3e44; }

/* 하단 상담 띠 */
.cta { background: var(--graphite); color: #fff; padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(22px, 2.6vw, 28px); }
.cta p { color: #c9cdd1; margin-top: 8px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 푸터 */
.site-footer { background: var(--mist); padding: 48px 0 28px; font-size: 15px; color: var(--graphite-2); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { color: var(--graphite); }
.footer-info { margin: 0; display: grid; gap: 4px; }
.footer-info div { display: flex; gap: 12px; }
.footer-info dt { min-width: 7.5em; color: var(--graphite); font-weight: 600; }
.footer-info dd { margin: 0; }
.footer-info a { text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-weight: 650; color: var(--graphite); }
.footer-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* 태블릿 */
@media (max-width: 1000px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: var(--graphite); position: relative; content: ""; }
  .nav-toggle-bar::before { position: absolute; top: -6px; } .nav-toggle-bar::after { position: absolute; top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a { padding: 14px 0; font-size: 17px; }
  .site-nav > ul > li.is-active > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; }
  .sub a { padding: 7px 0; color: var(--graphite-2); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sec-grid { grid-template-columns: 1fr; gap: 24px; }
  .sec-head { position: static; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc-list li.is-main { grid-column: 1 / -1; grid-row: auto; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* 휴대폰 */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { min-height: 64px; }
  .site-nav { padding: 8px 16px 20px; }
  .brand-ko { display: none; }
  .home-hero { padding: 44px 0 52px; }
  .sec { padding: 48px 0; }
  .page-hero { padding: 32px 0 36px; }
  .page-hero .lead, .home-hero .lead, .about-body { font-size: 16px; }
  .svc-list { grid-template-columns: 1fr; }
  .blk-record ul { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .strengths > div { grid-template-columns: 1fr; gap: 6px; }
  .blk-note { padding: 18px 18px; }
  .sheet { padding: 22px 20px 18px; }
  .footer-info div { flex-direction: column; gap: 0; }
  .cta-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 문의 페이지 */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-info .prose { color: #3a3e44; }
.contact-list { margin: 28px 0 0; border-top: 2px solid var(--graphite); }
.contact-list div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 650; }
.contact-list dd { margin: 0; min-width: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.inquiry { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; background: #fff; position: relative; }
.inquiry::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ink); border-radius: var(--radius) 0 0 var(--radius); }
.inquiry h2 { font-size: 24px; }
.inquiry > .fine { margin-top: -10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 650; font-size: 15px; padding: 0; }
.field b, .agree b { color: var(--ink); font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--graphite); background: #fff;
  border: 1px solid #c5ccc8; border-radius: var(--radius); padding: 11px 13px; min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(8,122,59,.25); }
.is-invalid { border-color: #b3261e !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid #c5ccc8; border-radius: 999px; font-size: 15px; cursor: pointer; }
.chip input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--go-dark); outline-offset: 2px; }
.privacy { background: var(--mist); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.privacy summary { cursor: pointer; font-weight: 600; }
.privacy .prose { margin-top: 10px; color: #3a3e44; }
.privacy ul { padding-left: 18px; margin: 8px 0; }
.agree { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.agree input { width: 20px; height: 20px; accent-color: var(--go-dark); }
.agree input.is-invalid { outline: 2px solid #b3261e; }
.inquiry .btn { justify-self: start; min-width: 200px; }
.inquiry .btn:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; font-weight: 600; }
.form-success { font-size: 18px; font-weight: 700; color: var(--go-dark); padding: 18px 0; }
.hp { position: absolute; left: -9999px; }
.visit { background: var(--mist); }
.visit-addr { font-size: 20px; font-weight: 650; margin-bottom: 18px; }
.visit-addr span { font-size: 16px; color: var(--graphite-2); font-weight: 500; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .inquiry { padding: 22px 18px; } .inquiry .btn { width: 100%; } }
