/* 신일콘베어 홈페이지 공통 스타일 */
:root {
  --ink: #1e252d;
  --steel: #56616b;
  --line: #d5dade;
  --zinc: #eef1f3;
  --white: #ffffff;
  --signal: #cf1f29;
  --signal-dark: #a8161e;
  --wrap: 1120px;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { width: 150px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); }
.nav .btn { color: var(--white); }
.nav .btn:hover { color: var(--white); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 15px; cursor: pointer; }

/* 버튼 */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  background: var(--signal); color: var(--white); padding: 12px 22px; border-radius: 4px; border: 0; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--signal-dark); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* 메인 히어로 */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.035em; }
.hero .lead { font-size: 19px; color: var(--steel); margin: 24px 0 32px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .tel { margin-top: 20px; color: var(--steel); font-size: 16px; }
.hero .tel a, .hero .tel strong { font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; border-radius: 2px; }
.hero-drawing { background: var(--zinc); padding: 28px 20px; border-top: 2px solid var(--ink); }

/* 섹션 */
.section { padding: 80px 0; }
.section.alt { background: var(--zinc); }
.section-head { margin-bottom: 36px; max-width: 40em; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--steel); margin-top: 12px; }

/* 치수선: 제목 아래 측정선 모티프 */
.dim { position: relative; height: 14px; margin-top: 14px; max-width: 220px; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1.5px solid var(--ink); }
.dim::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }

/* 제품 카탈로그 */
.cat + .cat { margin-top: 48px; }
.cat h3 { font-size: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 20px 20px 24px 0; text-decoration: none; height: 100%; }
.cat-list li:not(:nth-child(3n+1)) a { padding-left: 20px; border-left: 1px solid var(--line); }
.cat-list img { width: 100%; max-width: 300px; mix-blend-mode: multiply; }
.cat-list strong { font-size: 18px; margin-top: 8px; }
.cat-list span { color: var(--steel); font-size: 15px; line-height: 1.6; }
.cat-list a:hover strong { color: var(--signal); }
.section.alt .cat-list img { background: var(--white); }

/* 주문 순서 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; padding: 20px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 32px; font-weight: 700; color: var(--signal); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--steel); font-size: 15px; }

/* 설비 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
.facts strong { font-size: 17px; }
.facts span { color: var(--steel); }

/* 연락 밴드 */
.contact-band { background: var(--ink); color: var(--white); padding: 64px 0; }
.contact-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-band h2 { font-size: clamp(26px, 3.4vw, 36px); }
.contact-band p { color: #c3cad1; margin-top: 12px; }
.contact-band dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-variant-numeric: tabular-nums; }
.contact-band dt { color: #9aa4ae; }
.contact-band dd { margin: 0; font-weight: 500; }
.contact-band dd a { text-decoration: none; }
.contact-band .btn { margin-top: 24px; }

/* 하위 페이지 머리 */
.page-head { border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.crumbs { font-size: 14px; color: var(--steel); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-head h1 small { display: block; font-size: 16px; font-weight: 500; color: var(--steel); letter-spacing: 0; margin-top: 8px; }
.page-head .lead { color: var(--steel); font-size: 18px; margin-top: 18px; max-width: 40em; }

/* 제품 상세 */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
.product-top figure { margin: 0; background: var(--zinc); padding: 32px; display: flex; justify-content: center; }
.product-top figure img { mix-blend-mode: multiply; width: 100%; max-width: 420px; }
.product-top ul { margin: 0 0 24px; padding-left: 1.2em; }
.product-top li { margin-bottom: 6px; }
.prose h2 { font-size: 24px; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.note { color: var(--steel); font-size: 15px; }
.drawings { display: grid; gap: 24px; }
.drawings figure { margin: 0; border: 1px solid var(--line); padding: 16px; background: var(--white); }
.drawings img { margin: 0 auto; }
.quote-box { border-top: 2px solid var(--ink); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.quote-box p { margin: 0; max-width: 34em; }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.related a { text-decoration: none; color: var(--steel); }
.related a:hover { color: var(--signal); }

/* 회사소개 */
.about-photo { margin: 0; }
.about-photo img { width: 100%; filter: grayscale(1); }
.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.site-card h3 { font-size: 20px; margin-bottom: 8px; }
.site-card p { color: var(--steel); margin-bottom: 8px; }
.site-card a { font-weight: 500; }

/* 견적문의 폼 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 500; font-size: 16px; }
label .req { color: var(--signal); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #b8c0c7; border-radius: 4px; padding: 11px 12px; background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }
.hint { font-size: 14px; color: var(--steel); }
.consent { grid-column: 1 / -1; background: var(--zinc); padding: 16px 18px; font-size: 14px; color: var(--steel); }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); margin-top: 10px; }
.consent input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.contact-aside { border-top: 2px solid var(--ink); padding-top: 18px; }
.contact-aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.contact-aside dt { color: var(--steel); }
.contact-aside dd { margin: 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 48px 0 80px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--steel); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; }
.site-footer img { width: 130px; filter: grayscale(1); opacity: 0.8; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { text-decoration: none; }

/* 모바일 */
@media (max-width: 900px) {
  .hero .wrap, .split, .contact-band .wrap, .product-top, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .cat-list { grid-template-columns: 1fr 1fr; }
  .cat-list li a { padding-left: 0 !important; border-left: 0 !important; padding-right: 16px; }
  .cat-list li:nth-child(2n) a { padding-left: 16px !important; border-left: 1px solid var(--line) !important; padding-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 20px; }
  .sites { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--zinc); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .product-top figure { padding: 20px; }
}
@media (max-width: 480px) {
  .cat-list { grid-template-columns: 1fr; }
  .cat-list li a, .cat-list li:nth-child(2n) a { padding-left: 0 !important; border-left: 0 !important; padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
