/* JNC Composites Lab — 머리말 · 꼬리말(모든 화면)과 첫 화면(.jn-home). 공통 화면 스타일은 front.css. */

:root {
    --jn-ink: #12213a;          /* 제목 · 로고 */
    --jn-body: #3d4757;         /* 본문 */
    --jn-mute: #6b7686;
    --jn-line: #e3e7ee;
    --jn-bg: #fff;
    --jn-soft: #f3f6fa;         /* 연한 섹션 배경 */
    --jn-accent: #2f5f93;       /* 강조 파랑 */
    --jn-sky: #9dc9f2;          /* 히어로 강조 */
    --jn-panel: #4a6587;        /* About 아이콘 판 */
    --jn-foot: #1d2838;
    --jn-head-h: 76px;
    --jn-wrap: 1280px;
    --jn-font: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

body.jn-body { font-family: var(--jn-font); letter-spacing: -0.01em; }
.jn-wrap { max-width: var(--jn-wrap); margin: 0 auto; padding: 0 24px; }

/* ── 머리말 ─────────────────────────────── */
.jn-head { position: sticky; top: 0; z-index: 1030; background: var(--jn-bg); border-bottom: 1px solid var(--jn-line); transition: box-shadow .2s; }
.jn-head.is-stuck { box-shadow: 0 6px 20px rgba(18, 33, 58, .06); }
.jn-head__in { max-width: var(--jn-wrap); margin: 0 auto; padding: 0 24px; height: var(--jn-head-h); display: flex; align-items: center; gap: 32px; }

.jn-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--jn-ink); text-decoration: none; flex: none; }
.jn-logo:hover { color: var(--jn-ink); }
.jn-logo__mark { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.jn-logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.jn-logo__txt strong { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.jn-logo__txt small { font-size: 10.5px; color: var(--jn-mute); letter-spacing: .01em; margin-top: 2px; }

.jn-nav { flex: 1; display: flex; justify-content: center; }
.jn-nav__list { display: flex; gap: clamp(20px, 3.2vw, 52px); margin: 0; padding: 0; list-style: none; }
.jn-nav__it { position: relative; }
.jn-nav__a { display: block; padding: 27px 0; font-size: 16px; font-weight: 600; color: var(--jn-ink); text-decoration: none; position: relative; white-space: nowrap; }
.jn-nav__a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--jn-accent); transform: scaleX(0); transition: transform .2s; }
.jn-nav__it:hover > .jn-nav__a, .jn-nav__a.is-active { color: var(--jn-accent); }
.jn-nav__it:hover > .jn-nav__a::after, .jn-nav__a.is-active::after { transform: scaleX(1); }
.jn-nav__sub { position: absolute; left: 50%; top: 100%; min-width: 160px; transform: translate(-50%, 6px); padding: 10px 0; background: var(--jn-bg); border: 1px solid var(--jn-line); box-shadow: 0 12px 28px rgba(18, 33, 58, .1); opacity: 0; visibility: hidden; transition: .18s; }
.jn-nav__it:hover > .jn-nav__sub, .jn-nav__it:focus-within > .jn-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.jn-nav__sub a { display: block; padding: 8px 20px; font-size: 14px; color: var(--jn-body); text-decoration: none; white-space: nowrap; }
.jn-nav__sub a:hover { color: var(--jn-accent); background: var(--jn-soft); }
.jn-nav__sub a.kc-menu-d3 { padding-left: 32px; font-size: 13px; }

.jn-util { display: flex; align-items: center; gap: 18px; flex: none; }
.jn-lang { display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.jn-lang > * { color: var(--jn-mute); text-decoration: none; padding: 0 9px; line-height: 1; }
.jn-lang > * + * { border-left: 1px solid var(--jn-line); }
.jn-lang [aria-current] { color: var(--jn-ink); }
.jn-lang span { opacity: .55; cursor: default; }
.jn-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--jn-ink); text-decoration: none; }
.jn-ico:hover { color: var(--jn-accent); }
.jn-burger svg { width: 26px; height: 26px; }
.jn-burger__dot { position: absolute; top: 6px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; }

/* ── 꼬리말 ─────────────────────────────── */
.jn-foot { background: var(--jn-foot); color: #aeb8c6; padding: 34px 0 28px; margin-top: 0; font-size: 13px; }
.jn-foot__top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.jn-logo--foot, .jn-logo--foot:hover { color: #fff; }
.jn-logo--foot .jn-logo__mark { font-size: 24px; }
.jn-logo--foot .jn-logo__txt strong { font-size: 12px; }
.jn-logo--foot .jn-logo__txt small { color: #8794a6; font-size: 9.5px; }
.jn-foot__nav { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; }
.jn-foot__nav a { color: #c9d1dc; text-decoration: none; padding: 2px 18px; line-height: 1; font-size: 13px; }
.jn-foot__nav a + a { border-left: 1px solid #3a4658; }
.jn-foot__nav a:hover, .jn-foot__util a:hover { color: #fff; }
.jn-foot__util { display: flex; align-items: center; gap: 18px; }
.jn-foot__util a { color: #aeb8c6; text-decoration: none; font-size: 12.5px; }
.jn-foot__util a.is-strong { color: #e3e8ef; font-weight: 600; }
.jn-foot__mail { display: inline-flex; color: #e3e8ef !important; }
.jn-foot__info { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: #8794a6; }
.jn-foot__copy { margin: 14px 0 0; font-size: 12px; color: #7f8b9c; }

/* 첫 화면에서는 본문 칸을 화면 너비로 쓴다 */
body:has(.jn-home) .kc-main { max-width: none; padding: 0; margin: 0; min-height: 0; }
body:has(.jn-home) .kc-main > .alert { max-width: var(--jn-wrap); margin: 16px auto 0; }

/* ── 공통 조각 ─────────────────────────── */
.jn-home { color: var(--jn-body); }
.jn-home a { text-decoration: none; }
.jn-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--jn-accent); text-transform: uppercase; }
.jn-eyebrow--light { color: #e6edf6; letter-spacing: .2em; }
.jn-eyebrow--mute { color: var(--jn-mute); font-weight: 500; }
.jn-arr { transition: transform .2s; }
a:hover > .jn-arr, a:hover .jn-arr { transform: translateX(5px); }
.jn-banner { padding-top: 40px; }

/* ── 히어로 ─────────────────────────────── */
.jn-hero { position: relative; height: clamp(520px, 44vw, 700px); overflow: hidden; background: #0b121c; color: #fff; }
.jn-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.jn-slide.is-on { opacity: 1; }
.jn-slide img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.jn-slide.is-on img { transform: scale(1); }
.jn-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #0b121c 0%, #0b121c 26%, rgba(11, 18, 28, .82) 40%, rgba(11, 18, 28, .25) 62%, rgba(11, 18, 28, 0) 80%),
                linear-gradient(0deg, rgba(11, 18, 28, .45), rgba(11, 18, 28, 0) 35%); }
.jn-hero__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.jn-hero__in > * { max-width: 620px; }
.jn-hero__in .jn-eyebrow { margin-bottom: 18px; font-size: 14px; }
.jn-hero__t { grid-area: 1 / 1; margin: 0; font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: #fff; display: none; }
.jn-hero__t.is-on { display: block; animation: jn-up .8s ease both; }
.jn-hero__t em { font-style: normal; color: var(--jn-sky); }
.jn-hero__sub { margin: 22px 0 0; font-size: clamp(15px, 1.25vw, 19px); color: #e6edf6; }
.jn-hero__sub i { font-style: normal; margin: 0 .55em; opacity: .7; }
.jn-hero__desc { position: relative; margin: 46px 0 0; padding-left: 62px; font-size: 14px; line-height: 1.85; color: #cdd6e2; }
.jn-hero__desc::before { content: ''; position: absolute; left: 0; top: .9em; width: 40px; height: 1px; background: #cdd6e2; }
.jn-hero__cta { display: inline-flex; align-items: center; gap: 22px; margin-top: 56px; font-size: 15px; font-weight: 600; color: #fff !important; }
.jn-pager { position: absolute; z-index: 3; right: max(40px, calc((100vw - var(--jn-wrap)) / 2 - 20px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jn-pager button { padding: 2px 0; border: 0; background: none; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.jn-pager button[aria-current], .jn-pager button:hover { color: #fff; }
.jn-pager button[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.jn-pager__bar { width: 1px; height: 70px; margin-top: 8px; background: rgba(255, 255, 255, .25); position: relative; }
.jn-pager__bar i { position: absolute; left: 0; top: 0; width: 1px; height: 25%; background: #fff; transform: translateY(calc(var(--jn-cur, 0) * 100%)); transition: transform .5s; }
.jn-hero__btns { position: absolute; z-index: 3; right: max(32px, calc((100vw - var(--jn-wrap)) / 2 - 28px)); bottom: 40px; display: flex; gap: 6px; }
.jn-hero__btns button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: #fff; opacity: .85; }
.jn-hero__btns button:hover { opacity: 1; }
@keyframes jn-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── 섹션 머리 ─────────────────────────── */
.jn-sec { padding: 96px 0 100px; background: var(--jn-bg); }
.jn-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.jn-sec__t { margin: 0; font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; color: var(--jn-ink); letter-spacing: -0.03em; }
.jn-sec__lead { position: relative; margin: 0; padding-left: 74px; max-width: 520px; font-size: 14px; line-height: 1.8; color: var(--jn-body); }
.jn-sec__lead::before { content: ''; position: absolute; left: 0; top: .9em; width: 50px; height: 1px; background: var(--jn-mute); }

/* ── 주요 기술서비스 ───────────────────── */
.jn-svc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jn-svc__card { display: flex; flex-direction: column; background: var(--jn-bg); border: 1px solid var(--jn-line); color: var(--jn-body); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.jn-svc__card:hover { border-color: var(--jn-accent); box-shadow: 0 16px 32px rgba(18, 33, 58, .08); transform: translateY(-4px); color: var(--jn-body); }
.jn-svc__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.jn-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.jn-svc__card:hover .jn-svc__img img { transform: scale(1.05); }
.jn-svc__body { flex: 1; display: flex; flex-direction: column; padding: 24px 22px 22px; }
.jn-svc__no { font-size: 13px; font-weight: 600; color: var(--jn-mute); }
.jn-svc__t { margin: 6px 0 18px; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--jn-ink); letter-spacing: -0.02em; }
.jn-svc__d { flex: 1; font-size: 13.5px; line-height: 1.75; }
.jn-more { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--jn-ink); }
a:hover .jn-more { color: var(--jn-accent); }

/* ── About ─────────────────────────────── */
.jn-about { background: var(--jn-soft); padding: 32px 0; overflow: hidden; }
.jn-about__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 300px; align-items: stretch; min-height: 400px; }
.jn-about__txt { position: relative; z-index: 1; padding: 36px 0; }
.jn-about__t { margin: 0 0 40px; font-size: clamp(28px, 2.4vw, 36px); font-weight: 800; color: var(--jn-ink); letter-spacing: -0.02em; }
.jn-about__lead { margin: 0 0 30px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.6; color: var(--jn-ink); letter-spacing: -0.03em; }
.jn-about__lead em { font-style: normal; color: var(--jn-accent); font-weight: 600; }
.jn-about__lead b { font-weight: 700; }
.jn-about__desc { margin: 0 0 34px; font-size: 14px; line-height: 1.85; }
.jn-btn-line { display: inline-flex; align-items: center; gap: 18px; padding: 10px 20px; border: 1px solid var(--jn-ink); font-size: 13.5px; font-weight: 500; color: var(--jn-ink); transition: background .2s, color .2s; }
.jn-btn-line:hover { background: var(--jn-ink); color: var(--jn-bg); }
.jn-about__img { position: relative; margin-left: -60px; }
.jn-about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jn-about__img::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 30%; z-index: 1; background: linear-gradient(90deg, var(--jn-soft), transparent); }
.jn-pillars { margin: 8px 0; padding: 34px 32px; list-style: none; background: var(--jn-panel); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.jn-pillars li { display: flex; align-items: center; gap: 20px; }
.jn-pillars svg { flex: none; width: 34px; height: 34px; }
.jn-pillars strong { display: block; font-size: 15px; font-weight: 600; }
.jn-pillars small { display: block; margin-top: 2px; font-size: 12px; color: #d3dceb; }

/* ── 주요 적용 분야 ───────────────────── */
.jn-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.jn-app { display: block; border: 1px solid var(--jn-line); background: var(--jn-bg); color: var(--jn-ink); transition: border-color .2s, box-shadow .2s; }
a.jn-app:hover { border-color: var(--jn-accent); box-shadow: 0 12px 26px rgba(18, 33, 58, .08); color: var(--jn-ink); }
.jn-app__img { display: block; aspect-ratio: 5 / 2; overflow: hidden; }
.jn-app__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.jn-app:hover .jn-app__img img { transform: scale(1.05); }
.jn-app__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 16px; }
.jn-app__body strong { display: block; font-size: 15px; font-weight: 700; }
.jn-app__body small { display: block; margin-top: 2px; font-size: 12px; color: var(--jn-mute); }
.jn-app__body svg { flex: none; transition: transform .2s; }
a.jn-app:hover .jn-app__body svg { transform: translateX(4px); color: var(--jn-accent); }

/* ── 새 소식 ───────────────────────────── */
.jn-news { background: var(--jn-soft); padding: 26px 0; }
.jn-news__in { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 32px; }
.jn-news__h .jn-eyebrow { margin-bottom: 6px; font-size: 12px; }
.jn-news__h h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--jn-ink); }
.jn-news__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.jn-news__list a { display: flex; gap: 22px; font-size: 13px; color: var(--jn-body); }
.jn-news__list a:hover span { color: var(--jn-accent); text-decoration: underline; text-underline-offset: 3px; }
.jn-news__list time { flex: none; color: var(--jn-mute); font-variant-numeric: tabular-nums; }
.jn-news__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jn-news__empty { font-size: 13px; color: var(--jn-mute); }
.jn-news__all { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--jn-body); }
.jn-news__all:hover { color: var(--jn-accent); }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 1199.98px) {
    .jn-svc, .jn-apps { grid-template-columns: repeat(3, 1fr); }
    .jn-about__in { grid-template-columns: 1fr 280px; }
    .jn-about__img { display: none; }
}
@media (max-width: 991.98px) {
    :root { --jn-head-h: 64px; }
    .jn-nav { display: none; }
    .jn-util { margin-left: auto; }
    .jn-logo__mark { font-size: 28px; }
    .jn-hero { height: auto; min-height: 560px; }
    .jn-hero__in { padding-top: 72px; padding-bottom: 96px; }
    .jn-slide img { width: 100%; }
    .jn-hero::before { background: linear-gradient(90deg, rgba(11, 18, 28, .92), rgba(11, 18, 28, .55)); }
    .jn-pager { flex-direction: row; top: auto; bottom: 46px; left: 24px; right: auto; transform: none; }
    .jn-pager__bar { display: none; }
    .jn-sec { padding: 72px 0; }
    .jn-sec__head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .jn-about__in { grid-template-columns: 1fr; }
    .jn-pillars { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 24px; }
    .jn-news__in { grid-template-columns: 1fr; gap: 14px; }
    .jn-foot__top { flex-direction: column; align-items: flex-start; gap: 18px; }
    .jn-foot__nav { justify-content: flex-start; }
    .jn-foot__nav a:first-child { padding-left: 0; }
}
@media (max-width: 767.98px) {
    .jn-svc, .jn-apps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jn-svc__body { padding: 18px 16px; }
    .jn-svc__t { font-size: 16px; }
    .jn-sec__lead { padding-left: 0; }
    .jn-sec__lead::before { display: none; }
    .jn-sec__lead br, .jn-hero__desc br { display: none; }
    .jn-hero__desc { padding-left: 0; margin-top: 30px; }
    .jn-hero__desc::before { display: none; }
    .jn-hero__cta { margin-top: 34px; }
    .jn-logo__txt small { display: none; }
    .jn-lang { display: none; }
}
@media (max-width: 479.98px) {
    .jn-svc, .jn-apps { grid-template-columns: 1fr; }
    .jn-pillars { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .jn-slide, .jn-slide img, .jn-hero__t.is-on { transition: none; animation: none; }
}
