/* =========================================================
   서원천막 — 공통 스타일
   ========================================================= */

:root {
  /* 로고 색상 기준: 남색 #092956, 주황 #f5640d */
  --c-navy: #0b2a57;
  --c-navy-2: #12396f;
  --c-accent: #f5640d;
  --c-accent-dark: #d4520a;
  --c-text: #1f2328;
  --c-text-sub: #5b6470;
  --c-line: #e3e6ea;
  --c-bg-soft: #f5f6f8;
  --c-white: #fff;

  --container: 1240px;
  --header-h: 80px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(22, 32, 44, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--c-text);
  background: var(--c-white);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 사진 자리(임시) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #3a4a5e, #222f3f);
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  padding: 6px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-accent { background: var(--c-accent); color: var(--c-white); }
.btn-accent:hover { background: var(--c-accent-dark); }
.btn-line { border-color: rgba(255,255,255,0.6); color: var(--c-white); }
.btn-line:hover { background: var(--c-white); color: var(--c-navy); }
.btn-dark { background: var(--c-navy); color: var(--c-white); }
.btn-dark:hover { background: var(--c-navy-2); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 120px 0; }
.section-soft { background: var(--c-bg-soft); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--c-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.section-desc {
  margin-top: 16px;
  color: var(--c-text-sub);
  font-size: 18px;
}
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.more-link {
  flex-shrink: 0;
  font-weight: 700;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 2px;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-white);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.header.is-solid,
.header.is-sub {
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 1px 0 var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
}
.logo { display: flex; align-items: center; }
.logo-img { width: auto; height: 46px; }
/* 메인 상단(투명 헤더)에서는 흰색 로고, 스크롤·서브·모바일 메뉴에서는 컬러 로고 */
.logo-white { display: none; }
body:not(.is-menu-open) > .header:not(.is-solid):not(.is-sub) .logo-color { display: none; }
body:not(.is-menu-open) > .header:not(.is-solid):not(.is-sub) .logo-white { display: block; }
.footer .logo-img { height: 40px; }

.gnb { display: flex; height: 100%; }
.gnb-item { position: relative; height: 100%; }
.gnb-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 26px;
  font-size: 18px;
  font-weight: 700;
}
.gnb-item:hover > .gnb-link,
.gnb-item.is-current > .gnb-link { color: var(--c-accent); }
.gnb-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 180px;
  padding: 12px 0;
  background: var(--c-white);
  color: var(--c-text);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.gnb-item:hover .gnb-sub,
.gnb-item:focus-within .gnb-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.gnb-sub a {
  display: block;
  padding: 9px 22px;
  font-size: 16px;
  white-space: nowrap;
}
.gnb-sub a:hover,
.gnb-sub a.is-current { color: var(--c-accent); }

.header-right { display: flex; align-items: center; gap: 12px; }

/* 전화 아이콘 버튼 — 번호는 마우스를 올렸을 때만 표시 */
.header-tel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.header-tel svg { width: 19px; height: 19px; fill: currentColor; }
.header-tel:hover,
.header-tel:focus-visible { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
.header-tel-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 15px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
.header-tel-tip b { margin-left: 4px; font-weight: 800; }
@media (hover: hover) {
  .header-tel:hover .header-tel-tip,
  .header-tel:focus-visible .header-tel-tip { opacity: 1; visibility: visible; transform: none; }
}
.header-cta { height: 42px; padding: 0 20px; font-size: 16px; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  position: relative;
  width: 24px; height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.2s, background 0.2s;
}
.menu-btn span::before,
.menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -8px; }
.menu-btn span::after { top: 8px; }
.is-menu-open .menu-btn span { background: transparent; }
.is-menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.is-menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Main — Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 960px;
  color: var(--c-white);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,16,24,0.85) 0%, rgba(10,16,24,0.35) 70%);
}
.hero-bg.ph::before { position: absolute; right: 40px; bottom: 120px; z-index: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero-title em { font-style: normal; color: var(--c-accent); }
.hero-desc {
  max-width: 560px;
  margin-top: 24px;
  font-size: 19px;
  opacity: 0.85;
}
.hero-actions { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.hero-fields {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-fields ul { display: flex; }
.hero-fields li { flex: 1; }
.hero-fields a {
  display: block;
  padding: 22px 0;
  font-weight: 600;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.hero-fields a:hover { opacity: 1; }
.hero-fields a span { margin-right: 10px; color: var(--c-accent); font-weight: 800; }

/* =========================================================
   Main — 강점
   ========================================================= */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strength-item {
  padding: 40px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
}
.strength-num {
  display: block;
  color: var(--c-accent);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.strength-item h3 { margin-top: 18px; font-size: 22px; font-weight: 800; }
.strength-item p { margin-top: 12px; color: var(--c-text-sub); }

/* =========================================================
   Main — 시공분야 카드
   ========================================================= */
.field-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.field-card { grid-column: span 2; }
.field-card:nth-child(-n+2) { grid-column: span 3; }
.field-card a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--c-white);
}
.field-card .ph { aspect-ratio: 4 / 3; transition: transform 0.4s; }
.field-card:nth-child(-n+2) .ph { aspect-ratio: 16 / 9; }
.field-card .ph::before { position: absolute; top: 20px; right: 20px; font-size: 13px; }
.field-card a:hover .ph { transform: scale(1.04); }
.field-card-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(10,16,24,0.85), transparent);
}
.field-card-text strong { display: block; font-size: 24px; font-weight: 800; }
.field-card-text span { display: block; margin-top: 6px; opacity: 0.8; font-size: 16px; }

/* =========================================================
   시공사례 카드 (메인 / 분야 페이지 공통)
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card a { display: block; }
.case-card .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.case-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fdeee4;
  color: var(--c-accent-dark);
  font-size: 14px;
  font-weight: 700;
}
.case-card h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.case-card a:hover h3 { text-decoration: underline; }
.case-meta { margin-top: 6px; color: var(--c-text-sub); font-size: 15px; }

/* =========================================================
   견적문의 유도 배너
   ========================================================= */
.cta-band {
  padding: 90px 0;
  background: var(--c-navy);
  color: var(--c-white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { font-size: 34px; font-weight: 800; line-height: 1.35; }
.cta-band p { margin-top: 12px; opacity: 0.7; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }
.ico-phone { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 56px 0 100px;
  background: #0e151d;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .logo { color: var(--c-white); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--c-white); }
.footer-info { margin-top: 28px; line-height: 1.9; }
.footer-info span + span::before {
  content: "";
  display: inline-block;
  width: 1px; height: 11px;
  margin: 0 12px;
  background: rgba(255,255,255,0.2);
}
.copyright { margin-top: 16px; }

/* 모바일 하단 고정 버튼 */
.mobile-bar { display: none; }

/* =========================================================
   서브 페이지 공통
   ========================================================= */
.sub-visual {
  position: relative;
  height: 380px;
  margin-top: var(--header-h);
  color: var(--c-white);
}
.sub-visual .ph { position: absolute; inset: 0; }
.sub-visual .ph::before { position: absolute; right: 24px; bottom: 24px; font-size: 13px; }
.sub-visual .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,16,24,0.55);
}
.sub-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.breadcrumb { display: flex; gap: 8px; font-size: 15px; opacity: 0.75; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.sub-title { margin-top: 14px; font-size: 48px; font-weight: 900; letter-spacing: -0.02em; }

.sub-tabs {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.sub-tabs ul { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.sub-tabs ul::-webkit-scrollbar { display: none; }
.sub-tabs a {
  display: block;
  padding: 20px 28px;
  color: var(--c-text-sub);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.sub-tabs a:hover { color: var(--c-text); }
.sub-tabs a.is-current { color: var(--c-text); border-bottom-color: var(--c-accent); }

/* =========================================================
   시공분야 상세
   ========================================================= */
.field-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.field-intro .ph { aspect-ratio: 5 / 4; border-radius: var(--radius); }
.field-intro .section-desc { line-height: 1.8; }

.field-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.field-gallery .ph { aspect-ratio: 1; border-radius: var(--radius); font-size: 13px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.spec-box {
  padding: 36px 32px;
  background: var(--c-white);
  border-radius: var(--radius);
  border-top: 4px solid var(--c-accent);
}
.spec-box h3 { font-size: 20px; font-weight: 800; }
.spec-box ul { margin-top: 18px; }
.spec-box li {
  position: relative;
  padding-left: 16px;
  color: var(--c-text-sub);
}
.spec-box li + li { margin-top: 8px; }
.spec-box li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 6px; height: 2px;
  background: var(--c-accent);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 0 16px;
  text-align: center;
  counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  font-size: 20px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.process li::after {
  content: "";
  position: absolute;
  top: 36px; left: 50%;
  width: 100%;
  border-top: 2px dashed var(--c-line);
}
.process li:last-child::after { display: none; }
.process strong { display: block; margin-top: 20px; font-size: 18px; }
.process p { margin-top: 6px; color: var(--c-text-sub); font-size: 16px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1200px) {
  .gnb-link { padding: 0 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .logo-img { height: 36px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 32px; }
  .hero-title { font-size: 48px; }

  .menu-btn { display: block; }
  .header-cta { display: none; }
  .header-right { gap: 6px; }
  .header-tel { width: 40px; height: 40px; border-width: 0; }
  .header-tel svg { width: 22px; height: 22px; }

  /* 모바일 메뉴 */
  .gnb {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    height: auto;
    padding: 12px 24px 40px;
    background: var(--c-white);
    color: var(--c-text);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .gnb { pointer-events: none; }
  .is-menu-open .gnb { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .is-menu-open .header { background: var(--c-white); color: var(--c-text); }
  .gnb-item { height: auto; border-bottom: 1px solid var(--c-line); }
  .gnb-link { height: auto; padding: 18px 0; font-size: 18px; }
  .gnb-sub {
    position: static;
    min-width: 0;
    padding: 0 0 14px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: inherit;          /* 메뉴가 닫히면 하위 메뉴도 함께 숨김 (visible 로 두면 안 보이는 링크가 화면을 가로챔) */
  }
  .gnb-item:hover .gnb-sub,
  .gnb-item:focus-within .gnb-sub { transform: none; }
  .gnb-sub a { padding: 7px 12px; color: var(--c-text-sub); }

  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .field-card,
  .field-card:nth-child(-n+2) { grid-column: span 1; }
  .field-card:nth-child(-n+2) .ph { aspect-ratio: 4 / 3; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .field-intro { grid-template-columns: 1fr; gap: 40px; }
  .spec-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .process li::before { width: 56px; height: 56px; font-size: 17px; grid-row: span 2; margin: 0; }
  .process li::after { display: none; }
  .process strong { margin-top: 4px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 17px; }

  .hero { min-height: 560px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 17px; }
  .hero-actions .btn { flex: 1; padding: 0 16px; }
  .hero-fields { display: none; }
  .hero-bg.ph::before { right: 16px; bottom: 24px; font-size: 13px; }

  .strength-grid,
  .field-grid,
  .case-grid { grid-template-columns: 1fr; }
  .strength-item { padding: 28px 24px; }

  .cta-band { padding: 64px 0; }
  .cta-band h2 { font-size: 26px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; padding: 0 12px; }

  .footer-top { flex-direction: column; }
  .footer-info span { display: block; }
  .footer-info span + span::before { display: none; }

  .sub-visual { height: 260px; }
  .sub-title { font-size: 34px; }
  .sub-tabs ul { justify-content: flex-start; }
  .sub-tabs a { padding: 16px 16px; font-size: 16px; }
  .field-gallery { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }

  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-weight: 800;
    color: var(--c-white);
    background: var(--c-navy);
  }
  .mobile-bar a + a { background: var(--c-accent); }
}

/* =========================================================
   서브 페이지 — 공통 콘텐츠 요소
   ========================================================= */
.section-sm { padding: 80px 0; }
.text-sub { color: var(--c-text-sub); }
.note {
  margin-top: 16px;
  color: var(--c-text-sub);
  font-size: 15px;
}

/* 표 (회사개요 등) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--c-text);
}
.info-table th,
.info-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 180px;
  background: var(--c-bg-soft);
  font-weight: 700;
}

/* =========================================================
   회사소개
   ========================================================= */
.greeting {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.greeting .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.greeting-body p + p { margin-top: 18px; }
.greeting-body .section-title { margin-bottom: 32px; }
.greeting-body p { color: var(--c-text-sub); font-size: 18px; line-height: 1.85; }
.greeting-sign { margin-top: 40px !important; color: var(--c-text) !important; font-weight: 700; }
.greeting-sign strong { margin-left: 10px; font-size: 22px; }

/* =========================================================
   오시는 길
   ========================================================= */
.map-box {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
}
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.btn-map { gap: 10px; color: #fff; }
.btn-map-naver { background: #03c75a; }
.btn-map-naver:hover { background: #02b351; }
.btn-map-kakao { background: #fee500; color: #191919; }
.btn-map-kakao:hover { background: #f5dc00; }
.map-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.map-links .btn { height: 44px; padding: 0 20px; font-size: 16px; }
.btn-outline { border-color: var(--c-line); color: var(--c-text); background: var(--c-white); }
.btn-outline:hover { border-color: var(--c-text); }
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.contact-list li {
  padding: 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.contact-list span { display: block; color: var(--c-accent); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.contact-list strong { display: block; margin-top: 10px; font-size: 19px; }
.contact-list p { margin-top: 6px; color: var(--c-text-sub); font-size: 16px; }

/* =========================================================
   시공사례 목록 / 상세
   ========================================================= */
.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.filter button {
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-text-sub);
  font-weight: 700;
  font-size: 16px;
}
.filter button:hover { border-color: var(--c-text); color: var(--c-text); }
.filter button.is-active { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.case-card[hidden] { display: none; }
.empty-msg { padding: 60px 0; text-align: center; color: var(--c-text-sub); }

.detail-head { padding-bottom: 32px; border-bottom: 2px solid var(--c-text); }
.detail-head .case-tag { margin-top: 0; }
.detail-title { margin-top: 14px; font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; color: var(--c-text-sub); font-size: 16px; }
.case-spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.case-spec div { padding: 24px; }
.case-spec div + div { border-left: 1px solid var(--c-line); }
.case-spec dt { color: var(--c-text-sub); font-size: 15px; }
.case-spec dd { margin: 6px 0 0; font-weight: 700; font-size: 18px; }
.detail-photos { display: grid; gap: 16px; margin-top: 40px; }
.detail-photos .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.detail-photos .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-photos .row .ph { aspect-ratio: 4 / 3; }
.detail-body { margin-top: 48px; font-size: 18px; line-height: 1.9; }
.detail-body p + p { margin-top: 18px; }
.detail-body h3 { margin: 36px 0 12px; font-size: 20px; }

.post-nav { margin-top: 64px; border-top: 1px solid var(--c-text); }
.post-nav a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--c-line);
}
.post-nav a:hover strong { text-decoration: underline; }
.post-nav span { color: var(--c-text-sub); }
.post-nav strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-actions { margin-top: 40px; text-align: center; }

/* =========================================================
   게시판 (공지사항)
   ========================================================= */
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--c-text-sub);
  font-size: 16px;
}
.board-top strong { color: var(--c-accent); }
.board-search { display: flex; gap: 6px; }
.board-search input {
  width: 220px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font: inherit;
}
.board-search button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 700;
}
.board-list { border-top: 2px solid var(--c-text); }
.board-list li { border-bottom: 1px solid var(--c-line); }
.board-list a {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 22px 8px;
}
.board-list a:hover .board-subject { text-decoration: underline; }
.board-head {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 700;
  text-align: center;
}
.board-num,
.board-date { color: var(--c-text-sub); text-align: center; font-size: 16px; }
.board-subject { font-weight: 600; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
}

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--c-text-sub);
  font-weight: 600;
}
.pagination a:hover { background: var(--c-bg-soft); }
.pagination .is-current { background: var(--c-navy); color: var(--c-white); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { border-top: 2px solid var(--c-text); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 26px 56px 26px 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text);
  border-bottom: 2px solid var(--c-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-q,
.faq-a {
  flex-shrink: 0;
  font-weight: 900;
}
.faq-q { color: var(--c-accent); }
.faq-answer {
  display: flex;
  gap: 18px;
  padding: 24px 32px 28px 8px;
  background: var(--c-bg-soft);
  color: var(--c-text-sub);
  line-height: 1.8;
}
.faq-a { color: var(--c-text); font-size: 18px; }
.faq-more {
  margin-top: 56px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  text-align: center;
}
.faq-more p { margin-bottom: 20px; font-size: 18px; font-weight: 700; }

/* =========================================================
   견적문의
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.form-row { min-width: 0; }
.form-row.full { grid-column: 1 / -1; }
.form-row[hidden], .form-label .req[hidden], label .req[hidden] { display: none; }
.form-row label,
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 16px;
}
.req { color: var(--c-accent); margin-left: 2px; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-text);
  font: inherit;
  font-size: 17px;
}
.form-row textarea { height: 180px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(22, 32, 44, 0.12);
}
.form-help { margin-top: 6px; color: var(--c-text-sub); font-size: 14px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #cfd4da;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip input:checked + span { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.agree-box {
  margin-top: 32px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.agree-box summary {
  padding: 14px 18px;
  color: var(--c-text-sub);
  font-size: 15px;
  cursor: pointer;
}
.agree-text {
  max-height: 200px;
  overflow-y: auto;
  padding: 0 18px 16px;
  color: var(--c-text-sub);
  font-size: 15px;
  line-height: 1.7;
}
.agree-text dt { margin-top: 10px; color: var(--c-text); font-weight: 700; }
.agree-text dd { margin: 2px 0 0; }
.agree-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 700;
  cursor: pointer;
}
.agree-check input { width: 20px; height: 20px; accent-color: var(--c-navy); }

.form-submit { margin-top: 32px; }
.form-submit .btn { width: 100%; height: 60px; font-size: 18px; border-radius: 10px; }
.form-submit .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-result {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.form-result.is-ok { display: block; background: #e8f5ec; color: #1d6b3a; }
.form-result.is-error { display: block; background: #fdecec; color: #a12a2a; }
.hp-field { position: absolute; left: -9999px; }

.contact-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--c-navy);
  color: var(--c-white);
}
.contact-side h3 { font-size: 20px; font-weight: 800; }
.side-desc { margin-top: 10px; opacity: 0.75; font-size: 16px; line-height: 1.6; }
.side-call { width: 100%; height: 56px; margin-top: 24px; }
.side-hours { margin-top: 20px; opacity: 0.7; font-size: 15px; line-height: 1.8; text-align: center; }
.side-tips { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.side-tips li { position: relative; padding-left: 18px; opacity: 0.85; font-size: 16px; }
.side-tips li + li { margin-top: 10px; }
.side-tips small { display: block; margin-top: 2px; color: var(--c-accent); font-size: 15px; opacity: 1; }
.side-hours a { color: inherit; }
.side-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 900; }

/* =========================================================
   개인정보처리방침
   ========================================================= */
.policy { max-width: 880px; margin: 0 auto; }
.policy-intro { padding: 28px 32px; background: var(--c-bg-soft); border-radius: var(--radius); color: var(--c-text-sub); line-height: 1.8; }
.policy h2 { margin-top: 48px; font-size: 21px; font-weight: 800; }
.policy p,
.policy li { margin-top: 10px; color: var(--c-text-sub); line-height: 1.8; }
.policy ul li { position: relative; padding-left: 14px; }
.policy ul li::before { content: "·"; position: absolute; left: 0; }
.policy .info-table { margin-top: 16px; font-size: 16px; }

/* =========================================================
   404
   ========================================================= */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  text-align: center;
}
.error-code { color: var(--c-accent); font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.error-page h1 { margin-top: 20px; font-size: 30px; font-weight: 800; }
.error-page p { margin-top: 12px; color: var(--c-text-sub); }
.error-page .hero-actions { justify-content: center; margin-top: 36px; }

/* =========================================================
   반응형 — 서브 페이지
   ========================================================= */
@media (max-width: 1024px) {
  .greeting { grid-template-columns: 1fr; gap: 40px; }
  .greeting .ph { aspect-ratio: 16 / 9; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .contact-side { position: static; }
  .case-spec { grid-template-columns: 1fr 1fr; }
  .case-spec div:nth-child(3) { border-left: 0; }
  .case-spec div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}

@media (max-width: 640px) {
  .section-sm { padding: 56px 0; }
  .info-table { table-layout: fixed; }
  .info-table th { width: 92px; padding: 14px 10px; font-size: 15px; }
  .info-table td { padding: 14px 10px; overflow-wrap: anywhere; font-size: 16px; }
  .map-box { aspect-ratio: 1 / 1; }
  .map-links { display: grid; grid-template-columns: 1fr 1fr; }
  .map-links .btn { padding: 0 8px; font-size: 15px; }
  .map-links .btn-copy { grid-column: 1 / -1; }

  .filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 32px; padding: 0 16px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .filter button { flex-shrink: 0; }

  .detail-title { font-size: 25px; }
  .detail-photos .row { grid-template-columns: 1fr; }
  .detail-body { font-size: 17px; }
  .post-nav a { grid-template-columns: 64px 1fr; }

  .board-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .board-search input { flex: 1; width: auto; min-width: 0; }
  .board-head { display: none; }
  .board-list a { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
  .board-num { display: none; }
  .board-date { text-align: left; font-size: 15px; order: 2; }
  .board-subject { font-size: 17px; white-space: normal; }

  .faq-item summary { padding: 20px 44px 20px 4px; font-size: 17px; gap: 12px; }
  .faq-answer { padding: 20px 16px; gap: 12px; font-size: 16px; }
  .faq-more { padding: 28px 20px; }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-side { padding: 28px 24px; }

  .policy-intro { padding: 20px; }
  .error-code { font-size: 88px; }
  .error-page h1 { font-size: 24px; }
}

/* =========================================================
   업력 · 숫자 · 안전 · 연혁
   ========================================================= */
.hero-eyebrow {
  margin-bottom: 18px;
  color: var(--c-accent);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.stats { background: var(--c-navy); color: var(--c-white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}
.stats-grid > div { padding: 40px 24px; text-align: center; }
.stats-grid > div + div { border-left: 1px solid rgba(255,255,255,0.12); }
.stats-grid dt { opacity: 0.7; font-size: 16px; }
.stats-grid dd { margin: 8px 0 0; }
.stats-grid strong { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.stats-grid dd span { margin-left: 4px; opacity: 0.8; font-weight: 600; }
.stats-grid dd > span:first-child { margin-left: 0; opacity: 1; }
.stats-grid strong span { margin: 0; opacity: 1; }

.section-dark { background: #0e151d; color: var(--c-white); }
.section-dark .section-desc { color: rgba(255,255,255,0.65); }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: safety;
}
.safety-grid li {
  position: relative;
  padding: 36px 28px 32px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  counter-increment: safety;
}
.safety-grid li::before {
  content: "";
  display: block;
  width: 44px; height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.safety-grid h3 { font-size: 20px; font-weight: 800; }
.safety-grid p { margin-top: 10px; color: rgba(255,255,255,0.7); }

.history { border-left: 2px solid var(--c-line); margin-left: 8px; }
.history li { position: relative; padding: 0 0 32px 32px; }
.history li:last-child { padding-bottom: 0; }
.history li::before {
  content: "";
  position: absolute;
  left: -8px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-accent);
}
.history time { display: block; color: var(--c-accent); font-size: 20px; font-weight: 900; }
.history p { margin-top: 4px; font-size: 18px; }

@media (max-width: 1024px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-grid > div { padding: 24px 6px; }
  .stats-grid strong { font-size: 32px; }
  .stats-grid dt { font-size: 14px; }
  .stats-grid dd > span { display: block; margin: 4px 0 0; font-size: 15px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-grid li { padding: 28px 24px; }
}

/* =========================================================
   채팅 상담 버튼 (네이버 톡톡 / 카카오톡 채널)
   ========================================================= */
.ico-chat { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-chat { gap: 10px; }
.btn-chat.chat-naver { background: #03c75a; color: #fff; }
.btn-chat.chat-naver:hover { background: #02b351; }
.btn-chat.chat-kakao { background: #fee500; color: #191919; }
.btn-chat.chat-kakao:hover { background: #f5dc00; }

.side-chat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 400px) { .side-chat { grid-template-columns: minmax(0, 1fr); } }
.side-chat .btn { height: 52px; padding: 0 12px; font-size: 16px; }

@media (max-width: 1024px) {
  .cta-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 520px; }
}
@media (max-width: 640px) {
  .cta-actions .btn { padding: 0 8px; font-size: 16px; }

  /* 모바일 하단 고정 바: 전화 / 톡톡 / 카톡 / 견적 */
  .mobile-bar { grid-template-columns: repeat(4, 1fr); }
  .mobile-bar a {
    flex-direction: column;
    gap: 2px;
    height: 60px;
    font-size: 14px;
    font-weight: 700;
  }
  .mobile-bar a + a { background: var(--c-navy); }
  .mobile-bar .ico-phone,
  .mobile-bar .ico-chat { width: 20px; height: 20px; }
  .mobile-bar .chat-naver { background: #03c75a; }
  .mobile-bar .chat-kakao { background: #fee500; color: #191919; }
  .mobile-bar .mb-quote { background: var(--c-accent); }
  .footer { padding-bottom: 110px; }
}

/* =========================================================
   글자 크기 [보통 / 크게] — html.font-lg 이면 사이트 전체를 비율대로 확대
   ========================================================= */
html.font-lg { zoom: 1.15; }

.font-toggle {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 3px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}
.font-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font-weight: 800;
  line-height: 1;
}
.font-toggle button[data-font="normal"] { font-size: 14px; }
.font-toggle button[data-font="large"] { font-size: 19px; }
.font-toggle button[aria-pressed="true"] { background: var(--c-accent); color: var(--c-white); }
.font-toggle button:not([aria-pressed="true"]):hover { background: rgba(127,127,127,0.15); }

/* 모바일: 메뉴 안 맨 위 */
.gnb-font { display: none; }
@media (max-width: 1024px) {
  .header-right .font-toggle { display: none; }
  .gnb-font {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
    font-weight: 700;
  }
  .gnb-font .font-toggle { height: auto; border-color: var(--c-line); }
  .gnb-font .font-toggle button { width: auto; height: 38px; padding: 0 16px; gap: 6px; font-size: 16px; }
  .gnb-font .font-toggle button[data-font="large"] { font-size: 18px; }
}
/* 글자 크게 + 좁은 PC 화면: 헤더가 붙지 않도록 메뉴 간격을 줄이고 [무료 견적]은 숨김 (견적문의 메뉴가 있음) */
@media (min-width: 1025px) and (max-width: 1180px) {
  html.font-lg .gnb-link { padding: 0 12px; }
  html.font-lg .header-cta { display: none; }
}

/* =========================================================
   배경 사진 (메인 히어로 / 서브 상단 띠) — 임시 무료 이미지 (#010)
   ========================================================= */
.hero-bg img,
.sv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sv-bg { position: absolute; inset: 0; background: var(--c-navy); }
.sv-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,18,36,0.78) 0%, rgba(8,18,36,0.45) 100%);
}
@media (max-width: 640px) {
  /* 휴대폰은 글자가 사진 전체에 걸치므로 고르게 어둡게 */
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,14,24,0.55) 0%, rgba(8,14,24,0.78) 60%, rgba(8,14,24,0.85) 100%); }
}

/* 메인 하단 시공분야 바로가기 — 사진 위에서도 잘 보이게, 마우스를 올리면 강조 */
.hero-fields { background: linear-gradient(0deg, rgba(8,14,24,0.75), rgba(8,14,24,0.35)); }
.hero-fields a {
  position: relative;
  padding: 22px 16px;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.hero-fields a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.hero-fields a:hover,
.hero-fields a:focus-visible {
  opacity: 1;
  color: #fff;
  font-weight: 800;
  background: rgba(255,255,255,0.12);
}
.hero-fields a:hover::before,
.hero-fields a:focus-visible::before { transform: scaleX(1); }

/* 메인 문구 가독성 — 글자 뒤를 조금 더 어둡게 + 글자 그림자 */
.hero-bg::after {
  background:
    radial-gradient(ellipse 60% 70% at 18% 50%, rgba(8,14,24,0.55), transparent 70%),
    linear-gradient(90deg, rgba(8,14,24,0.88) 0%, rgba(8,14,24,0.6) 45%, rgba(8,14,24,0.3) 80%);
}
.hero-title,
.hero-desc,
.hero-eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.hero-desc { opacity: 0.95; }
@media (max-width: 640px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,14,24,0.6) 0%, rgba(8,14,24,0.8) 55%, rgba(8,14,24,0.88) 100%); }
}

/* 토스트 알림 (주소 복사 등) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 200;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(14,21,29,0.92);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .toast { bottom: 84px; } }

/* 강점 5개 (메인) */
.strength-grid.is-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.strength-grid.is-5 .strength-item { padding: 36px 26px; }
@media (max-width: 1200px) {
  .strength-grid.is-5 { grid-template-columns: repeat(6, 1fr); }
  .strength-grid.is-5 .strength-item { grid-column: span 2; }
  .strength-grid.is-5 .strength-item:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .strength-grid.is-5 { grid-template-columns: 1fr; }
  .strength-grid.is-5 .strength-item,
  .strength-grid.is-5 .strength-item:nth-child(n+4) { grid-column: auto; }
}

/* =========================================================
   스크롤 효과 — 화면에 들어오면 아래에서 떠오름 (JS가 켜졌을 때만)
   ========================================================= */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* 메인 첫 화면 문구는 페이지가 열릴 때 차례로 등장 */
html.js .hero-content > * { animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js .hero-content > :nth-child(2) { animation-delay: 0.12s; }
html.js .hero-content > :nth-child(3) { animation-delay: 0.24s; }
html.js .hero-content > :nth-child(4) { animation-delay: 0.36s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 메인 배경 사진은 스크롤하면 살짝 느리게 움직임 */
.hero-bg img { will-change: transform; }

/* 맨 위로 버튼 */
.to-top {
  position: fixed;
  right: 24px; bottom: 28px;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--c-accent); }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 76px; width: 44px; height: 44px; } }

/* 동작 줄이기 설정을 켠 사용자는 효과 없이 바로 표시 */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-content > * { animation: none; }
  html { scroll-behavior: auto; }
}
.hero-bg { overflow: hidden; }

/* 인사말 사진 */
.greeting-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.greeting-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) { .greeting-photo { aspect-ratio: 16 / 9; } }

/* =========================================================
   시공사례 실제 사진 (관리 프로그램에서 올린 사진)
   ========================================================= */
.case-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card a:hover .case-thumb img { transform: scale(1.04); }
.detail-photo { border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.detail-photo img { width: 100%; height: auto; display: block; }
.detail-photos > .detail-photo img { max-height: 720px; object-fit: cover; }
.detail-photos .row .detail-photo { aspect-ratio: 4 / 3; }
.detail-photos .row .detail-photo img { height: 100%; object-fit: cover; }

/* 공지 없음 / 공지 상세 배지 */
.board-list li.board-empty { padding: 48px 0; text-align: center; color: var(--c-text-sub); }
.detail-head .badge { margin-bottom: 10px; }
.form-help-inline { margin-left: 6px; color: var(--c-text-sub); font-size: 14px; font-weight: 500; }

/* 시공사례 분야 버튼의 사례 수 */
.filter button .cnt { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--c-bg-soft); color: var(--c-text-sub); font-size: 13px; font-weight: 700; line-height: 20px; }
.filter button.is-active .cnt { background: rgba(255,255,255,0.2); color: #fff; }
