/* EULJI 리뉴얼 테스트 v2
   구성은 산업 장비 제조사형(가로 메뉴, 파란 박스 비주얼, 제품 카드 그리드, 어두운 하단).
   색은 로고의 파랑과 건물 그림의 하늘·유리에서 가져왔다. */
:root {
	--blue: #37aaff;        /* 명함 로고 */
	--blue-deep: #1b66ac;   /* 로고와 같은 계열. 글자·버튼용으로 흰 바탕 대비 확보 */
	--blue-box: rgba(27, 102, 172, .92);
	--ink: #15263c;
	--text: #2b3a4d;
	--muted: #5a6a7d;
	--line: #d9e1ea;
	--sky: #e3f1f9;
	--paper: #f4f7fa;
	--white: #fff;
	--gutter: clamp(20px, 4vw, 56px);
	--header-h: 112px;
	--sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; color: var(--text); background: var(--white); font: 400 17px/1.75 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
dl, dd, dt, h1, h2, h3, h4, p, figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

html:not(.lang-en) .l-en, html.lang-en .l-ko { display: none !important; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { left: 0; }

.display { font-weight: 700; color: var(--ink); font-size: clamp(28px, 3vw, 44px); line-height: 1.28; letter-spacing: -0.02em; }
.display.small { font-size: clamp(24px, 2.2vw, 32px); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--blue-deep); }
.eyebrow + .display { margin-top: 10px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.btn { display: inline-block; padding: 12px 26px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--white); background: var(--blue-deep); border: 2px solid var(--blue-deep); transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-white { color: var(--blue-deep); background: var(--white); border-color: var(--white); }
.btn-white:hover { color: var(--white); background: transparent; border-color: var(--white); }

.section { padding-block: clamp(64px, 7vw, 104px); }
.section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.center-head { max-width: 900px; margin: 0 auto clamp(36px, 4.500vw, 64px); text-align: center; }
.center-head p { margin-top: 16px; color: var(--muted); }
.tint { background: var(--paper); }
.empty { color: var(--muted); padding: 48px 0; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 상단 */
.header { position: sticky; top: 0; z-index: 40; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header > .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { flex: none; }
.logo img { width: 176px; height: auto; }
.header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.utility { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--muted); }
.utility > a { display: inline-flex; align-items: center; gap: 7px; }
.utility > a:hover { color: var(--blue-deep); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); }
.lang button { min-width: 36px; padding: 2px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--white); background: var(--blue-deep); }

.gnav > ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.gnav > ul > li { position: relative; }
.gnav > ul > li > a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.gnav > ul > li > a:hover, .has-sub:hover > a, .has-sub:focus-within > a { color: var(--blue-deep); }
.sub { position: absolute; left: -18px; top: 100%; min-width: 200px; padding: 8px 0; background: var(--white); border-top: 3px solid var(--blue-deep); box-shadow: 0 10px 24px rgba(21, 38, 60, .16); opacity: 0; visibility: hidden; transform: translateY(6px); 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: 9px 18px; font-size: 16px; color: var(--text); white-space: nowrap; }
.sub a:hover, .sub a[aria-current] { color: var(--blue-deep); background: var(--paper); }

.burger { display: none; position: relative; width: 44px; height: 44px; flex: none; }
.burger i { position: absolute; left: 8px; width: 28px; height: 2px; background: var(--ink); }
.burger i:nth-child(1) { top: 13px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 29px; }
.burger.is-close { display: block; }
.burger.is-close i { top: 21px; }
.burger.is-close i:nth-child(1) { transform: rotate(45deg); }
.burger.is-close i:nth-child(2) { transform: rotate(-45deg); }

/* 전체 메뉴 (모바일) */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--text); overflow-y: auto; }
.menu[open] { display: flex; flex-direction: column; }
.menu-top { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.menu-body { flex: 1 0 auto; display: grid; gap: 28px; padding: 28px var(--gutter); align-content: start; }
.menu-group h2 { font-size: 14px; font-weight: 700; color: var(--blue-deep); padding-bottom: 8px; border-bottom: 2px solid var(--blue-deep); margin-bottom: 6px; }
.menu-group a { display: block; padding: 9px 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.menu-group a[aria-current] { color: var(--blue-deep); }
.menu-info { flex: none; display: grid; gap: 2px; padding: 20px var(--gutter); font-size: 15px; color: var(--muted); background: var(--paper); }

/* 메인 비주얼 */
.hero { position: relative; height: clamp(560px, 74vh, 740px); overflow: hidden; background: var(--sky); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background: var(--sky); opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; min-height: 62%; object-fit: cover; object-position: center bottom; max-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(28px, 5vh, 56px); }
.hero-box { width: min(100%, 560px); padding: clamp(26px, 3vw, 40px); color: var(--white); background: var(--blue-box); }
.hero-box h1 { font-size: clamp(34px, 3.700vw, 54px); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; }
.hero-box p { margin: 16px 0 24px; font-size: clamp(16px, 1.300vw, 18px); line-height: 1.65; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; }
.hero-dots button { width: 44px; height: 28px; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 4px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(21, 38, 60, .35); }
.hero-dots button[aria-current]::after { background: var(--blue-deep); }

/* 고객사 */
.clients { padding-block: clamp(40px, 4.500vw, 60px); text-align: center; }
.clients h2 { margin-bottom: 22px; font-size: 18px; font-weight: 600; color: var(--muted); }
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(22px, 3vw, 44px); font-size: clamp(16px, 1.350vw, 19px); font-weight: 700; color: var(--ink); opacity: .78; }
.client-row + .client-row { margin-top: 12px; }

/* 소개 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy p { margin-bottom: 18px; }
.about-media { position: relative; background: var(--white); }
.about-media .slot-img { padding: 24px 24px 64px; object-fit: contain; }
.about-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 18px; font-size: 16px; font-weight: 700; text-align: center; color: var(--white); background: var(--blue-deep); }

/* 이미지 자리 */
.slot { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; background: var(--sky); border: 1px dashed #9fb6cc; }
.slot strong { color: var(--blue-deep); font-size: 15px; font-weight: 600; }
.slot-img { width: 100%; object-fit: cover; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 72px); }

/* 대표 제품 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.500vw, 52px) clamp(20px, 2.500vw, 36px); }
.product-grid a { display: block; text-align: center; }
.product-photo { display: flex; align-items: center; justify-content: center; height: clamp(170px, 15vw, 220px); }
.product-photo img { max-height: 100%; width: auto; object-fit: contain; transition: transform .3s; }
.product-grid a:hover img { transform: scale(1.04); }
.product-grid strong { display: block; margin-top: 16px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--blue-deep); }
.product-grid a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* 사업 분야 */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-grid a { display: block; height: 100%; padding: clamp(24px, 2.500vw, 36px) clamp(20px, 2vw, 28px); text-align: center; background: var(--white); border-bottom: 3px solid transparent; transition: border-color .2s, box-shadow .2s; }
.biz-grid a:hover { border-color: var(--blue-deep); box-shadow: 0 10px 24px rgba(21, 38, 60, .1); }
.biz-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; color: var(--white); background: var(--blue-deep); }
.biz-grid strong { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.biz-grid p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* 숫자 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 16px; line-height: 1.5; color: var(--muted); }
.stats li { padding: 8px 20px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; margin-bottom: 6px; font-size: clamp(38px, 4vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }

/* 창업주 */
.founder { background: url('/images/ceo.jpg') right center / cover no-repeat #d9d9d9; min-height: clamp(440px, 34vw, 600px); display: flex; align-items: center; }
.founder .wrap { padding-block: 56px; }
.founder-copy { max-width: min(46%, 540px); color: #1c1f24; }
.founder p { margin: 18px 0 26px; }

/* 유지보수 띠 */
.service-band { position: relative; padding-block: clamp(64px, 7.500vw, 112px); text-align: center; color: var(--white); background: url('/images/maintenance.jpg') center / cover no-repeat var(--ink); }
.service-band::before { content: ""; position: absolute; inset: 0; background: rgba(21, 50, 92, .84); }
.service-band .wrap { position: relative; max-width: 960px; }
.service-band h2 { font-size: clamp(30px, 3.400vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.service-band p { margin: 18px 0 28px; font-weight: 500; }

/* 소식·인증서 */
.updates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(48px, 6vw, 88px); }
.news-list { border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 18px 0; transition: color .2s; }
.news-list a:hover { color: var(--blue-deep); }
.news-list strong { font-weight: 600; }
.news-list time, .cert-grid time, .post-head time { flex: none; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-list.large a { padding: 24px 0; font-size: 18px; }
.cert-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-top: 2px solid var(--ink); padding-top: 20px; }
.cert-row img, .cert-grid img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: 6px; transition: border-color .2s; }
.cert-row a:hover img, .cert-grid a:hover img { border-color: var(--blue-deep); }
.cert-row span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(28px, 3.500vw, 48px) clamp(20px, 2.500vw, 36px); }
.cert-grid strong { display: block; margin-top: 14px; font-weight: 600; line-height: 1.5; }

/* 하위 페이지 상단 */
.band { display: flex; align-items: flex-end; min-height: clamp(280px, 28vw, 420px); padding-top: 48px; background: var(--band) center / cover no-repeat var(--ink); }
.band-box { width: min(100%, 520px); padding: clamp(22px, 2.600vw, 34px); color: var(--white); background: var(--blue-box); }
.band h1 { font-size: clamp(30px, 3.100vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; }
.band p { margin-top: 12px; font-size: clamp(15px, 1.200vw, 17px); line-height: 1.6; }
.band-light { background-position: right center; background-color: #d9d9d9; }
.plain-head { padding-block: clamp(44px, 5vw, 72px) clamp(28px, 3.500vw, 44px); background: var(--paper); }

.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.subnav ul { display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--blue-deep); border-color: var(--blue-deep); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(20px, 4vw, 64px); }
.split > .eyebrow { padding-top: 4px; font-size: 16px; }
.split > div > p:first-child { font-size: clamp(18px, 1.500vw, 20px); line-height: 1.75; color: var(--ink); }
.prose > p + p { margin-top: 1.1em; }
.prose img:not(.sign) { margin-block: 32px; }
.sign { margin-top: 48px; max-height: 80px; width: auto; }

.facts { border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); }

/* 연혁 */
.timeline { display: grid; gap: clamp(48px, 6vw, 80px); }
.era { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(20px, 4vw, 64px); align-items: start; }
.era h2 { color: var(--blue-deep); position: sticky; top: calc(var(--header-h) + 76px); }
.era dl { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.era dl:first-child { border-top: 2px solid var(--ink); }
.era dt { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.5; }

/* 제품 */
.products { display: grid; gap: 20px; }
.products > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--white); scroll-margin-top: calc(var(--header-h) + 70px); }
.products > li:target { box-shadow: 0 0 0 2px var(--blue-deep); }
.product-img { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); min-height: 240px; }
.product-img img { max-height: 300px; width: auto; object-fit: contain; }
.product-info { padding: clamp(24px, 3vw, 44px); }
.product-info h3 { font-size: clamp(21px, 1.800vw, 26px); font-weight: 700; color: var(--blue-deep); line-height: 1.35; margin-bottom: 18px; }
.specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.65; }
.specs dt { font-weight: 700; color: var(--ink); }

.since { margin-top: 40px; font-size: 22px; font-weight: 700; color: var(--blue-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.two-col h4 { padding-bottom: 8px; margin-bottom: 12px; font-size: 16px; color: var(--ink); border-bottom: 2px solid var(--ink); }
.network-map { background: var(--white); }
.map { display: block; width: 100%; height: clamp(320px, 42vw, 520px); border: 0; }

/* 게시글 */
.post-head { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 2px solid var(--ink); }
.post-head time { display: block; margin-top: 16px; }
.post .display { font-size: clamp(26px, 2.600vw, 36px); }
.post-nav { margin: 56px 0 32px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-nav a:hover { color: var(--blue-deep); }
.post-nav span { flex: none; font-size: 15px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 48px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; font-size: 15px; }
.pager a[aria-current] { background: var(--blue-deep); color: var(--white); }

/* 하단 */
.footer { font-size: 15px; line-height: 1.7; color: #c3cfdd; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 5vw, 72px); }
.footer .logo { display: inline-block; padding: 12px 14px; background: var(--white); }
.footer .logo img { width: 150px; }
.footer address { margin-top: 20px; }
.footer h2 { margin-bottom: 14px; font-size: 16px; font-weight: 700; color: var(--white); }
.footer li + li { margin-top: 6px; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { font-size: 14px; background: #0d1a2c; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 14px; }

.test-flag { position: fixed; z-index: 90; left: 10px; bottom: 10px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: var(--white); background: #a34f33; pointer-events: none; }

/* 좁은 PC·태블릿: 가로 메뉴를 넣을 수 없으면 전체 메뉴로 바꾼다 */
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.utility > a, .gnav { display: none; }
	.header-side { margin-left: auto; }
	.burger { display: block; }
	.logo img { width: 150px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.biz-grid { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.stats li:nth-child(odd) { border-left: 0; }
	.founder-copy { max-width: 58%; }
	.products > li { grid-template-columns: 1fr; }
}

/* 모바일 */
@media (max-width: 680px) {
	:root { --header-h: 64px; }
	body { font-size: 16px; }
	.header > .wrap { gap: 12px; }
	.logo img { width: 126px; }
	.hero { height: auto; min-height: 560px; display: flex; flex-direction: column; }
	.hero-inner { padding: 0; order: 1; }
	.hero-box { width: 100%; }
	.hero-art { min-height: 0; height: 100%; }
	.hero-slides { top: auto; height: 220px; }
	.hero-dots { bottom: 6px; }
	.biz-grid, .slot-grid, .two-col { grid-template-columns: 1fr; }
	.about-media .slot-img { padding: 14px 14px 54px; }
	.founder { display: block; padding-top: 58vw; background-size: auto 62vw; background-position: 76% top; background-color: #e8e8e8; }
	.founder .wrap { padding-block: 32px 48px; }
	.founder-copy { max-width: none; }
	.band-light { background-position: 60% center; }
	.split, .era { grid-template-columns: 1fr; }
	.era h2 { position: static; }
	.era dl { grid-template-columns: 72px 1fr; }
	.facts > div { grid-template-columns: 1fr; gap: 4px; }
	.news-list a { flex-direction: column; gap: 4px; }
	.cert-row { grid-template-columns: repeat(2, 1fr); }
	.specs > div { grid-template-columns: 84px 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
