/* 제일산업운반기계 */
:root {
  --red: #b5121b;
  --red-d: #8e0d14;
  --ink: #333;
  --text: #555;
  --muted: #888;
  --line: #e2e2e2;
  --bg2: #f5f5f5;
  --w: 1000px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 15px; line-height: 1.65; color: var(--text); background: #fff; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; border: 0; vertical-align: top; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- 머리 ---------- */
.header { border-top: 3px solid var(--red); background: #fff; position: relative; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 118px; }
.logo img { width: 246px; }
.gnb > ul { display: flex; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a { display: block; padding: 0 30px; line-height: 118px; font-size: 17px; font-weight: 500; color: #444; }
.gnb > ul > li:last-child > a { padding-right: 0; }
.gnb > ul > li.on > a, .gnb > ul > li:hover > a { color: var(--red); }
.gnb > ul > li > a::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 30px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.gnb > ul > li:last-child > a::after { right: 0; }
.gnb > ul > li.on > a::after, .gnb > ul > li:hover > a::after { transform: scaleX(1); }
.gnb ul ul { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 170px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); padding: 8px 0; display: none; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.gnb > ul > li:hover ul, .gnb > ul > li:focus-within ul { display: block; }
.gnb ul ul a { display: block; padding: 7px 18px; font-size: 14px; color: #555; white-space: nowrap; }
.gnb ul ul a:hover { background: var(--bg2); color: var(--red); }
.nav-toggle { display: none; }

/* ---------- 메인 ---------- */
.hero { background: #1a1a1a url(/assets/img/main_bg.jpg) center -121px no-repeat; }
.hero-in { max-width: 960px; margin: 0 auto; }
.hero-in img { display: block; width: 100%; }
.home-cols { display: grid; grid-template-columns: 1fr 1.15fr 190px; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.hbox { min-width: 0; }
.hbox h2 { display: flex; align-items: baseline; justify-content: space-between; font-size: 19px; color: #333; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid #333; margin-bottom: 14px; }
.hbox .more, .home-works .more { font-size: 11px; color: #999; font-weight: 400; letter-spacing: .05em; }
.nlist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #ddd; font-size: 14px; }
.nlist a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist span { color: #aaa; font-size: 12px; flex: none; }
.h-tel { margin-top: 22px; }
.h-tel .t1 { font-weight: 700; color: #333; }
.h-tel .t1 small { font-weight: 400; color: #999; font-size: 12px; margin-left: 6px; }
.h-tel .t2 { font-size: 21px; color: #444; margin-top: 2px; }
.h-tel .t2 a, .side-tel a { color: var(--red); font-weight: 700; }
.h-tel .t2 .sp { margin-left: 0; }
.h-tel .t2 .fx { display: block; font-size: 17px; color: #666; }
.h-tel .t2 span { font-size: 15px; color: #777; }
.h-tel .t3 { font-size: 12px; color: #888; }
.hp-slider { position: relative; overflow: hidden; }
.hp-track { display: flex; transition: transform .45s ease; }
.hp-item { flex: 0 0 50%; padding: 0 6px; }
.hp-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: #eee; border: 1px solid var(--line); }
.hp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hp-item:hover img { transform: scale(1.05); }
.hp-name { display: block; font-size: 14px; padding-top: 8px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-prev, .hp-next { position: absolute; top: 34%; width: 30px; height: 40px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.hp-prev { left: 6px; } .hp-next { right: 6px; }
.quick { display: grid; grid-template-columns: repeat(2, 79px); gap: 10px 12px; }
.home-works { background: var(--bg2); padding: 40px 0 50px; }
.home-works h2 { font-size: 21px; color: #333; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.home-works h2 small { font-size: 13px; color: #999; font-weight: 400; }
.home-works h2 .more { margin-left: auto; }

/* ---------- 서브 ---------- */
.sub-visual { background: #2a2a2a url(/assets/img/sub_bg.jpg) center -121px no-repeat; }
.sv-in { max-width: 960px; margin: 0 auto; }
.sv-in img { display: block; width: 100%; }
.sub-layout { display: flex; gap: 50px; padding-top: 30px; padding-bottom: 80px; align-items: flex-start; }
.side { flex: 0 0 201px; }
.side-title img { display: block; }
.side-menu li { border: 1px solid #d5d5d5; border-top: 0; }
.side-menu a { display: block; position: relative; padding: 10px 34px 10px 16px; font-size: 14px; color: #555; background: #fff; }
.side-menu a::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 30px; background: #eee; border-left: 1px solid #ddd; }
.side-menu a::before { content: ''; position: absolute; right: 12px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 5px solid #999; z-index: 1; }
.side-menu li.on a, .side-menu a:hover { background: var(--red); color: #fff; }
.side-menu li.on a::after, .side-menu a:hover::after { background: var(--red-d); border-color: var(--red-d); }
.side-menu li.on a::before, .side-menu a:hover::before { border-left-color: #fff; }
.side-tel { margin-top: 20px; border: 1px solid #d5d5d5; }
.side-tel .st-t { padding: 9px 14px; font-weight: 700; color: #333; font-size: 14px; border-bottom: 1px solid #e5e5e5; }
.side-tel .st-n { padding: 10px 14px; background: #eee; font-size: 17px; line-height: 1.5; }
.side-tel .st-n span { color: #777; font-size: 14px; display: inline-block; width: 34px; }
.side-tel .st-h { padding: 9px 14px; font-size: 12px; color: #777; }
.content { flex: 1; min-width: 0; }
.location { text-align: right; font-size: 12px; color: #999; margin-bottom: 4px; }
.location i { font-style: normal; margin: 0 4px; }
.location strong, .location a:last-child { color: var(--red); }
.content-title { display: inline-block; font-size: 28px; font-weight: 700; color: #333; letter-spacing: -.02em; padding-bottom: 8px; border-bottom: 2px solid #999; margin-bottom: 36px; }
.content-img { margin-bottom: 24px; }
.content-body { color: #555; }
.content-body h3 { font-size: 18px; color: #333; margin: 26px 0 8px; padding-left: 10px; border-left: 3px solid var(--red); }
.content-body p { margin: 0 0 10px; }
.content-body a { color: var(--red); text-decoration: underline; }
.content-body table { border-collapse: collapse; width: 100%; border-top: 2px solid #555; margin: 10px 0 16px; }
.content-body th, .content-body td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.content-body th { background: var(--bg2); color: #333; width: 120px; font-weight: 500; }
.content-body img { height: auto; }

/* 목록 */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: #888; }
.list-head b { color: var(--red); }
.search { display: flex; }
.search input { width: 170px; height: 34px; border: 1px solid #ccc; padding: 0 10px; font: inherit; font-size: 14px; border-radius: 0; }
.search button { height: 34px; border: 0; background: #555; color: #fff; padding: 0 14px; font: inherit; font-size: 13px; cursor: pointer; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.item-grid a { display: block; }
.ig-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; border: 1px solid var(--line); }
.ig-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-img em { font-style: normal; color: #bbb; font-size: 13px; }
.item-grid a:hover img { transform: scale(1.05); }
.ig-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: #444; line-height: 1.45; margin-top: 9px; }
.item-grid a:hover .ig-name { color: var(--red); }
.ig-sub { display: block; font-size: 12px; color: #aaa; margin-top: 3px; }
.board { width: 100%; border-collapse: collapse; border-top: 2px solid #555; font-size: 14px; }
.board th { background: var(--bg2); color: #333; font-weight: 500; padding: 11px 8px; border-bottom: 1px solid #ddd; }
.board td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.board .no, .board .dt { width: 90px; text-align: center; color: #999; }
.board .dt { width: 110px; }
.board .sj a { color: #444; }
.board .sj a:hover { color: var(--red); }
.clip { font-size: 12px; }
.empty { padding: 60px 0; text-align: center; color: #999; border-top: 2px solid #555; border-bottom: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager strong { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; font-size: 14px; color: #666; }
.pager strong { background: var(--red); border-color: var(--red); color: #fff; }
.pager a:hover { border-color: var(--red); color: var(--red); }

/* 글 보기 */
.post { border-top: 2px solid #555; }
.post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.post-head h4 { font-size: 18px; color: #333; font-weight: 500; }
.post-head span { flex: none; font-size: 13px; color: #999; }
.post-imgs { display: grid; gap: 14px; margin-bottom: 20px; justify-items: center; }
.post-imgs img { max-height: 900px; width: auto; }
.post-video video { width: 100%; max-height: 640px; background: #000; margin-bottom: 20px; }
.post-file { margin-bottom: 12px; }
.post-file a { display: inline-block; padding: 8px 14px; border: 1px solid #ccc; background: var(--bg2); font-size: 14px; }
.post-body { padding: 0 6px 24px; }
.iv-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; border-top: 1px solid #ccc; padding-top: 16px; margin-top: 10px; font-size: 14px; }
.iv-nav a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666; }
.iv-nav a small { color: #aaa; margin-right: 4px; }
.iv-nav a:last-child { text-align: right; }
.iv-nav .to-list { background: #555; color: #fff; padding: 8px 22px; text-align: center; }
.iv-nav .to-list:hover { background: var(--red); color: #fff; }

.notfound { padding: 100px 20px; text-align: center; }
.notfound h2 { font-size: 60px; color: var(--red); }
.notfound a { color: var(--red); text-decoration: underline; }

/* ---------- 바닥 ---------- */
.footer { background: #e5e5e5; padding: 30px 0; font-size: 12px; color: #777; }
.footer .wrap { display: flex; gap: 40px; align-items: center; }
.f-logo { width: 190px; flex: none; filter: grayscale(1); opacity: .55; mix-blend-mode: multiply; }
.f-info span { display: inline-block; margin-right: 12px; }
.f-info b { color: #555; font-weight: 700; margin-right: 3px; }
.f-copy { margin-top: 6px; color: #999; }

/* ---------- 태블릿·휴대폰 ---------- */
@media (max-width: 980px) {
  .gnb > ul > li > a { padding: 0 16px; font-size: 16px; }
  .gnb > ul > li > a::after { left: 16px; right: 16px; }
  .home-cols { grid-template-columns: 1fr 1fr; }
  .h-quick { grid-column: 1 / -1; }
  .quick { grid-template-columns: repeat(4, 79px); }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .header .wrap { height: 64px; }
  .logo img { width: 170px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; margin-right: -10px; }
  .nav-toggle span { display: block; height: 2px; background: #333; border-radius: 2px; transition: .2s; }
  .nav-toggle em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnb { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.12); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-open .gnb { display: block; }
  .gnb > ul { display: block; padding: 6px 0 14px; }
  .gnb > ul > li > a { line-height: 1.4; padding: 13px 20px 6px; font-weight: 700; color: #333; }
  .gnb > ul > li > a::after { display: none; }
  .gnb ul ul { display: flex !important; flex-wrap: wrap; position: static; transform: none; border: 0; box-shadow: none; padding: 0 12px 6px; min-width: 0; }
  .gnb ul ul a { padding: 5px 8px; font-size: 14px; color: #666; }
  .gnb ul ul a:hover { background: none; }
  .home-cols { grid-template-columns: 1fr; gap: 34px; padding-top: 28px; }
  .h-quick { grid-column: auto; }
  .quick { grid-template-columns: repeat(4, 1fr); justify-items: center; }
  .sub-layout { display: block; padding-top: 0; padding-bottom: 50px; }
  .side { margin: 0 -20px 22px; }
  .side-title, .side-tel { display: none; }
  .side-menu { display: flex; overflow-x: auto; background: #3a3a3a; padding: 0 10px; scrollbar-width: none; }
  .side-menu::-webkit-scrollbar { display: none; }
  .side-menu li { border: 0; flex: none; }
  .side-menu a { background: none; color: #ddd; padding: 12px 12px; }
  .side-menu a::after, .side-menu a::before { display: none; }
  .side-menu li.on a { background: none; color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); }
  .location { display: none; }
  .content-title { font-size: 23px; margin-bottom: 22px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .board .no { display: none; }
  .board .dt { width: 92px; font-size: 12px; }
  .search input { width: 130px; }
  .iv-nav { grid-template-columns: 1fr 1fr; }
  .iv-nav .to-list { grid-column: 1 / -1; grid-row: 1; }
  .footer .wrap { display: block; }
  .f-logo { width: 150px; margin-bottom: 12px; }
}
@media (max-width: 820px) { .hide-m { display: none; } .home-works h2 { font-size: 19px; } }
