@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 테마: 관리자에서 고르는 색 조합은 이 변수들만 바꾼다 */
:root {
  --ink: #15171a;
  --muted: #5b6270;
  --line: #e4e6e9;
  --soft: #f4f5f6;
  --bg: #fdfdfd;
  --accent: #173a5e;
  --accent-ink: #fdfdfd;
  --r: 4px; /* 모서리는 전부 이 값 하나 */
  --ink2: #33373d;
  --line2: #c9cdd2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--maxw, 1200px); margin: 0 auto; padding: 0 24px; }
.mock-note { background: var(--soft); color: var(--muted); font-size: 12px; text-align: center; padding: 6px 16px; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; height: 68px; gap: 44px; }
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.logo small { font-size: 10px; color: var(--muted); letter-spacing: 0.16em; margin-top: 2px; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink2); }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.lang { color: var(--muted); }
.lang b { color: var(--ink); font-weight: 600; }
.quote-btn { border: 1px solid var(--line); background: none; cursor: pointer; padding: 7px 12px; font-size: 14px; border-radius: var(--rb, var(--r)); }
.quote-btn:hover { border-color: var(--ink); }
.quote-btn b { color: var(--accent); margin-left: 6px; font-weight: 700; }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0 8px 8px; cursor: pointer; font-size: 14px; }

/* 버튼·링크 */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: var(--rb, var(--r));
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn:hover { filter: brightness(0.9); }
.btn-line { background: none; border: 1px solid var(--line2); }
.btn-line:hover { border-color: var(--ink); }
.btn:active, .btn-line:active { transform: translateY(1px); }
.more { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.more:hover { color: var(--ink); border-color: var(--ink); }

/* 사진 */
.photo { display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.thumb { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.empty { display: flex; align-items: flex-end; padding: 12px; font-size: 12px; color: var(--muted); }

/* 홈: 첫 화면 */
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  padding-top: 56px; padding-bottom: 80px;
}
.hero h1 { font-size: 44px; line-height: 1.28; letter-spacing: -0.035em; font-weight: 700; }
.hero p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 26em; }
.hero .actions { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .photo { aspect-ratio: 4 / 3; }

/* 공통 구역 */
.sec { padding: 96px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: 28px; line-height: 1.35; letter-spacing: -0.03em; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }

/* 제품 분류: 사진 두 장 */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.group .photo { aspect-ratio: 16 / 10; }
.group h3 { font-size: 22px; margin-top: 22px; display: flex; align-items: baseline; gap: 10px; }
.group h3 span { font-size: 14px; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { border: 1px solid var(--line); border-radius: var(--rb, var(--r)); padding: 7px 14px; font-size: 14px; color: var(--ink2); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }

/* 제품 카드 (테두리 없이 사진 + 글) */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.item { display: flex; flex-direction: column; }
.item .name { font-weight: 600; margin-top: 14px; line-height: 1.45; }
.item .name:hover { color: var(--accent); }
.item .spec { font-size: 14px; color: var(--muted); margin-top: 4px; }
.item .add {
  margin-top: 12px; align-self: flex-start; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--rb, var(--r)); padding: 6px 12px; font-size: 13px;
}
.item .add:hover { border-color: var(--ink); }

/* 사업분야: 사진 + 목록 */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.biz .photo { aspect-ratio: 4 / 3; }
.biz dl { margin: 32px 0 0; display: grid; gap: 26px; }
.biz dt { font-weight: 700; font-size: 18px; }
.biz dd { margin: 4px 0 0; color: var(--muted); }

/* 실적 + 공지: 글 목록 두 개 */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.lists h2 { font-size: 22px; }
.rows { list-style: none; margin: 20px 0 0; padding: 0; }
.rows li a { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.rows li a:hover span:first-child { color: var(--accent); }
.rows .sub, .rows time { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* 견적 안내 띠 */
.band { background: var(--soft); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.band h2 { font-size: 26px; letter-spacing: -0.03em; }
.band p { color: var(--muted); margin-top: 8px; }
.band .actions { display: flex; align-items: center; gap: 24px; }
.band .tel { font-size: 14px; color: var(--muted); }
.band .tel b { display: block; color: var(--ink); font-size: 20px; }

/* 하단 */
.foot { padding: 44px 0 56px; font-size: 14px; color: var(--muted); }
.foot .links { display: flex; gap: 20px; margin-bottom: 16px; color: var(--ink); }
.foot .links a:first-child { font-weight: 600; }
.foot p + p { margin-top: 4px; }

/* 제품 목록 */
.page-head { padding: 44px 0 28px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-head h1 { font-size: 32px; margin-top: 8px; letter-spacing: -0.03em; }
.shop { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.side h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.side ul + h3 { margin-top: 28px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink2); }
.side li a:hover { color: var(--ink); }
.side li a[aria-current] { color: var(--accent); font-weight: 700; }
.tools { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tools input { height: 44px; width: 340px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); }
.tools input::placeholder { color: var(--muted); }
.tools input:focus, .tools select:focus, .qty input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.tools .count { font-size: 14px; color: var(--muted); margin-left: auto; }
.tools select { height: 44px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); }
.shop .grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 56px; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; font-size: 14px; color: var(--muted); border-radius: var(--r); }
.pager a[aria-current] { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

/* 제품 상세 */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-bottom: 80px; }
.gallery .thumb.main { aspect-ratio: 1; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs .thumb { cursor: pointer; }
.thumbs .thumb[aria-current] { outline: 2px solid var(--ink); outline-offset: -2px; }
.info .cat { font-size: 14px; color: var(--accent); font-weight: 600; }
.info h1 { font-size: 32px; letter-spacing: -0.03em; margin: 6px 0 10px; }
.info .lead { color: var(--muted); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 24px; }
.keys div { background: var(--soft); border-radius: var(--r); padding: 16px; }
.keys small { display: block; font-size: 13px; color: var(--muted); }
.keys b { display: block; font-size: 20px; margin-top: 2px; letter-spacing: -0.02em; }
.keys span { font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0 0 28px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { color: var(--accent); border-bottom: 1px solid currentColor; }
.qty { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.qty label { font-size: 14px; color: var(--muted); }
.qty input { width: 96px; height: 50px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); }
.info .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info .note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.desc { border-top: 1px solid var(--line); padding: 64px 0; }
.desc h2 { font-size: 22px; margin-bottom: 14px; }
.desc > p { color: var(--muted); max-width: 44em; }

/* 견적함 창 */
dialog { border: 0; padding: 0; width: min(480px, calc(100% - 32px)); border-radius: var(--r); color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgb(21 23 26 / 0.45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 18px; }
.dlg-head button { background: none; border: 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.dlg-list { list-style: none; margin: 0; padding: 0 20px; max-height: 50vh; overflow: auto; }
.dlg-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dlg-list li span { flex: 1; }
.dlg-list li em { font-style: normal; color: var(--muted); font-size: 14px; }
.dlg-list li button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.dlg-empty { padding: 32px 20px; color: var(--muted); text-align: center; }
.dlg-foot { padding: 16px 20px 20px; }
.dlg-foot .btn { width: 100%; }

/* 태블릿 이하 */
@media (max-width: 960px) {
  .top .wrap { gap: 16px; height: 60px; }
  .menu-btn { display: block; order: 3; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .lang { display: none; }
  .hero .wrap, .biz, .lists, .detail, .groups { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 56px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero .photo { aspect-ratio: 4 / 3; order: -1; }
  .sec { padding: 64px 0; }
  .sec h2 { font-size: 24px; }
  .grid, .shop .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .biz { gap: 28px; }
  .band .wrap { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
  .shop { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .side h3 { display: none; }
  .side ul { display: contents; }
  .side li a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; font-size: 14px; }
  .side li a[aria-current] { border-color: var(--accent); }
  .tools { flex-wrap: wrap; }
  .tools input { width: 100%; }
  .tools .count { margin-left: 0; }
  .page-head { padding: 28px 0 20px; }
  .page-head h1 { font-size: 26px; }
  .info h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .keys { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .keys div { padding: 12px 10px; }
  .keys b { font-size: 17px; }
  .band .actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* 숫자 띠 (PPT의 실제 값만) */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .wrap > div { padding: 26px 0 26px 24px; border-left: 1px solid var(--line); }
.stats .wrap > div:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-size: 24px; letter-spacing: -0.03em; }
.stats span { font-size: 14px; color: var(--muted); }

/* 사업부 4개 */
.units { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.units-head p { color: var(--muted); margin-top: 14px; max-width: 24em; }
.brandmark { width: 132px; margin-top: 36px; }
.units dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
.units dl div { border-top: 2px solid var(--ink); padding-top: 18px; }
.units dt { font-weight: 700; font-size: 18px; }
.units dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* 고객사 로고 */
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.logos figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; }
.logos img { width: 100%; height: 220px; object-fit: contain; }
.logos figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* 오시는 길 */
.contact { display: grid; grid-template-columns: 80px 1fr; gap: 0; margin: 20px 0 0; }
.contact dt, .contact dd { padding: 15px 0; border-top: 1px solid var(--line); margin: 0; }
.contact dt { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stats .wrap > div { padding: 18px 0 18px 16px; }
  .stats .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 20px; }
  .units, .logos { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .units dl { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brandmark { display: none; }
  .logos img { height: auto; }
}

/* 첫 화면 건물 사진 (흐림 효과 없음) */
.hero .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.hero .photo { aspect-ratio: 15 / 8; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* 머리글 견적 요청 버튼 (링크) */
a.quote-btn { display: inline-flex; align-items: center; }
.quote-btn[aria-current] { border-color: var(--accent); color: var(--accent); }

/* 하위 화면 공통 */
.tabs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tabs a { border: 1px solid var(--line); border-radius: var(--rb, var(--r)); padding: 8px 16px; font-size: 14px; color: var(--ink2); }
.tabs a:hover { border-color: var(--ink); color: var(--ink); }
.block { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top-h, 68px) + 12px); }
.page-head + .block { border-top: 0; padding-top: 16px; }
.block h2 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 24px; }
.sub { color: var(--muted); margin: -12px 0 24px; }
.lead-text { color: var(--muted); font-size: 17px; margin-bottom: 48px; }
main.wrap { padding-bottom: 56px; }

/* 회사소개 */
.greeting { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.promise { font-size: 30px; line-height: 1.45; font-weight: 700; letter-spacing: -0.03em; }
.letter p { color: var(--ink2); margin-bottom: 14px; max-width: 40em; }
.letter .sign { margin-top: 28px; color: var(--muted); }
.letter .sign b { color: var(--ink); font-size: 18px; margin-left: 6px; }
.overview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.overview-body .photo { aspect-ratio: 15 / 8; }
.overview-body .contact { margin: 0; grid-template-columns: 120px 1fr; }
#location .addr { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
#location .sub { margin: 6px 0 20px; }
#location .contact { max-width: 520px; margin-bottom: 28px; }
#location .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 조직도 */
.org { text-align: center; padding-bottom: 40px; }
.org .node { display: inline-block; min-width: 180px; padding: 14px 28px; border: 1px solid var(--ink); border-radius: var(--r); font-weight: 700; background: var(--bg); }
.org .ceo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.org .vline { width: 1px; height: 32px; background: var(--ink); margin: 0 auto; }
.org .depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; padding-top: 32px; }
.org .depts::before { content: ""; position: absolute; top: 0; left: calc((100% - 60px) / 8); right: calc((100% - 60px) / 8); height: 1px; background: var(--ink); }
.org .dept { position: relative; }
.org .dept::before { content: ""; position: absolute; top: -32px; left: 50%; width: 1px; height: 32px; background: var(--ink); }
.org .dept h3 { border: 1px solid var(--ink); border-radius: var(--r); padding: 12px; font-size: 16px; background: var(--bg); }
.org .dept ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.org .dept li { background: var(--soft); border-radius: var(--r); padding: 10px 14px; font-size: 15px; }

/* 사업분야 */
.unit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.unit-list article { border-top: 2px solid var(--ink); padding-top: 20px; }
.unit-list h3 { font-size: 20px; }
.unit-list p { color: var(--ink2); margin-top: 8px; }
.unit-list .items { color: var(--muted); font-size: 15px; }
.brand-row { display: flex; align-items: center; gap: 24px; margin-top: 48px; padding: 24px; background: var(--soft); border-radius: var(--r); }
.brand-row img { width: 120px; }
.lineup { list-style: none; margin: 0; padding: 0; }
.lineup li { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.lineup b { font-size: 17px; }
.lineup span { color: var(--muted); }

/* 고객센터 */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--ink2); padding: 0 0 20px; max-width: 44em; }

/* 견적 요청 */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 40px; }
.quote h2 { font-size: 20px; margin-bottom: 16px; }
.q-box { margin-bottom: 44px; }
.q-items { list-style: none; margin: 0; padding: 0; }
.q-items li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.q-items li:last-child { border-bottom: 1px solid var(--line); }
.q-items li span { flex: 1; font-weight: 600; }
.q-items label { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.q-items input { width: 80px; height: 40px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); }
.q-items button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.q-empty { color: var(--muted); padding: 20px; background: var(--soft); border-radius: var(--r); }
.form { display: grid; gap: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--accent); margin-left: 4px; }
.field input:not([type=radio]):not([type=file]), .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg);
}
.field textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .q-items input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.help { font-size: 13px; color: var(--muted); margin-top: 8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.agree input { margin-top: 4px; }
.done { border: 1px solid var(--ink); border-radius: var(--r); padding: 32px; }
.done p { color: var(--muted); margin: 8px 0 20px; }
.q-side { position: sticky; top: calc(var(--top-h, 68px) + 24px); background: var(--soft); border-radius: var(--r); padding: 24px; }
.q-side h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.q-side .big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 16px; }
.q-side .contact { margin: 0; grid-template-columns: 60px 1fr; }

@media (max-width: 960px) {
  .greeting, .overview-body, .quote { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .promise { font-size: 24px; }
  .unit-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lineup li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .org .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 24px; }
  .org .depts::before, .org .dept::before, .org .vline.down { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .q-side { position: static; }
  .brand-row { flex-direction: column; align-items: flex-start; }
  .block { padding: 40px 0; }
}
.field input[type=file] { font-size: 14px; color: var(--muted); }
.field input[type=file]::file-selector-button { font: inherit; color: var(--ink); border: 1px solid var(--line2); background: var(--bg); border-radius: var(--r); padding: 8px 14px; margin-right: 12px; cursor: pointer; }

/* 색 테마 4개: 관리자에서 고름. 미리보기는 주소 끝에 ?theme=이름 */
[data-theme="forest"] { --accent: #24523f; --ink: #1c231f; --ink2: #36413b; --muted: #66716a; --bg: #fbfaf5; --soft: #f0eee4; --line: #dedccf; --line2: #c4c2b3; --r: 12px; }
[data-theme="mono"] { --accent: #111; --ink: #111; --ink2: #2b2b2b; --muted: #666; --bg: #fff; --soft: #f2f2f2; --line: #d6d6d6; --line2: #111; --r: 0px; }
[data-theme="mono"] .top { border-bottom: 2px solid var(--ink); }
[data-theme="mono"] h1, [data-theme="mono"] h2 { font-weight: 800; letter-spacing: -0.045em; }
[data-theme="mono"] .btn, [data-theme="mono"] .btn-line { border-width: 2px; }
[data-theme="coffee"] { --accent: #6b4423; --ink: #2a1c13; --ink2: #4a372b; --muted: #7c6b5e; --bg: #fbf5ec; --soft: #f1e6d6; --line: #e3d4bf; --line2: #cdb99f; --r: 14px; --rb: 999px; }
[data-theme="coffee"] .top { background: var(--soft); }
[data-theme="dark"] { --accent: #e7b46a; --accent-ink: #14181d; --ink: #eef1f4; --ink2: #cfd6dd; --muted: #98a2ae; --bg: #0f1318; --soft: #181d24; --line: #272e37; --line2: #3b4550; --r: 8px; color-scheme: dark; }

/* 스크롤하면 아래에서 떠오르기. 지원 안 하는 브라우저는 그냥 보임 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec .wrap, .block, .stats .wrap, .band .wrap, .screen > .wrap {
      animation: fadeup linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes fadeup { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 휴대폰 하단 고정 바 */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bg); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mbar a { height: 46px; display: grid; place-items: center; border-radius: var(--r); font-weight: 700; font-size: 15px; }
  .mbar a:first-child { background: var(--accent); color: var(--accent-ink); }
  .mbar a:last-child { background: #fee500; color: #191919; }
  body { padding-bottom: 70px; }
}

/* 견적 접수증 팝업, 스팸 함정 칸 */
.receipt { padding: 32px; text-align: center; }
.receipt h2 { font-size: 20px; }
.receipt .no { margin: 14px 0 10px; color: var(--muted); }
.receipt .no b { display: block; font-size: 26px; color: var(--ink); letter-spacing: 0.02em; }
.receipt p { color: var(--muted); }
.receipt form { margin-top: 20px; }
.receipt .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== 11-20 레이아웃: 화면 단위 홈, ☰ 메뉴, 빠른 메뉴 ===== */

/* ☰ 메뉴: 모든 화면 크기에서 버튼 하나, 누르면 전체 메뉴 */
.menu-btn { display: block; order: 3; font-weight: 600; }
.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--top-h, 68px));
  flex-direction: column; gap: 0; padding: 24px max(24px, calc((100% - var(--maxw, 1200px) + 48px) / 2)); background: var(--bg); z-index: 30;
}
.nav.open { display: flex; }
.nav a { font-size: 28px; font-weight: 700; padding: 18px 0; border-bottom: 1px solid var(--line); border-top: 0; color: var(--ink); }

/* 홈: 화면 단위로 넘어감 */
html:has(main.snap) { scroll-snap-type: y proximity; scroll-padding-top: var(--top-h, 68px); }
.snap > section { scroll-snap-align: start; }
.screen { min-height: calc(100dvh - var(--top-h, 68px)); display: flex; align-items: center; padding: var(--gap, 72px) 0; border-top: 1px solid var(--line); }
.screen > .wrap { width: 100%; }

/* 첫 화면: 왼쪽 글, 오른쪽 사진 카드 */
.hero2 { padding: 56px 0 80px; }
.hero2 .wrap { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--hero-photo, 52) * 1%); gap: 64px; align-items: center; }
.hero2 h1 { font-size: min(var(--hero-title, 46px), 8vw); line-height: 1.28; letter-spacing: -0.035em; }
.hero2 p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 26em; }
.hero2 .actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero2 figure { margin: 0; position: relative; }
.hero2 figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.hero2 figcaption {
  position: absolute; left: -28px; bottom: -28px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 18px; box-shadow: 0 8px 24px rgb(21 23 26 / 0.08);
}
.hero2 figcaption b { display: block; font-size: 15px; }
.hero2 figcaption span { font-size: 13px; color: var(--muted); }

/* 신상품: 왼쪽 글, 오른쪽 옆으로 넘기는 카드 */
.slide-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; }
.slide-text h2 { font-size: 36px; }
.slide-text p { color: var(--muted); margin: 12px 0 24px; }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w, 260px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.slider .item { scroll-snap-align: start; }

/* 사업분야: 대표 색 바탕 */
.screen.color { background: var(--accent); color: var(--accent-ink); border-top: 0; }
.color .units dl div { border-top-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }
.color .units dd, .color .units-head p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.color .more { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }
.stats-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent); padding-top: 28px; }
.stats-row b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.stats-row span { font-size: 14px; opacity: 0.75; }

/* 마지막 화면: 공지·오시는 길 + 견적 안내 */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: 36px; background: var(--soft); border-radius: var(--r); }
.cta h2 { font-size: 24px; }
.cta p { color: var(--muted); margin-top: 6px; }
.cta .actions { display: flex; align-items: center; gap: 24px; }
.cta .tel { font-size: 14px; color: var(--muted); margin: 0; }
.cta .tel b { display: block; color: var(--ink); font-size: 20px; }

/* 빠른 메뉴 (PC 오른쪽 아래) */
.quick { position: fixed; right: 24px; bottom: 24px; z-index: 20; }
.quick summary {
  list-style: none; cursor: pointer; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; box-shadow: 0 6px 20px rgb(21 23 26 / 0.2);
}
.quick summary::-webkit-details-marker { display: none; }
.quick[open] summary { background: var(--accent); }
.quick div { position: absolute; right: 0; bottom: 76px; display: grid; gap: 8px; width: 150px; }
.quick div a { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgb(21 23 26 / 0.1); }
.quick div a.kakao { background: #fee500; border-color: #fee500; color: #191919; }

@media (max-width: 960px) {
  .nav { height: calc(100dvh - 60px); padding: 8px 16px; }
  .nav a { font-size: 22px; padding: 16px 0; }
  .quick { display: none; }
  html:has(main.snap) { scroll-snap-type: none; }
  .screen { min-height: 0; padding: 56px 0; }
  .hero2 { padding: 28px 0 56px; }
  .hero2 .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero2 figure { order: -1; }
  .hero2 figcaption { left: 12px; bottom: -22px; padding: 10px 14px; }
  .slide-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .slide-text h2 { font-size: 28px; }
  .slider { grid-auto-columns: 70%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row b { font-size: 20px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* 공지 펼쳐 보기 (관리자에서 올린 공지) */
.rows details summary { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); cursor: pointer; list-style: none; }
.rows details summary::-webkit-details-marker { display: none; }
.rows details p { color: var(--ink2); padding: 0 0 18px; }

/* 개인정보처리방침·약관, 머리글 로고 사진 */
.policy p { color: var(--ink2); margin-bottom: 16px; max-width: 48em; }
.logo img { height: var(--logo-h, 40px); width: auto; }

/* ===== 관리자 '디자인'에서 조절하는 것 ===== */
/* 홈 구역 순서: 서버가 [data-sec] 마다 order 값을 넣음 */
main.snap { display: flex; flex-direction: column; }

/* 첫 화면 배치 (html[data-hero]): split 기본, rev 사진 왼쪽, center 가운데, full 사진 꽉 채움 */
@media (min-width: 961px) {
  html[data-hero="rev"] .hero2 .wrap { grid-template-columns: calc(var(--hero-photo, 52) * 1%) minmax(0, 1fr); }
  html[data-hero="rev"] .hero2 figure { order: -1; }
  html[data-hero="center"] .hero2 .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 40px; }
  html[data-hero="center"] .hero2 p { margin-left: auto; margin-right: auto; }
  html[data-hero="center"] .hero2 .actions { justify-content: center; }
  html[data-hero="center"] .hero2 figure { width: min(100%, calc(var(--hero-photo, 52) * 1.7%)); margin: 0 auto; }
}
html[data-hero="full"] .hero2 { position: relative; display: flex; align-items: flex-end; min-height: var(--hero-h, 70dvh); padding: 0; color: #fff; overflow: hidden; }
html[data-hero="full"] .hero2 .wrap { display: block; width: 100%; padding-top: 48px; padding-bottom: 8vh; }
html[data-hero="full"] .hero2 .wrap > div { position: relative; z-index: 2; }
html[data-hero="full"] .hero2 figure { position: absolute; inset: 0; order: 0; }
html[data-hero="full"] .hero2 figure img { height: 100%; aspect-ratio: auto; border-radius: 0; }
html[data-hero="full"] .hero2 figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 20 35 / 0.72), rgb(10 20 35 / 0.3) 60%, rgb(10 20 35 / 0.1)); }
html[data-hero="full"] .hero2 p { color: rgb(255 255 255 / 0.92); }
html[data-hero="full"] .hero2 .btn-line { color: #fff; border-color: rgb(255 255 255 / 0.75); }

/* 메뉴 방식 (html[data-nav]): button 기본, bar는 PC에서 가로 메뉴 */
@media (min-width: 961px) {
  html[data-nav="bar"] .menu-btn { display: none; }
  html[data-nav="bar"] .nav { display: flex; position: static; height: auto; flex-direction: row; gap: 30px; padding: 0; background: none; }
  html[data-nav="bar"] .nav a { font-size: 15px; font-weight: 500; padding: 0; border: 0; color: var(--ink2); }
  html[data-nav="bar"] .nav a:hover, html[data-nav="bar"] .nav a[aria-current] { color: var(--accent); }
}

/* 메뉴 방식 row (기본): 머리글 아래 한 줄로 나열 */
html[data-nav="row"] { --top-h: 116px; }
html[data-nav="row"] .top .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 68px 48px; height: auto; gap: 0 16px; }
html[data-nav="row"] .top .logo { grid-area: 1 / 1; justify-self: start; }
html[data-nav="row"] .top-right { grid-area: 1 / 2; margin: 0; }
html[data-nav="row"] .menu-btn { display: none; }
html[data-nav="row"] .nav, html[data-nav="row"] .nav.open {
  grid-area: 2 / 1 / 3 / 3; display: flex; position: static; flex-direction: row; align-items: center; gap: 40px;
  height: 48px; padding: 0; background: none; overflow-x: auto; scrollbar-width: none;
}
html[data-nav="row"] .nav a { font-size: 15px; font-weight: 600; padding: 0; border: 0; white-space: nowrap; color: var(--ink2); }
html[data-nav="row"] .nav a:hover, html[data-nav="row"] .nav a[aria-current] { color: var(--accent); }
html[data-nav="row"] .top::before { content: ""; position: absolute; left: 0; right: 0; top: 68px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  html[data-nav="row"] { --top-h: 104px; }
  html[data-nav="row"] .top .wrap { grid-template-rows: 60px 44px; }
  html[data-nav="row"] .nav, html[data-nav="row"] .nav.open { gap: 18px; height: 44px; }
  html[data-nav="row"] .nav a { font-size: 14px; }
  html[data-nav="row"] .top::before { top: 60px; }
}

/* ===== 레이아웃 디자인 (html[data-layout]): classic 기본, photo, minimal, catalog, card ===== */
/* photo 사진 강조형: 분류 사진 위에 제목을 얹음 */
html[data-layout="photo"] .group { display: grid; }
html[data-layout="photo"] .group .photo { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
html[data-layout="photo"] .group h3 {
  grid-area: 1 / 1; align-self: end; z-index: 1; margin: 0; padding: 48px 24px 20px; color: #fff; font-size: 26px; pointer-events: none;
  background: linear-gradient(transparent, rgb(10 20 35 / 0.75)); border-radius: 0 0 var(--r) var(--r);
}
html[data-layout="photo"] .group h3 span { color: rgb(255 255 255 / 0.85); }
html[data-layout="photo"] .sec h2, html[data-layout="photo"] .screen h2 { font-size: 32px; }

/* minimal 가운데 정렬형: 제목과 내용을 가운데로, 색 띠 없음 */
html[data-layout="minimal"] .screen { min-height: 0; }
html[data-layout="minimal"] .head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
html[data-layout="minimal"] .chips, html[data-layout="minimal"] .group h3 { justify-content: center; }
html[data-layout="minimal"] .screen.color { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
html[data-layout="minimal"] .color .units dl div { border-top-color: var(--ink); }
html[data-layout="minimal"] .color .units dd, html[data-layout="minimal"] .color .units-head p { color: var(--muted); }
html[data-layout="minimal"] .color .more { color: var(--muted); border-color: var(--line); }
html[data-layout="minimal"] .stats-row { border-top-color: var(--line); text-align: center; }
html[data-layout="minimal"] .slide-text { text-align: center; }
@media (min-width: 961px) {
  html[data-layout="minimal"] .slide-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html[data-layout="minimal"] .slider { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
  html[data-layout="minimal"] .slider .item:nth-child(n+5) { display: none; }
  html[data-layout="minimal"] .units { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  html[data-layout="minimal"] .units-head { text-align: center; }
  html[data-layout="minimal"] .units-head p { margin-left: auto; margin-right: auto; }
  html[data-layout="minimal"] .units dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* catalog 상품 중심형: 낮은 첫 화면, 상품을 격자로 촘촘하게 */
html[data-layout="catalog"] .screen { min-height: 0; }
html[data-layout="catalog"] .hero2 { padding: 28px 0 36px; background: var(--soft); }
html[data-layout="catalog"] .hero2 p { font-size: 16px; }
html[data-layout="catalog"] .hero2 .actions { margin-top: 22px; }
html[data-layout="catalog"] .group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 20px; align-content: start; }
html[data-layout="catalog"] .group .photo { grid-row: 1 / 3; aspect-ratio: 1; }
html[data-layout="catalog"] .group h3 { margin-top: 0; }
@media (min-width: 961px) {
  html[data-layout="catalog"] .group { grid-template-columns: 200px minmax(0, 1fr); gap: 0 28px; }
  html[data-layout="catalog"] .slide-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html[data-layout="catalog"] .slide-text { display: flex; align-items: baseline; gap: 16px; }
  html[data-layout="catalog"] .slide-text h2 { font-size: 28px; }
  html[data-layout="catalog"] .slide-text p { margin: 0; flex: 1; }
  html[data-layout="catalog"] .slider { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(var(--card-w, 220px), 1fr)); overflow: visible; padding: 0; }
}

/* card 카드형: 옅은 바탕 위에 구역마다 둥근 카드 */
html[data-layout="card"] body { background: var(--soft); }
html[data-layout="card"] .top, html[data-layout="card"] .foot { background: var(--bg); }
html[data-layout="card"] main.snap { gap: 20px; padding: 20px 0 40px; }
html[data-layout="card"] .screen, html[data-layout="card"] .hero2 { min-height: 0; border: 0; padding: 0; background: none; }
html[data-layout="card"] .screen > .wrap, html[data-layout="card"] .hero2 > .wrap {
  width: min(var(--maxw, 1200px), calc(100% - 32px)); background: var(--bg); border: 1px solid var(--line);
  border-radius: calc(var(--r) + 12px); padding: var(--gap, 40px) 40px;
}
html[data-layout="card"] .screen.color > .wrap { background: var(--accent); border-color: var(--accent); }
html[data-layout="card"][data-hero="full"] .hero2 { border-radius: calc(var(--r) + 12px); width: min(var(--maxw, 1200px), calc(100% - 32px)); margin: 0 auto; }
html[data-layout="card"][data-hero="full"] .hero2 > .wrap { background: none; border: 0; }
@media (max-width: 960px) {
  html[data-layout="card"] .screen > .wrap, html[data-layout="card"] .hero2 > .wrap { padding: 28px 20px; }
}
