/* 중원산업 홈페이지 v4 (2026-10-08)
   흰 바탕 · Pretendard 1종 · 메뉴 5개 · 전화번호. 사진 전 단계라 글자만 둔다.
   그라데이션·그림자·둥근 모서리(2px 초과)·아이콘·애니메이션 없음. */

:root {
  --text: #222222;
  --muted: #6B6B6B;
  --line: #E5E5E5;
  --green: #2F5D3A;
  --band: #F5F7F4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--text);
  background: #FFFFFF;
  word-break: keep-all;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt, table, figure { margin: 0; }
h1, h2 { font-weight: 700; line-height: 1.35; }
h3, h4 { font-weight: 600; line-height: 1.45; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

/* ---------- 헤더 ---------- */

.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 14px;
}
.brand {
  text-decoration: none;
  color: var(--text);
  line-height: 1.2;
}
.brand:hover { text-decoration: none; }
.brand-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.brand-hanja {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.header-tel {
  text-align: right;
  line-height: 1.2;
}
.header-tel a {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.header-tel span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.nav a {
  display: block;
  padding: 10px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--green); }
.nav a.on { color: var(--green); border-bottom-color: var(--green); }

/* ---------- 히어로 (홈) ---------- */

.hero {
  background: var(--band);
  padding: 72px 0;
}
/* 사진 오면 <section class="hero has-photo">로 class 추가. 파일: /assets/photo-factory.jpg */
.hero.has-photo {
  background-image: url(/assets/photo-factory.jpg);
  background-size: cover;
  background-position: center;
}
.hero h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  max-width: 760px;
}
.hero-lead {
  margin-top: 20px;
  max-width: 640px;
  font-size: 17px;
}
.hero-contact {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-tel {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
}

/* ---------- 섹션 ---------- */

.section { padding: 64px 0; }
.section + .section { padding-top: 0; }

.section h2,
.page-body h2 {
  font-size: 24px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  position: relative;
}
.section h2::after,
.page-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--green);
}

.page-body h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.page-body h3:first-child { margin-top: 0; }

.lead { max-width: 760px; }
p + p { margin-top: 1em; }
.more { margin-top: 20px; }

/* 사진 자리. 사진 오면 hidden을 떼고 <img>로 교체 */
.photo[hidden] { display: none; }
.photo { margin-bottom: 16px; }
.photo img { width: 100%; }

/* ---------- 제품 3열 ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.products h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.products p { color: var(--text); }
.products .more { margin-top: 12px; }

/* ---------- 페이지 머리 (내부 페이지) ---------- */

.page-head {
  padding: 48px 0 0;
}
.page-head h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
}
.anchors {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.anchors a { color: var(--muted); text-decoration: none; }
.anchors a:hover { color: var(--green); text-decoration: underline; }

.page-body { padding: 48px 0 64px; }
.page-body section + section { margin-top: 64px; }

/* ---------- 표 ---------- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.tbl th,
.tbl td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tbl tr:first-child th,
.tbl tr:first-child td { border-top: 1px solid var(--line); }
.tbl th {
  font-weight: 600;
  color: var(--muted);
  width: 180px;
  padding-right: 24px;
  white-space: nowrap;
}
.tbl thead th { color: var(--muted); }
.tbl-wide th { width: 260px; white-space: normal; }
.tbl.cols th { width: auto; }
.tbl.cols td.w { width: 180px; }

/* ---------- 연혁 ---------- */

.history {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 0;
}
.history dt,
.history dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history dt { font-weight: 700; }
.history dt:first-of-type,
.history dd:first-of-type { border-top: 1px solid var(--line); }

/* ---------- 목록 ---------- */

.steps {
  margin: 0;
  padding-left: 1.4em;
}
.steps li { padding: 4px 0; }
.steps li strong { font-weight: 600; }
.steps li + li { margin-top: 4px; }

ul.plain {
  margin: 0;
  padding-left: 1.2em;
}

/* ---------- 인사말 ---------- */

.greeting { max-width: 760px; }
.greeting .sign {
  margin-top: 28px;
  font-weight: 600;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn:hover { background: #264B2F; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- 홈 연락 블록 ---------- */

.contact-brief { max-width: 760px; }
.contact-brief .tel-big {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
  margin: 6px 0 4px;
}

/* ---------- 오시는 길·문의 ---------- */

.map {
  border: 1px solid var(--line);
  line-height: 0;
}
.map iframe { width: 100%; height: 400px; border: 0; display: block; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-side .tel-big {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
  margin: 6px 0 4px;
}

.quote-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .req {
  font-weight: 500;
  font-size: 12px;
  color: var(--green);
  margin-left: 4px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid #C9C9C9;
  border-radius: 2px;
}
.field textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: -1px;
  border-color: var(--green);
}
.field input::placeholder,
.field textarea::placeholder { color: #9A9A9A; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-check label { margin: 0; font-weight: 500; }
.field-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.form-msg {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1.5em;
}
.form-msg.is-ok { color: var(--green); }
.form-msg.is-error { color: #B3261E; }

/* ---------- 푸터 ---------- */

.footer {
  background: var(--band);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.footer p + p { margin-top: 0; }
.footer .copy { margin-top: 10px; }

/* ---------- 모바일 ---------- */

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-top { padding-top: 16px; padding-bottom: 10px; align-items: center; }
  .brand-name { font-size: 20px; }
  .brand-hanja { display: none; }
  .header-tel span { display: none; }
  .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav ul { gap: 20px; }
  .nav a { font-size: 14px; padding: 8px 0 10px; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .hero-contact { margin-top: 24px; gap: 16px; }
  .hero-tel { font-size: 24px; }

  .section { padding: 48px 0; }
  .section h2, .page-body h2 { font-size: 22px; margin-bottom: 22px; }
  .page-head { padding-top: 36px; }
  .page-head h1 { font-size: 26px; }
  .anchors { gap: 16px; font-size: 14px; }
  .page-body { padding: 36px 0 48px; }
  .page-body section + section { margin-top: 48px; }

  .tbl th { width: 110px; padding-right: 12px; white-space: normal; }
  .tbl-wide th { width: 130px; }
  .history { grid-template-columns: 84px 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .map iframe { height: 300px; }
  .footer { padding: 24px 0; font-size: 12px; }
}
