/* 2026-11-06 디엔비(dnbbakery.com) 느낌 반영 — 아이보리 바탕 · 어두운 사진 위 유리 카드 · 뉴스 넘김 · 흰 로고 타일 · 고객센터 띠 · 밝은 푸터
   layout2.css 위에 덮어씀 */
:root { --ivory: #fbf7ee; --ivory-d: #f3ecdc; }

/* 헤더 메뉴 8개 — 절대 두 줄로 넘어가지 않게: 한 줄에 다 안 들어가는 너비(1180px 이하)부터는 ≡ 메뉴로 */
.menu a { padding: 8px 13px; font-size: 16px; white-space: nowrap; }
@media (max-width: 1180px) {
  .burger { display: block; }
  .menu { position: fixed; inset: var(--gnb-h) 0 auto 0; background: var(--green-d); flex-direction: column; align-items: stretch; padding: 10px 16px 20px; gap: 2px;
          transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: 0 10px 20px rgba(0,0,0,.2); max-height: calc(100vh - var(--gnb-h)); overflow-y: auto; }
  .menu.open { transform: none; visibility: visible; }
  .menu a { padding: 13px 12px; font-size: 16px; }
  .menu a:hover, .menu a.on { background: rgba(255,255,255,.1); text-decoration: none; }
  .menu a.lang { margin: 8px 0 0; text-align: center; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnb:has(.menu.open) { background: var(--green); }
}

/* 슬라이드: 둥근 판 겹침 없이 */
.hv { max-height: 940px; }
.hv-ctrl { bottom: 56px; }

/* 네모 테두리 버튼 */
.line-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 13px 26px; border: 1px solid rgba(255,255,255,.85); color: #fff; font-size: 14.5px; font-weight: 600; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.line-btn:hover { background: #fff; color: var(--ink2); }
.line-btn.dark { border-color: var(--ink2); color: var(--ink2); }
.line-btn.dark:hover { background: var(--green); border-color: var(--green); color: #fff; }

.eyebrow { font-family: var(--font-en); letter-spacing: .04em; font-weight: 600; font-size: 14px; color: #6a8f3a; }
.h-head .eyebrow { letter-spacing: .12em; color: var(--green); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.row-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--ink2); margin: 0; }
.row-head h2 em { font-style: normal; color: var(--green); }

/* 소개 */
.home-intro { background: var(--ivory); padding: 120px 0 110px; }

/* 제품 — 어두운 사진 + 유리 카드 */
.hprod { position: relative; background: #1b1b17 center/cover no-repeat; padding: 110px 0; color: #fff; }
.hprod::before { content: ''; position: absolute; inset: 0; background: rgba(18,18,14,.84); }
.hprod-in { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hprod-head { padding: 10px 20px 0 0; }
.hprod-head .eyebrow { color: #a9c97a; }
.hprod-head h2 { color: #fff; font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1.4; margin: 0 0 30px; }
.gcards { display: contents; }
.gcard { position: relative; min-height: 270px; border-radius: 14px; overflow: hidden; background: center/cover no-repeat; padding: 30px 30px 34px; display: flex; flex-direction: column; color: #fff; isolation: isolate; border: 1px solid rgba(255,255,255,.12); }
.gcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,16,.82) 0%, rgba(20,20,16,.55) 55%, rgba(20,20,16,.25) 100%); backdrop-filter: blur(1.5px); transition: background .3s; }
.gcard:hover::before { background: linear-gradient(180deg, rgba(0,97,53,.9) 0%, rgba(0,97,53,.7) 60%, rgba(0,97,53,.45) 100%); }
.gcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.gcard-top b { font-family: var(--font-en); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: .01em; }
.gcard-top i { flex: none; margin-top: 10px; opacity: .85; transition: transform .25s; }
.gcard:hover .gcard-top i { transform: translateX(6px); }
.gcard p { font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 300px; opacity: .92; }

/* 제품 사진 줄 */
.packrow { background: #fff; border-bottom: 1px solid #efe9dc; padding: 56px 0; overflow: hidden; }
.packrow-track { display: flex; gap: 40px; width: max-content; animation: marquee 60s linear infinite; }
.packrow-track a { flex: none; width: 170px; height: 170px; display: block; transition: transform .25s; }
.packrow-track a:hover { transform: translateY(-6px); }
.packrow-track img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.packrow:hover .packrow-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .packrow-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* 뉴스 */
.hnews { padding: 110px 0 100px; }
.hnews-list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hnews-list::-webkit-scrollbar { display: none; }
.hnews-list .ncard { scroll-snap-align: start; }
.hnews-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.nbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d9d9d9; background: #fff; font-size: 20px; line-height: 1; color: var(--ink2); }
.nbtn:hover { border-color: var(--green); color: var(--green); }
.hnews-bar { flex: 1; height: 1px; background: #d9d9d9; margin-left: 16px; position: relative; }
.hnews-bar i { position: absolute; left: 0; top: -1px; height: 2px; background: #6a8f3a; width: 25%; transition: left .3s, width .3s; }
.ncard { display: block; color: var(--ink2); }
.ncard-img { aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--ivory-d); margin-bottom: 18px; }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ncard:hover .ncard-img img { transform: scale(1.05); }
.ncard-cat { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.ncard h3 { font-size: 17px; font-weight: 600; line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-date { font-size: 13px; color: var(--muted); font-family: var(--font-en); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.news-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 뉴스 글 */
.post { max-width: 860px; }
.post-head { border-bottom: 1px solid var(--ink2); padding-bottom: 22px; margin-bottom: 36px; }
.post-head h1 { font-size: clamp(24px, 3vw, 34px); color: var(--ink2); margin: 6px 0 10px; }
.post-head time { color: var(--muted); font-family: var(--font-en); font-size: 14px; }
.post-thumb { width: 100%; border-radius: 16px; margin-bottom: 36px; }
.post-body { font-size: 17px; line-height: 1.9; color: #333; }
.post-body h2 { font-size: 22px; margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 19px; margin: 1.5em 0 .5em; }
.post-body img { border-radius: 12px; margin: 1.2em 0; }
.post-body a { color: var(--green); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 60px; padding-top: 26px; }
.post-nav a { color: var(--ink2); font-size: 15px; }
.post-nav a small { display: block; color: var(--muted); font-size: 12.5px; }
.post-nav .nx { text-align: right; }
.post-nav .post-list { border: 1px solid var(--ink2); padding: 10px 24px; border-radius: 2px; }

/* 고객사 — 흰 로고 타일 두 줄 */
.hclients { position: relative; background: center/cover no-repeat; padding: 100px 0 90px; overflow: hidden; }
.hclients::before { content: ''; position: absolute; inset: 0; background: rgba(251,247,238,.9); }
.hclients > * { position: relative; }
.tiles { overflow: hidden; padding: 8px 0; }
.tiles-track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.tiles.rev .tiles-track { animation-direction: reverse; }
.tile { flex: none; width: 170px; height: 70px; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 12px 20px; box-shadow: 0 4px 14px rgba(60,50,20,.06); }
.tile img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }
.hclients:hover .tiles-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tiles-track { animation: none; } }

/* 고객센터 띠 */
.hcc { position: relative; background: #222 center/cover no-repeat; padding: 110px 0; color: #fff; }
.hcc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,12,.82) 0%, rgba(12,14,12,.55) 60%, rgba(12,14,12,.35) 100%); }
.hcc .wrap { position: relative; }
.hcc .eyebrow { color: #a9c97a; }
.hcc h2 { color: #fff; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.45; margin: 0 0 36px; }
.hcc-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 하위 페이지: 둥근 판 대신 반듯하게 */
.phead { padding-bottom: 110px; }
.sheet, .sheet-sub { border-radius: 0; margin-top: 0; }
.cta { border-radius: 0; }

/* 밝은 푸터 */
.foot { background: #f7f4ee; color: #6b6b6b; padding: 56px 0 60px; font-size: 13.5px; line-height: 1.9; border-top: 1px solid #ece6d8; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.foot-logo { width: 150px; opacity: 1; margin-bottom: 18px; }
.foot-t { color: var(--ink2); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.foot-info { margin-bottom: 16px; }
.foot-info p { margin: 0; }
.foot-info .k { color: #8a8a8a; }
.foot-info i { display: inline-block; width: 22px; }
.foot-info a { color: inherit; }
.foot .copy { font-size: 12.5px; color: #9a9a9a; opacity: 1; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot-links { display: flex; gap: 18px; margin: 0 !important; }
.foot-links a { color: #6b6b6b; font-size: 13px; }
.foot-links a b { color: var(--ink2); }
.foot-sns { margin: 0; }
.foot-sns a { color: #8a8a8a; }
.foot-sns a:hover { color: var(--green); }
.foot-certs { display: flex; gap: 14px; align-items: center; }
.foot-certs img { height: 56px; width: auto; }
.totop { background: var(--ink2); }

/* 반응형 */
@media (max-width: 1100px) {
  .hnews-list { grid-auto-columns: calc((100% - 44px) / 3); }
}
@media (max-width: 960px) {
  .hprod-in { grid-template-columns: 1fr 1fr; }
  .hprod-head { grid-column: 1 / -1; padding: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .hnews-list { grid-auto-columns: calc((100% - 22px) / 2); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-right { align-items: flex-start; }
  .foot-info i { display: block; width: 0; height: 0; }
}
@media (max-width: 640px) {
  .home-intro { padding: 70px 0 60px; }
  .hprod, .hcc { padding: 70px 0; }
  .hprod-in { grid-template-columns: 1fr; gap: 14px; }
  .gcard { min-height: 200px; padding: 24px; }
  .packrow { padding: 36px 0; }
  .packrow-track a { width: 120px; height: 120px; }
  .hnews, .hclients { padding: 70px 0 60px; }
  .row-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .hnews-list { grid-auto-columns: 78%; }
  .news-grid { grid-template-columns: 1fr; }
  .tile { width: 130px; height: 58px; }
  .post-body { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; text-align: center; }
  .post-nav .nx { text-align: center; }
  .phead { padding-bottom: 70px; }
}

/* ── 2026-11-06 2차: 장바구니 아이콘 · PRODUCT 색 · 가장자리 마감 ── */
.menu { margin-left: auto; }
.cart { flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 10px; border-radius: 50%; color: #fff; border: 1px solid rgba(255,255,255,.45); transition: background .2s, border-color .2s; }
.cart:hover, .cart.on { background: rgba(255,255,255,.16); border-color: #fff; }
@media (max-width: 1180px) { .cart { margin-left: auto; margin-right: 6px; } }

/* PRODUCT — 검정 대신 브랜드 딥그린 */
.hprod { background-color: #00301a; }
.hprod::before { background: linear-gradient(180deg, rgba(0,52,28,.93) 0%, rgba(0,40,22,.9) 50%, rgba(0,30,16,.94) 100%); }
.hprod-head .eyebrow, .hcc .eyebrow { color: #8fd1a8; }
/* 유리 카드: 위아래 고르게 + 가장자리 은은한 비네팅, 흰 테두리 대신 안쪽 빛 */
.gcard { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.gcard::before {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,48,26,.35) 0%, rgba(0,40,22,.62) 70%, rgba(0,32,18,.82) 100%),
    linear-gradient(180deg, rgba(0,40,22,.72) 0%, rgba(0,40,22,.38) 55%, rgba(0,34,18,.7) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 50px rgba(0,20,10,.35);
  backdrop-filter: none;
}
.gcard:hover::before {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,97,53,.45) 0%, rgba(0,97,53,.72) 70%, rgba(0,70,38,.9) 100%),
    linear-gradient(180deg, rgba(0,97,53,.75) 0%, rgba(0,97,53,.45) 55%, rgba(0,70,38,.75) 100%);
}
.gcard p, .gcard-top b { text-shadow: 0 1px 8px rgba(0,20,10,.45); }

/* 알약 카드: 가장자리까지 고르게 어둡게 + 안쪽 비네팅 */
.pill::before { background: radial-gradient(90% 140% at 50% 50%, rgba(0,35,18,.5) 0%, rgba(0,35,18,.62) 70%, rgba(0,28,14,.72) 100%); box-shadow: inset 0 0 60px rgba(0,20,10,.3); }
.pill:hover::before { background: radial-gradient(90% 140% at 50% 50%, rgba(0,97,53,.5) 0%, rgba(0,97,53,.7) 70%, rgba(0,70,38,.82) 100%); }

/* 고객센터 띠: 왼쪽만 어둡고 오른쪽이 툭 끊기던 것 → 전체 덮고 가장자리 부드럽게 */
.hcc::before { background: linear-gradient(90deg, rgba(0,30,16,.88) 0%, rgba(0,30,16,.66) 55%, rgba(0,30,16,.5) 100%), linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.2)); }
.hcc { background-position: center 60%; }

/* 슬라이드: 아래 가장자리 부드럽게 마감 */
.hv-slide::after { background: linear-gradient(90deg, rgba(0,30,15,.55), rgba(0,30,15,.1) 70%), linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,20,10,.28) 100%); }

/* ── 4차: PRODUCT 카드 — 평소엔 사진 원본 색 + 아래쪽만 얕게 어둡게, 마우스 올리면 딥그린 + 설명 ── */
.hprod { background: #003a20; }
.hprod::before { background: radial-gradient(80% 70% at 85% 10%, rgba(0,97,53,.45), rgba(0,0,0,0) 70%); }
.gcard { padding: 0; justify-content: flex-end; background-color: #0b2a1a; }
.gcard::after { content: ''; position: absolute; inset: 0; z-index: -2; background: inherit; transition: transform .6s ease; }
.gcard:hover::after { transform: scale(1.06); }
.gcard::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,22,12,.55) 75%, rgba(0,22,12,.82) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: opacity .35s, background .35s;
}
.gcard:hover::before { background: linear-gradient(180deg, rgba(0,97,53,.55) 0%, rgba(0,80,44,.82) 50%, rgba(0,58,32,.94) 100%); }
.gcard-txt { padding: 26px 28px 26px; }
.gcard-top { margin: 0; align-items: center; }
.gcard-top b { font-size: clamp(19px, 1.7vw, 24px); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.gcard-top i { margin-top: 0; }
.gcard p { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .4s ease, opacity .3s, transform .35s, margin .35s; margin: 0; text-shadow: none; }
.gcard:hover p, .gcard:focus-visible p { max-height: 120px; opacity: .95; transform: none; margin-top: 12px; }
/* 휴대폰·태블릿(마우스 없음): 제품명만 보이고, 누르면 상세로 이동 */
@media (hover: none) {
  .gcard:hover::after { transform: none; }
  .gcard:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,22,12,.55) 75%, rgba(0,22,12,.82) 100%); }
  .gcard:hover p { max-height: 0; opacity: 0; margin: 0; }
}
@media (max-width: 760px) { .gcard-txt { padding: 20px 22px; } }

/* 하위 페이지 메뉴 선택 상자: 아래 흰 판(.sheet z-index 5)에 가려지던 문제 → 머리 영역을 위로 */
.phead { position: relative; z-index: 6; }
.phead-sel > div { z-index: 20; max-height: min(70vh, 460px); overflow-y: auto; }
.phead-sel > div a { white-space: nowrap; }
.sheet-sub .h-head h2 { word-break: keep-all; overflow-wrap: anywhere; }

/* 고객사 로고: 모두 600x240 투명 캔버스로 크기 맞춤 → 칸 전체에 맞춰 표시 */
.tile { width: 190px; height: 80px; padding: 8px 14px; }
.tile img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.logo-cell { padding: 10px 16px; }
.logo-cell img { width: 100%; max-width: 250px; height: 100px; max-height: none; object-fit: contain; }

/* 인스타그램 칸 */
.hinsta { padding: 90px 0 100px; background: #fff; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.insta-grid a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #f1ede3; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-grid a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,40,22,.78)); opacity: 0; transition: opacity .3s; }
.insta-grid .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.insta-grid .vid { position: absolute; top: 10px; right: 10px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 11px; }
.insta-grid a:hover img { transform: scale(1.05); }
.insta-grid a:hover::after, .insta-grid a:hover .cap { opacity: 1; transform: none; }
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 600px) { .hinsta { padding: 64px 0 70px; } .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
