:root {
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --stone: #2b2b2b;
  --accent: #e0562f;
  --accent-dark: #b8431f;
  --bg: #f5f4f2;
  --card-bg: #ffffff;
  --border: #e2e0dc;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 스크롤 스냅 속도는 CSS가 아니라 js/script.js 의 DURATION 값으로 제어됨(PC 전용) */
html { scroll-snap-type: none; }
@media (max-width: 640px) { html { scroll-behavior: smooth; } }

body {
  font-family: "Gowun Dodum", "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-size: 21px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, .btn-primary, .preview-link {
  font-family: "Do Hyeon", "Gowun Dodum", "Pretendard Variable", Pretendard, sans-serif;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; font-weight: 600; color: var(--ink-soft); margin-left: 2px; }

.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 19px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Slow zoom (Ken Burns) ---------- */
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-bg img {
  animation: slowZoom 20s ease-out forwards;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  scroll-snap-align: start;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg svg, .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,.5) 0%, rgba(26,26,26,.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
  width: 100%;
}
.eyebrow {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 53px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 21px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.page-banner .hero-bg img { object-fit: cover; object-position: center 35%; }
.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.page-banner h1 { font-size: 41px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Home preview sections (히어로처럼 사진 전체 + 검은 음영, 참고 사이트 스타일) ---------- */
.preview-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.preview-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 7%;
}
.preview-section.reverse .preview-content { text-align: right; }
.preview-eyebrow { font-size: 17px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; }
.preview-content h2 { font-size: 48px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 18px; color: #fff; }
.preview-content p { font-size: 19px; color: rgba(255,255,255,.82); line-height: 1.75; margin-bottom: 28px; max-width: 560px; }
.preview-section.reverse .preview-content p { margin-left: auto; }
.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  width: fit-content;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color .15s;
}
.preview-section.reverse .preview-link { margin-left: auto; }
.preview-link:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-desc { color: var(--ink); font-size: 23px; font-weight: 600; line-height: 1.6; margin-bottom: 40px; }

.section-about { background: var(--bg); }
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.subsection { margin-top: 56px; }
.subsection-title { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.subsection .panel { margin-top: 0; }
.panel > .subsection-title { padding-left: 24px; margin-bottom: 24px; }

.ceo-greeting p { font-size: 19px; color: var(--ink); line-height: 1.8; margin-bottom: 16px; }
.ceo-greeting p:last-child { margin-bottom: 0; }
.ceo-slogan { font-size: 23px; font-weight: 800; color: var(--accent-dark); margin-bottom: 28px !important; }
.ceo-name { text-align: right; font-size: 19px; }
.ceo-name strong { font-size: 22px; }

.info-table { display: flex; flex-direction: column; }
.info-table > div {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}
.info-table > div:last-child { border-bottom: none; padding-bottom: 0; }
.info-table dt { width: 104px; flex-shrink: 0; font-weight: 700; color: var(--ink-soft); }
.info-table dd { font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-date { width: 98px; flex-shrink: 0; font-weight: 800; color: var(--accent-dark); }
.timeline-desc { color: var(--ink); }

.location-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.location-panel h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; color: var(--accent-dark); }
.location-panel p { font-size: 19px; color: var(--ink-soft); margin-top: 2px; }
.location-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.location-bar-item { display: flex; gap: 14px; font-size: 16px; }
.location-bar-item strong { width: 96px; flex-shrink: 0; font-weight: 700; }
.location-bar-item span { color: var(--ink-soft); }
.location-map iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; display: block; }
.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
}
.map-link:hover { text-decoration: underline; }

/* ---------- Business cards ---------- */
.section-business { background: var(--card-bg); }
.card-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.card-icon { display: inline-flex; width: 48px; height: 48px; color: var(--accent-dark); margin-bottom: 20px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 19px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 사업영역 ---------- */
.pavement-title {
  display: inline-block;
  margin-top: 48px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(26,26,26,.25);
}
h3.pavement-title:first-of-type { margin-top: 8px; }
.pavement-title-lg { margin-top: 96px; }
.pavement-figure {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(26,26,26,.1);
}
.pavement-figure img { width: 100%; height: auto; display: block; }

/* 사진 대신 직접 그린 단면 다이어그램 (저작권 걱정 없는 자체 제작) */
.pavement-block { display: flex; gap: 32px; align-items: stretch; }
.pavement-visual {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(26,26,26,.18);
}
.pavement-layer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
/* 실측 두께 비율로 flex-grow 지정: 표층5 : 중층6 : 기층15 : 보조기층40 (동상방지층·노상은 미지정이라 자연스러운 비례로) */
.layer-surface { flex: 5; background: repeating-linear-gradient(135deg, #2b2b2b 0 8px, #1f1f1f 8px 16px); font-size: 12px; }
.layer-binder {
  flex: 6;
  background: #3a332c;
  background-image: radial-gradient(rgba(255,255,255,.08) 2px, transparent 3px);
  background-size: 18px 18px;
  font-size: 12px;
}
.layer-base {
  flex: 15;
  background: #8b8a82;
  background-image:
    radial-gradient(rgba(255,255,255,.35) 3px, transparent 4px),
    radial-gradient(rgba(26,26,26,.25) 3px, transparent 4px);
  background-size: 26px 26px, 34px 34px;
  background-position: 0 0, 14px 18px;
  color: #2b2b2b;
  text-shadow: 0 1px 2px rgba(255,255,255,.5);
}
.layer-subbase {
  flex: 40;
  background: #c7b48e;
  background-image:
    radial-gradient(rgba(255,255,255,.4) 4px, transparent 5px),
    radial-gradient(rgba(90,70,40,.25) 3px, transparent 4px);
  background-size: 30px 30px, 22px 22px;
  background-position: 6px 6px, 16px 20px;
  color: #3a2f1f;
  text-shadow: 0 1px 2px rgba(255,255,255,.5);
}
.layer-frost {
  flex: 15;
  background: #d9c9a0;
  background-image: radial-gradient(rgba(120,95,55,.2) 3px, transparent 4px);
  background-size: 20px 20px;
  color: #3a2f1f;
  text-shadow: 0 1px 2px rgba(255,255,255,.5);
}
.layer-subgrade { flex: 20; background: linear-gradient(180deg, #8a6b47 0%, #6e5236 100%); }

.pavement-table { flex: 1 1 55%; display: flex; flex-direction: column; gap: 10px; }
.pavement-row {
  flex: 1;
  background: var(--ink);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pavement-name {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.pavement-name em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px; }
.pavement-desc { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; }

@media (max-width: 860px) {
  .pavement-block { flex-direction: column; }
  .pavement-visual { flex: none; height: 220px; flex-direction: row; }
}

/* 제품 사진 카드 (자재 시편/제품 사진 + 설명) */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.product-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.product-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.product-info h4 em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.product-info p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { width: 88px; height: 88px; }
}

/* 아스콘 단면 비교 + 6가지 종류 (검은 타이틀 배지 없이 다이어그램 바로 이어서) */
.type-comparison-figure { margin-top: 32px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.type-card img { width: 220px; height: 170px; object-fit: contain; background: #fff; border-radius: 10px; flex-shrink: 0; }
.type-info { flex: 1; min-width: 0; }
.type-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.type-info h4 em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.type-info p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 640px) {
  .type-grid { grid-template-columns: 1fr; }
  .type-card img { width: 140px; height: 108px; }
}

/* 아스콘의 재료: 슬라이드 1개씩 자동 전환(5초) + 하단 스테퍼로 수동 이동 */
.material-showcase { margin-top: 24px; }
.material-layout { display: flex; align-items: center; gap: 48px; }
.material-text { flex: 1 1 45%; min-width: 0; }
.material-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.material-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
  min-height: 1.7em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.material-extra { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.material-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.material-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.material-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.material-showcase.is-visible .material-name,
.material-showcase.is-visible .material-desc,
.material-showcase.is-visible .material-extra { opacity: 1; transform: none; }

/* 아스팔트(완성품) 인트로 슬라이드: 4가지 재료를 원형 썸네일로 미리보기 */
.material-circles { display: flex; flex-wrap: wrap; gap: 22px; }
.material-circle-item {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 84px;
}
.material-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color .25s ease, transform .25s ease;
}
.material-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-circle-item:hover .material-circle { border-color: var(--accent); transform: translateY(-3px); }
.material-circle-label { font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.4; }

.material-photo {
  flex: 1 1 55%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(26,26,26,.14);
  aspect-ratio: 3 / 2;
}
.material-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .5s ease;
}
.material-photo img.is-visible { opacity: 1; }

.material-stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 40px; }
.material-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .3s ease, transform .3s ease;
}
.material-dot.active { background-color: var(--accent); transform: scale(1.25); }
.material-dot-line { width: 44px; height: 2px; background: var(--border); flex-shrink: 0; }

@media (max-width: 860px) {
  .material-layout { flex-direction: column-reverse; gap: 24px; }
  .material-text { flex: none; width: 100%; }
  .material-photo { flex: none; width: 100%; }
  .material-dot-line { width: 24px; }
}

/* ---------- People values ---------- */
.section-people { background: var(--bg); }
.value-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.value-mark { display: block; font-size: 17px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.value h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.value p { font-size: 19px; color: var(--ink-soft); }

/* ---------- Placeholder note ---------- */
.pending-note {
  padding: 24px;
  background: #fdece5;
  border: 1px solid #f6cfc0;
  border-radius: 14px;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- 복지제도 ---------- */
.section-welfare { background: var(--bg); }
.welfare-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.welfare-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  transition: box-shadow .2s, border-color .2s;
}
.welfare-item:hover { border-color: var(--accent); box-shadow: 0 10px 24px rgba(26,26,26,.08); }
.welfare-icon { display: inline-flex; width: 34px; height: 34px; color: var(--accent-dark); margin-bottom: 14px; }
.welfare-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.welfare-item p { font-size: 17px; color: var(--ink-soft); }
.welfare-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 20px 24px;
  background: #fdf6ec;
  border: 1px solid #f0dcc0;
  border-radius: 14px;
  font-size: 17px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .welfare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .welfare-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 40px 24px; }
.footer-inner { max-width: var(--max); margin: 0 auto; font-size: 17px; }
.footer-logo { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-inner p { margin-top: 4px; }
.footer-copy { margin-top: 16px; color: rgba(255,255,255,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .location-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 39px; }
  .preview-content h2 { font-size: 39px; }
  .preview-section.reverse .preview-content { text-align: left; }
  .preview-section.reverse .preview-content p,
  .preview-section.reverse .preview-link { margin-left: 0; }
  .location-bar-item { flex-direction: column; gap: 4px; }
  .location-bar-item strong { width: auto; }
  .location-map iframe { height: 260px; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .hero-content { padding: 72px 24px; }
  .hero h1 { font-size: 34px; }
  body { font-size: 18px; }
}
