/* 레이아웃: 위 보조띠 + 큰 메뉴(펼침) → 큰 첫 화면 → 바로가기 네 칸 → 사업 두 칸 → 공지·오시는 길 → 아래 회사 정보 */
:root {
  --bg: #FFFFFF;
  --fg: #101512;
  --muted: #55605A;
  --line: #D8DCD6;
  --soft: #F3F5F1;
  --brand: #1E4636;
  --brand-hover: #2C5C48;
  --on-brand: #FFFFFF;
  --accent: #C9A646;
  --hero-bg: #1E4636;
  --hero-fg: #FFFFFF;
  --hero-sub: #DCE8DF;
  --shade: rgba(9, 22, 16, 0.58);
  --link: #1E4636;
  --draft-bg: #FBF6E6;
  --draft-bd: #C9A646;
  --draft-fg: #6F5410;
  --foot-bg: #101512;
  --foot-fg: #DCE8DF;
  --foot-mute: #9FB3A7;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1512; --fg: #E8EEE9; --muted: #A3B0A8; --line: #2A342F; --soft: #151D19;
    --brand: #8FC4A7; --brand-hover: #A9D6BF; --on-brand: #0F1512; --accent: #D6B65A;
    --hero-bg: #173326; --hero-fg: #F2F6F3; --hero-sub: #C5D6CB; --shade: rgba(6, 14, 10, 0.64);
    --link: #8FC4A7; --draft-bg: #2A2410; --draft-bd: #8A7332; --draft-fg: #E8D58F;
    --foot-bg: #0A0F0C; --foot-fg: #B8C6BD; --foot-mute: #7F9086; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1512; --fg: #E8EEE9; --muted: #A3B0A8; --line: #2A342F; --soft: #151D19;
  --brand: #8FC4A7; --brand-hover: #A9D6BF; --on-brand: #0F1512; --accent: #D6B65A;
  --hero-bg: #173326; --hero-fg: #F2F6F3; --hero-sub: #C5D6CB; --shade: rgba(6, 14, 10, 0.64);
  --link: #8FC4A7; --draft-bg: #2A2410; --draft-bd: #8A7332; --draft-fg: #E8D58F;
  --foot-bg: #0A0F0C; --foot-fg: #B8C6BD; --foot-mute: #7F9086; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* 확인 대기 표시 */
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.6; padding: 0 8px; margin-right: 6px; border: 1px solid var(--draft-bd); background: var(--draft-bg); color: var(--draft-fg); border-radius: 2px; vertical-align: 1px; }
.draftline { font-size: 15px; color: var(--draft-fg); background: var(--draft-bg); border: 1px dashed var(--draft-bd); padding: 10px 14px; border-radius: 2px; }
.preview-bar { background: var(--draft-bg); color: var(--draft-fg); font-size: 14px; border-bottom: 1px solid var(--draft-bd); padding-block: 8px; }

/* 머리 */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 21; }
.util { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.util nav { display: flex; gap: 20px; }
.util a { text-decoration: none; }
.util a:hover { text-decoration: underline; }
.gnb-bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.gnb { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; position: relative; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); padding-block: 12px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.gnb-list { display: flex; gap: 4px; }
.top { position: relative; }
.top > a { display: flex; align-items: center; min-height: 76px; padding: 0 22px; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; }
.top:hover > a, .top:focus-within > a, .top > a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--link); }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--brand); padding: 8px 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.top:hover .sub, .top:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 22px; font-size: 16px; text-decoration: none; }
.sub a:hover { background: var(--soft); color: var(--link); }

/* 첫 화면 */
.hero { background: var(--hero-bg); color: var(--hero-fg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.eyebrow.dark { color: var(--link); display: flex; align-items: center; gap: 12px; }
.eyebrow.dark::before { content: ""; width: 40px; height: 2px; background: var(--link); }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.28; margin-top: 18px; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); line-height: 1.75; color: var(--hero-sub); max-width: 40em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 2px; cursor: pointer; border: 2px solid transparent; }
.btn-solid { background: var(--accent); color: #101512; }
.btn-solid:hover { filter: brightness(1.06); }
.btn-line { color: var(--hero-fg); border-color: var(--hero-fg); background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.sec .btn-solid, .subhero .btn-solid { background: var(--brand); color: var(--on-brand); }
.sec .btn-solid:hover { background: var(--brand-hover); filter: none; }
.sec .btn-line { color: var(--link); border-color: var(--link); }
.sec .btn-line:hover { background: var(--soft); }
.art-card { background: #FFFFFF; border-radius: 4px; padding: 20px 20px 10px; }
.cap { margin-top: 8px; font-size: 14px; color: #55605A; }
.plan { display: block; width: 100%; height: auto; }
.plan-view { fill: rgba(30, 70, 54, 0.08); stroke: #2C5C48; }
.plan-wall { stroke: #101512; }
.plan-wire { stroke: #C9A646; }
.plan-box { fill: #FFFFFF; stroke: #101512; }
.plan-cam { fill: #1E4636; }

/* 큰 사진 첫 화면 (사진이 있을 때) */
.hero.photo { position: relative; overflow: hidden; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; background: #0B1410; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.hero-media { object-position: center 35%; }
.hero-media.vid { opacity: 0; transition: opacity 0.8s ease; }
.hero-media.vid.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: var(--shade); }
.hero.photo .hero-in { position: relative; width: 100%; padding-block: clamp(56px, 8vw, 112px); }
.hero.photo h1 { font-size: clamp(32px, 5.6vw, 60px); max-width: 16em; }
.hero.photo .hero-lead { max-width: 36em; }
.credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.credit a { text-decoration: underline; }

/* 바로가기 */
.band { background: var(--soft); border-bottom: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 28px; text-decoration: none; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile:hover { background: var(--bg); }
.tile h2 { font-size: 22px; }
.tile p { font-size: 16px; color: var(--muted); line-height: 1.65; }
.more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--link); }
.more::after { content: " >"; }

/* 구역 */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec.soft { background: var(--soft); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin-top: 18px; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.two.top { align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 40px); margin-top: 28px; }
.biz { border-top: 2px solid var(--fg); padding-top: 20px; min-width: 0; }
.biz h3 { font-size: 24px; line-height: 1.35; }
.biz p { margin-top: 12px; color: var(--muted); }
.biz .kicker { margin: 0; font-size: 14px; }
.sec .two .biz { margin-top: 28px; }
.link { font-weight: 700; color: var(--link); }
.biz .link { display: inline-block; margin-top: 16px; }
.small { margin-top: 14px; font-size: 15px; }
.body { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-top: 0; }
.list { margin-top: 16px; border-top: 2px solid var(--fg); }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list time { color: var(--muted); font-size: 15px; white-space: nowrap; }
.addr { margin-top: 16px; font-size: 19px; line-height: 1.7; font-weight: 500; }
.addr.big { font-size: 22px; margin-bottom: 8px; }

/* 안쪽 쪽 머리 */
.subhero { background: var(--soft); border-bottom: 1px solid var(--line); padding-top: 28px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.subhero h1 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; }
.subhero .lead { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-bottom: 0; background: var(--bg); color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--link); font-weight: 700; border-top: 3px solid var(--brand); }
.tabs:empty { display: none; }
.subhero:not(:has(.tabs)) { padding-bottom: 36px; }

/* 본문 */
.narrow { max-width: 760px; }
.prose p { margin-top: 20px; font-size: 18px; line-height: 1.95; }
.prose { margin-top: 24px; }
.sign { margin-top: 36px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.note { color: var(--muted); font-size: 15px; margin-top: 4px; }
.facts { margin: 24px 0 0; border-top: 2px solid var(--fg); }
.facts .row { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.facts dt { padding: 18px 0; color: var(--muted); font-size: 16px; }
.facts dd { margin: 0; padding: 18px 0; font-size: 19px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.facts.compact dd { font-size: 17px; }
.kinds { width: 100%; border-collapse: collapse; font-size: 17px; }
.kinds th { text-align: left; padding: 4px 0 10px; font-size: 14px; color: var(--muted); width: 45%; }
.kinds td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 28px; }
.steps li { border-top: 2px solid var(--fg); padding-top: 18px; counter-increment: s; }
.steps li::before { content: counter(s) "단계"; display: block; font-size: 14px; font-weight: 700; color: var(--link); margin-bottom: 6px; }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.bbs { width: 100%; border-collapse: collapse; border-top: 2px solid var(--fg); }
.bbs th { padding: 14px 8px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; }
.bbs td { padding: 18px 8px; border-bottom: 1px solid var(--line); }
.c-no { width: 80px; text-align: center !important; }
.c-date { width: 130px; color: var(--muted); }
.c-empty { text-align: center; color: var(--muted); padding: 56px 8px !important; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; min-height: 44px; }
.faq p { padding: 0 0 16px; color: var(--muted); }

/* 아래 */
.ft { background: var(--foot-bg); color: var(--foot-fg); margin-top: 0; }
.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 36px; }
.ft-name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #FFFFFF; }
.ft-line { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-bar { border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: var(--foot-mute); padding-block: 16px; }

/* 폰 */
@media (max-width: 960px) {
  .hero-grid, .two, .steps { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; align-items: center; }
  .gnb-list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border: 1px solid var(--line); padding: 8px 0; max-height: 70vh; overflow-y: auto; }
  .gnb-list.open { display: flex; }
  .top > a { min-height: 48px; padding: 0 20px; border-bottom: 0; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .facts .row { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; }
  .facts dd { padding-top: 4px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+2) { border-top: 1px solid var(--line); }
  .c-no { width: 56px; }
  .c-date { width: 96px; }
  .util nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } video.hero-media { display: none; } }
