:root {
  --ink-900: #0b0b0c;
  --ink-800: #18181a;
  --ink-600: #3c3c40;
  --gray-900: #1c1c1e;
  --gray-700: #4a4a4d;
  --gray-500: #737376;
  --gray-300: #d2d2d4;
  --gray-200: #e4e4e5;
  --gray-100: #f3f3f3;
  --white: #ffffff;
  --accent: #e9e6df;
  --todo-bg: #fff4c7;
  --todo-text: #6b5200;
  --todo-line: #d9b53f;
  --wrap: 1160px;
  --header-h: 72px;
  --pad: 112px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--gray-900);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--ink-600); outline-offset: 2px; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink-900);
  color: var(--white);
}
.skip:focus { top: 8px; }

/* 아직 받지 못한 정보를 표시하는 자리. 실제 내용을 받으면 이 표시를 없앤다. */
.todo {
  display: inline-block;
  padding: 0 8px;
  background: var(--todo-bg);
  border: 1px dashed var(--todo-line);
  color: var(--todo-text);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.6;
}

/* 헤더: 화면 맨 위에서는 투명하게, 내려가면 흰색으로 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.js .site-header {
  position: fixed;
  left: 0;
  right: 0;
  transition: background-color 0.25s, border-color 0.25s;
}
.js .site-header:not(.solid):not(.menu-open) { background: transparent; border-color: transparent; }
.js .site-header:not(.solid):not(.menu-open) .logo,
.js .site-header:not(.solid):not(.menu-open) .nav > ul > li > a { color: var(--white); }
.js .site-header:not(.solid):not(.menu-open) .nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.js .site-header:not(.solid):not(.menu-open) .nav-toggle { border-color: rgba(255,255,255,0.5); }
.js .site-header:not(.solid):not(.menu-open) .nav-toggle span,
.js .site-header:not(.solid):not(.menu-open) .nav-toggle span::before,
.js .site-header:not(.solid):not(.menu-open) .nav-toggle span::after { background: var(--white); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav > ul { display: flex; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 0 20px;
  line-height: var(--header-h);
  font-weight: 600;
}
.nav > ul > li > a:hover,
.nav > ul > li > a[aria-current="page"] { color: var(--ink-600); }
.nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink-600); }
.nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 2px solid var(--ink-600);
}
.nav li:hover > ul,
.nav li:focus-within > ul { display: block; }
.nav ul ul a { display: block; padding: 10px 20px; font-size: 16px; }
.nav ul ul a:hover { background: var(--gray-100); color: var(--ink-600); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--gray-300);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink-900);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* 스크롤하면 나타나는 효과 */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* 타공판의 구멍 무늬 */
.holes {
  background-color: var(--ink-800);
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 2.5px, transparent 3px);
  background-size: 24px 24px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid var(--ink-800);
  background: var(--ink-800);
  color: var(--white);
  font-weight: 600;
}
.btn:hover { background: var(--ink-600); border-color: var(--ink-600); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--ink-900); }
.btn.light:hover { background: var(--gray-200); border-color: var(--gray-200); }
.btn.line { background: transparent; border-color: #9a9a9a; color: var(--white); }
.btn.line:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* 하위 페이지 상단 */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--white);
}
.head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11,11,12,0.55), rgba(11,11,12,0.86));
}
.page-head .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 88px); padding-bottom: 72px; }
.crumb { color: var(--accent); font-weight: 600; }
.page-head h1 {
  margin-top: 12px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  animation: lift 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.head-text { margin-top: 16px; max-width: 680px; color: #d6d6d6; font-size: clamp(17px, 1.7vw, 21px); }
@keyframes lift { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

.subnav { border-bottom: 1px solid var(--gray-200); background: var(--gray-100); }
.subnav ul { display: flex; flex-wrap: wrap; }
.subnav a { display: block; padding: 14px 24px; color: var(--gray-700); font-weight: 600; }
.subnav a:hover { color: var(--ink-600); }
.subnav a[aria-current="page"] { background: var(--white); color: var(--ink-900); box-shadow: inset 0 -3px 0 var(--ink-600); }

/* 본문 구역 */
.section, .block { padding: var(--pad) 0; }
.section + .section { padding-top: 0; }
.section.tint, .section.dark,
.section.tint + .section, .section.dark + .section { padding-top: var(--pad); }
.tint, .tinted { background: var(--gray-100); }
.dark { background: var(--ink-900); color: #d6d6d6; }

.section h2 {
  margin-bottom: 40px;
  color: var(--ink-900);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.section.dark h2 { color: var(--white); }
.section h3 { color: var(--ink-900); font-size: 21px; font-weight: 700; line-height: 1.4; }
.lead { max-width: 760px; color: var(--gray-700); font-size: 18px; }
.lead + .lead { margin-top: 16px; }
.lead + .grid, .lead + .table-box { margin-top: 40px; }
.note { margin-bottom: 24px; color: var(--gray-500); font-size: 15px; }
.signature { margin-top: 24px; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card { padding: 32px; background: var(--white); border: 1px solid var(--gray-200); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 16px; }
.card .photo { margin: -32px -32px 24px; }
.num { display: block; margin-bottom: 14px; color: var(--ink-600); font-size: 15px; font-weight: 700; }

/* 사진이 들어갈 자리 */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 16px;
  background-color: var(--ink-800);
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 2.5px, transparent 3px);
  background-size: 24px 24px;
  color: #c4c4c4;
  font-size: 15px;
  text-align: center;
}
.photo.wide { aspect-ratio: 16 / 7; }

/* 실제 사진과 영상. 영상은 원본이 컬러라 화면에서 흑백으로 바꾼다. */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-800); }
.shot-v {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink-800);
  filter: grayscale(1) contrast(1.15) brightness(0.8);
}
.grid.clips { grid-template-columns: repeat(3, 1fr); }
.section.dark .grid { margin-top: 40px; }

.map { display: block; width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--gray-300); }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 40px; }
td a, .card p a, .site-footer p a { text-decoration: underline; text-underline-offset: 3px; }

/* 표 */
.table-box { overflow-x: auto; border-top: 2px solid var(--ink-900); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
tbody th { width: 220px; padding-left: 0; color: var(--ink-900); font-weight: 700; }

/* 제품 패널 */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 32px;
  overflow: hidden;
  color: var(--white);
}
.panel::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel:hover::before { transform: scale(1.08); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(11,11,12,0.6) 60%, rgba(11,11,12,0.95)); }
.panel > * { position: relative; z-index: 1; }
.panel > .panel-img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.panel > .panel-img.perforated { object-position: 22% center; }
.panel > .panel-img.partition { object-position: center 45%; }
.panel > .panel-img.furniture { object-position: center 70%; }
.panel:hover > .panel-img { transform: scale(1.06); }
.panel .num { margin-bottom: 8px; color: var(--accent); }
.panel h3 { color: var(--white); font-size: clamp(25px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.panel p { margin-top: 8px; color: #d6d6d6; font-size: 16px; }
.panel-more { display: inline-block; margin-top: 16px; font-weight: 600; transition: transform 0.25s; }
.panel:hover .panel-more { transform: translateX(6px); }

/* 떠 있는 전화 버튼 */
.float-call {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-900);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(11,11,12,0.28);
}
.float-call:hover { background: #ffffff; }

/* 푸터 */
.site-footer { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,0.12); color: #c4c4c4; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.foot-name { margin-bottom: 12px; color: var(--white); font-size: 18px; font-weight: 700; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-content: start; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }
.copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); color: #9a9a9a; font-size: 14px; }

@media (max-width: 960px) {
  :root { --pad: 88px; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .panels { grid-template-columns: 1fr; }
  .panel { min-height: 380px; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
  }
  .nav.open { display: block; }
  .nav > ul { display: block; padding: 8px 0; }
  .nav > ul > li > a { padding: 12px 24px; line-height: 1.5; }
  .nav > ul > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink-600); }
  .nav ul ul { display: block; position: static; border: 0; }
  .nav ul ul a { padding: 8px 24px 8px 40px; color: var(--gray-700); }
}

@media (max-width: 640px) {
  :root { --pad: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lead { font-size: 16px; }
  .page-head .wrap { padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .grid.clips { gap: 8px; }
  .card { padding: 24px; }
  .card .photo { margin: -24px -24px 20px; }
  .panel { min-height: 320px; padding: 24px; }
  tbody th { width: 110px; }
  th, td { padding: 14px 12px; }
  .photo.wide, .map { aspect-ratio: 4 / 3; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
  .subnav a { padding: 12px 16px; }
  .float-call { right: 16px; bottom: 16px; padding: 11px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .page-head h1 { animation: none; }
  .panel::before, .panel-more, .panel > .panel-img { transition: none; }
}
