/* 2026-10-29 개편 — hobanfood.co.kr 식 구성(투명 헤더 · 전체 화면 슬라이드 · 둥근 흰 판 · 알약형 카드 · 손글씨 워터마크 · 바둑판 카드 · 어두운 푸터)
   색은 데어리랜드 딥그린 유지, 기본 글꼴은 Pretendard */
:root {
  --font: 'Pretendard', 'NanumSquare', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-script: 'Shadows Into Light Two', cursive;
  --r-big: 56px;
  --ink2: #1a1a1a;
  --gray: #f1f1f1;
}
body { letter-spacing: -.01em; }
h1, h2, h3, h4 { font-weight: 700; }
main { padding-top: 0; }

/* ── 헤더: 맨 위에선 투명, 내리면 딥그린 ── */
.gnb { background: transparent; transition: background .25s, box-shadow .25s, height .2s; }
.gnb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent); pointer-events: none; transition: opacity .25s; }
.gnb.scrolled { background: var(--green); }
.gnb.scrolled::before { opacity: 0; }
.gnb-in { position: relative; }
.menu a { font-size: 16.5px; font-weight: 600; padding: 8px 18px; color: #fff; }
.menu a:hover, .menu a.on { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.menu a.lang { border-radius: 999px; text-decoration: none; }
@media (max-width: 960px) { .menu { background: var(--green-d); } .menu a:hover, .menu a.on { background: rgba(255,255,255,.1); text-decoration: none; } }

/* 공통 머리 */
.h-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.h-head .eyebrow { font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; }
.h-head h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; line-height: 1.4; letter-spacing: -.02em; color: var(--ink2); margin: 0; }
.h-head h2 b { font-weight: 800; color: var(--ink2); }

/* 둥근 알약 버튼 */
.pbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink2); font-weight: 700; font-size: 16px; padding: 14px 26px 14px 30px; border-radius: 999px; transition: background .2s, color .2s, transform .2s; }
.pbtn:hover { background: var(--green); color: #fff; }
.pbtn-line { background: transparent; border: 1px solid #cfd5d2; }

/* ── 메인 비주얼 슬라이드 ── */
.hv { position: relative; height: 100vh; min-height: 600px; max-height: 1080px; overflow: hidden; background: #1c2a22; color: #fff; }
.hv-slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1.1s ease; display: flex; align-items: center; }
.hv-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,30,15,.55), rgba(0,30,15,.12) 70%); }
.hv-slide.on { opacity: 1; }
.hv-slide .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-txt { position: relative; z-index: 2; width: 100%; padding-bottom: 40px; }
.hv-txt h1, .hv-txt .h1 { color: #fff; font-size: clamp(36px, 5.6vw, 76px); font-weight: 300; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 22px; text-shadow: 0 2px 20px rgba(0,25,12,.35); }
.hv-txt h1 b, .hv-txt .h1 b { font-weight: 800; }
.hv-sub { font-size: clamp(15px, 1.5vw, 20px); opacity: .92; margin: 0; text-shadow: 0 1px 6px rgba(0,25,12,.6); }
.hv-slide.on .hv-txt > * { animation: hvUp .9s both; }
.hv-slide.on .hv-sub { animation-delay: .15s; }
@keyframes hvUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hv-ctrl { position: absolute; left: 0; right: 0; bottom: calc(var(--r-big) + 60px); z-index: 3; }
.hv-dots { display: flex; gap: 10px; }
.hv-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.hv-dots button.on { width: 34px; background: #fff; }
.hv-scroll { position: absolute; right: 6vw; bottom: calc(var(--r-big) + 30px); z-index: 3; width: 120px; height: 120px; color: #fff; display: grid; place-items: center; }
.hv-scroll .ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.hv-scroll text { fill: #fff; font-family: var(--font-en); font-size: 10.5px; font-weight: 600; letter-spacing: 3px; }
.hv-scroll .dot { font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hv-scroll .ring { animation: none; } .hv-slide { transition: none; } .hv-slide.on .hv-txt > * { animation: none; } }

/* ── 둥근 흰 판(히어로 위로 겹침) ── */
.sheet { position: relative; z-index: 5; background: #fff; border-radius: var(--r-big) var(--r-big) 0 0; margin-top: calc(var(--r-big) * -1); }
.home-intro { padding: 120px 0 80px; }

/* 알약형 가치 카드 */
.pills { display: grid; gap: 22px; }
.pill { position: relative; height: 240px; border-radius: 999px; background: center/cover no-repeat; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.pill::before { content: ''; position: absolute; inset: 0; background: rgba(0,35,18,.48); transition: background .3s; }
.pill:hover::before { background: rgba(0,97,53,.62); }
.pill > div { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 40px; }
.pill b { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }
.pill span { font-size: clamp(14px, 1.3vw, 17px); opacity: .92; }

/* 손글씨 워터마크 + 제품 배너 */
.pband { position: relative; padding-top: 40px; }
.script-mark { position: relative; z-index: 2; margin: 0 0 -.42em; text-align: center; font-family: var(--font-script); font-size: clamp(80px, 15vw, 230px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--green); opacity: .55; white-space: nowrap; pointer-events: none; user-select: none; }
.pband-img { position: relative; height: clamp(460px, 52vw, 700px); background: center/cover no-repeat; display: flex; align-items: flex-end; }
.pband-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,.08) 40%, rgba(241,241,241,.0) 60%, var(--gray) 100%); }
.pband-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,30,15,.45) 75%, rgba(241,241,241,0) 100%); }
.pband-txt { position: relative; z-index: 2; text-align: center; padding-bottom: 110px; color: #fff; }
.pband-txt .eyebrow { color: #fff; opacity: .9; }
.pband-txt h2 { color: #fff; font-weight: 400; font-size: clamp(24px, 3vw, 40px); line-height: 1.45; margin: 0 0 30px; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.pband-txt h2 b { font-weight: 800; }
.pick { background: var(--gray); padding: 10px 0 100px; }
.pick .pcard { border: 0; border-radius: 20px; }

/* 문의 배너 */
.inq { background: var(--gray); padding: 0 0 110px; }
.inq-box { position: relative; border-radius: 40px; overflow: hidden; background: center/cover no-repeat; padding: 90px 60px; text-align: center; color: #fff; }
.inq-box::before { content: ''; position: absolute; inset: 0; background: rgba(10,20,15,.6); }
.inq-box > * { position: relative; }
.inq-box h2 { color: #fff; font-size: clamp(26px, 3.2vw, 42px); margin-bottom: 12px; }
.inq-box p { opacity: .9; margin-bottom: 30px; }

/* 흐르는 손글씨 */
.flow { overflow: hidden; padding: 70px 0 30px; background: #fff; }
.flow-track { display: flex; gap: 70px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-script); font-size: clamp(56px, 8vw, 120px); line-height: 1.1; color: #d6d9d8; white-space: nowrap; }
.flow-track .g { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .flow-track { animation: none; } }

/* 바둑판 카드 */
.bento-sec { padding: 40px 0 110px; }
.bento { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr; grid-template-rows: 280px 280px; gap: 22px; }
.bc { position: relative; border-radius: 32px; overflow: hidden; background: center/cover no-repeat; display: flex; flex-direction: column; padding: 34px; transition: transform .25s, box-shadow .25s; }
a.bc:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,40,20,.12); }
.bc b { font-size: 24px; color: var(--ink2); font-weight: 800; margin-bottom: 6px; }
.bc span { font-size: 15px; color: var(--text); }
.bc .go { position: absolute; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; }
.bc-card { background: var(--gray); }
.bc-card .bc-ic { color: var(--green); margin-bottom: auto; }
.bc-contact { grid-column: 1; grid-row: 1; }
.bc-img { grid-column: 2; grid-row: 1; }
.bc-tall { grid-column: 3; grid-row: 1 / span 2; justify-content: flex-end; color: #fff; }
.bc-tall::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,97,53,.15), rgba(0,70,38,.88)); }
.bc-tall > div { position: relative; padding-bottom: 60px; }
.bc-tall b { color: #fff; font-size: 28px; display: block; }
.bc-tall span { color: rgba(255,255,255,.9); }
.bc-tall .go { background: #fff; color: var(--green); }
.bc-quality { grid-column: 4; grid-row: 1 / span 2; background: var(--green-l); }
.bc-certs { display: flex; gap: 12px; margin-bottom: auto; }
.bc-certs img { height: 84px; width: auto; }
.bc-shop { grid-column: 1 / span 2; grid-row: 2; }

/* 고객사 띠 */
.clients-strip { padding: 20px 0 110px; }

/* ── 하위 페이지 머리 ── */
.phead { padding: calc(var(--gnb-h) + 120px) 0 calc(var(--r-big) + 90px); text-align: center; background-color: #0b3a22; }
.phead::before { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,40,20,.45)); }
.phead h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; margin-bottom: 26px; }
.phead-nav { display: inline-flex; align-items: stretch; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.phead-nav .home { display: grid; place-items: center; width: 52px; border-right: 1px solid rgba(255,255,255,.3); color: #fff; }
.phead-sel { position: relative; }
.phead-sel summary { list-style: none; cursor: pointer; padding: 13px 54px 13px 26px; min-width: 220px; text-align: left; font-weight: 600; position: relative; }
.phead-sel summary::-webkit-details-marker { display: none; }
.phead-sel summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.phead-sel[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.phead-sel > div { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 10; text-align: left; }
.phead-sel > div a { display: block; color: var(--ink2); padding: 10px 16px; border-radius: 10px; font-size: 15px; }
.phead-sel > div a:hover, .phead-sel > div a.on { background: var(--green-l); color: var(--green); font-weight: 700; }
.sheet-sub { padding: 100px 0 10px; }
.sheet-sub .h-head { margin-bottom: 0; }
.sheet-sub + .sec, .sheet-sub + section { padding-top: 60px; }

/* 기존 요소 둥글게 */
.pcard { border-radius: 20px; }
.btn { border-radius: 999px; }
.cta { border-radius: var(--r-big) var(--r-big) 0 0; }

/* ── 푸터 ── */
.foot { background: var(--ink2); color: #8d8d8d; padding: 90px 0 70px; font-size: 14px; line-height: 1.9; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.foot-logo { width: 150px; height: auto; margin-bottom: 18px; opacity: .8; }
.foot-t { color: #e2e2e2; font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.foot-info { margin-bottom: 18px; }
.foot-info p { margin: 0; }
.foot-info span, .foot-links span { margin: 0 8px; opacity: .4; }
.foot-links a { color: #cfcfcf; }
.foot-sns { display: flex; gap: 14px; margin: 18px 0 12px; }
.foot-sns a { color: #9a9a9a; }
.foot-sns a:hover { color: #fff; }
.foot .copy { margin: 0; opacity: .6; }
.foot-menu { display: flex; flex-direction: column; }
.foot-menu a { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid #333; color: #e8e8e8; font-size: clamp(20px, 2vw, 26px); font-weight: 600; transition: color .2s, padding .2s; }
.foot-menu a:first-child { border-top: 1px solid #333; }
.foot-menu a:hover { color: #4fbf85; padding-left: 12px; }
.totop { background: #5c5c5c; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bc { min-height: 240px; }
  .bc-contact, .bc-img, .bc-tall, .bc-quality, .bc-shop { grid-column: auto; grid-row: auto; }
  .bc-tall { grid-row: span 2; }
}
@media (max-width: 960px) {
  :root { --r-big: 36px; }
  .foot-in { grid-template-columns: 1fr; gap: 40px; }
  .home-intro { padding: 90px 0 60px; }
  .pill { height: 200px; border-radius: 120px; }
}
@media (max-width: 640px) {
  :root { --r-big: 28px; }
  .hv { min-height: 560px; height: 92vh; }
  .hv-scroll { width: 92px; height: 92px; right: 16px; }
  .hv-ctrl { bottom: calc(var(--r-big) + 40px); }
  .home-intro { padding: 70px 0 40px; }
  .h-head { margin-bottom: 36px; }
  .pills { gap: 14px; }
  .pill { height: 170px; border-radius: 90px; }
  .pill > div { padding: 0 28px; }
  .pband-txt { padding-bottom: 70px; }
  .pick { padding-bottom: 70px; }
  .inq { padding-bottom: 70px; }
  .inq-box { padding: 60px 24px; border-radius: 28px; }
  .flow { padding: 50px 0 20px; }
  .bento { grid-template-columns: 1fr; }
  .bc-tall { grid-row: auto; min-height: 320px; }
  .bc-img { display: none; }
  .bc { padding: 26px; border-radius: 24px; }
  .bento-sec, .clients-strip { padding-bottom: 70px; }
  .phead { padding: calc(var(--gnb-h) + 70px) 0 calc(var(--r-big) + 60px); }
  .phead-sel summary { min-width: 170px; }
  .sheet-sub { padding-top: 64px; }
  .foot { padding: 64px 0 90px; }
}
.bc-card span { padding-right: 64px; }
.bc-quality .bc-certs img { height: 96px; }
.bc-quality .bc-certs { flex-wrap: wrap; }
.bc-quality .bc-certs img { height: auto; max-height: 90px; max-width: calc(50% - 6px); object-fit: contain; }
.bc-quality .bc-certs { width: 100%; }
.bc-quality .bc-certs img { width: calc(50% - 6px); max-height: none; }
