/* 해영토목 홈페이지(외부망) — 거북이안전식 '번호 붙은 업무 블록' 구조. 내부망 CSS(app.css)와 독립적으로 동작한다(충돌 방지). */

/* Layout: sticky top bar + tab nav; one content column (max 1180px); cards and tables; a detail drawer from the right (full width under 760px). */
:root {
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #eaede8;
  --ink: #17211f;
  --ink-2: #4f5a57;
  --muted: #7d8683;
  --line: #d9ded9;
  --accent: #334434;
  --accent-ink: #ffffff;
  --accent-soft: #e3eae2;
  --gold: #a2967a;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --crit: #d03b3b;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --chart-grid: #e1e0d9;
  --chart-axis: #c3c2b7;
  --shadow: 0 10px 30px rgba(23, 33, 31, 0.14);
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141716; --surface: #1d2120; --surface-2: #262b29; --ink: #eef1ee; --ink-2: #c3c9c5;
    --muted: #8e9792; --line: #333a37; --accent: #9dbb9a; --accent-ink: #0f1a10; --accent-soft: #233126; --gold: #c2b48f;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --chart-grid: #2c2c2a; --chart-axis: #383835;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141716; --surface: #1d2120; --surface-2: #262b29; --ink: #eef1ee; --ink-2: #c3c9c5;
  --muted: #8e9792; --line: #333a37; --accent: #9dbb9a; --accent-ink: #0f1a10; --accent-soft: #233126; --gold: #c2b48f;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --chart-grid: #2c2c2a; --chart-axis: #383835;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }


.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 44px; height: 30px; display: grid; place-items: center; }
.brand-mark img { width: 44px; height: auto; display: block; }
img.logo-light { display: block; } img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.logo-light { display: none; } :root:not([data-theme="light"]) img.logo-dark { display: block; } }
:root[data-theme="dark"] img.logo-light { display: none; } :root[data-theme="dark"] img.logo-dark { display: block; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; font-weight: 500; font-size: 13px; color: inherit; display: inline-block; }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

:root { --paper: #f6f5f0; --green-deep: #26332a; --maxw: 1120px; }
body.pub main { max-width: none; margin: 0; padding: 0; }
body.pub { background: var(--paper); font-size: 15px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.pub .wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* 상단 바 */
.pubbar { position: sticky; top: 0; z-index: 20; background: rgba(246,245,240,.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.pubbar-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 12px 18px; }
.pubbar .brand { font-size: 16px; }
.pubbar .brand small { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pubbar .links { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-left: 10px; }
.pubbar .links a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.pubbar .links a.on, .pubbar .links a:hover { color: var(--accent); border-bottom-color: var(--gold); }
.pubbar .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pubbar .tel { font-weight: 700; color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.pubbar .menu-toggle { display: none; }
.pubbar .burger { display: none; }
@media (max-width: 860px) {
  .pubbar .links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 18px 12px; margin: 0; }
  .pubbar .links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pubbar .menu-toggle:checked ~ .links { display: flex; }
  .pubbar .burger { display: inline-flex; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; background: var(--surface); }
  .pubbar .burger i { width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
  .pubbar .tel { display: none; }
  .pubbar .acts .btn { white-space: nowrap; padding: 7px 10px; }
  .pubbar .brand small { font-size: 9.5px; letter-spacing: .08em; }
}

/* 첫 화면 */
.hero { background: var(--accent) url('../img/illus/hero.svg') center/cover no-repeat; color: #fff; position: relative; overflow: hidden; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,51,42,.92) 0%, rgba(38,51,42,.75) 55%, rgba(38,51,42,.35) 100%); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero .kicker { font-size: 13px; letter-spacing: .08em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.22; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 700; white-space: pre-line; }
.hero p { font-size: 16.5px; color: rgba(255,255,255,.82); max-width: 50ch; margin: 0 0 24px; }
.hero .btns .btn { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn.gold { background: var(--gold); border-color: var(--gold); color: #1e1a12; }
.hero .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero .stats .s { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; }
.hero .stats .s b { display: block; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .stats .s b small { font-size: 13px; font-weight: 500; margin-left: 2px; }
.hero .stats .s span { font-size: 12.5px; color: rgba(255,255,255,.75); display: block; margin-top: 6px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

/* 슬로건 띠 */
.slogan { border-bottom: 1px solid var(--line); background: var(--surface); }
.slogan .wrap { padding: 22px 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.slogan .q { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.slogan .tags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.slogan .tags span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); background: var(--paper); }

/* 섹션 공통 */
.sec { padding: 64px 0 24px; }
.sec .eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.sec h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.25; }
.sec .lead { color: var(--ink-2); max-width: 64ch; margin: 0 0 28px; font-size: 15.5px; }
.sec.tight { padding-top: 40px; }

/* 업무 블록 (01~05) */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.svc:nth-child(even) .pic { order: 2; }
.svc .pic { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.svc .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc .no { font-size: 13px; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.svc h3 { font-size: 24px; margin: 6px 0 12px; letter-spacing: -.02em; }
.svc .promise { font-size: 16.5px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; font-weight: 500; }
.svc .desc { color: var(--ink-2); margin: 0 0 16px; }
.svc ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc ul li { padding-left: 16px; position: relative; color: var(--ink-2); font-size: 14.5px; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.svc .more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent); font-weight: 700; letter-spacing: .06em; font-size: 13px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; } .svc:nth-child(even) .pic { order: 0; } .svc h3 { font-size: 21px; } }

/* 업무 목록 카드 (업무분야 페이지 상단) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 10px; }
.svc-grid a { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; }
.svc-grid a:hover { border-color: var(--gold); }
.svc-grid .no { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .12em; }
.svc-grid .t { font-weight: 700; font-size: 16px; }
.svc-grid .d { font-size: 13px; color: var(--ink-2); }

/* 실적 */
.rec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rec-table th, .rec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.rec-table th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.rec-table tr:last-child td { border-bottom: 0; }
.rec-table .y { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.rec-table .c { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.rec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.rec-cards .r { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.rec-cards .r .m { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.rec-cards .r .t { font-weight: 600; line-height: 1.45; }
.rec-cards .r .cl { font-size: 13px; color: var(--ink-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters a { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.filters a.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 숫자 · 면허 · 조직 */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.facts .f { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.facts .f .k { font-size: 12.5px; color: var(--muted); }
.facts .f .v { font-weight: 600; margin-top: 4px; line-height: 1.5; }
.lic { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lic li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.lic li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist li .d { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.greet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; align-items: start; }
.greet .box { background: var(--accent); color: #fff; border-radius: 16px; padding: 26px; }
.greet .box .t { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.greet .box .s { font-size: 13px; color: var(--gold); margin-top: 14px; }
.greet .body { white-space: pre-line; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 860px) { .greet { grid-template-columns: 1fr; } }
.org { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.org .d { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.org .d h4 { margin: 0 0 6px; font-size: 15px; }
.org .d p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.team { display: flex; gap: 8px; flex-wrap: wrap; }
.team span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: var(--surface); color: var(--ink-2); }

/* 소식 */
.news-list { display: grid; gap: 10px; }
.news-list a { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.news-list a .t { font-weight: 600; }
.news-list a .d { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list a .b { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 760px; }
.article h1 { font-size: 24px; margin: 0 0 6px; }
.article .d { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.article .body { white-space: pre-line; font-size: 15.5px; }

/* 연락 */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.contact .big { font-size: 26px; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.contact .kv { display: grid; gap: 10px; margin-top: 16px; }
.contact .kv div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 14.5px; }
.contact .kv .k { color: var(--muted); font-size: 13px; padding-top: 2px; }
.contact .map-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }
.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.flash.error { background: #fbe9e7; color: #8a2a1f; }
.flash.ok { background: var(--accent-soft); color: var(--accent); }

/* 하단 CTA · 푸터 */
.cta { margin: 56px 0 0; background: var(--accent); color: #fff; }
.cta .wrap { padding: 40px 18px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.cta p { margin: 4px 0 0; color: rgba(255,255,255,.78); }
.cta .btns { margin-left: auto; }
.cta .btn { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }
.cta .btn.gold { background: var(--gold); border-color: var(--gold); color: #1e1a12; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.pubfoot { background: var(--green-deep); color: rgba(255,255,255,.72); font-size: 13px; }
.pubfoot .wrap { padding: 28px 18px 34px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.pubfoot b { color: #fff; }
.pubfoot a { color: inherit; text-decoration: none; }
.pubfoot .fcol { display: grid; gap: 4px; align-content: start; }
.pubfoot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; font-size: 12px; color: rgba(255,255,255,.5); display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .pubfoot .wrap { grid-template-columns: 1fr; } }
.page-head { padding: 44px 0 10px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 6px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: inherit; text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; margin-top: 10px; }
.detail .pic { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.detail .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail .promise { font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; margin: 0 0 14px; }
.detail .desc { color: var(--ink-2); font-size: 15.5px; }
.detail ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.detail ul li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; padding-left: 30px; position: relative; font-size: 14.5px; }
.detail ul li::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* 첫 화면 오른쪽: 활동영역 4개 큰 글씨 */
.hero .pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero .pl { position: relative; display: grid; gap: 6px; align-content: start; min-height: 128px; padding: 18px 36px 16px 18px; border-radius: 14px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); transition: border-color .15s, background .15s; }
.hero .pl:hover { border-color: var(--gold); background: rgba(255,255,255,.12); }
.hero .pl .n { font-size: 12px; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.hero .pl b { font-size: clamp(17px, 1.75vw, 21px); line-height: 1.3; letter-spacing: -.02em; }
.hero .pl b .w { white-space: nowrap; }
.hero .pl .s { font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.45; }
.hero .pl .go { position: absolute; right: 16px; top: 16px; color: var(--gold); font-weight: 700; }
@media (max-width: 520px) { .hero .pl { min-height: 104px; padding: 14px; } .hero .pl .go { display: none; } }

/* 대표 소개 */
.ceo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.ceo .who { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.ceo .nm { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ceo .tt { color: var(--ink-2); margin-top: 4px; }
.ceo .alias { color: var(--gold); font-weight: 700; }
.btn.chan { border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.btn.chan.yt { border-color: #c4302b; color: #c4302b; }
@media (max-width: 860px) { .ceo { grid-template-columns: 1fr; } }

/* 카카오톡 */
.kakao-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #FEE500; color: #191919; text-decoration: none;
  font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.kakao-fab:hover { filter: brightness(.97); }
@media (max-width: 520px) { .kakao-fab span { display: none; } .kakao-fab { padding: 14px; } }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191919; font-weight: 700; display: inline-block; }
.pubfoot .social { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; }
.pubfoot .social a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 12px; color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════════════════════
   2026-12 새 얼굴 — '도면 한 장'
   바탕은 흰 종이, 글은 검정, 색은 회사 녹색 하나. 둥근 카드 · 그림자 · 그라데이션 · 영문 소제목 · 번호(01~05) · 화살표를 쓰지 않는다.
   첫 화면은 설계도면의 양식(도곽선 + 표제란)을 빌려 회사의 실제 등록 사항을 적고, 아래는 보고서처럼 '옆 제목 + 본문' 두 단으로 읽힌다.
   (위쪽의 예전 규칙은 다른 쪽에서 아직 쓰는 이름이 있어 남겨 두고, 여기서 덮어쓴다.)
   ══════════════════════════════════════════════════════════════════════════════════════════ */
body.pub {
  --paper: #ffffff; --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f4f1;
  --ink: #000000; --ink-2: #3d423f; --muted: #6f7572; --line: #c9cfca;
  --accent: #2e4a37; --accent-ink: #ffffff; --accent-soft: #e9efe9; --gold: #2e4a37;
  --font: 'Noto Sans KR', 'Noto Sans CJK KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --side: 264px;
  color-scheme: light; background: #fff; color: #222; font-family: var(--font); font-size: 16px; line-height: 1.75;
}
.pub a.txt { color: #000; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pub a.txt:hover { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.pub :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 맨 위 줄 */
.pub .pubbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #000; }
.pub .pubbar .brand small { letter-spacing: .05em; font-weight: 500; }
.pub .pubbar .links { color: #222; }
.pub .pubbar .links a { border-bottom: 0; }
.pub .pubbar .links a.on, .pub .pubbar .links a:hover { color: #000; box-shadow: inset 0 -2px 0 var(--accent); }
.pub .pubbar .tel { color: #000; font-size: 17px; }
@media (max-width: 860px) { .pub .pubbar .links { background: #fff; border-bottom: 1px solid #000; } .pub .pubbar .links a.on, .pub .pubbar .links a:hover { box-shadow: none; } .pub .pubbar .burger { border-radius: 2px; border-color: #000; } }

/* 단추 — 네모, 검은 테 */
.pub .btn { border-radius: 2px; border-color: #000; background: #fff; color: #000; }
.pub .btn.pri, .pub .btn.gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub .btn.ghost { background: #fff; border-color: #000; color: #000; }

/* 첫 화면 = 도면 표지: 도곽선 안에 하는 말 · 하는 일, 아래에 표제란 */
.cover { padding: 28px 0 0; }
.sheet { border: 1.5px solid #000; }
.sheet .top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.sheet .say { padding: 60px 44px 52px; border-right: 1px solid #000; }
.sheet h1 { font-size: clamp(30px, 4.3vw, 54px); font-weight: 900; letter-spacing: -.045em; line-height: 1.22; margin: 0 0 24px; color: #000; white-space: pre-line; }
.sheet .sub { font-size: 18px; line-height: 1.7; margin: 0 0 4px; max-width: 32em; }
.sheet .who { font-size: 15px; color: var(--muted); margin: 0 0 34px; }
.sheet .call { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.sheet .call .btn { padding: 13px 22px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.sheet .shot { display: block; width: 100%; max-height: 440px; object-fit: cover; border-top: 1px solid #000; }
.scope { display: flex; flex-direction: column; }
.scope h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; padding: 12px 24px 10px; border-bottom: 1px solid #000; letter-spacing: 0; }
.scope a { flex: 1; display: grid; gap: 1px; align-content: center; padding: 16px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.scope a:last-child { border-bottom: 0; }
.scope a b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: #000; line-height: 1.4; }
.scope a span { font-size: 14px; color: var(--ink-2); }
.scope a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.tb { display: grid; grid-template-columns: 1.15fr .95fr 2.5fr 1.7fr .7fr; margin: 0; border-top: 1.5px solid #000; }
.tb > div { padding: 9px 14px 12px; border-right: 1px solid #000; min-width: 0; }
.tb > div:last-child { border-right: 0; }
.tb dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.tb dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: #000; font-weight: 500; }
.tb dd small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.tb dd span { display: block; }
@media (max-width: 980px) {
  .cover { padding-top: 16px; }
  .sheet .top { grid-template-columns: 1fr; }
  .sheet .say { padding: 34px 20px 30px; border-right: 0; border-bottom: 1px solid #000; }
  .sheet .sub { font-size: 16.5px; }
  .scope h2, .scope a { padding-left: 20px; padding-right: 20px; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 20px 11px; }
  .tb > div:nth-child(odd):not(.wide) { border-right: 1px solid var(--line); }
  .tb > .wide { grid-column: 1 / -1; }
  .tb > div:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0 !important; }
}

/* 본문 — 보고서처럼 '옆 제목 + 본문' 두 단 */
.pub .sec { padding: 76px 0 0; }
.pub .sec.tight { padding-top: 76px; }
.pub .sec .eyebrow, .pub .svc .no, .pub .svc-grid .no { display: none; }
.pub .sec h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; letter-spacing: -.04em; color: #000; margin: 0 0 12px; line-height: 1.25; }
.pub .sec .lead { color: #222; font-size: 16.5px; max-width: 40em; margin: 0 0 26px; }
.duo { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.duo > .hd { position: sticky; top: 84px; }
.duo > .hd .lead { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
@media (max-width: 980px) { .pub .sec, .pub .sec.tight { padding-top: 52px; } .duo { grid-template-columns: 1fr; } .duo > .hd { position: static; margin-bottom: 16px; } }

/* 표 — 실적 */
.ledger { width: 100%; border-collapse: collapse; border-top: 2px solid #000; }
.ledger th, .ledger td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: baseline; }
.ledger thead th { font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid #000; padding-top: 8px; padding-bottom: 8px; }
.ledger .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 28px; }
.ledger td.n b { font-size: 24px; font-weight: 700; color: #000; letter-spacing: -.02em; }
.ledger .y { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ledger .c { color: var(--ink-2); font-size: 14.5px; }
.ledger td.t { color: #000; font-weight: 500; }
.ledger thead th.c, .ledger thead th.y, .ledger thead th.n { color: var(--muted); font-size: 13px; }
.ledger.sum td.t { width: 15em; }
.ledger.sum .n { width: 6.5em; padding-right: 36px; }
.ledger tbody tr:last-child td { border-bottom: 1px solid #000; }
.ledger + h3, .sub-h { font-size: 17px; font-weight: 700; color: #000; margin: 44px 0 10px; letter-spacing: -.02em; }
.after { margin: 14px 0 0; font-size: 15px; }
@media (max-width: 640px) { .ledger .c.kind { display: none; } .ledger th, .ledger td { font-size: 14.5px; padding: 11px 10px 11px 0; } }

/* 최근 프로젝트의 현장 사진 — 도면에 붙인 사진처럼 네모 칸에 */
/* 칸 사이 1px 틈으로 검은 바탕이 비쳐 칸막이 선이 된다(칸 너비가 똑같아져 사진 높이가 어긋나지 않는다) */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #000; border: 1px solid #000; margin: 0 0 30px; }
.shots.n1 { grid-template-columns: 1fr; }
.shots.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots figure { margin: 0; min-width: 0; background: #fff; }
/* 주요실적 쪽: 여러 장을 줄 바꿔 늘어놓는다 → 칸마다 따로 테두리 */
.shots.many { gap: 16px; background: none; border: 0; margin: 0 0 44px; }
.shots.many figure { border: 1px solid #000; }
.shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid #000; background: var(--surface-2); }
.shots.n1 img { aspect-ratio: 16 / 9; }
.shots figcaption { padding: 10px 14px 13px; display: grid; gap: 2px; }
.shots figcaption b { font-size: 15.5px; font-weight: 700; color: #000; line-height: 1.45; letter-spacing: -.02em; }
.shots figcaption span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .shots.many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shots, .shots.n2, .shots.many { grid-template-columns: 1fr; } }

/* 맡기실 수 있는 일 */
.jobs { border-top: 2px solid #000; }
.jobs a { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 6px 28px; padding: 24px 0 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.jobs a:last-child { border-bottom: 1px solid #000; }
.jobs h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.035em; color: #000; line-height: 1.4; }
.jobs p { margin: 0 0 6px; font-size: 16.5px; color: #222; }
.jobs .list { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.jobs a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
@media (max-width: 640px) { .jobs a { grid-template-columns: 1fr; padding: 20px 0 18px; } }

/* 일하는 방식 */
.ways { margin: 0; border-top: 2px solid #000; }
.ways > div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ways > div:last-child { border-bottom: 1px solid #000; }
.ways dt { font-weight: 700; color: #000; font-size: 17px; letter-spacing: -.02em; }
.ways dd { margin: 0; font-size: 16px; max-width: 38em; }
@media (max-width: 640px) { .ways > div { grid-template-columns: 1fr; } }

/* 소식 */
.pub .news-list { border-top: 2px solid #000; gap: 0; }
.pub .news-list a { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 15px 0; }
.pub .news-list a:last-child { border-bottom: 1px solid #000; }
.pub .news-list a .t { color: #000; font-weight: 500; }

/* 맨 아래: 전화 · 사업자 정보 */
.pub .cta { margin: 96px 0 0; background: #fff; color: #000; border-top: 1.5px solid #000; }
.pub .cta .wrap { padding: 44px 18px 52px; align-items: end; gap: 28px 40px; }
.pub .cta h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.04em; line-height: 1.3; }
.pub .cta p { color: var(--ink-2); margin-top: 8px; max-width: 34em; }
.pub .cta .reach { margin-left: auto; text-align: right; display: grid; gap: 6px; justify-items: end; }
.pub .cta .bigtel { font-size: clamp(36px, 5.2vw, 64px); font-weight: 900; letter-spacing: -.04em; color: #000; text-decoration: none; line-height: 1; font-variant-numeric: tabular-nums; }
.pub .cta .bigtel:hover { color: var(--accent); }
@media (max-width: 860px) { .pub .cta { margin-top: 64px; } .pub .cta .reach { margin-left: 0; text-align: left; justify-items: start; } }
.pub .pubfoot { background: var(--surface-2); color: var(--ink-2); border-top: 1px solid var(--line); font-size: 13.5px; }
.pub .pubfoot b { color: #000; }
.pub .pubfoot .fine { border-top-color: var(--line); color: var(--muted); }
.pub .pubfoot .social a { border-color: #000; border-radius: 2px; color: #000; }

/* 다른 쪽(회사소개 · 업무분야 · 실적 · 문의)의 상자들도 같은 말씨로: 네모, 바탕 없음, 가는 줄 */
.pub .svc-grid a, .pub .rec-cards .r, .pub .facts .f, .pub .lic li, .pub .org .d, .pub .contact .card, .pub .article, .pub .ceo .who, .pub .detail ul li,
.pub .svc .pic, .pub .detail .pic, .pub .rec-table, .pub .greet .box, .pub .form input, .pub .form select, .pub .form textarea, .pub .filters a, .pub .team span, .pub .flash { border-radius: 0; }
.pub .page-head { padding-top: 52px; }
.pub .page-head h1 { font-weight: 900; letter-spacing: -.045em; color: #000; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.pub .page-head p { color: #222; font-size: 17px; }
.pub .rec-table { border: 0; border-top: 2px solid #000; background: none; }
.pub .rec-table th { background: none; border-bottom: 1px solid #000; font-weight: 500; }
.pub .rec-table th, .pub .rec-table td { padding-left: 0; font-size: 15.5px; }
.pub .rec-table tr:last-child td { border-bottom: 1px solid #000; }
.pub .filters a { border-color: #000; color: #000; }
.pub .filters a.on { background: #000; border-color: #000; color: #fff; }
.pub .svc-grid a, .pub .facts .f, .pub .org .d, .pub .lic li, .pub .rec-cards .r, .pub .detail ul li { background: none; }
.pub .svc-grid a:hover { border-color: #000; }
.pub .svc { border-top: 1px solid #000; }
.pub .svc h3 { font-weight: 700; letter-spacing: -.035em; color: #000; }
.pub .svc .promise { font-weight: 400; color: #222; }
.pub .svc ul li::before, .pub .detail ul li::before { border-radius: 0; width: 7px; height: 1.5px; top: .85em; background: #000; }
.pub .svc .more { letter-spacing: 0; border-bottom: 1px solid #000; color: #000; font-weight: 500; font-size: 15px; padding-bottom: 1px; }
.pub .greet .box { background: none; color: #000; border-top: 2px solid #000; padding: 18px 0 0; }
.pub .greet .box .t { font-weight: 900; letter-spacing: -.035em; font-size: 24px; }
.pub .greet .box .s { color: var(--muted); }
.pub .greet .body { color: #222; font-size: 16.5px; }
.pub .lic li::before { color: var(--accent); }
.pub .hist li .d { color: #000; }
.pub .ceo .alias { color: var(--accent); }
.pub .contact .big { color: #000; font-weight: 900; letter-spacing: -.03em; }
.pub .contact .card { border-color: #000; }
.pub .form input, .pub .form select, .pub .form textarea { background: #fff; border-color: #8d948f; }
.pub .flash.ok { background: var(--accent-soft); color: #000; }
@media (prefers-reduced-motion: reduce) { .pub * { transition: none !important; } }
