/* ══════════════════════════════════════════════════════════════
   세정정밀 · 멀티페이지 라이트 버전 (프리미엄 제작 예시 2)
   한국 기업 사이트 관례 = 흰 배경 · 네이비 포인트 · 표 형식 게시판
   ══════════════════════════════════════════════════════════════ */

:root{
  --navy:#0E3050; --navy2:#154A79; --blue:#0B6FB4; --cyan:#12A5C8;
  --ink:#16232E; --body:#455566; --muted:#78889A; --dim:#9AA8B6;
  --line:#E3E9EF; --line2:#CFD8E2;
  --bg:#FFFFFF; --bg2:#F5F8FB; --bg3:#EDF3F8;
  --r:4px; --r2:10px;
  --shadow:0 2px 10px rgba(16,40,64,.06);
  --shadow2:0 10px 30px rgba(16,40,64,.10);
  --shell:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--body);
  font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size:16px; line-height:1.72; -webkit-font-smoothing:antialiased; word-break:keep-all;
}
/* ⛔ height:auto 가 없으면 width/height 속성이 presentational hint 로 살아남아
   aspect-ratio 가 통째로 무시된다(카드가 4:3 대신 0.6 비율로 렌더된 실사고). */
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
.shell{max-width:var(--shell); margin:0 auto; padding:0 30px}
h1,h2,h3,h4{color:var(--ink); margin:0; letter-spacing:-.025em; font-weight:700; line-height:1.34}

/* ── 헤더 ── */
.hd{position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line)}
.hd .shell{display:flex; align-items:center; justify-content:space-between; height:78px}
.logo{display:flex; align-items:baseline; gap:8px; font-size:21px; font-weight:800; color:var(--navy); letter-spacing:-.03em}
.logo em{font-style:normal; font-size:10px; letter-spacing:.18em; color:var(--cyan); font-weight:700}
.gnb{display:flex; gap:6px}
.gnb>a{position:relative; padding:12px 17px; font-size:15.5px; font-weight:600; color:var(--ink); border-radius:var(--r)}
.gnb>a:hover{color:var(--blue); background:var(--bg2)}
.gnb>a.on{color:var(--blue)}
.gnb>a.on::after{content:''; position:absolute; left:17px; right:17px; bottom:4px; height:2px; background:var(--blue)}
.hd-cta{padding:11px 20px; background:var(--navy); color:#fff; border-radius:var(--r); font-size:14.5px; font-weight:700; white-space:nowrap}
.hd-cta:hover{background:var(--navy2); color:#fff}
.burger{display:none; width:40px; height:40px; border:1px solid var(--line2); border-radius:var(--r); background:none; cursor:pointer; padding:0}
.burger i{display:block; width:17px; height:2px; background:var(--ink); margin:3.5px auto; border-radius:2px}

/* ── 서브 비주얼 ── */
.sv{position:relative; height:230px; overflow:hidden; background:var(--navy)}
.sv img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.42}
.sv-in{position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:center}
.sv h1{color:#fff; font-size:clamp(26px,3.4vw,36px); margin-bottom:10px}
.sv p{margin:0; color:rgba(255,255,255,.78); font-size:14.5px}
.crumb{font-size:13px; color:rgba(255,255,255,.62); margin-bottom:14px}
.crumb b{color:#fff; font-weight:600}

/* ── 서브 탭 ── */
.subtab{border-bottom:1px solid var(--line); background:#fff}
.subtab .shell{display:flex; gap:0; overflow-x:auto}
.subtab a{padding:16px 22px; font-size:15px; font-weight:600; color:var(--muted); white-space:nowrap; border-bottom:2px solid transparent}
.subtab a:hover{color:var(--ink)}
.subtab a.on{color:var(--blue); border-bottom-color:var(--blue)}

/* ── 공통 섹션 ── */
main{padding:76px 0 96px}
.sec{margin-bottom:76px}
.sec:last-child{margin-bottom:0}
.sec-head{margin-bottom:34px}
.sec-head .tag{display:inline-block; font-size:12px; font-weight:700; letter-spacing:.16em; color:var(--cyan); text-transform:uppercase; margin-bottom:12px}
.sec-head h2{font-size:clamp(23px,2.6vw,31px); margin-bottom:12px}
.sec-head p{margin:0; font-size:16px; color:var(--muted); max-width:760px}
.lead{font-size:16.5px; line-height:1.85; color:var(--body)}
.lead b{color:var(--ink)}

/* ── 버튼 ── */
.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:var(--r); font-size:15.5px; font-weight:700; border:1px solid transparent; cursor:pointer; font-family:inherit; transition:all .2s}
.btn-primary{background:var(--blue); color:#fff}
.btn-primary:hover{background:#0A5F9B; color:#fff}
.btn-ghost{background:#fff; color:var(--ink); border-color:var(--line2)}
.btn-ghost:hover{border-color:var(--blue); color:var(--blue)}
.btn-white{background:#fff; color:var(--navy)}
.btn-white:hover{background:var(--bg3)}

/* ── 홈 히어로 ── */
.hero{position:relative; height:520px; overflow:hidden; background:var(--navy)}
.hero img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.46}
.hero-in{position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:center}
.hero h2{color:#fff; font-size:clamp(30px,4.4vw,50px); line-height:1.24; margin-bottom:18px}
.hero h2 span{color:#4FD0E8}
.hero p{margin:0 0 30px; color:rgba(255,255,255,.82); font-size:17px; max-width:560px; line-height:1.78}
.hero-btns{display:flex; gap:12px; flex-wrap:wrap}

/* 홈 지표 */
.kpi{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r2); overflow:hidden; margin-top:-46px; position:relative; z-index:5; box-shadow:var(--shadow2)}
.kpi div{background:#fff; padding:28px 24px; text-align:center}
.kpi b{display:block; font-size:clamp(26px,3vw,34px); color:var(--navy); letter-spacing:-.03em; line-height:1.1}
.kpi b i{font-style:normal; font-size:.5em; color:var(--cyan); margin-left:3px}
.kpi span{display:block; margin-top:8px; font-size:14px; color:var(--muted)}

/* 홈 사업영역 카드 */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.card{border:1px solid var(--line); border-radius:var(--r2); overflow:hidden; background:#fff; transition:transform .22s, box-shadow .22s}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow2)}
.card img{width:100%; aspect-ratio:4/3; object-fit:cover}
.card-body{padding:24px 24px 26px}
.card h3{font-size:18.5px; margin-bottom:9px}
.card p{margin:0; font-size:14.8px; color:var(--muted); line-height:1.7}
.card .go{display:inline-block; margin-top:14px; font-size:14px; font-weight:700; color:var(--blue)}

/* 홈 2단(공지/갤러리) */
.home2{display:grid; grid-template-columns:1fr 1fr; gap:40px}
.mini-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; padding-bottom:14px; border-bottom:2px solid var(--ink)}
.mini-head h3{font-size:19px}
.mini-head a{font-size:13.5px; color:var(--muted)}
.mini-head a:hover{color:var(--blue)}
.mini-list{list-style:none; margin:0; padding:0}
.mini-list li{border-bottom:1px solid var(--line)}
.mini-list a{display:flex; justify-content:space-between; gap:16px; padding:14px 2px; font-size:15px}
.mini-list a:hover strong{color:var(--blue)}
.mini-list strong{font-weight:500; color:var(--body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mini-list span{color:var(--dim); font-size:13.5px; flex:none}
.mini-gal{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.mini-gal a{display:block; border-radius:var(--r); overflow:hidden; background:var(--bg2)}
.mini-gal img{width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .5s}
.mini-gal a:hover img{transform:scale(1.05)}

/* 홈 CTA 밴드 */
.band{background:var(--bg3); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:56px 0}
.band .shell{display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap}
.band h3{font-size:24px; margin-bottom:8px}
.band p{margin:0; color:var(--muted); font-size:15.5px}

/* ── 인사말 ── */
.greet{display:grid; grid-template-columns:340px 1fr; gap:48px; align-items:start}
.greet figure{margin:0; border-radius:var(--r2); overflow:hidden; box-shadow:var(--shadow2)}
.greet figure img{width:100%; aspect-ratio:1/1; object-fit:cover}
.greet .sign{margin-top:26px; font-size:15.5px; color:var(--ink); font-weight:700}
.greet .sign span{display:block; font-size:13.5px; color:var(--muted); font-weight:500; margin-top:3px}

/* ── 연혁 ── */
.hist{position:relative; padding-left:26px}
.hist::before{content:''; position:absolute; left:5px; top:8px; bottom:8px; width:2px; background:var(--line)}
.hist-y{position:relative; margin-bottom:34px}
.hist-y:last-child{margin-bottom:0}
.hist-y::before{content:''; position:absolute; left:-26px; top:9px; width:12px; height:12px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 0 0 2px var(--line)}
.hist-y h3{font-size:22px; color:var(--navy); margin-bottom:12px; letter-spacing:-.03em}
.hist-y ul{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.hist-y li{display:grid; grid-template-columns:52px 1fr; gap:14px; font-size:15.2px}
.hist-y li b{color:var(--blue); font-weight:700}

/* ── 표 ── */
.tbl-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch}
.tbl{width:100%; border-collapse:collapse; font-size:15px; min-width:560px}
.tbl th,.tbl td{padding:15px 16px; border-bottom:1px solid var(--line); text-align:left}
.tbl thead th{background:var(--bg2); color:var(--ink); font-size:14.5px; font-weight:700; border-top:2px solid var(--ink)}
.tbl td{color:var(--body)}
.tbl th[scope=row]{background:var(--bg2); color:var(--ink); font-weight:600; width:150px}
.tbl.center td,.tbl.center th{text-align:center}
.tbl.center td:first-child,.tbl.center th:first-child{text-align:center}

/* ── 게시판(목록) ── */
.bbs{width:100%; border-collapse:collapse; font-size:15px; min-width:640px}
.bbs th,.bbs td{padding:16px 12px; border-bottom:1px solid var(--line)}
.bbs thead th{background:var(--bg2); border-top:2px solid var(--ink); font-size:14.5px; color:var(--ink)}
.bbs td{text-align:center; color:var(--muted); font-size:14px}
.bbs td.subj{text-align:left; color:var(--ink); font-size:15.2px}
.bbs td.subj a:hover{color:var(--blue); text-decoration:underline}
.bbs .notice-tag{display:inline-block; margin-right:8px; padding:3px 9px; border-radius:3px; background:var(--navy); color:#fff; font-size:11.5px; font-weight:700; vertical-align:1px}
.bbs tr:hover td{background:#FAFCFE}
.bbs .file::after{content:'📎'; font-size:12px; margin-left:6px}
.pager{display:flex; justify-content:center; gap:5px; margin-top:34px}
.pager a,.pager strong{min-width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:var(--r); font-size:14px; color:var(--muted); font-weight:500}
.pager strong{background:var(--navy); border-color:var(--navy); color:#fff}
.pager a:hover{border-color:var(--blue); color:var(--blue)}
.bbs-search{display:flex; gap:8px; justify-content:center; margin-top:26px}
.bbs-search select,.bbs-search input{padding:11px 13px; border:1px solid var(--line2); border-radius:var(--r); font-size:14.5px; font-family:inherit; color:var(--ink)}
.bbs-search input{width:240px}

/* ── 게시판(상세) ── */
.view-head{border-top:2px solid var(--ink); border-bottom:1px solid var(--line); padding:24px 4px}
.view-head h2{font-size:22px; margin-bottom:12px}
.view-meta{display:flex; gap:20px; flex-wrap:wrap; font-size:13.8px; color:var(--muted)}
.view-body{padding:36px 4px 44px; border-bottom:1px solid var(--line); font-size:16px; line-height:1.9; color:var(--body)}
.view-body p{margin:0 0 18px}
.view-body h3{font-size:19px; margin:32px 0 12px}
.view-body img{border-radius:var(--r2); margin:24px 0}
.view-body ul{padding-left:20px; margin:0 0 18px}
.view-body li{margin-bottom:7px}
.view-file{display:flex; gap:10px; align-items:center; padding:15px 4px; border-bottom:1px solid var(--line); font-size:14.5px; color:var(--muted)}
.view-file b{color:var(--ink); font-weight:600}
.view-nav{margin-top:0}
.view-nav div{display:grid; grid-template-columns:120px 1fr; gap:16px; padding:15px 4px; border-bottom:1px solid var(--line); font-size:15px}
.view-nav b{color:var(--muted); font-weight:600; font-size:14px}
.view-nav a:hover{color:var(--blue)}
.view-btns{display:flex; justify-content:center; margin-top:34px}

/* ── 갤러리 ── */
.gal{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.gal figure{margin:0; border:1px solid var(--line); border-radius:var(--r2); overflow:hidden; background:#fff; transition:transform .22s, box-shadow .22s}
.gal figure:hover{transform:translateY(-4px); box-shadow:var(--shadow2)}
.gal img{width:100%; aspect-ratio:4/3; object-fit:cover}
.gal figcaption{padding:18px 20px 20px}
.gal figcaption b{display:block; color:var(--ink); font-size:16px; font-weight:600; margin-bottom:5px}
.gal figcaption span{font-size:13.5px; color:var(--dim)}

/* ── 블로그(기술칼럼) ── */
.posts{display:grid; gap:1px; background:var(--line); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.post{background:#fff; display:grid; grid-template-columns:240px 1fr; gap:28px; padding:28px 4px; align-items:center}
.post img{width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--r2)}
.post .cat{display:inline-block; font-size:12px; font-weight:700; color:var(--cyan); letter-spacing:.08em; margin-bottom:8px}
.post h3{font-size:19.5px; margin-bottom:9px}
.post p{margin:0 0 12px; font-size:15px; color:var(--muted); line-height:1.7}
.post .meta{font-size:13.5px; color:var(--dim)}
.post:hover h3{color:var(--blue)}

/* ── 신청서 ── */
.form-wrap{display:grid; grid-template-columns:1fr 330px; gap:44px; align-items:start}
.ftbl{width:100%; border-collapse:collapse; font-size:15px}
.ftbl th,.ftbl td{padding:16px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle}
.ftbl thead th{border-top:2px solid var(--ink)}
.ftbl tbody tr:first-child th,.ftbl tbody tr:first-child td{border-top:2px solid var(--ink)}
.ftbl th{background:var(--bg2); color:var(--ink); font-weight:600; width:170px}
.ftbl th .req{color:#D64545; margin-left:3px}
.ftbl input[type=text],.ftbl input[type=tel],.ftbl input[type=email],.ftbl select,.ftbl textarea{
  width:100%; padding:12px 13px; border:1px solid var(--line2); border-radius:var(--r);
  font-size:15px; font-family:inherit; color:var(--ink); background:#fff;
}
.ftbl textarea{min-height:150px; resize:vertical; line-height:1.65}
.ftbl input:focus,.ftbl select:focus,.ftbl textarea:focus{outline:none; border-color:var(--blue)}
.ftbl .half{max-width:280px}
.chk-row{display:flex; gap:18px; flex-wrap:wrap}
.chk{display:flex; align-items:center; gap:7px; font-size:15px; color:var(--body); cursor:pointer}
.agree{margin-top:24px; padding:20px 22px; background:var(--bg2); border:1px solid var(--line); border-radius:var(--r2); font-size:14.5px; color:var(--muted)}
.agree label{display:flex; gap:8px; align-items:center; margin-top:12px; color:var(--ink); font-weight:600; cursor:pointer}
.form-actions{display:flex; justify-content:center; gap:10px; margin-top:30px}
.aside-box{border:1px solid var(--line); border-radius:var(--r2); padding:26px 24px; background:var(--bg2)}
.aside-box h3{font-size:17px; margin-bottom:14px}
.aside-box dl{margin:0; display:grid; gap:12px}
.aside-box dt{font-size:12.5px; color:var(--dim); font-weight:700; letter-spacing:.06em}
.aside-box dd{margin:2px 0 0; font-size:15.5px; color:var(--ink); font-weight:600}
.aside-note{margin:18px 0 0; font-size:13.5px; color:var(--muted); line-height:1.65}

/* ── 푸터 ── */
footer{background:#152230; color:rgba(255,255,255,.62); padding:48px 0 40px; font-size:13.8px}
.fnav{display:flex; gap:22px; flex-wrap:wrap; padding-bottom:22px; margin-bottom:22px; border-bottom:1px solid rgba(255,255,255,.12)}
.fnav a{font-size:14px; color:rgba(255,255,255,.8); font-weight:500}
.fnav a:hover{color:#fff}
.fbot{display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap}
.fbot p{margin:0; line-height:1.9}
.fbot b{color:rgba(255,255,255,.9); font-weight:700}

/* 데모 표시 */
.demo-badge{
  position:fixed; right:16px; bottom:16px; z-index:60;
  background:rgba(11,111,180,.95); color:#fff; padding:9px 16px; border-radius:999px;
  font-size:12.5px; font-weight:700; box-shadow:var(--shadow2);
}

/* 리빌 */
.rv{opacity:0; transform:translateY(20px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1)}
.rv.in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){.rv{opacity:1; transform:none; transition:none}}

@media (max-width:1000px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .gal{grid-template-columns:repeat(2,1fr)}
  .kpi{grid-template-columns:repeat(2,1fr)}
  .greet{grid-template-columns:1fr; gap:30px}
  .greet figure{max-width:320px}
  .form-wrap{grid-template-columns:1fr}
  .home2{grid-template-columns:1fr; gap:44px}
}
@media (max-width:820px){
  .shell{padding:0 20px}
  .gnb{display:none}
  .burger{display:block}
  .hd .shell{height:64px}
  .hd-cta{display:none}
  main{padding:52px 0 70px}
  .sec{margin-bottom:56px}
  .hero{height:430px}
  .post{grid-template-columns:1fr; gap:16px; padding:24px 4px}
  .post img{max-width:100%}
  .ftbl th{width:112px; font-size:14px; padding:14px 10px}
  .ftbl td{padding:14px 10px}
}
@media (max-width:560px){
  .cards,.gal{grid-template-columns:1fr}
  .kpi{grid-template-columns:1fr}
  .sv{height:180px}
}
